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
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
1246 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1247 echo "configure:1248: checking whether ${MAKE-make} sets \${MAKE}" >&5
1248 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1249 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 cat > conftestmake <<\EOF
1254 @echo 'ac_maketemp="${MAKE}"'
1256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1257 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1258 if test -n "$ac_maketemp"; then
1259 eval ac_cv_prog_make_${ac_make}_set=yes
1261 eval ac_cv_prog_make_${ac_make}_set=no
1265 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1266 echo "$ac_t""yes" 1>&6
1269 echo "$ac_t""no" 1>&6
1270 SET_MAKE="MAKE=${MAKE-make}"
1273 # Extract the first word of "ranlib", so it can be a program name with args.
1274 set dummy ranlib; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 if test -n "$RANLIB"; then
1281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1285 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 if test -f $ac_dir/$ac_word; then
1288 ac_cv_prog_RANLIB="ranlib"
1293 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1296 RANLIB="$ac_cv_prog_RANLIB"
1297 if test -n "$RANLIB"; then
1298 echo "$ac_t""$RANLIB" 1>&6
1300 echo "$ac_t""no" 1>&6
1303 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1304 echo "configure:1305: checking for ANSI C header files" >&5
1305 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1317 { (eval echo configure:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1319 if test -z "$ac_err"; then
1321 ac_cv_header_stdc=yes
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1327 ac_cv_header_stdc=no
1331 if test $ac_cv_header_stdc = yes; then
1332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1339 egrep "memchr" >/dev/null 2>&1; then
1343 ac_cv_header_stdc=no
1349 if test $ac_cv_header_stdc = yes; then
1350 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1357 egrep "free" >/dev/null 2>&1; then
1361 ac_cv_header_stdc=no
1367 if test $ac_cv_header_stdc = yes; then
1368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1369 if test "$cross_compiling" = yes; then
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1376 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1377 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1379 int main () { int i; for (i = 0; i < 256; i++)
1380 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1391 ac_cv_header_stdc=no
1399 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1400 if test $ac_cv_header_stdc = yes; then
1401 cat >> confdefs.h <<\EOF
1402 #define STDC_HEADERS 1
1407 echo $ac_n "checking for working const""... $ac_c" 1>&6
1408 echo "configure:1409: checking for working const" >&5
1409 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1418 /* Ultrix mips cc rejects this. */
1419 typedef int charset[2]; const charset x;
1420 /* SunOS 4.1.1 cc rejects this. */
1421 char const *const *ccp;
1423 /* NEC SVR4.0.2 mips cc rejects this. */
1424 struct point {int x, y;};
1425 static struct point const zero = {0,0};
1426 /* AIX XL C 1.02.0.0 rejects this.
1427 It does not let you subtract one const X* pointer from another in an arm
1428 of an if-expression whose if-part is not a constant expression */
1429 const char *g = "string";
1430 ccp = &g + (g ? g-g : 0);
1431 /* HPUX 7.0 cc rejects these. */
1434 ccp = (char const *const *) p;
1435 { /* SCO 3.2v4 cc rejects this. */
1437 char const *s = 0 ? (char *) 0 : (char const *) 0;
1441 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1443 const int *foo = &x[0];
1446 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1447 typedef const int *iptr;
1451 { /* AIX XL C 1.02.0.0 rejects this saying
1452 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1453 struct s { int j; const int *ap[3]; };
1454 struct s *b; b->j = 5;
1456 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1462 if { (eval echo configure:1463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1474 echo "$ac_t""$ac_cv_c_const" 1>&6
1475 if test $ac_cv_c_const = no; then
1476 cat >> confdefs.h <<\EOF
1482 echo $ac_n "checking for inline""... $ac_c" 1>&6
1483 echo "configure:1484: checking for inline" >&5
1484 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1488 for ac_kw in inline __inline__ __inline; do
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1497 if { (eval echo configure:1498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1499 ac_cv_c_inline=$ac_kw; break
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1509 echo "$ac_t""$ac_cv_c_inline" 1>&6
1510 case "$ac_cv_c_inline" in
1512 no) cat >> confdefs.h <<\EOF
1516 *) cat >> confdefs.h <<EOF
1517 #define inline $ac_cv_c_inline
1522 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1523 echo "configure:1524: checking for off_t" >&5
1524 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 #include <sys/types.h>
1536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1537 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1539 ac_cv_type_off_t=yes
1547 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1548 if test $ac_cv_type_off_t = no; then
1549 cat >> confdefs.h <<\EOF
1555 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1556 echo "configure:1557: checking for size_t" >&5
1557 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 #include <sys/types.h>
1569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1570 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1572 ac_cv_type_size_t=yes
1575 ac_cv_type_size_t=no
1580 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1581 if test $ac_cv_type_size_t = no; then
1582 cat >> confdefs.h <<\EOF
1583 #define size_t unsigned
1588 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1589 # for constant arguments. Useless!
1590 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1591 echo "configure:1592: checking for working alloca.h" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 char *p = alloca(2 * sizeof(int));
1603 if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1605 ac_cv_header_alloca_h=yes
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1610 ac_cv_header_alloca_h=no
1615 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1616 if test $ac_cv_header_alloca_h = yes; then
1617 cat >> confdefs.h <<\EOF
1618 #define HAVE_ALLOCA_H 1
1623 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1624 echo "configure:1625: checking for alloca" >&5
1625 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 cat > conftest.$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1633 # define alloca __builtin_alloca
1636 # include <malloc.h>
1637 # define alloca _alloca
1640 # include <alloca.h>
1645 # ifndef alloca /* predefined by HP cc +Olibcalls */
1654 char *p = (char *) alloca(1);
1657 if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1659 ac_cv_func_alloca_works=yes
1661 echo "configure: failed program was:" >&5
1662 cat conftest.$ac_ext >&5
1664 ac_cv_func_alloca_works=no
1669 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1670 if test $ac_cv_func_alloca_works = yes; then
1671 cat >> confdefs.h <<\EOF
1672 #define HAVE_ALLOCA 1
1677 if test $ac_cv_func_alloca_works = no; then
1678 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1679 # that cause trouble. Some versions do not even contain alloca or
1680 # contain a buggy version. If you still want to use their alloca,
1681 # use ar to extract alloca.o from them instead of compiling alloca.c.
1682 ALLOCA=alloca.${ac_objext}
1683 cat >> confdefs.h <<\EOF
1688 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1689 echo "configure:1690: checking whether alloca needs Cray hooks" >&5
1690 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 #if defined(CRAY) && ! defined(CRAY2)
1703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1704 egrep "webecray" >/dev/null 2>&1; then
1715 echo "$ac_t""$ac_cv_os_cray" 1>&6
1716 if test $ac_cv_os_cray = yes; then
1717 for ac_func in _getb67 GETB67 getb67; do
1718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1719 echo "configure:1720: checking for $ac_func" >&5
1720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 /* System header to define __stub macros and hopefully few prototypes,
1727 which can conflict with char $ac_func(); below. */
1729 /* Override any gcc2 internal prototype to avoid an error. */
1730 /* We use char because int might match the return type of a gcc2
1731 builtin and then its argument prototype would still apply. */
1736 /* The GNU C library defines this for functions which it implements
1737 to always fail with ENOSYS. Some functions are actually named
1738 something starting with __ and the normal name is an alias. */
1739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 eval "ac_cv_func_$ac_func=yes"
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1754 eval "ac_cv_func_$ac_func=no"
1759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1760 echo "$ac_t""yes" 1>&6
1761 cat >> confdefs.h <<EOF
1762 #define CRAY_STACKSEG_END $ac_func
1767 echo "$ac_t""no" 1>&6
1773 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1774 echo "configure:1775: checking stack direction for C alloca" >&5
1775 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 if test "$cross_compiling" = yes; then
1779 ac_cv_c_stack_direction=0
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784 find_stack_direction ()
1786 static char *addr = 0;
1791 return find_stack_direction ();
1794 return (&dummy > addr) ? 1 : -1;
1798 exit (find_stack_direction() < 0);
1801 if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1803 ac_cv_c_stack_direction=1
1805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1808 ac_cv_c_stack_direction=-1
1815 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1816 cat >> confdefs.h <<EOF
1817 #define STACK_DIRECTION $ac_cv_c_stack_direction
1822 for ac_hdr in unistd.h
1824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_hdr" >&5
1827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1836 { (eval echo configure:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1838 if test -z "$ac_err"; then
1840 eval "ac_cv_header_$ac_safe=yes"
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1846 eval "ac_cv_header_$ac_safe=no"
1850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1851 echo "$ac_t""yes" 1>&6
1852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1853 cat >> confdefs.h <<EOF
1854 #define $ac_tr_hdr 1
1858 echo "$ac_t""no" 1>&6
1862 for ac_func in getpagesize
1864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_func" >&5
1866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1872 /* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $ac_func(); below. */
1875 /* Override any gcc2 internal prototype to avoid an error. */
1876 /* We use char because int might match the return type of a gcc2
1877 builtin and then its argument prototype would still apply. */
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1895 eval "ac_cv_func_$ac_func=yes"
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1900 eval "ac_cv_func_$ac_func=no"
1905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1908 cat >> confdefs.h <<EOF
1909 #define $ac_tr_func 1
1913 echo "$ac_t""no" 1>&6
1917 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1918 echo "configure:1919: checking for working mmap" >&5
1919 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 if test "$cross_compiling" = yes; then
1923 ac_cv_func_mmap_fixed_mapped=no
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1929 /* Thanks to Mike Haertel and Jim Avera for this test.
1930 Here is a matrix of mmap possibilities:
1931 mmap private not fixed
1932 mmap private fixed at somewhere currently unmapped
1933 mmap private fixed at somewhere already mapped
1934 mmap shared not fixed
1935 mmap shared fixed at somewhere currently unmapped
1936 mmap shared fixed at somewhere already mapped
1937 For private mappings, we should verify that changes cannot be read()
1938 back from the file, nor mmap's back from the file at a different
1939 address. (There have been systems where private was not correctly
1940 implemented like the infamous i386 svr4.0, and systems where the
1941 VM page cache was not coherent with the filesystem buffer cache
1942 like early versions of FreeBSD and possibly contemporary NetBSD.)
1943 For shared mappings, we should conversely verify that changes get
1944 propogated back to all the places they're supposed to be.
1946 Grep wants private fixed already mapped.
1947 The main things grep needs to know about mmap are:
1948 * does it exist and is it safe to write into the mmap'd area
1949 * how to use it (BSD variants) */
1950 #include <sys/types.h>
1952 #include <sys/mman.h>
1954 /* This mess was copied from the GNU getpagesize.h. */
1955 #ifndef HAVE_GETPAGESIZE
1956 # ifdef HAVE_UNISTD_H
1957 # include <unistd.h>
1960 /* Assume that all systems that can run configure have sys/param.h. */
1961 # ifndef HAVE_SYS_PARAM_H
1962 # define HAVE_SYS_PARAM_H 1
1965 # ifdef _SC_PAGESIZE
1966 # define getpagesize() sysconf(_SC_PAGESIZE)
1967 # else /* no _SC_PAGESIZE */
1968 # ifdef HAVE_SYS_PARAM_H
1969 # include <sys/param.h>
1970 # ifdef EXEC_PAGESIZE
1971 # define getpagesize() EXEC_PAGESIZE
1972 # else /* no EXEC_PAGESIZE */
1974 # define getpagesize() NBPG * CLSIZE
1977 # endif /* no CLSIZE */
1978 # else /* no NBPG */
1980 # define getpagesize() NBPC
1981 # else /* no NBPC */
1983 # define getpagesize() PAGESIZE
1984 # endif /* PAGESIZE */
1985 # endif /* no NBPC */
1986 # endif /* no NBPG */
1987 # endif /* no EXEC_PAGESIZE */
1988 # else /* no HAVE_SYS_PARAM_H */
1989 # define getpagesize() 8192 /* punt totally */
1990 # endif /* no HAVE_SYS_PARAM_H */
1991 # endif /* no _SC_PAGESIZE */
1993 #endif /* no HAVE_GETPAGESIZE */
1996 extern "C" { void *malloc(unsigned); }
2004 char *data, *data2, *data3;
2008 pagesize = getpagesize();
2011 * First, make a file with some known garbage in it.
2013 data = malloc(pagesize);
2016 for (i = 0; i < pagesize; ++i)
2017 *(data + i) = rand();
2019 fd = creat("conftestmmap", 0600);
2022 if (write(fd, data, pagesize) != pagesize)
2027 * Next, try to mmap the file at a fixed address which
2028 * already has something else allocated at it. If we can,
2029 * also make sure that we see the same garbage.
2031 fd = open("conftestmmap", O_RDWR);
2034 data2 = malloc(2 * pagesize);
2037 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2038 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2039 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2041 for (i = 0; i < pagesize; ++i)
2042 if (*(data + i) != *(data2 + i))
2046 * Finally, make sure that changes to the mapped area
2047 * do not percolate back to the file as seen by read().
2048 * (This is a bug on some variants of i386 svr4.0.)
2050 for (i = 0; i < pagesize; ++i)
2051 *(data2 + i) = *(data2 + i) + 1;
2052 data3 = malloc(pagesize);
2055 if (read(fd, data3, pagesize) != pagesize)
2057 for (i = 0; i < pagesize; ++i)
2058 if (*(data + i) != *(data3 + i))
2061 unlink("conftestmmap");
2066 if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2068 ac_cv_func_mmap_fixed_mapped=yes
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2073 ac_cv_func_mmap_fixed_mapped=no
2080 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2081 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2082 cat >> confdefs.h <<\EOF
2089 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2090 unistd.h values.h sys/param.h
2092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2094 echo "configure:2095: checking for $ac_hdr" >&5
2095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2104 { (eval echo configure:2105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2106 if test -z "$ac_err"; then
2108 eval "ac_cv_header_$ac_safe=yes"
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 eval "ac_cv_header_$ac_safe=no"
2118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2119 echo "$ac_t""yes" 1>&6
2120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2121 cat >> confdefs.h <<EOF
2122 #define $ac_tr_hdr 1
2126 echo "$ac_t""no" 1>&6
2130 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2131 __argz_count __argz_stringify __argz_next
2133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_func" >&5
2135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 /* System header to define __stub macros and hopefully few prototypes,
2142 which can conflict with char $ac_func(); below. */
2144 /* Override any gcc2 internal prototype to avoid an error. */
2145 /* We use char because int might match the return type of a gcc2
2146 builtin and then its argument prototype would still apply. */
2151 /* The GNU C library defines this for functions which it implements
2152 to always fail with ENOSYS. Some functions are actually named
2153 something starting with __ and the normal name is an alias. */
2154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2164 eval "ac_cv_func_$ac_func=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 eval "ac_cv_func_$ac_func=no"
2174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2177 cat >> confdefs.h <<EOF
2178 #define $ac_tr_func 1
2182 echo "$ac_t""no" 1>&6
2187 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2188 for ac_func in stpcpy
2190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2191 echo "configure:2192: checking for $ac_func" >&5
2192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 /* System header to define __stub macros and hopefully few prototypes,
2199 which can conflict with char $ac_func(); below. */
2201 /* Override any gcc2 internal prototype to avoid an error. */
2202 /* We use char because int might match the return type of a gcc2
2203 builtin and then its argument prototype would still apply. */
2208 /* The GNU C library defines this for functions which it implements
2209 to always fail with ENOSYS. Some functions are actually named
2210 something starting with __ and the normal name is an alias. */
2211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2219 if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2221 eval "ac_cv_func_$ac_func=yes"
2223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2226 eval "ac_cv_func_$ac_func=no"
2231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2232 echo "$ac_t""yes" 1>&6
2233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2234 cat >> confdefs.h <<EOF
2235 #define $ac_tr_func 1
2239 echo "$ac_t""no" 1>&6
2244 if test "${ac_cv_func_stpcpy}" = "yes"; then
2245 cat >> confdefs.h <<\EOF
2246 #define HAVE_STPCPY 1
2251 if test $ac_cv_header_locale_h = yes; then
2252 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2253 echo "configure:2254: checking for LC_MESSAGES" >&5
2254 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2257 cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2267 am_cv_val_LC_MESSAGES=yes
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2272 am_cv_val_LC_MESSAGES=no
2277 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2278 if test $am_cv_val_LC_MESSAGES = yes; then
2279 cat >> confdefs.h <<\EOF
2280 #define HAVE_LC_MESSAGES 1
2285 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2286 echo "configure:2287: checking whether NLS is requested" >&5
2287 # Check whether --enable-nls or --disable-nls was given.
2288 if test "${enable_nls+set}" = set; then
2289 enableval="$enable_nls"
2295 echo "$ac_t""$USE_NLS" 1>&6
2298 USE_INCLUDED_LIBINTL=no
2300 if test "$USE_NLS" = "yes"; then
2301 cat >> confdefs.h <<\EOF
2302 #define ENABLE_NLS 1
2305 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2306 echo "configure:2307: checking whether included gettext is requested" >&5
2307 # Check whether --with-included-gettext or --without-included-gettext was given.
2308 if test "${with_included_gettext+set}" = set; then
2309 withval="$with_included_gettext"
2310 nls_cv_force_use_gnu_gettext=$withval
2312 nls_cv_force_use_gnu_gettext=no
2315 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2317 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2318 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2320 nls_cv_header_libgt=
2323 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2324 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2325 echo "configure:2326: checking for libintl.h" >&5
2326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2332 #include <libintl.h>
2334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2335 { (eval echo configure:2336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2337 if test -z "$ac_err"; then
2339 eval "ac_cv_header_$ac_safe=yes"
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2345 eval "ac_cv_header_$ac_safe=no"
2349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2350 echo "$ac_t""yes" 1>&6
2351 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2352 echo "configure:2353: checking for gettext in libc" >&5
2353 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 #include <libintl.h>
2361 return (int) gettext ("")
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2366 gt_cv_func_gettext_libc=yes
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2371 gt_cv_func_gettext_libc=no
2376 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2378 if test "$gt_cv_func_gettext_libc" != "yes"; then
2379 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2380 echo "configure:2381: checking for bindtextdomain in -lintl" >&5
2381 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_save_LIBS="$LIBS"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2393 char bindtextdomain();
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2406 eval "ac_cv_lib_$ac_lib_var=no"
2409 LIBS="$ac_save_LIBS"
2412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2415 echo "configure:2416: checking for gettext in libintl" >&5
2416 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 cat > conftest.$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2424 return (int) gettext ("")
2427 if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2429 gt_cv_func_gettext_libintl=yes
2431 echo "configure: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2434 gt_cv_func_gettext_libintl=no
2439 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2441 echo "$ac_t""no" 1>&6
2446 if test "$gt_cv_func_gettext_libc" = "yes" \
2447 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2448 cat >> confdefs.h <<\EOF
2449 #define HAVE_GETTEXT 1
2452 # Extract the first word of "msgfmt", so it can be a program name with args.
2453 set dummy msgfmt; ac_word=$2
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_word" >&5
2456 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2461 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2465 for ac_dir in $PATH; do
2466 test -z "$ac_dir" && ac_dir=.
2467 if test -f $ac_dir/$ac_word; then
2468 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2469 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2475 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2479 MSGFMT="$ac_cv_path_MSGFMT"
2480 if test -n "$MSGFMT"; then
2481 echo "$ac_t""$MSGFMT" 1>&6
2483 echo "$ac_t""no" 1>&6
2485 if test "$MSGFMT" != "no"; then
2486 for ac_func in dcgettext
2488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_func" >&5
2490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 /* System header to define __stub macros and hopefully few prototypes,
2497 which can conflict with char $ac_func(); below. */
2499 /* Override any gcc2 internal prototype to avoid an error. */
2500 /* We use char because int might match the return type of a gcc2
2501 builtin and then its argument prototype would still apply. */
2506 /* The GNU C library defines this for functions which it implements
2507 to always fail with ENOSYS. Some functions are actually named
2508 something starting with __ and the normal name is an alias. */
2509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2517 if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2519 eval "ac_cv_func_$ac_func=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2524 eval "ac_cv_func_$ac_func=no"
2529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2530 echo "$ac_t""yes" 1>&6
2531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2532 cat >> confdefs.h <<EOF
2533 #define $ac_tr_func 1
2537 echo "$ac_t""no" 1>&6
2541 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2542 set dummy gmsgfmt; ac_word=$2
2543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_word" >&5
2545 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2550 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2553 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2558 for ac_dir in $ac_dummy; do
2559 test -z "$ac_dir" && ac_dir=.
2560 if test -f $ac_dir/$ac_word; then
2561 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2566 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2570 GMSGFMT="$ac_cv_path_GMSGFMT"
2571 if test -n "$GMSGFMT"; then
2572 echo "$ac_t""$GMSGFMT" 1>&6
2574 echo "$ac_t""no" 1>&6
2577 # Extract the first word of "xgettext", so it can be a program name with args.
2578 set dummy xgettext; ac_word=$2
2579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_word" >&5
2581 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2586 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2590 for ac_dir in $PATH; do
2591 test -z "$ac_dir" && ac_dir=.
2592 if test -f $ac_dir/$ac_word; then
2593 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2594 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2600 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2604 XGETTEXT="$ac_cv_path_XGETTEXT"
2605 if test -n "$XGETTEXT"; then
2606 echo "$ac_t""$XGETTEXT" 1>&6
2608 echo "$ac_t""no" 1>&6
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2616 extern int _nl_msg_cat_cntr;
2617 return _nl_msg_cat_cntr
2620 if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2637 echo "$ac_t""no" 1>&6
2642 if test "$CATOBJEXT" = "NONE"; then
2643 nls_cv_use_gnu_gettext=yes
2647 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2648 INTLOBJS="\$(GETTOBJS)"
2649 # Extract the first word of "msgfmt", so it can be a program name with args.
2650 set dummy msgfmt; ac_word=$2
2651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2652 echo "configure:2653: checking for $ac_word" >&5
2653 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2658 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2662 for ac_dir in $PATH; do
2663 test -z "$ac_dir" && ac_dir=.
2664 if test -f $ac_dir/$ac_word; then
2665 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2666 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2672 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2676 MSGFMT="$ac_cv_path_MSGFMT"
2677 if test -n "$MSGFMT"; then
2678 echo "$ac_t""$MSGFMT" 1>&6
2680 echo "$ac_t""no" 1>&6
2683 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2684 set dummy gmsgfmt; ac_word=$2
2685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2686 echo "configure:2687: checking for $ac_word" >&5
2687 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2692 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2695 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2700 for ac_dir in $ac_dummy; do
2701 test -z "$ac_dir" && ac_dir=.
2702 if test -f $ac_dir/$ac_word; then
2703 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2708 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2712 GMSGFMT="$ac_cv_path_GMSGFMT"
2713 if test -n "$GMSGFMT"; then
2714 echo "$ac_t""$GMSGFMT" 1>&6
2716 echo "$ac_t""no" 1>&6
2719 # Extract the first word of "xgettext", so it can be a program name with args.
2720 set dummy xgettext; ac_word=$2
2721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2722 echo "configure:2723: checking for $ac_word" >&5
2723 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2728 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2732 for ac_dir in $PATH; do
2733 test -z "$ac_dir" && ac_dir=.
2734 if test -f $ac_dir/$ac_word; then
2735 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2736 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2742 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2746 XGETTEXT="$ac_cv_path_XGETTEXT"
2747 if test -n "$XGETTEXT"; then
2748 echo "$ac_t""$XGETTEXT" 1>&6
2750 echo "$ac_t""no" 1>&6
2754 USE_INCLUDED_LIBINTL=yes
2758 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2760 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2761 nls_cv_header_intl=libintl.h
2762 nls_cv_header_libgt=libgettext.h
2765 if test "$XGETTEXT" != ":"; then
2766 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2769 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2774 # We need to process the po/ directory.
2778 nls_cv_header_intl=libintl.h
2779 nls_cv_header_libgt=libgettext.h
2782 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2783 # because some of the sources are only built for this goal.
2784 if test "$PACKAGE" = gettext; then
2786 USE_INCLUDED_LIBINTL=yes
2789 for lang in $ALL_LINGUAS; do
2790 GMOFILES="$GMOFILES $lang.gmo"
2791 POFILES="$POFILES $lang.po"
2807 if test "x$CATOBJEXT" != "x"; then
2808 if test "x$ALL_LINGUAS" = "x"; then
2811 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2812 echo "configure:2813: checking for catalogs to be installed" >&5
2814 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2815 case "$ALL_LINGUAS" in
2816 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2819 LINGUAS=$NEW_LINGUAS
2820 echo "$ac_t""$LINGUAS" 1>&6
2823 if test -n "$LINGUAS"; then
2824 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2828 if test $ac_cv_header_locale_h = yes; then
2829 INCLUDE_LOCALE_H="#include <locale.h>"
2832 /* The system does not provide the header <locale.h>. Take care yourself. */"
2836 if test -f $srcdir/po2tbl.sed.in; then
2837 if test "$CATOBJEXT" = ".cat"; then
2838 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2839 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2840 echo "configure:2841: checking for linux/version.h" >&5
2841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2847 #include <linux/version.h>
2849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2850 { (eval echo configure:2851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2852 if test -z "$ac_err"; then
2854 eval "ac_cv_header_$ac_safe=yes"
2857 echo "configure: failed program was:" >&5
2858 cat conftest.$ac_ext >&5
2860 eval "ac_cv_header_$ac_safe=no"
2864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2865 echo "$ac_t""yes" 1>&6
2868 echo "$ac_t""no" 1>&6
2873 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2875 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2876 $srcdir/po2tbl.sed.in > po2tbl.sed
2879 if test "$PACKAGE" = "gettext"; then
2889 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2895 if test -f $srcdir/po/POTFILES.in; then
2896 test -d po || mkdir po
2897 if test "x$srcdir" != "x."; then
2898 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2899 posrcprefix="$srcdir/"
2901 posrcprefix="../$srcdir/"
2907 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2908 < $srcdir/po/POTFILES.in > po/POTFILES
2912 localedir='${datadir}/locale'
2915 if test "x$POSUB" != x; then
2917 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2918 echo "configure:2919: checking for catalogs to be installed" >&5
2919 # Look for .po and .gmo files in the source directory.
2922 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2923 # If there aren't any .gmo files the shell will give us the
2924 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2926 case "$cat" in *\**)
2929 # The quadruple backslash is collapsed to a double backslash
2930 # by the backticks, then collapsed again by the double quotes,
2931 # leaving us with one backslash in the sed expression (right
2932 # before the dot that mustn't act as a wildcard).
2933 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
2934 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
2935 # The user is allowed to set LINGUAS to a list of languages to
2936 # install catalogs for. If it's empty that means "all of them."
2937 if test "x$LINGUAS" = x; then
2938 CATALOGS="$CATALOGS $cat"
2939 XLINGUAS="$XLINGUAS $lang"
2941 case "$LINGUAS" in *$lang*)
2942 CATALOGS="$CATALOGS $cat"
2943 XLINGUAS="$XLINGUAS $lang"
2949 echo "$ac_t""$LINGUAS" 1>&6
2951 CONFIG_ALL="$CONFIG_ALL all-po"
2952 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
2953 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
2954 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
2958 cat >> confdefs.h <<EOF
2959 #define PACKAGE "$PACKAGE"
2964 debugdir=${libdir}/debug
2966 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2967 if test "${with_separate_debug_dir+set}" = set; then
2968 withval="$with_separate_debug_dir"
2969 debugdir="${withval}"
2974 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2975 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2976 ac_define_dir=`eval echo $debugdir`
2977 ac_define_dir=`eval echo $ac_define_dir`
2978 cat >> confdefs.h <<EOF
2979 #define DEBUGDIR "$ac_define_dir"
2983 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2985 subdirs="doc testsuite"
2989 . $srcdir/configure.host
2991 . $srcdir/configure.tgt
2993 # Fetch the default architecture and default target vector from BFD.
2994 targ=$target; . $srcdir/../bfd/config.bfd
2996 # We only want the first architecture, so strip off the others if
2997 # there is more than one.
2998 targ_archs=`echo $targ_archs | sed 's/ .*//'`
3000 if test "x$targ_archs" != x; then
3001 cat >> confdefs.h <<EOF
3002 #define DEFAULT_BFD_ARCH $targ_archs
3006 if test "x$targ_defvec" != x; then
3007 cat >> confdefs.h <<EOF
3008 #define DEFAULT_BFD_VEC $targ_defvec
3013 if test "$program_transform_name" = s,x,x,; then
3014 program_transform_name=
3016 # Double any \ or $. echo might interpret backslashes.
3017 cat <<\EOF_SED > conftestsed
3018 s,\\,\\\\,g; s,\$,$$,g
3020 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
3023 test "$program_prefix" != NONE &&
3024 program_transform_name="s,^,${program_prefix},; $program_transform_name"
3025 # Use a double $ so make ignores it.
3026 test "$program_suffix" != NONE &&
3027 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
3029 # sed with no file args requires a program.
3030 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
3033 # The CLI cannot be disabled yet, but may be in the future.
3036 # Check whether --enable-gdbcli or --disable-gdbcli was given.
3037 if test "${enable_gdbcli+set}" = set; then
3038 enableval="$enable_gdbcli"
3043 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
3045 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
3051 if test x"$enable_gdbcli" = xyes; then
3052 if test -d $srcdir/cli; then
3053 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3054 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3055 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3056 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3061 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3062 if test "${enable_gdbmi+set}" = set; then
3063 enableval="$enable_gdbmi"
3068 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3074 if test x"$enable_gdbmi" = xyes; then
3075 if test -d $srcdir/mi; then
3076 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3077 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3078 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3079 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3084 # Check whether --enable-tui or --disable-tui was given.
3085 if test "${enable_tui+set}" = set; then
3086 enableval="$enable_tui"
3091 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3097 if test x"$enable_tui" = xyes; then
3098 if test -d $srcdir/tui; then
3099 if test "$ac_cv_search_initscr" != no -a "$ac_cv_search_wborder" != no; then
3100 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3101 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3102 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3103 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3104 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3105 CONFIG_ALL="${CONFIG_ALL} all-tui"
3106 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
3107 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
3108 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
3114 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3115 if test "${enable_gdbtk+set}" = set; then
3116 enableval="$enable_gdbtk"
3121 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3124 if test -d $srcdir/gdbtk; then
3131 # We unconditionally disable gdbtk tests on selected platforms.
3134 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3138 # Libunwind support.
3139 # Check whether --with-libunwind or --without-libunwind was given.
3140 if test "${with_libunwind+set}" = set; then
3141 withval="$with_libunwind"
3142 case "${withval}" in
3143 yes) enable_libunwind=yes ;;
3144 no) enable_libunwind=no ;;
3145 *) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
3149 for ac_hdr in libunwind.h
3151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3153 echo "configure:3154: checking for $ac_hdr" >&5
3154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3163 { (eval echo configure:3164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3165 if test -z "$ac_err"; then
3167 eval "ac_cv_header_$ac_safe=yes"
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3173 eval "ac_cv_header_$ac_safe=no"
3177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3180 cat >> confdefs.h <<EOF
3181 #define $ac_tr_hdr 1
3185 echo "$ac_t""no" 1>&6
3189 for ac_hdr in libunwind-ia64.h
3191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3193 echo "configure:3194: checking for $ac_hdr" >&5
3194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3203 { (eval echo configure:3204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3205 if test -z "$ac_err"; then
3207 eval "ac_cv_header_$ac_safe=yes"
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 eval "ac_cv_header_$ac_safe=no"
3217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3218 echo "$ac_t""yes" 1>&6
3219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3220 cat >> confdefs.h <<EOF
3221 #define $ac_tr_hdr 1
3225 echo "$ac_t""no" 1>&6
3229 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3230 enable_libunwind=yes;
3236 if test x"$enable_libunwind" = xyes; then
3237 for ac_hdr in libunwind.h
3239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_hdr" >&5
3242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3251 { (eval echo configure:3252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3253 if test -z "$ac_err"; then
3255 eval "ac_cv_header_$ac_safe=yes"
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3261 eval "ac_cv_header_$ac_safe=no"
3265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3268 cat >> confdefs.h <<EOF
3269 #define $ac_tr_hdr 1
3273 echo "$ac_t""no" 1>&6
3277 for ac_hdr in libunwind-ia64.h
3279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3281 echo "configure:3282: checking for $ac_hdr" >&5
3282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3291 { (eval echo configure:3292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3293 if test -z "$ac_err"; then
3295 eval "ac_cv_header_$ac_safe=yes"
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 eval "ac_cv_header_$ac_safe=no"
3305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3306 echo "$ac_t""yes" 1>&6
3307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3308 cat >> confdefs.h <<EOF
3309 #define $ac_tr_hdr 1
3313 echo "$ac_t""no" 1>&6
3317 cat >> confdefs.h <<\EOF
3318 #define HAVE_LIBUNWIND 1
3321 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
3322 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
3323 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
3326 # Profiling support.
3327 # Check whether --enable-profiling or --disable-profiling was given.
3328 if test "${enable_profiling+set}" = set; then
3329 enableval="$enable_profiling"
3334 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3341 for ac_func in monstartup _mcleanup
3343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3344 echo "configure:3345: checking for $ac_func" >&5
3345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 /* System header to define __stub macros and hopefully few prototypes,
3352 which can conflict with char $ac_func(); below. */
3354 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3361 /* The GNU C library defines this for functions which it implements
3362 to always fail with ENOSYS. Some functions are actually named
3363 something starting with __ and the normal name is an alias. */
3364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3372 if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374 eval "ac_cv_func_$ac_func=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 eval "ac_cv_func_$ac_func=no"
3384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3387 cat >> confdefs.h <<EOF
3388 #define $ac_tr_func 1
3392 echo "$ac_t""no" 1>&6
3396 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3397 echo "configure:3398: checking for _etext" >&5
3398 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3401 cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3411 if { (eval echo configure:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3413 ac_cv_var__etext=yes
3415 echo "configure: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3423 echo "$ac_t""$ac_cv_var__etext" 1>&6
3424 if test $ac_cv_var__etext = yes; then
3425 cat >> confdefs.h <<\EOF
3426 #define HAVE__ETEXT 1
3430 if test "$enable_profiling" = yes ; then
3431 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
3432 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3435 OLD_CFLAGS="$CFLAGS"
3436 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
3438 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3439 echo "configure:3440: checking whether $CC supports -pg" >&5
3440 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3451 if { (eval echo configure:3452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3453 ac_cv_cc_supports_pg=yes
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3458 ac_cv_cc_supports_pg=no
3463 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3465 if test $ac_cv_cc_supports_pg = no; then
3466 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3469 CFLAGS="$OLD_CFLAGS"
3472 # --------------------- #
3473 # Checks for programs. #
3474 # --------------------- #
3476 for ac_prog in mawk gawk nawk awk
3478 # Extract the first word of "$ac_prog", so it can be a program name with args.
3479 set dummy $ac_prog; ac_word=$2
3480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3481 echo "configure:3482: checking for $ac_word" >&5
3482 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 if test -n "$AWK"; then
3486 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3490 for ac_dir in $ac_dummy; do
3491 test -z "$ac_dir" && ac_dir=.
3492 if test -f $ac_dir/$ac_word; then
3493 ac_cv_prog_AWK="$ac_prog"
3500 AWK="$ac_cv_prog_AWK"
3501 if test -n "$AWK"; then
3502 echo "$ac_t""$AWK" 1>&6
3504 echo "$ac_t""no" 1>&6
3507 test -n "$AWK" && break
3510 # Find a good install program. We prefer a C program (faster),
3511 # so one script is as good as another. But avoid the broken or
3512 # incompatible versions:
3513 # SysV /etc/install, /usr/sbin/install
3514 # SunOS /usr/etc/install
3515 # IRIX /sbin/install
3517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3520 # ./install, which can be erroneously created by make from ./install.sh.
3521 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3522 echo "configure:3523: checking for a BSD compatible install" >&5
3523 if test -z "$INSTALL"; then
3524 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3528 for ac_dir in $PATH; do
3529 # Account for people who put trailing slashes in PATH elements.
3531 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3533 # OSF1 and SCO ODT 3.0 have their own names for install.
3534 # Don't use installbsd from OSF since it installs stuff as root
3536 for ac_prog in ginstall scoinst install; do
3537 if test -f $ac_dir/$ac_prog; then
3538 if test $ac_prog = install &&
3539 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3540 # AIX install. It has an incompatible calling convention.
3543 ac_cv_path_install="$ac_dir/$ac_prog -c"
3554 if test "${ac_cv_path_install+set}" = set; then
3555 INSTALL="$ac_cv_path_install"
3557 # As a last resort, use the slow shell script. We don't cache a
3558 # path for INSTALL within a source directory, because that will
3559 # break other packages using the cache if that directory is
3560 # removed, or if the path is relative.
3561 INSTALL="$ac_install_sh"
3564 echo "$ac_t""$INSTALL" 1>&6
3566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3567 # It thinks the first close brace ends the variable substitution.
3568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3574 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3575 echo "configure:3576: checking whether ln -s works" >&5
3576 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3580 if ln -s X conftestdata 2>/dev/null
3583 ac_cv_prog_LN_S="ln -s"
3588 LN_S="$ac_cv_prog_LN_S"
3589 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3590 echo "$ac_t""yes" 1>&6
3592 echo "$ac_t""no" 1>&6
3595 # Extract the first word of "ranlib", so it can be a program name with args.
3596 set dummy ranlib; ac_word=$2
3597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3598 echo "configure:3599: checking for $ac_word" >&5
3599 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 if test -n "$RANLIB"; then
3603 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3607 for ac_dir in $ac_dummy; do
3608 test -z "$ac_dir" && ac_dir=.
3609 if test -f $ac_dir/$ac_word; then
3610 ac_cv_prog_RANLIB="ranlib"
3615 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3618 RANLIB="$ac_cv_prog_RANLIB"
3619 if test -n "$RANLIB"; then
3620 echo "$ac_t""$RANLIB" 1>&6
3622 echo "$ac_t""no" 1>&6
3625 for ac_prog in 'bison -y' byacc
3627 # Extract the first word of "$ac_prog", so it can be a program name with args.
3628 set dummy $ac_prog; ac_word=$2
3629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3630 echo "configure:3631: checking for $ac_word" >&5
3631 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 if test -n "$YACC"; then
3635 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3639 for ac_dir in $ac_dummy; do
3640 test -z "$ac_dir" && ac_dir=.
3641 if test -f $ac_dir/$ac_word; then
3642 ac_cv_prog_YACC="$ac_prog"
3649 YACC="$ac_cv_prog_YACC"
3650 if test -n "$YACC"; then
3651 echo "$ac_t""$YACC" 1>&6
3653 echo "$ac_t""no" 1>&6
3656 test -n "$YACC" && break
3658 test -n "$YACC" || YACC="yacc"
3661 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3662 set dummy ${ac_tool_prefix}ar; ac_word=$2
3663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3664 echo "configure:3665: checking for $ac_word" >&5
3665 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 if test -n "$AR"; then
3669 ac_cv_prog_AR="$AR" # Let the user override the test.
3671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3673 for ac_dir in $ac_dummy; do
3674 test -z "$ac_dir" && ac_dir=.
3675 if test -f $ac_dir/$ac_word; then
3676 ac_cv_prog_AR="${ac_tool_prefix}ar"
3681 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3685 if test -n "$AR"; then
3686 echo "$ac_t""$AR" 1>&6
3688 echo "$ac_t""no" 1>&6
3693 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3694 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3696 echo "configure:3697: checking for $ac_word" >&5
3697 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 if test -n "$DLLTOOL"; then
3701 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3705 for ac_dir in $ac_dummy; do
3706 test -z "$ac_dir" && ac_dir=.
3707 if test -f $ac_dir/$ac_word; then
3708 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3713 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
3716 DLLTOOL="$ac_cv_prog_DLLTOOL"
3717 if test -n "$DLLTOOL"; then
3718 echo "$ac_t""$DLLTOOL" 1>&6
3720 echo "$ac_t""no" 1>&6
3725 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3726 set dummy ${ac_tool_prefix}windres; ac_word=$2
3727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_word" >&5
3729 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 if test -n "$WINDRES"; then
3733 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3737 for ac_dir in $ac_dummy; do
3738 test -z "$ac_dir" && ac_dir=.
3739 if test -f $ac_dir/$ac_word; then
3740 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3745 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres"
3748 WINDRES="$ac_cv_prog_WINDRES"
3749 if test -n "$WINDRES"; then
3750 echo "$ac_t""$WINDRES" 1>&6
3752 echo "$ac_t""no" 1>&6
3758 # Needed for GNU/Hurd.
3759 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}mig; ac_word=$2
3761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3762 echo "configure:3763: checking for $ac_word" >&5
3763 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 if test -n "$MIG"; then
3767 ac_cv_prog_MIG="$MIG" # Let the user override the test.
3769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3771 for ac_dir in $ac_dummy; do
3772 test -z "$ac_dir" && ac_dir=.
3773 if test -f $ac_dir/$ac_word; then
3774 ac_cv_prog_MIG="${ac_tool_prefix}mig"
3779 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
3782 MIG="$ac_cv_prog_MIG"
3783 if test -n "$MIG"; then
3784 echo "$ac_t""$MIG" 1>&6
3786 echo "$ac_t""no" 1>&6
3792 # ---------------------- #
3793 # Checks for libraries. #
3794 # ---------------------- #
3796 # We might need to link with -lm; most simulators need it.
3797 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3798 echo "configure:3799: checking for main in -lm" >&5
3799 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 ac_save_LIBS="$LIBS"
3805 cat > conftest.$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3813 if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3815 eval "ac_cv_lib_$ac_lib_var=yes"
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3820 eval "ac_cv_lib_$ac_lib_var=no"
3823 LIBS="$ac_save_LIBS"
3826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3827 echo "$ac_t""yes" 1>&6
3828 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3829 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3830 cat >> confdefs.h <<EOF
3831 #define $ac_tr_lib 1
3837 echo "$ac_t""no" 1>&6
3841 # We need to link with -lw to get `wctype' on Solaris before Solaris
3842 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3843 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3844 # is known to have this problem). Therefore we avoid libw if we can.
3845 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3846 echo "configure:3847: checking for wctype" >&5
3847 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 /* System header to define __stub macros and hopefully few prototypes,
3854 which can conflict with char wctype(); below. */
3856 /* Override any gcc2 internal prototype to avoid an error. */
3857 /* We use char because int might match the return type of a gcc2
3858 builtin and then its argument prototype would still apply. */
3863 /* The GNU C library defines this for functions which it implements
3864 to always fail with ENOSYS. Some functions are actually named
3865 something starting with __ and the normal name is an alias. */
3866 #if defined (__stub_wctype) || defined (__stub___wctype)
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 eval "ac_cv_func_wctype=yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 eval "ac_cv_func_wctype=no"
3886 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3887 echo "$ac_t""yes" 1>&6
3890 echo "$ac_t""no" 1>&6
3891 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3892 echo "configure:3893: checking for wctype in -lw" >&5
3893 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 ac_save_LIBS="$LIBS"
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 /* Override any gcc2 internal prototype to avoid an error. */
3903 /* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3913 eval "ac_cv_lib_$ac_lib_var=yes"
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3918 eval "ac_cv_lib_$ac_lib_var=no"
3921 LIBS="$ac_save_LIBS"
3924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3926 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3927 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3928 cat >> confdefs.h <<EOF
3929 #define $ac_tr_lib 1
3935 echo "$ac_t""no" 1>&6
3941 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
3943 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3944 echo "configure:3945: checking for library containing gethostbyname" >&5
3945 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3948 ac_func_search_save_LIBS="$LIBS"
3949 ac_cv_search_gethostbyname="no"
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 /* Override any gcc2 internal prototype to avoid an error. */
3954 /* We use char because int might match the return type of a gcc2
3955 builtin and then its argument prototype would still apply. */
3956 char gethostbyname();
3962 if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3964 ac_cv_search_gethostbyname="none required"
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3970 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
3971 LIBS="-l$i $ac_func_search_save_LIBS"
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3978 char gethostbyname();
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3986 ac_cv_search_gethostbyname="-l$i"
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3994 LIBS="$ac_func_search_save_LIBS"
3997 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3998 if test "$ac_cv_search_gethostbyname" != "no"; then
3999 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
4005 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
4007 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
4008 echo "configure:4009: checking for library containing socketpair" >&5
4009 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 ac_func_search_save_LIBS="$LIBS"
4013 ac_cv_search_socketpair="no"
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 /* Override any gcc2 internal prototype to avoid an error. */
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4026 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4028 ac_cv_search_socketpair="none required"
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4034 test "$ac_cv_search_socketpair" = "no" && for i in socket; do
4035 LIBS="-l$i $ac_func_search_save_LIBS"
4036 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4039 /* Override any gcc2 internal prototype to avoid an error. */
4040 /* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4048 if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4050 ac_cv_search_socketpair="-l$i"
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4058 LIBS="$ac_func_search_save_LIBS"
4061 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
4062 if test "$ac_cv_search_socketpair" != "no"; then
4063 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
4069 # Since GDB uses Readline, we need termcap functionality, so we need
4070 # to find a library that provides that. When GDB is configured with
4071 # the TUI, we need full curses functionality.
4075 if test -d $srcdir/libtermcap; then
4076 LIBS="../libtermcap/libtermcap.a $LIBS"
4077 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
4080 ac_cv_search_tgetent="none required"
4083 # Readline prefers curses over termcap on AIX.
4086 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4087 echo "configure:4088: checking for library containing tgetent" >&5
4088 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 ac_func_search_save_LIBS="$LIBS"
4092 ac_cv_search_tgetent="no"
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4107 ac_cv_search_tgetent="none required"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4113 test "$ac_cv_search_tgetent" = "no" && for i in tinfo ncurses curses termcap; do
4114 LIBS="-l$i $ac_func_search_save_LIBS"
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 /* Override any gcc2 internal prototype to avoid an error. */
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4127 if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4129 ac_cv_search_tgetent="-l$i"
4132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4137 LIBS="$ac_func_search_save_LIBS"
4140 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4141 if test "$ac_cv_search_tgetent" != "no"; then
4142 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
4150 # Note: We used to check for libtermlib and libterminfo too, but
4151 # Readline doesn't, so I think we're safe with leaving them out.
4153 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4154 echo "configure:4155: checking for library containing tgetent" >&5
4155 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 ac_func_search_save_LIBS="$LIBS"
4159 ac_cv_search_tgetent="no"
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4163 /* Override any gcc2 internal prototype to avoid an error. */
4164 /* We use char because int might match the return type of a gcc2
4165 builtin and then its argument prototype would still apply. */
4172 if { (eval echo configure:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4174 ac_cv_search_tgetent="none required"
4176 echo "configure: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4180 test "$ac_cv_search_tgetent" = "no" && for i in termcap tinfo ncurses Hcurses curses; do
4181 LIBS="-l$i $ac_func_search_save_LIBS"
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 /* Override any gcc2 internal prototype to avoid an error. */
4186 /* We use char because int might match the return type of a gcc2
4187 builtin and then its argument prototype would still apply. */
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 ac_cv_search_tgetent="-l$i"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4204 LIBS="$ac_func_search_save_LIBS"
4207 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4208 if test "$ac_cv_search_tgetent" != "no"; then
4209 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
4215 if test "$ac_cv_search_tgetent" = no; then
4216 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4219 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
4220 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
4221 # Makefile fragments. That's why we need to have `Hcurses' before
4222 # `curses'. I don't see why we should use HP curses if a more
4223 # standard curses is available, except that according to HP's
4224 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
4225 # HP-UX 10.10 and 10.20.
4227 # FIXME: ncurses does not work on native alphaev68-dec-osf5.1,
4228 # and probably other platforms. AC_SEARCH_LIBS finds the library
4229 # in a place such as /usr/local/lib/libncurses.a, but does not
4230 # do anything to look for the matching include files.
4231 # -- chastain 2004-05-01
4234 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
4235 echo "configure:4236: checking for library containing initscr" >&5
4236 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 ac_func_search_save_LIBS="$LIBS"
4240 ac_cv_search_initscr="no"
4241 cat > conftest.$ac_ext <<EOF
4242 #line 4243 "configure"
4243 #include "confdefs.h"
4244 /* Override any gcc2 internal prototype to avoid an error. */
4245 /* We use char because int might match the return type of a gcc2
4246 builtin and then its argument prototype would still apply. */
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4255 ac_cv_search_initscr="none required"
4257 echo "configure: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4261 test "$ac_cv_search_initscr" = "no" && for i in ncurses Hcurses cursesX curses pdcurses; do
4262 LIBS="-l$i $ac_func_search_save_LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 ac_cv_search_initscr="-l$i"
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4285 LIBS="$ac_func_search_save_LIBS"
4288 echo "$ac_t""$ac_cv_search_initscr" 1>&6
4289 if test "$ac_cv_search_initscr" != "no"; then
4290 test "$ac_cv_search_initscr" = "none required" || LIBS="$ac_cv_search_initscr $LIBS"
4293 echo "configure: warning: no curses library found" 1>&2
4296 # Check whether the wborder function is provided by the curses
4297 # library detected above. In certain implementations such as
4298 # the HP/UX Hcurses for instance, this function is provided by an
4299 # additional library. So if we did not find this function inside
4300 # the curses library, try some alternate libraries we know might
4303 echo $ac_n "checking for library containing wborder""... $ac_c" 1>&6
4304 echo "configure:4305: checking for library containing wborder" >&5
4305 if eval "test \"`echo '$''{'ac_cv_search_wborder'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 ac_func_search_save_LIBS="$LIBS"
4309 ac_cv_search_wborder="no"
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 /* Override any gcc2 internal prototype to avoid an error. */
4314 /* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4324 ac_cv_search_wborder="none required"
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4330 test "$ac_cv_search_wborder" = "no" && for i in cur_colr; do
4331 LIBS="-l$i $ac_func_search_save_LIBS"
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4346 ac_cv_search_wborder="-l$i"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4354 LIBS="$ac_func_search_save_LIBS"
4357 echo "$ac_t""$ac_cv_search_wborder" 1>&6
4358 if test "$ac_cv_search_wborder" != "no"; then
4359 test "$ac_cv_search_wborder" = "none required" || LIBS="$ac_cv_search_wborder $LIBS"
4362 echo "configure: warning: wborder function not found, tui will be disabled" 1>&2
4365 # ------------------------- #
4366 # Checks for header files. #
4367 # ------------------------- #
4370 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4373 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_hdr that defines DIR" >&5
4375 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 #include <sys/types.h>
4387 if { (eval echo configure:4388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4389 eval "ac_cv_header_dirent_$ac_safe=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_header_dirent_$ac_safe=no"
4398 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4401 cat >> confdefs.h <<EOF
4402 #define $ac_tr_hdr 1
4404 ac_header_dirent=$ac_hdr; break
4406 echo "$ac_t""no" 1>&6
4409 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4410 if test $ac_header_dirent = dirent.h; then
4411 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4412 echo "configure:4413: checking for opendir in -ldir" >&5
4413 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 ac_save_LIBS="$LIBS"
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4433 eval "ac_cv_lib_$ac_lib_var=yes"
4435 echo "configure: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4438 eval "ac_cv_lib_$ac_lib_var=no"
4441 LIBS="$ac_save_LIBS"
4444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4448 echo "$ac_t""no" 1>&6
4452 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4453 echo "configure:4454: checking for opendir in -lx" >&5
4454 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 ac_save_LIBS="$LIBS"
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4472 if { (eval echo configure:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4474 eval "ac_cv_lib_$ac_lib_var=yes"
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4479 eval "ac_cv_lib_$ac_lib_var=no"
4482 LIBS="$ac_save_LIBS"
4485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4489 echo "$ac_t""no" 1>&6
4494 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4495 echo "configure:4496: checking whether stat file-mode macros are broken" >&5
4496 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 #include <sys/types.h>
4503 #include <sys/stat.h>
4505 #if defined(S_ISBLK) && defined(S_IFDIR)
4506 # if S_ISBLK (S_IFDIR)
4511 #if defined(S_ISBLK) && defined(S_IFCHR)
4512 # if S_ISBLK (S_IFCHR)
4517 #if defined(S_ISLNK) && defined(S_IFREG)
4518 # if S_ISLNK (S_IFREG)
4523 #if defined(S_ISSOCK) && defined(S_IFREG)
4524 # if S_ISSOCK (S_IFREG)
4530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4531 egrep "You lose" >/dev/null 2>&1; then
4533 ac_cv_header_stat_broken=yes
4536 ac_cv_header_stat_broken=no
4542 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4543 if test $ac_cv_header_stat_broken = yes; then
4544 cat >> confdefs.h <<\EOF
4545 #define STAT_MACROS_BROKEN 1
4550 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4551 echo "configure:4552: checking for ANSI C header files" >&5
4552 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4564 { (eval echo configure:4565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4566 if test -z "$ac_err"; then
4568 ac_cv_header_stdc=yes
4571 echo "configure: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4574 ac_cv_header_stdc=no
4578 if test $ac_cv_header_stdc = yes; then
4579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4586 egrep "memchr" >/dev/null 2>&1; then
4590 ac_cv_header_stdc=no
4596 if test $ac_cv_header_stdc = yes; then
4597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 egrep "free" >/dev/null 2>&1; then
4608 ac_cv_header_stdc=no
4614 if test $ac_cv_header_stdc = yes; then
4615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4616 if test "$cross_compiling" = yes; then
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4623 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4624 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4626 int main () { int i; for (i = 0; i < 256; i++)
4627 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4631 if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4638 ac_cv_header_stdc=no
4646 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4647 if test $ac_cv_header_stdc = yes; then
4648 cat >> confdefs.h <<\EOF
4649 #define STDC_HEADERS 1
4654 for ac_hdr in link.h
4656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4658 echo "configure:4659: checking for $ac_hdr" >&5
4659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4668 { (eval echo configure:4669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4670 if test -z "$ac_err"; then
4672 eval "ac_cv_header_$ac_safe=yes"
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4678 eval "ac_cv_header_$ac_safe=no"
4682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4685 cat >> confdefs.h <<EOF
4686 #define $ac_tr_hdr 1
4690 echo "$ac_t""no" 1>&6
4694 for ac_hdr in machine/reg.h
4696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_hdr" >&5
4699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4708 { (eval echo configure:4709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4710 if test -z "$ac_err"; then
4712 eval "ac_cv_header_$ac_safe=yes"
4715 echo "configure: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4718 eval "ac_cv_header_$ac_safe=no"
4722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4725 cat >> confdefs.h <<EOF
4726 #define $ac_tr_hdr 1
4730 echo "$ac_t""no" 1>&6
4734 for ac_hdr in nlist.h
4736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4738 echo "configure:4739: checking for $ac_hdr" >&5
4739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4748 { (eval echo configure:4749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4750 if test -z "$ac_err"; then
4752 eval "ac_cv_header_$ac_safe=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4758 eval "ac_cv_header_$ac_safe=no"
4762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4763 echo "$ac_t""yes" 1>&6
4764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4765 cat >> confdefs.h <<EOF
4766 #define $ac_tr_hdr 1
4770 echo "$ac_t""no" 1>&6
4774 for ac_hdr in poll.h sys/poll.h
4776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4778 echo "configure:4779: checking for $ac_hdr" >&5
4779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4788 { (eval echo configure:4789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4790 if test -z "$ac_err"; then
4792 eval "ac_cv_header_$ac_safe=yes"
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4798 eval "ac_cv_header_$ac_safe=no"
4802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4805 cat >> confdefs.h <<EOF
4806 #define $ac_tr_hdr 1
4810 echo "$ac_t""no" 1>&6
4814 for ac_hdr in proc_service.h thread_db.h gnu/libc-version.h
4816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4818 echo "configure:4819: checking for $ac_hdr" >&5
4819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4828 { (eval echo configure:4829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4830 if test -z "$ac_err"; then
4832 eval "ac_cv_header_$ac_safe=yes"
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 eval "ac_cv_header_$ac_safe=no"
4842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4845 cat >> confdefs.h <<EOF
4846 #define $ac_tr_hdr 1
4850 echo "$ac_t""no" 1>&6
4854 for ac_hdr in stddef.h
4856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4858 echo "configure:4859: checking for $ac_hdr" >&5
4859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4860 echo $ac_n "(cached) $ac_c" 1>&6
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4868 { (eval echo configure:4869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4870 if test -z "$ac_err"; then
4872 eval "ac_cv_header_$ac_safe=yes"
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4878 eval "ac_cv_header_$ac_safe=no"
4882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4883 echo "$ac_t""yes" 1>&6
4884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4885 cat >> confdefs.h <<EOF
4886 #define $ac_tr_hdr 1
4890 echo "$ac_t""no" 1>&6
4894 for ac_hdr in stdlib.h
4896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4898 echo "configure:4899: checking for $ac_hdr" >&5
4899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4908 { (eval echo configure:4909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4910 if test -z "$ac_err"; then
4912 eval "ac_cv_header_$ac_safe=yes"
4915 echo "configure: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4918 eval "ac_cv_header_$ac_safe=no"
4922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4923 echo "$ac_t""yes" 1>&6
4924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4925 cat >> confdefs.h <<EOF
4926 #define $ac_tr_hdr 1
4930 echo "$ac_t""no" 1>&6
4934 for ac_hdr in stdint.h
4936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4938 echo "configure:4939: checking for $ac_hdr" >&5
4939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4948 { (eval echo configure:4949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4950 if test -z "$ac_err"; then
4952 eval "ac_cv_header_$ac_safe=yes"
4955 echo "configure: failed program was:" >&5
4956 cat conftest.$ac_ext >&5
4958 eval "ac_cv_header_$ac_safe=no"
4962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4963 echo "$ac_t""yes" 1>&6
4964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4965 cat >> confdefs.h <<EOF
4966 #define $ac_tr_hdr 1
4970 echo "$ac_t""no" 1>&6
4974 for ac_hdr in string.h memory.h strings.h
4976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4978 echo "configure:4979: checking for $ac_hdr" >&5
4979 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4988 { (eval echo configure:4989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4990 if test -z "$ac_err"; then
4992 eval "ac_cv_header_$ac_safe=yes"
4995 echo "configure: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
4998 eval "ac_cv_header_$ac_safe=no"
5002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5003 echo "$ac_t""yes" 1>&6
5004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5005 cat >> confdefs.h <<EOF
5006 #define $ac_tr_hdr 1
5010 echo "$ac_t""no" 1>&6
5014 for ac_hdr in sys/fault.h
5016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_hdr" >&5
5019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 cat > conftest.$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5028 { (eval echo configure:5029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5030 if test -z "$ac_err"; then
5032 eval "ac_cv_header_$ac_safe=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 eval "ac_cv_header_$ac_safe=no"
5042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5045 cat >> confdefs.h <<EOF
5046 #define $ac_tr_hdr 1
5050 echo "$ac_t""no" 1>&6
5054 for ac_hdr in sys/file.h
5056 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5057 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5058 echo "configure:5059: checking for $ac_hdr" >&5
5059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5068 { (eval echo configure:5069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5070 if test -z "$ac_err"; then
5072 eval "ac_cv_header_$ac_safe=yes"
5075 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5078 eval "ac_cv_header_$ac_safe=no"
5082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5085 cat >> confdefs.h <<EOF
5086 #define $ac_tr_hdr 1
5090 echo "$ac_t""no" 1>&6
5094 for ac_hdr in sys/filio.h
5096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5098 echo "configure:5099: checking for $ac_hdr" >&5
5099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5108 { (eval echo configure:5109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5110 if test -z "$ac_err"; then
5112 eval "ac_cv_header_$ac_safe=yes"
5115 echo "configure: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5118 eval "ac_cv_header_$ac_safe=no"
5122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5123 echo "$ac_t""yes" 1>&6
5124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5125 cat >> confdefs.h <<EOF
5126 #define $ac_tr_hdr 1
5130 echo "$ac_t""no" 1>&6
5134 for ac_hdr in sys/ioctl.h
5136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5138 echo "configure:5139: checking for $ac_hdr" >&5
5139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5148 { (eval echo configure:5149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5150 if test -z "$ac_err"; then
5152 eval "ac_cv_header_$ac_safe=yes"
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5158 eval "ac_cv_header_$ac_safe=no"
5162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5163 echo "$ac_t""yes" 1>&6
5164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5165 cat >> confdefs.h <<EOF
5166 #define $ac_tr_hdr 1
5170 echo "$ac_t""no" 1>&6
5174 for ac_hdr in sys/param.h
5176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5178 echo "configure:5179: checking for $ac_hdr" >&5
5179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5188 { (eval echo configure:5189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5190 if test -z "$ac_err"; then
5192 eval "ac_cv_header_$ac_safe=yes"
5195 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5198 eval "ac_cv_header_$ac_safe=no"
5202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5203 echo "$ac_t""yes" 1>&6
5204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5205 cat >> confdefs.h <<EOF
5206 #define $ac_tr_hdr 1
5210 echo "$ac_t""no" 1>&6
5214 for ac_hdr in sys/proc.h
5216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5218 echo "configure:5219: checking for $ac_hdr" >&5
5219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
5222 cat > conftest.$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5228 { (eval echo configure:5229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5230 if test -z "$ac_err"; then
5232 eval "ac_cv_header_$ac_safe=yes"
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5238 eval "ac_cv_header_$ac_safe=no"
5242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5243 echo "$ac_t""yes" 1>&6
5244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5245 cat >> confdefs.h <<EOF
5246 #define $ac_tr_hdr 1
5250 echo "$ac_t""no" 1>&6
5254 for ac_hdr in sys/procfs.h
5256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5258 echo "configure:5259: checking for $ac_hdr" >&5
5259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5268 { (eval echo configure:5269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5270 if test -z "$ac_err"; then
5272 eval "ac_cv_header_$ac_safe=yes"
5275 echo "configure: failed program was:" >&5
5276 cat conftest.$ac_ext >&5
5278 eval "ac_cv_header_$ac_safe=no"
5282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5283 echo "$ac_t""yes" 1>&6
5284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5285 cat >> confdefs.h <<EOF
5286 #define $ac_tr_hdr 1
5290 echo "$ac_t""no" 1>&6
5294 for ac_hdr in sys/ptrace.h ptrace.h
5296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5298 echo "configure:5299: checking for $ac_hdr" >&5
5299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5308 { (eval echo configure:5309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5310 if test -z "$ac_err"; then
5312 eval "ac_cv_header_$ac_safe=yes"
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 eval "ac_cv_header_$ac_safe=no"
5322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5323 echo "$ac_t""yes" 1>&6
5324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5325 cat >> confdefs.h <<EOF
5326 #define $ac_tr_hdr 1
5330 echo "$ac_t""no" 1>&6
5334 for ac_hdr in sys/reg.h sys/debugreg.h
5336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_hdr" >&5
5339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5348 { (eval echo configure:5349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5350 if test -z "$ac_err"; then
5352 eval "ac_cv_header_$ac_safe=yes"
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5358 eval "ac_cv_header_$ac_safe=no"
5362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5363 echo "$ac_t""yes" 1>&6
5364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5365 cat >> confdefs.h <<EOF
5366 #define $ac_tr_hdr 1
5370 echo "$ac_t""no" 1>&6
5374 for ac_hdr in sys/select.h
5376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5378 echo "configure:5379: checking for $ac_hdr" >&5
5379 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5380 echo $ac_n "(cached) $ac_c" 1>&6
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5388 { (eval echo configure:5389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5390 if test -z "$ac_err"; then
5392 eval "ac_cv_header_$ac_safe=yes"
5395 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5398 eval "ac_cv_header_$ac_safe=no"
5402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5405 cat >> confdefs.h <<EOF
5406 #define $ac_tr_hdr 1
5410 echo "$ac_t""no" 1>&6
5414 for ac_hdr in sys/syscall.h
5416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5418 echo "configure:5419: checking for $ac_hdr" >&5
5419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5422 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5428 { (eval echo configure:5429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5430 if test -z "$ac_err"; then
5432 eval "ac_cv_header_$ac_safe=yes"
5435 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5438 eval "ac_cv_header_$ac_safe=no"
5442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5443 echo "$ac_t""yes" 1>&6
5444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5445 cat >> confdefs.h <<EOF
5446 #define $ac_tr_hdr 1
5450 echo "$ac_t""no" 1>&6
5454 for ac_hdr in sys/types.h
5456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5458 echo "configure:5459: checking for $ac_hdr" >&5
5459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5462 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5468 { (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5470 if test -z "$ac_err"; then
5472 eval "ac_cv_header_$ac_safe=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 eval "ac_cv_header_$ac_safe=no"
5482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5483 echo "$ac_t""yes" 1>&6
5484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5485 cat >> confdefs.h <<EOF
5486 #define $ac_tr_hdr 1
5490 echo "$ac_t""no" 1>&6
5494 for ac_hdr in sys/user.h
5496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_hdr" >&5
5499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5508 { (eval echo configure:5509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5510 if test -z "$ac_err"; then
5512 eval "ac_cv_header_$ac_safe=yes"
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5518 eval "ac_cv_header_$ac_safe=no"
5522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5525 cat >> confdefs.h <<EOF
5526 #define $ac_tr_hdr 1
5530 echo "$ac_t""no" 1>&6
5534 for ac_hdr in sys/wait.h wait.h
5536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5538 echo "configure:5539: checking for $ac_hdr" >&5
5539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5548 { (eval echo configure:5549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5550 if test -z "$ac_err"; then
5552 eval "ac_cv_header_$ac_safe=yes"
5555 echo "configure: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5558 eval "ac_cv_header_$ac_safe=no"
5562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5563 echo "$ac_t""yes" 1>&6
5564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5565 cat >> confdefs.h <<EOF
5566 #define $ac_tr_hdr 1
5570 echo "$ac_t""no" 1>&6
5574 for ac_hdr in termios.h termio.h sgtty.h
5576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5578 echo "configure:5579: checking for $ac_hdr" >&5
5579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5580 echo $ac_n "(cached) $ac_c" 1>&6
5582 cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5588 { (eval echo configure:5589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5590 if test -z "$ac_err"; then
5592 eval "ac_cv_header_$ac_safe=yes"
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 eval "ac_cv_header_$ac_safe=no"
5602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5603 echo "$ac_t""yes" 1>&6
5604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5605 cat >> confdefs.h <<EOF
5606 #define $ac_tr_hdr 1
5610 echo "$ac_t""no" 1>&6
5614 for ac_hdr in unistd.h
5616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5618 echo "configure:5619: checking for $ac_hdr" >&5
5619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5620 echo $ac_n "(cached) $ac_c" 1>&6
5622 cat > conftest.$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5628 { (eval echo configure:5629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5630 if test -z "$ac_err"; then
5632 eval "ac_cv_header_$ac_safe=yes"
5635 echo "configure: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5638 eval "ac_cv_header_$ac_safe=no"
5642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5643 echo "$ac_t""yes" 1>&6
5644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5645 cat >> confdefs.h <<EOF
5646 #define $ac_tr_hdr 1
5650 echo "$ac_t""no" 1>&6
5655 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5656 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5657 # think that we don't have <curses.h> if we're using GCC.
5660 if test "$GCC" = yes; then
5661 cat >> confdefs.h <<\EOF
5662 #define _MSE_INT_H 1
5667 for ac_hdr in curses.h cursesX.h ncurses.h ncurses/ncurses.h term.h
5669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5671 echo "configure:5672: checking for $ac_hdr" >&5
5672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5681 { (eval echo configure:5682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5683 if test -z "$ac_err"; then
5685 eval "ac_cv_header_$ac_safe=yes"
5688 echo "configure: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5691 eval "ac_cv_header_$ac_safe=no"
5695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5696 echo "$ac_t""yes" 1>&6
5697 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5698 cat >> confdefs.h <<EOF
5699 #define $ac_tr_hdr 1
5703 echo "$ac_t""no" 1>&6
5708 # FIXME: kettenis/20030102: In most cases we include these
5709 # unconditionally, so what's the point in checking these?
5710 for ac_hdr in ctype.h time.h
5712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_hdr" >&5
5715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5724 { (eval echo configure:5725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5726 if test -z "$ac_err"; then
5728 eval "ac_cv_header_$ac_safe=yes"
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5734 eval "ac_cv_header_$ac_safe=no"
5738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5741 cat >> confdefs.h <<EOF
5742 #define $ac_tr_hdr 1
5746 echo "$ac_t""no" 1>&6
5751 echo $ac_n "checking for member st_blocks in struct stat""... $ac_c" 1>&6
5752 echo "configure:5753: checking for member st_blocks in struct stat" >&5
5753 if eval "test \"`echo '$''{'gdb_cv_have_struct_stat_with_st_blocks_member'+set}'`\" = set"; then
5754 echo $ac_n "(cached) $ac_c" 1>&6
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5759 #include <sys/types.h>
5760 #include <sys/stat.h>
5762 struct stat st; (void) st.st_blocks;
5765 if { (eval echo configure:5766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5767 gdb_cv_have_struct_stat_with_st_blocks_member=yes
5769 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5772 gdb_cv_have_struct_stat_with_st_blocks_member=no
5777 echo "$ac_t""$gdb_cv_have_struct_stat_with_st_blocks_member" 1>&6
5778 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
5779 cat >> confdefs.h <<\EOF
5780 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5785 # ------------------------- #
5786 # Checks for declarations. #
5787 # ------------------------- #
5789 for ac_func in getopt
5791 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5792 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
5793 echo "configure:5794: checking whether $ac_func is declared" >&5
5794 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5797 cat > conftest.$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5801 #define $ac_tr_decl 1
5806 char *(*pfn) = (char *(*)) $ac_func ;
5810 if { (eval echo configure:5811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5812 eval "gcc_cv_have_decl_$ac_func=yes"
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5817 eval "gcc_cv_have_decl_$ac_func=no"
5822 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
5824 #define $ac_tr_decl 1
5828 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
5829 #define $ac_tr_decl 0
5835 if test x = y ; then
5836 cat >> confdefs.h <<\EOF
5837 #define HAVE_DECL_GETOPT 1
5842 # ------------------ #
5843 # Checks for types. #
5844 # ------------------ #
5846 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5847 echo "configure:5848: checking return type of signal handlers" >&5
5848 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5854 #include <sys/types.h>
5860 extern "C" void (*signal (int, void (*)(int)))(int);
5862 void (*signal ()) ();
5869 if { (eval echo configure:5870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5871 ac_cv_type_signal=void
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5876 ac_cv_type_signal=int
5881 echo "$ac_t""$ac_cv_type_signal" 1>&6
5882 cat >> confdefs.h <<EOF
5883 #define RETSIGTYPE $ac_cv_type_signal
5888 # ------------------------------------- #
5889 # Checks for compiler characteristics. #
5890 # ------------------------------------- #
5892 echo $ac_n "checking for working const""... $ac_c" 1>&6
5893 echo "configure:5894: checking for working const" >&5
5894 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5903 /* Ultrix mips cc rejects this. */
5904 typedef int charset[2]; const charset x;
5905 /* SunOS 4.1.1 cc rejects this. */
5906 char const *const *ccp;
5908 /* NEC SVR4.0.2 mips cc rejects this. */
5909 struct point {int x, y;};
5910 static struct point const zero = {0,0};
5911 /* AIX XL C 1.02.0.0 rejects this.
5912 It does not let you subtract one const X* pointer from another in an arm
5913 of an if-expression whose if-part is not a constant expression */
5914 const char *g = "string";
5915 ccp = &g + (g ? g-g : 0);
5916 /* HPUX 7.0 cc rejects these. */
5919 ccp = (char const *const *) p;
5920 { /* SCO 3.2v4 cc rejects this. */
5922 char const *s = 0 ? (char *) 0 : (char const *) 0;
5926 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5928 const int *foo = &x[0];
5931 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5932 typedef const int *iptr;
5936 { /* AIX XL C 1.02.0.0 rejects this saying
5937 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5938 struct s { int j; const int *ap[3]; };
5939 struct s *b; b->j = 5;
5941 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5947 if { (eval echo configure:5948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5951 echo "configure: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5959 echo "$ac_t""$ac_cv_c_const" 1>&6
5960 if test $ac_cv_c_const = no; then
5961 cat >> confdefs.h <<\EOF
5967 echo $ac_n "checking for inline""... $ac_c" 1>&6
5968 echo "configure:5969: checking for inline" >&5
5969 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5973 for ac_kw in inline __inline__ __inline; do
5974 cat > conftest.$ac_ext <<EOF
5975 #line 5976 "configure"
5976 #include "confdefs.h"
5982 if { (eval echo configure:5983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5984 ac_cv_c_inline=$ac_kw; break
5986 echo "configure: failed program was:" >&5
5987 cat conftest.$ac_ext >&5
5994 echo "$ac_t""$ac_cv_c_inline" 1>&6
5995 case "$ac_cv_c_inline" in
5997 no) cat >> confdefs.h <<\EOF
6001 *) cat >> confdefs.h <<EOF
6002 #define inline $ac_cv_c_inline
6008 # ------------------------------ #
6009 # Checks for library functions. #
6010 # ------------------------------ #
6012 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6013 # for constant arguments. Useless!
6014 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6015 echo "configure:6016: checking for working alloca.h" >&5
6016 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6017 echo $ac_n "(cached) $ac_c" 1>&6
6019 cat > conftest.$ac_ext <<EOF
6020 #line 6021 "configure"
6021 #include "confdefs.h"
6024 char *p = alloca(2 * sizeof(int));
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6029 ac_cv_header_alloca_h=yes
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6034 ac_cv_header_alloca_h=no
6039 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6040 if test $ac_cv_header_alloca_h = yes; then
6041 cat >> confdefs.h <<\EOF
6042 #define HAVE_ALLOCA_H 1
6047 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6048 echo "configure:6049: checking for alloca" >&5
6049 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6050 echo $ac_n "(cached) $ac_c" 1>&6
6052 cat > conftest.$ac_ext <<EOF
6053 #line 6054 "configure"
6054 #include "confdefs.h"
6057 # define alloca __builtin_alloca
6060 # include <malloc.h>
6061 # define alloca _alloca
6064 # include <alloca.h>
6069 # ifndef alloca /* predefined by HP cc +Olibcalls */
6078 char *p = (char *) alloca(1);
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6083 ac_cv_func_alloca_works=yes
6085 echo "configure: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6088 ac_cv_func_alloca_works=no
6093 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6094 if test $ac_cv_func_alloca_works = yes; then
6095 cat >> confdefs.h <<\EOF
6096 #define HAVE_ALLOCA 1
6101 if test $ac_cv_func_alloca_works = no; then
6102 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6103 # that cause trouble. Some versions do not even contain alloca or
6104 # contain a buggy version. If you still want to use their alloca,
6105 # use ar to extract alloca.o from them instead of compiling alloca.c.
6106 ALLOCA=alloca.${ac_objext}
6107 cat >> confdefs.h <<\EOF
6112 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6113 echo "configure:6114: checking whether alloca needs Cray hooks" >&5
6114 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6117 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure"
6119 #include "confdefs.h"
6120 #if defined(CRAY) && ! defined(CRAY2)
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128 egrep "webecray" >/dev/null 2>&1; then
6139 echo "$ac_t""$ac_cv_os_cray" 1>&6
6140 if test $ac_cv_os_cray = yes; then
6141 for ac_func in _getb67 GETB67 getb67; do
6142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6143 echo "configure:6144: checking for $ac_func" >&5
6144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6145 echo $ac_n "(cached) $ac_c" 1>&6
6147 cat > conftest.$ac_ext <<EOF
6148 #line 6149 "configure"
6149 #include "confdefs.h"
6150 /* System header to define __stub macros and hopefully few prototypes,
6151 which can conflict with char $ac_func(); below. */
6153 /* Override any gcc2 internal prototype to avoid an error. */
6154 /* We use char because int might match the return type of a gcc2
6155 builtin and then its argument prototype would still apply. */
6160 /* The GNU C library defines this for functions which it implements
6161 to always fail with ENOSYS. Some functions are actually named
6162 something starting with __ and the normal name is an alias. */
6163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6173 eval "ac_cv_func_$ac_func=yes"
6175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6178 eval "ac_cv_func_$ac_func=no"
6183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6184 echo "$ac_t""yes" 1>&6
6185 cat >> confdefs.h <<EOF
6186 #define CRAY_STACKSEG_END $ac_func
6191 echo "$ac_t""no" 1>&6
6197 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6198 echo "configure:6199: checking stack direction for C alloca" >&5
6199 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6200 echo $ac_n "(cached) $ac_c" 1>&6
6202 if test "$cross_compiling" = yes; then
6203 ac_cv_c_stack_direction=0
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6208 find_stack_direction ()
6210 static char *addr = 0;
6215 return find_stack_direction ();
6218 return (&dummy > addr) ? 1 : -1;
6222 exit (find_stack_direction() < 0);
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6227 ac_cv_c_stack_direction=1
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6232 ac_cv_c_stack_direction=-1
6239 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6240 cat >> confdefs.h <<EOF
6241 #define STACK_DIRECTION $ac_cv_c_stack_direction
6246 for ac_hdr in unistd.h
6248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6250 echo "configure:6251: checking for $ac_hdr" >&5
6251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6260 { (eval echo configure:6261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6262 if test -z "$ac_err"; then
6264 eval "ac_cv_header_$ac_safe=yes"
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6270 eval "ac_cv_header_$ac_safe=no"
6274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6275 echo "$ac_t""yes" 1>&6
6276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6277 cat >> confdefs.h <<EOF
6278 #define $ac_tr_hdr 1
6282 echo "$ac_t""no" 1>&6
6286 for ac_func in getpagesize
6288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6289 echo "configure:6290: checking for $ac_func" >&5
6290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 /* System header to define __stub macros and hopefully few prototypes,
6297 which can conflict with char $ac_func(); below. */
6299 /* Override any gcc2 internal prototype to avoid an error. */
6300 /* We use char because int might match the return type of a gcc2
6301 builtin and then its argument prototype would still apply. */
6306 /* The GNU C library defines this for functions which it implements
6307 to always fail with ENOSYS. Some functions are actually named
6308 something starting with __ and the normal name is an alias. */
6309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6317 if { (eval echo configure:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6319 eval "ac_cv_func_$ac_func=yes"
6321 echo "configure: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6324 eval "ac_cv_func_$ac_func=no"
6329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6330 echo "$ac_t""yes" 1>&6
6331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6332 cat >> confdefs.h <<EOF
6333 #define $ac_tr_func 1
6337 echo "$ac_t""no" 1>&6
6341 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6342 echo "configure:6343: checking for working mmap" >&5
6343 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6346 if test "$cross_compiling" = yes; then
6347 ac_cv_func_mmap_fixed_mapped=no
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6353 /* Thanks to Mike Haertel and Jim Avera for this test.
6354 Here is a matrix of mmap possibilities:
6355 mmap private not fixed
6356 mmap private fixed at somewhere currently unmapped
6357 mmap private fixed at somewhere already mapped
6358 mmap shared not fixed
6359 mmap shared fixed at somewhere currently unmapped
6360 mmap shared fixed at somewhere already mapped
6361 For private mappings, we should verify that changes cannot be read()
6362 back from the file, nor mmap's back from the file at a different
6363 address. (There have been systems where private was not correctly
6364 implemented like the infamous i386 svr4.0, and systems where the
6365 VM page cache was not coherent with the filesystem buffer cache
6366 like early versions of FreeBSD and possibly contemporary NetBSD.)
6367 For shared mappings, we should conversely verify that changes get
6368 propogated back to all the places they're supposed to be.
6370 Grep wants private fixed already mapped.
6371 The main things grep needs to know about mmap are:
6372 * does it exist and is it safe to write into the mmap'd area
6373 * how to use it (BSD variants) */
6374 #include <sys/types.h>
6376 #include <sys/mman.h>
6378 /* This mess was copied from the GNU getpagesize.h. */
6379 #ifndef HAVE_GETPAGESIZE
6380 # ifdef HAVE_UNISTD_H
6381 # include <unistd.h>
6384 /* Assume that all systems that can run configure have sys/param.h. */
6385 # ifndef HAVE_SYS_PARAM_H
6386 # define HAVE_SYS_PARAM_H 1
6389 # ifdef _SC_PAGESIZE
6390 # define getpagesize() sysconf(_SC_PAGESIZE)
6391 # else /* no _SC_PAGESIZE */
6392 # ifdef HAVE_SYS_PARAM_H
6393 # include <sys/param.h>
6394 # ifdef EXEC_PAGESIZE
6395 # define getpagesize() EXEC_PAGESIZE
6396 # else /* no EXEC_PAGESIZE */
6398 # define getpagesize() NBPG * CLSIZE
6401 # endif /* no CLSIZE */
6402 # else /* no NBPG */
6404 # define getpagesize() NBPC
6405 # else /* no NBPC */
6407 # define getpagesize() PAGESIZE
6408 # endif /* PAGESIZE */
6409 # endif /* no NBPC */
6410 # endif /* no NBPG */
6411 # endif /* no EXEC_PAGESIZE */
6412 # else /* no HAVE_SYS_PARAM_H */
6413 # define getpagesize() 8192 /* punt totally */
6414 # endif /* no HAVE_SYS_PARAM_H */
6415 # endif /* no _SC_PAGESIZE */
6417 #endif /* no HAVE_GETPAGESIZE */
6420 extern "C" { void *malloc(unsigned); }
6428 char *data, *data2, *data3;
6432 pagesize = getpagesize();
6435 * First, make a file with some known garbage in it.
6437 data = malloc(pagesize);
6440 for (i = 0; i < pagesize; ++i)
6441 *(data + i) = rand();
6443 fd = creat("conftestmmap", 0600);
6446 if (write(fd, data, pagesize) != pagesize)
6451 * Next, try to mmap the file at a fixed address which
6452 * already has something else allocated at it. If we can,
6453 * also make sure that we see the same garbage.
6455 fd = open("conftestmmap", O_RDWR);
6458 data2 = malloc(2 * pagesize);
6461 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6462 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6463 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6465 for (i = 0; i < pagesize; ++i)
6466 if (*(data + i) != *(data2 + i))
6470 * Finally, make sure that changes to the mapped area
6471 * do not percolate back to the file as seen by read().
6472 * (This is a bug on some variants of i386 svr4.0.)
6474 for (i = 0; i < pagesize; ++i)
6475 *(data2 + i) = *(data2 + i) + 1;
6476 data3 = malloc(pagesize);
6479 if (read(fd, data3, pagesize) != pagesize)
6481 for (i = 0; i < pagesize; ++i)
6482 if (*(data + i) != *(data3 + i))
6485 unlink("conftestmmap");
6490 if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6492 ac_cv_func_mmap_fixed_mapped=yes
6494 echo "configure: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 ac_cv_func_mmap_fixed_mapped=no
6504 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6505 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6506 cat >> confdefs.h <<\EOF
6512 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6513 echo "configure:6514: checking for pid_t" >&5
6514 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6515 echo $ac_n "(cached) $ac_c" 1>&6
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure"
6519 #include "confdefs.h"
6520 #include <sys/types.h>
6526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6527 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6529 ac_cv_type_pid_t=yes
6537 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6538 if test $ac_cv_type_pid_t = no; then
6539 cat >> confdefs.h <<\EOF
6545 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6546 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6547 echo "configure:6548: checking for vfork.h" >&5
6548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6557 { (eval echo configure:6558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6559 if test -z "$ac_err"; then
6561 eval "ac_cv_header_$ac_safe=yes"
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6567 eval "ac_cv_header_$ac_safe=no"
6571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6573 cat >> confdefs.h <<\EOF
6574 #define HAVE_VFORK_H 1
6578 echo "$ac_t""no" 1>&6
6581 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6582 echo "configure:6583: checking for working vfork" >&5
6583 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6584 echo $ac_n "(cached) $ac_c" 1>&6
6586 if test "$cross_compiling" = yes; then
6587 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6588 echo "configure:6589: checking for vfork" >&5
6589 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char vfork(); below. */
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6605 /* The GNU C library defines this for functions which it implements
6606 to always fail with ENOSYS. Some functions are actually named
6607 something starting with __ and the normal name is an alias. */
6608 #if defined (__stub_vfork) || defined (__stub___vfork)
6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 eval "ac_cv_func_vfork=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6623 eval "ac_cv_func_vfork=no"
6628 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6632 echo "$ac_t""no" 1>&6
6635 ac_cv_func_vfork_works=$ac_cv_func_vfork
6637 cat > conftest.$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6640 /* Thanks to Paul Eggert for this test. */
6642 #include <sys/types.h>
6643 #include <sys/stat.h>
6644 #ifdef HAVE_UNISTD_H
6650 /* On some sparc systems, changes by the child to local and incoming
6651 argument registers are propagated back to the parent.
6652 The compiler is told about this with #include <vfork.h>,
6653 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6654 Test for this by using a static variable whose address
6655 is put into a register that is clobbered by the vfork. */
6658 sparc_address_test (int arg)
6660 sparc_address_test (arg) int arg;
6678 pid_t parent = getpid ();
6681 sparc_address_test ();
6686 /* Here is another test for sparc vfork register problems.
6687 This test uses lots of local variables, at least
6688 as many local variables as main has allocated so far
6689 including compiler temporaries. 4 locals are enough for
6690 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6691 A buggy compiler should reuse the register of parent
6692 for one of the local variables, since it will think that
6693 parent can't possibly be used any more in this routine.
6694 Assigning to the local variable will thus munge parent
6695 in the parent process. */
6697 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6698 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6699 /* Convince the compiler that p..p7 are live; otherwise, it might
6700 use the same hardware register for all 8 local variables. */
6701 if (p != p1 || p != p2 || p != p3 || p != p4
6702 || p != p5 || p != p6 || p != p7)
6705 /* On some systems (e.g. IRIX 3.3),
6706 vfork doesn't separate parent from child file descriptors.
6707 If the child closes a descriptor before it execs or exits,
6708 this munges the parent's descriptor as well.
6709 Test for this by closing stdout in the child. */
6710 _exit(close(fileno(stdout)) != 0);
6715 while (wait(&status) != child)
6718 /* Was there some problem with vforking? */
6721 /* Did the child fail? (This shouldn't happen.) */
6724 /* Did the vfork/compiler bug occur? */
6725 || parent != getpid()
6727 /* Did the file descriptor bug occur? */
6728 || fstat(fileno(stdout), &st) != 0
6733 if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6735 ac_cv_func_vfork_works=yes
6737 echo "configure: failed program was:" >&5
6738 cat conftest.$ac_ext >&5
6740 ac_cv_func_vfork_works=no
6747 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6748 if test $ac_cv_func_vfork_works = no; then
6749 cat >> confdefs.h <<\EOF
6755 for ac_func in canonicalize_file_name realpath
6757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6758 echo "configure:6759: checking for $ac_func" >&5
6759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6762 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6765 /* System header to define __stub macros and hopefully few prototypes,
6766 which can conflict with char $ac_func(); below. */
6768 /* Override any gcc2 internal prototype to avoid an error. */
6769 /* We use char because int might match the return type of a gcc2
6770 builtin and then its argument prototype would still apply. */
6775 /* The GNU C library defines this for functions which it implements
6776 to always fail with ENOSYS. Some functions are actually named
6777 something starting with __ and the normal name is an alias. */
6778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6786 if { (eval echo configure:6787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6788 eval "ac_cv_func_$ac_func=yes"
6790 echo "configure: failed program was:" >&5
6791 cat conftest.$ac_ext >&5
6793 eval "ac_cv_func_$ac_func=no"
6798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6799 echo "$ac_t""yes" 1>&6
6800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6801 cat >> confdefs.h <<EOF
6802 #define $ac_tr_func 1
6806 echo "$ac_t""no" 1>&6
6812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6813 echo "configure:6814: checking for $ac_func" >&5
6814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* System header to define __stub macros and hopefully few prototypes,
6821 which can conflict with char $ac_func(); below. */
6823 /* Override any gcc2 internal prototype to avoid an error. */
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6830 /* The GNU C library defines this for functions which it implements
6831 to always fail with ENOSYS. Some functions are actually named
6832 something starting with __ and the normal name is an alias. */
6833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6843 eval "ac_cv_func_$ac_func=yes"
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 eval "ac_cv_func_$ac_func=no"
6853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6854 echo "$ac_t""yes" 1>&6
6855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6856 cat >> confdefs.h <<EOF
6857 #define $ac_tr_func 1
6861 echo "$ac_t""no" 1>&6
6865 for ac_func in pread64
6867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6868 echo "configure:6869: checking for $ac_func" >&5
6869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* System header to define __stub macros and hopefully few prototypes,
6876 which can conflict with char $ac_func(); below. */
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
6885 /* The GNU C library defines this for functions which it implements
6886 to always fail with ENOSYS. Some functions are actually named
6887 something starting with __ and the normal name is an alias. */
6888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6896 if { (eval echo configure:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6898 eval "ac_cv_func_$ac_func=yes"
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 eval "ac_cv_func_$ac_func=no"
6908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6909 echo "$ac_t""yes" 1>&6
6910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6911 cat >> confdefs.h <<EOF
6912 #define $ac_tr_func 1
6916 echo "$ac_t""no" 1>&6
6922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6923 echo "configure:6924: checking for $ac_func" >&5
6924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6925 echo $ac_n "(cached) $ac_c" 1>&6
6927 cat > conftest.$ac_ext <<EOF
6928 #line 6929 "configure"
6929 #include "confdefs.h"
6930 /* System header to define __stub macros and hopefully few prototypes,
6931 which can conflict with char $ac_func(); below. */
6933 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6940 /* The GNU C library defines this for functions which it implements
6941 to always fail with ENOSYS. Some functions are actually named
6942 something starting with __ and the normal name is an alias. */
6943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6951 if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6953 eval "ac_cv_func_$ac_func=yes"
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 eval "ac_cv_func_$ac_func=no"
6963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6964 echo "$ac_t""yes" 1>&6
6965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6966 cat >> confdefs.h <<EOF
6967 #define $ac_tr_func 1
6971 echo "$ac_t""no" 1>&6
6975 for ac_func in setpgid setpgrp
6977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6978 echo "configure:6979: checking for $ac_func" >&5
6979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6980 echo $ac_n "(cached) $ac_c" 1>&6
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6985 /* System header to define __stub macros and hopefully few prototypes,
6986 which can conflict with char $ac_func(); below. */
6988 /* Override any gcc2 internal prototype to avoid an error. */
6989 /* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6995 /* The GNU C library defines this for functions which it implements
6996 to always fail with ENOSYS. Some functions are actually named
6997 something starting with __ and the normal name is an alias. */
6998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7006 if { (eval echo configure:7007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7008 eval "ac_cv_func_$ac_func=yes"
7010 echo "configure: failed program was:" >&5
7011 cat conftest.$ac_ext >&5
7013 eval "ac_cv_func_$ac_func=no"
7018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7019 echo "$ac_t""yes" 1>&6
7020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7021 cat >> confdefs.h <<EOF
7022 #define $ac_tr_func 1
7026 echo "$ac_t""no" 1>&6
7030 for ac_func in sigaction sigprocmask sigsetmask
7032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7033 echo "configure:7034: checking for $ac_func" >&5
7034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 cat > conftest.$ac_ext <<EOF
7038 #line 7039 "configure"
7039 #include "confdefs.h"
7040 /* System header to define __stub macros and hopefully few prototypes,
7041 which can conflict with char $ac_func(); below. */
7043 /* Override any gcc2 internal prototype to avoid an error. */
7044 /* We use char because int might match the return type of a gcc2
7045 builtin and then its argument prototype would still apply. */
7050 /* The GNU C library defines this for functions which it implements
7051 to always fail with ENOSYS. Some functions are actually named
7052 something starting with __ and the normal name is an alias. */
7053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7061 if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7063 eval "ac_cv_func_$ac_func=yes"
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7068 eval "ac_cv_func_$ac_func=no"
7073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7074 echo "$ac_t""yes" 1>&6
7075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7076 cat >> confdefs.h <<EOF
7077 #define $ac_tr_func 1
7081 echo "$ac_t""no" 1>&6
7085 for ac_func in socketpair
7087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7088 echo "configure:7089: checking for $ac_func" >&5
7089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7095 /* System header to define __stub macros and hopefully few prototypes,
7096 which can conflict with char $ac_func(); below. */
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7105 /* The GNU C library defines this for functions which it implements
7106 to always fail with ENOSYS. Some functions are actually named
7107 something starting with __ and the normal name is an alias. */
7108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7118 eval "ac_cv_func_$ac_func=yes"
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7123 eval "ac_cv_func_$ac_func=no"
7128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7129 echo "$ac_t""yes" 1>&6
7130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7131 cat >> confdefs.h <<EOF
7132 #define $ac_tr_func 1
7136 echo "$ac_t""no" 1>&6
7140 for ac_func in syscall
7142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7143 echo "configure:7144: checking for $ac_func" >&5
7144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 /* System header to define __stub macros and hopefully few prototypes,
7151 which can conflict with char $ac_func(); below. */
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173 eval "ac_cv_func_$ac_func=yes"
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7178 eval "ac_cv_func_$ac_func=no"
7183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7186 cat >> confdefs.h <<EOF
7187 #define $ac_tr_func 1
7191 echo "$ac_t""no" 1>&6
7195 for ac_func in ttrace
7197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7198 echo "configure:7199: checking for $ac_func" >&5
7199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7200 echo $ac_n "(cached) $ac_c" 1>&6
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7205 /* System header to define __stub macros and hopefully few prototypes,
7206 which can conflict with char $ac_func(); below. */
7208 /* Override any gcc2 internal prototype to avoid an error. */
7209 /* We use char because int might match the return type of a gcc2
7210 builtin and then its argument prototype would still apply. */
7215 /* The GNU C library defines this for functions which it implements
7216 to always fail with ENOSYS. Some functions are actually named
7217 something starting with __ and the normal name is an alias. */
7218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7226 if { (eval echo configure:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7228 eval "ac_cv_func_$ac_func=yes"
7230 echo "configure: failed program was:" >&5
7231 cat conftest.$ac_ext >&5
7233 eval "ac_cv_func_$ac_func=no"
7238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7239 echo "$ac_t""yes" 1>&6
7240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7241 cat >> confdefs.h <<EOF
7242 #define $ac_tr_func 1
7246 echo "$ac_t""no" 1>&6
7251 # Check the return and argument types of ptrace. No canned test for
7252 # this, so roll our own.
7253 gdb_ptrace_headers='
7254 #if HAVE_SYS_TYPES_H
7255 # include <sys/types.h>
7257 #if HAVE_SYS_PTRACE_H
7258 # include <sys/ptrace.h>
7261 # include <unistd.h>
7264 # There is no point in checking if we don't have a prototype.
7265 for ac_func in ptrace
7267 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7268 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
7269 echo "configure:7270: checking whether $ac_func is declared" >&5
7270 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 cat > conftest.$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7277 #define $ac_tr_decl 1
7282 char *(*pfn) = (char *(*)) $ac_func ;
7286 if { (eval echo configure:7287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7288 eval "gcc_cv_have_decl_$ac_func=yes"
7290 echo "configure: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7293 eval "gcc_cv_have_decl_$ac_func=no"
7298 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7299 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
7300 #define $ac_tr_decl 1
7304 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
7305 #define $ac_tr_decl 0
7308 : ${gdb_cv_func_ptrace_ret='int'}
7309 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7314 if test x = y ; then
7315 cat >> confdefs.h <<\EOF
7316 #define HAVE_DECL_PTRACE 1
7320 # Check return type.
7321 echo $ac_n "checking return type of ptrace""... $ac_c" 1>&6
7322 echo "configure:7323: checking return type of ptrace" >&5
7323 if eval "test \"`echo '$''{'gdb_cv_func_ptrace_ret'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7331 extern long ptrace ();
7334 if { (eval echo configure:7335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7336 gdb_cv_func_ptrace_ret='long'
7338 echo "configure: failed program was:" >&5
7339 cat conftest.$ac_ext >&5
7341 gdb_cv_func_ptrace_ret='int'
7346 echo "$ac_t""$gdb_cv_func_ptrace_ret" 1>&6
7347 cat >> confdefs.h <<EOF
7348 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
7351 # Check argument types.
7352 echo $ac_n "checking types of arguments for ptrace""... $ac_c" 1>&6
7353 echo "configure:7354: checking types of arguments for ptrace" >&5
7354 if eval "test \"`echo '$''{'gdb_cv_func_ptrace_args'+set}'`\" = set"; then
7355 echo $ac_n "(cached) $ac_c" 1>&6
7358 for gdb_arg1 in 'int' 'long'; do
7359 for gdb_arg2 in 'pid_t' 'int' 'long'; do
7360 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
7361 for gdb_arg4 in 'int' 'long'; do
7362 cat > conftest.$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7368 extern $gdb_cv_func_ptrace_ret
7369 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
7373 if { (eval echo configure:7374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7375 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7378 echo "configure: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7382 for gdb_arg5 in 'int *' 'int' 'long'; do
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7389 extern $gdb_cv_func_ptrace_ret
7390 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7394 if { (eval echo configure:7395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7397 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7400 echo "configure: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7409 # Provide a safe default value.
7410 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7414 echo "$ac_t""$gdb_cv_func_ptrace_args" 1>&6
7415 ac_save_IFS=$IFS; IFS=','
7416 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7419 cat >> confdefs.h <<EOF
7420 #define PTRACE_TYPE_ARG3 $3
7423 if test -n "$5"; then
7424 cat >> confdefs.h <<EOF
7425 #define PTRACE_TYPE_ARG5 $5
7430 if test "$cross_compiling" = no; then
7431 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7432 echo "configure:7433: checking whether setpgrp takes no argument" >&5
7433 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7436 if test "$cross_compiling" = yes; then
7437 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
7439 cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7443 #ifdef HAVE_UNISTD_H
7448 * If this system has a BSD-style setpgrp, which takes arguments, exit
7453 if (setpgrp(1,1) == -1)
7460 if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7462 ac_cv_func_setpgrp_void=no
7464 echo "configure: failed program was:" >&5
7465 cat conftest.$ac_ext >&5
7467 ac_cv_func_setpgrp_void=yes
7475 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7476 if test $ac_cv_func_setpgrp_void = yes; then
7477 cat >> confdefs.h <<\EOF
7478 #define SETPGRP_VOID 1
7484 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7485 echo "configure:7486: checking whether setpgrp takes no argument" >&5
7486 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7489 cat > conftest.$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7497 if (setpgrp(1,1) == -1)
7504 if { (eval echo configure:7505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7506 ac_cv_func_setpgrp_void=no
7508 echo "configure: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7511 ac_cv_func_setpgrp_void=yes
7516 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7517 if test $ac_cv_func_setpgrp_void = yes; then
7518 cat >> confdefs.h <<\EOF
7519 #define SETPGRP_VOID 1
7525 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
7526 # since sigsetjmp might only be defined as a macro.
7527 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7528 echo "configure:7529: checking for sigsetjmp" >&5
7529 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
7530 echo $ac_n "(cached) $ac_c" 1>&6
7532 cat > conftest.$ac_ext <<EOF
7533 #line 7534 "configure"
7534 #include "confdefs.h"
7539 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7542 if { (eval echo configure:7543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7544 gdb_cv_func_sigsetjmp=yes
7546 echo "configure: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7549 gdb_cv_func_sigsetjmp=no
7554 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
7555 if test $gdb_cv_func_sigsetjmp = yes; then
7556 cat >> confdefs.h <<\EOF
7557 #define HAVE_SIGSETJMP 1
7562 # Assume we'll default to using the included libiberty regex.
7563 gdb_use_included_regex=yes
7565 # However, if the system regex is GNU regex, then default to *not*
7566 # using the included regex.
7567 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
7568 echo "configure:7569: checking for GNU regex" >&5
7569 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7575 #include <gnu-versions.h>
7577 #define REGEX_INTERFACE_VERSION 1
7578 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
7579 # error "Version mismatch"
7583 if { (eval echo configure:7584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7585 gdb_cv_have_gnu_regex=yes
7587 echo "configure: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7590 gdb_cv_have_gnu_regex=no
7595 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
7596 if test $gdb_cv_have_gnu_regex = yes; then
7597 gdb_use_included_regex=no
7600 # Check whether --with-included-regex or --without-included-regex was given.
7601 if test "${with_included_regex+set}" = set; then
7602 withval="$with_included_regex"
7603 gdb_with_regex=$withval
7605 gdb_with_regex=$gdb_use_included_regex
7608 if test "$gdb_with_regex" = yes; then
7609 cat >> confdefs.h <<\EOF
7610 #define USE_INCLUDED_REGEX 1
7615 # See if <sys/proc.h> defines `struct thread' with a td_pcb member.
7616 echo $ac_n "checking for td_pcb in struct thread""... $ac_c" 1>&6
7617 echo "configure:7618: checking for td_pcb in struct thread" >&5
7618 if eval "test \"`echo '$''{'gdb_cv_struct_thread_td_pcb'+set}'`\" = set"; then
7619 echo $ac_n "(cached) $ac_c" 1>&6
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 #include <sys/param.h>
7625 #include <sys/proc.h>
7627 struct thread td; td.td_pcb;
7630 if { (eval echo configure:7631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7632 gdb_cv_struct_thread_td_pcb=yes
7634 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7637 gdb_cv_struct_thread_td_pcb=no
7642 echo "$ac_t""$gdb_cv_struct_thread_td_pcb" 1>&6
7643 if test $gdb_cv_struct_thread_td_pcb = yes; then
7644 cat >> confdefs.h <<\EOF
7645 #define HAVE_STRUCT_THREAD_TD_PCB 1
7650 # See if <sys/lwp.h> defines `struct lwp`.
7651 echo $ac_n "checking for struct lwp""... $ac_c" 1>&6
7652 echo "configure:7653: checking for struct lwp" >&5
7653 if eval "test \"`echo '$''{'gdb_cv_struct_lwp'+set}'`\" = set"; then
7654 echo $ac_n "(cached) $ac_c" 1>&6
7656 cat > conftest.$ac_ext <<EOF
7657 #line 7658 "configure"
7658 #include "confdefs.h"
7659 #include <sys/param.h>
7660 #include <sys/lwp.h>
7665 if { (eval echo configure:7666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7667 gdb_cv_struct_lwp=yes
7669 echo "configure: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7672 gdb_cv_struct_lwp=no
7677 echo "$ac_t""$gdb_cv_struct_lwp" 1>&6
7678 if test $gdb_cv_struct_lwp = yes; then
7679 cat >> confdefs.h <<\EOF
7680 #define HAVE_STRUCT_LWP 1
7685 # See if <machine/reg.h> degines `struct reg'.
7686 echo $ac_n "checking for struct reg in machine/reg.h""... $ac_c" 1>&6
7687 echo "configure:7688: checking for struct reg in machine/reg.h" >&5
7688 if eval "test \"`echo '$''{'gdb_cv_struct_reg'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 #include <sys/types.h>
7695 #include <machine/reg.h>
7700 if { (eval echo configure:7701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7702 gdb_cv_struct_reg=yes
7704 echo "configure: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7707 gdb_cv_struct_reg=no
7712 echo "$ac_t""$gdb_cv_struct_reg" 1>&6
7713 if test $gdb_cv_struct_reg = yes; then
7714 cat >> confdefs.h <<\EOF
7715 #define HAVE_STRUCT_REG 1
7720 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
7721 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
7722 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
7723 echo "configure:7724: checking for r_fs in struct reg" >&5
7724 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7727 cat > conftest.$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 #include <machine/reg.h>
7732 struct reg r; r.r_fs;
7735 if { (eval echo configure:7736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7737 gdb_cv_struct_reg_r_fs=yes
7739 echo "configure: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7742 gdb_cv_struct_reg_r_fs=no
7747 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
7748 if test $gdb_cv_struct_reg_r_fs = yes; then
7749 cat >> confdefs.h <<\EOF
7750 #define HAVE_STRUCT_REG_R_FS 1
7754 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
7755 echo "configure:7756: checking for r_gs in struct reg" >&5
7756 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6
7759 cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7762 #include <machine/reg.h>
7764 struct reg r; r.r_gs;
7767 if { (eval echo configure:7768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7769 gdb_cv_struct_reg_r_gs=yes
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7774 gdb_cv_struct_reg_r_gs=no
7779 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
7780 if test $gdb_cv_struct_reg_r_gs = yes; then
7781 cat >> confdefs.h <<\EOF
7782 #define HAVE_STRUCT_REG_R_GS 1
7787 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
7788 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
7789 echo "configure:7790: checking for PTRACE_GETREGS" >&5
7790 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 #include <sys/ptrace.h>
7801 if { (eval echo configure:7802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7803 gdb_cv_have_ptrace_getregs=yes
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7808 gdb_cv_have_ptrace_getregs=no
7813 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
7814 if test $gdb_cv_have_ptrace_getregs = yes; then
7815 cat >> confdefs.h <<\EOF
7816 #define HAVE_PTRACE_GETREGS 1
7821 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
7822 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
7823 echo "configure:7824: checking for PTRACE_GETFPXREGS" >&5
7824 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7827 cat > conftest.$ac_ext <<EOF
7828 #line 7829 "configure"
7829 #include "confdefs.h"
7830 #include <sys/ptrace.h>
7835 if { (eval echo configure:7836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7837 gdb_cv_have_ptrace_getfpxregs=yes
7839 echo "configure: failed program was:" >&5
7840 cat conftest.$ac_ext >&5
7842 gdb_cv_have_ptrace_getfpxregs=no
7847 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
7848 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
7849 cat >> confdefs.h <<\EOF
7850 #define HAVE_PTRACE_GETFPXREGS 1
7855 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
7856 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
7857 echo "configure:7858: checking for PT_GETDBREGS" >&5
7858 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
7859 echo $ac_n "(cached) $ac_c" 1>&6
7861 cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7864 #include <sys/types.h>
7865 #include <sys/ptrace.h>
7870 if { (eval echo configure:7871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7872 gdb_cv_have_pt_getdbregs=yes
7874 echo "configure: failed program was:" >&5
7875 cat conftest.$ac_ext >&5
7877 gdb_cv_have_pt_getdbregs=no
7882 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
7883 if test $gdb_cv_have_pt_getdbregs = yes; then
7884 cat >> confdefs.h <<\EOF
7885 #define HAVE_PT_GETDBREGS 1
7890 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
7891 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
7892 echo "configure:7893: checking for PT_GETXMMREGS" >&5
7893 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7896 cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 #include <sys/types.h>
7900 #include <sys/ptrace.h>
7905 if { (eval echo configure:7906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7907 gdb_cv_have_pt_getxmmregs=yes
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 gdb_cv_have_pt_getxmmregs=no
7917 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
7918 if test $gdb_cv_have_pt_getxmmregs = yes; then
7919 cat >> confdefs.h <<\EOF
7920 #define HAVE_PT_GETXMMREGS 1
7925 # See if stdint.h provides the uintptr_t type.
7926 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
7927 echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
7928 echo "configure:7929: checking for uintptr_t in stdint.h" >&5
7929 if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+set}'`\" = set"; then
7930 echo $ac_n "(cached) $ac_c" 1>&6
7932 cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7940 if { (eval echo configure:7941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7942 gdb_cv_have_uintptr_t=yes
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7947 gdb_cv_have_uintptr_t=no
7952 echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
7953 if test $gdb_cv_have_uintptr_t = yes; then
7954 cat >> confdefs.h <<\EOF
7955 #define HAVE_UINTPTR_T 1
7960 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
7961 echo "configure:7962: checking whether malloc must be declared" >&5
7962 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7965 cat > conftest.$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7970 #ifdef HAVE_STRING_H
7973 #ifdef HAVE_STRINGS_H
7974 #include <strings.h>
7977 #ifdef HAVE_STDLIB_H
7980 #ifdef HAVE_UNISTD_H
7984 char *(*pfn) = (char *(*)) malloc
7987 if { (eval echo configure:7988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7989 bfd_cv_decl_needed_malloc=no
7991 echo "configure: failed program was:" >&5
7992 cat conftest.$ac_ext >&5
7994 bfd_cv_decl_needed_malloc=yes
7999 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
8000 if test $bfd_cv_decl_needed_malloc = yes; then
8001 cat >> confdefs.h <<\EOF
8002 #define NEED_DECLARATION_MALLOC 1
8007 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
8008 echo "configure:8009: checking whether realloc must be declared" >&5
8009 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8017 #ifdef HAVE_STRING_H
8020 #ifdef HAVE_STRINGS_H
8021 #include <strings.h>
8024 #ifdef HAVE_STDLIB_H
8027 #ifdef HAVE_UNISTD_H
8031 char *(*pfn) = (char *(*)) realloc
8034 if { (eval echo configure:8035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8036 bfd_cv_decl_needed_realloc=no
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8041 bfd_cv_decl_needed_realloc=yes
8046 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
8047 if test $bfd_cv_decl_needed_realloc = yes; then
8048 cat >> confdefs.h <<\EOF
8049 #define NEED_DECLARATION_REALLOC 1
8054 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
8055 echo "configure:8056: checking whether free must be declared" >&5
8056 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
8057 echo $ac_n "(cached) $ac_c" 1>&6
8059 cat > conftest.$ac_ext <<EOF
8060 #line 8061 "configure"
8061 #include "confdefs.h"
8064 #ifdef HAVE_STRING_H
8067 #ifdef HAVE_STRINGS_H
8068 #include <strings.h>
8071 #ifdef HAVE_STDLIB_H
8074 #ifdef HAVE_UNISTD_H
8078 char *(*pfn) = (char *(*)) free
8081 if { (eval echo configure:8082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8083 bfd_cv_decl_needed_free=no
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8088 bfd_cv_decl_needed_free=yes
8093 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
8094 if test $bfd_cv_decl_needed_free = yes; then
8095 cat >> confdefs.h <<\EOF
8096 #define NEED_DECLARATION_FREE 1
8101 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
8102 echo "configure:8103: checking whether strerror must be declared" >&5
8103 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
8104 echo $ac_n "(cached) $ac_c" 1>&6
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8111 #ifdef HAVE_STRING_H
8114 #ifdef HAVE_STRINGS_H
8115 #include <strings.h>
8118 #ifdef HAVE_STDLIB_H
8121 #ifdef HAVE_UNISTD_H
8125 char *(*pfn) = (char *(*)) strerror
8128 if { (eval echo configure:8129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8130 bfd_cv_decl_needed_strerror=no
8132 echo "configure: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8135 bfd_cv_decl_needed_strerror=yes
8140 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
8141 if test $bfd_cv_decl_needed_strerror = yes; then
8142 cat >> confdefs.h <<\EOF
8143 #define NEED_DECLARATION_STRERROR 1
8148 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
8149 echo "configure:8150: checking whether strdup must be declared" >&5
8150 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8158 #ifdef HAVE_STRING_H
8161 #ifdef HAVE_STRINGS_H
8162 #include <strings.h>
8165 #ifdef HAVE_STDLIB_H
8168 #ifdef HAVE_UNISTD_H
8172 char *(*pfn) = (char *(*)) strdup
8175 if { (eval echo configure:8176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8177 bfd_cv_decl_needed_strdup=no
8179 echo "configure: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8182 bfd_cv_decl_needed_strdup=yes
8187 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
8188 if test $bfd_cv_decl_needed_strdup = yes; then
8189 cat >> confdefs.h <<\EOF
8190 #define NEED_DECLARATION_STRDUP 1
8195 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
8196 echo "configure:8197: checking whether strstr must be declared" >&5
8197 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
8198 echo $ac_n "(cached) $ac_c" 1>&6
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8205 #ifdef HAVE_STRING_H
8208 #ifdef HAVE_STRINGS_H
8209 #include <strings.h>
8212 #ifdef HAVE_STDLIB_H
8215 #ifdef HAVE_UNISTD_H
8219 char *(*pfn) = (char *(*)) strstr
8222 if { (eval echo configure:8223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8224 bfd_cv_decl_needed_strstr=no
8226 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8229 bfd_cv_decl_needed_strstr=yes
8234 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
8235 if test $bfd_cv_decl_needed_strstr = yes; then
8236 cat >> confdefs.h <<\EOF
8237 #define NEED_DECLARATION_STRSTR 1
8242 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
8243 echo "configure:8244: checking whether canonicalize_file_name must be declared" >&5
8244 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+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 #ifdef HAVE_STRING_H
8255 #ifdef HAVE_STRINGS_H
8256 #include <strings.h>
8259 #ifdef HAVE_STDLIB_H
8262 #ifdef HAVE_UNISTD_H
8266 char *(*pfn) = (char *(*)) canonicalize_file_name
8269 if { (eval echo configure:8270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8271 bfd_cv_decl_needed_canonicalize_file_name=no
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 bfd_cv_decl_needed_canonicalize_file_name=yes
8281 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
8282 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
8283 cat >> confdefs.h <<\EOF
8284 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8290 # The following save_state_t checkery is only necessary for HPUX
8291 # versions earlier than 10.20. When those fade from memory, this
8292 # could be expunged. --jsm 1999-03-22
8294 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
8295 echo "configure:8296: checking for HPUX save_state structure" >&5
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8299 #include <machine/save_state.h>
8301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8302 egrep "save_state_t" >/dev/null 2>&1; then
8304 gdb_cv_hpux_savestate=yes
8307 gdb_cv_hpux_savestate=no
8311 cat > conftest.$ac_ext <<EOF
8312 #line 8313 "configure"
8313 #include "confdefs.h"
8314 #include <machine/save_state.h>
8316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8317 egrep "ss_wide" >/dev/null 2>&1; then
8319 gdb_cv_hpux_sswide=yes
8322 gdb_cv_hpux_sswide=no
8326 if test $gdb_cv_hpux_savestate = yes
8328 cat >> confdefs.h <<\EOF
8329 #define HAVE_STRUCT_SAVE_STATE_T 1
8333 if test $gdb_cv_hpux_sswide = yes
8335 cat >> confdefs.h <<\EOF
8336 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
8340 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
8343 # If we are configured native on GNU/Linux, work around problems with
8345 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
8347 if test "${target}" = "${host}"; then
8350 cat >> confdefs.h <<\EOF
8351 #define START_INFERIOR_TRAPS_EXPECTED 2
8354 cat >> confdefs.h <<\EOF
8355 #define sys_quotactl 1
8360 cat >> confdefs.h <<\EOF
8361 #define NEW_PROC_API 1
8365 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
8366 cat >> confdefs.h <<\EOF
8367 #define NEW_PROC_API 1
8371 *-*-solaris2.[6789])
8372 cat >> confdefs.h <<\EOF
8373 #define NEW_PROC_API 1
8378 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
8379 cat >> confdefs.h <<\EOF
8387 if test "$ac_cv_header_sys_procfs_h" = yes; then
8388 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
8389 echo "configure:8390: checking for pstatus_t in sys/procfs.h" >&5
8390 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8393 cat > conftest.$ac_ext <<EOF
8394 #line 8395 "configure"
8395 #include "confdefs.h"
8398 #include <sys/procfs.h>
8403 if { (eval echo configure:8404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8405 bfd_cv_have_sys_procfs_type_pstatus_t=yes
8407 echo "configure: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8410 bfd_cv_have_sys_procfs_type_pstatus_t=no
8416 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
8417 cat >> confdefs.h <<\EOF
8418 #define HAVE_PSTATUS_T 1
8422 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
8424 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
8425 echo "configure:8426: checking for prrun_t in sys/procfs.h" >&5
8426 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8434 #include <sys/procfs.h>
8439 if { (eval echo configure:8440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8441 bfd_cv_have_sys_procfs_type_prrun_t=yes
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8446 bfd_cv_have_sys_procfs_type_prrun_t=no
8452 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
8453 cat >> confdefs.h <<\EOF
8454 #define HAVE_PRRUN_T 1
8458 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
8460 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
8461 echo "configure:8462: checking for gregset_t in sys/procfs.h" >&5
8462 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8465 cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8470 #include <sys/procfs.h>
8475 if { (eval echo configure:8476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8477 bfd_cv_have_sys_procfs_type_gregset_t=yes
8479 echo "configure: failed program was:" >&5
8480 cat conftest.$ac_ext >&5
8482 bfd_cv_have_sys_procfs_type_gregset_t=no
8488 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8489 cat >> confdefs.h <<\EOF
8490 #define HAVE_GREGSET_T 1
8494 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
8496 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
8497 echo "configure:8498: checking for fpregset_t in sys/procfs.h" >&5
8498 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
8499 echo $ac_n "(cached) $ac_c" 1>&6
8501 cat > conftest.$ac_ext <<EOF
8502 #line 8503 "configure"
8503 #include "confdefs.h"
8506 #include <sys/procfs.h>
8511 if { (eval echo configure:8512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8513 bfd_cv_have_sys_procfs_type_fpregset_t=yes
8515 echo "configure: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8518 bfd_cv_have_sys_procfs_type_fpregset_t=no
8524 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8525 cat >> confdefs.h <<\EOF
8526 #define HAVE_FPREGSET_T 1
8530 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
8532 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
8533 echo "configure:8534: checking for prgregset_t in sys/procfs.h" >&5
8534 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
8535 echo $ac_n "(cached) $ac_c" 1>&6
8537 cat > conftest.$ac_ext <<EOF
8538 #line 8539 "configure"
8539 #include "confdefs.h"
8542 #include <sys/procfs.h>
8547 if { (eval echo configure:8548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8549 bfd_cv_have_sys_procfs_type_prgregset_t=yes
8551 echo "configure: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8554 bfd_cv_have_sys_procfs_type_prgregset_t=no
8560 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8561 cat >> confdefs.h <<\EOF
8562 #define HAVE_PRGREGSET_T 1
8566 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
8568 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
8569 echo "configure:8570: checking for prfpregset_t in sys/procfs.h" >&5
8570 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
8571 echo $ac_n "(cached) $ac_c" 1>&6
8573 cat > conftest.$ac_ext <<EOF
8574 #line 8575 "configure"
8575 #include "confdefs.h"
8578 #include <sys/procfs.h>
8583 if { (eval echo configure:8584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8585 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
8587 echo "configure: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8590 bfd_cv_have_sys_procfs_type_prfpregset_t=no
8596 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8597 cat >> confdefs.h <<\EOF
8598 #define HAVE_PRFPREGSET_T 1
8602 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
8604 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
8605 echo "configure:8606: checking for prgregset32_t in sys/procfs.h" >&5
8606 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
8607 echo $ac_n "(cached) $ac_c" 1>&6
8609 cat > conftest.$ac_ext <<EOF
8610 #line 8611 "configure"
8611 #include "confdefs.h"
8614 #include <sys/procfs.h>
8619 if { (eval echo configure:8620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8621 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
8623 echo "configure: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8626 bfd_cv_have_sys_procfs_type_prgregset32_t=no
8632 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8633 cat >> confdefs.h <<\EOF
8634 #define HAVE_PRGREGSET32_T 1
8638 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
8640 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
8641 echo "configure:8642: checking for prfpregset32_t in sys/procfs.h" >&5
8642 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8645 cat > conftest.$ac_ext <<EOF
8646 #line 8647 "configure"
8647 #include "confdefs.h"
8650 #include <sys/procfs.h>
8655 if { (eval echo configure:8656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8657 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8662 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
8668 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
8669 cat >> confdefs.h <<\EOF
8670 #define HAVE_PRFPREGSET32_T 1
8674 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
8676 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
8677 echo "configure:8678: checking for lwpid_t in sys/procfs.h" >&5
8678 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
8679 echo $ac_n "(cached) $ac_c" 1>&6
8681 cat > conftest.$ac_ext <<EOF
8682 #line 8683 "configure"
8683 #include "confdefs.h"
8686 #include <sys/procfs.h>
8691 if { (eval echo configure:8692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8693 bfd_cv_have_sys_procfs_type_lwpid_t=yes
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8698 bfd_cv_have_sys_procfs_type_lwpid_t=no
8704 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8705 cat >> confdefs.h <<\EOF
8706 #define HAVE_LWPID_T 1
8710 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
8712 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
8713 echo "configure:8714: checking for psaddr_t in sys/procfs.h" >&5
8714 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure"
8719 #include "confdefs.h"
8722 #include <sys/procfs.h>
8727 if { (eval echo configure:8728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8729 bfd_cv_have_sys_procfs_type_psaddr_t=yes
8731 echo "configure: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8734 bfd_cv_have_sys_procfs_type_psaddr_t=no
8740 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8741 cat >> confdefs.h <<\EOF
8742 #define HAVE_PSADDR_T 1
8746 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
8748 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
8749 echo "configure:8750: checking for prsysent_t in sys/procfs.h" >&5
8750 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
8751 echo $ac_n "(cached) $ac_c" 1>&6
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8758 #include <sys/procfs.h>
8763 if { (eval echo configure:8764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8765 bfd_cv_have_sys_procfs_type_prsysent_t=yes
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8770 bfd_cv_have_sys_procfs_type_prsysent_t=no
8776 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
8777 cat >> confdefs.h <<\EOF
8778 #define HAVE_PRSYSENT_T 1
8782 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
8784 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
8785 echo "configure:8786: checking for pr_sigset_t in sys/procfs.h" >&5
8786 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8789 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8794 #include <sys/procfs.h>
8799 if { (eval echo configure:8800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8801 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
8803 echo "configure: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8806 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
8812 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
8813 cat >> confdefs.h <<\EOF
8814 #define HAVE_PR_SIGSET_T 1
8818 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
8820 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
8821 echo "configure:8822: checking for pr_sigaction64_t in sys/procfs.h" >&5
8822 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
8823 echo $ac_n "(cached) $ac_c" 1>&6
8825 cat > conftest.$ac_ext <<EOF
8826 #line 8827 "configure"
8827 #include "confdefs.h"
8830 #include <sys/procfs.h>
8832 pr_sigaction64_t avar
8835 if { (eval echo configure:8836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8837 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
8839 echo "configure: failed program was:" >&5
8840 cat conftest.$ac_ext >&5
8842 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
8848 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
8849 cat >> confdefs.h <<\EOF
8850 #define HAVE_PR_SIGACTION64_T 1
8854 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
8856 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
8857 echo "configure:8858: checking for pr_siginfo64_t in sys/procfs.h" >&5
8858 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8861 cat > conftest.$ac_ext <<EOF
8862 #line 8863 "configure"
8863 #include "confdefs.h"
8866 #include <sys/procfs.h>
8871 if { (eval echo configure:8872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8873 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8878 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
8884 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
8885 cat >> confdefs.h <<\EOF
8886 #define HAVE_PR_SIGINFO64_T 1
8890 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
8896 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8897 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
8898 echo "configure:8899: checking whether prfpregset_t type is broken" >&5
8899 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8902 if test "$cross_compiling" = yes; then
8903 gdb_cv_prfpregset_t_broken=yes
8905 cat > conftest.$ac_ext <<EOF
8906 #line 8907 "configure"
8907 #include "confdefs.h"
8908 #include <sys/procfs.h>
8911 if (sizeof (prfpregset_t) == sizeof (void *))
8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8918 gdb_cv_prfpregset_t_broken=no
8920 echo "configure: failed program was:" >&5
8921 cat conftest.$ac_ext >&5
8923 gdb_cv_prfpregset_t_broken=yes
8930 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
8931 if test $gdb_cv_prfpregset_t_broken = yes; then
8932 cat >> confdefs.h <<\EOF
8933 #define PRFPREGSET_T_BROKEN 1
8940 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
8941 echo "configure:8942: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
8942 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8945 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8949 #include <sys/types.h>
8950 #include <sys/procfs.h>
8955 dummy = ioctl(0, PIOCSET, &dummy);
8959 if { (eval echo configure:8960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8961 gdb_cv_have_procfs_piocset=yes
8963 echo "configure: failed program was:" >&5
8964 cat conftest.$ac_ext >&5
8966 gdb_cv_have_procfs_piocset=no
8971 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8972 if test $gdb_cv_have_procfs_piocset = yes; then
8973 cat >> confdefs.h <<\EOF
8974 #define HAVE_PROCFS_PIOCSET 1
8980 if test ${host} = ${target} ; then
8982 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8983 echo "configure:8984: checking for member l_addr in struct link_map" >&5
8984 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8987 cat > conftest.$ac_ext <<EOF
8988 #line 8989 "configure"
8989 #include "confdefs.h"
8992 struct link_map lm; (void) lm.l_addr;
8995 if { (eval echo configure:8996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8997 gdb_cv_have_struct_link_map_with_l_members=yes
8999 echo "configure: failed program was:" >&5
9000 cat conftest.$ac_ext >&5
9002 gdb_cv_have_struct_link_map_with_l_members=no
9007 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
9008 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
9009 cat >> confdefs.h <<\EOF
9010 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
9016 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
9017 echo "configure:9018: checking for member lm_addr in struct link_map" >&5
9018 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
9019 echo $ac_n "(cached) $ac_c" 1>&6
9021 cat > conftest.$ac_ext <<EOF
9022 #line 9023 "configure"
9023 #include "confdefs.h"
9024 #include <sys/types.h>
9027 struct link_map lm; (void) lm.lm_addr;
9030 if { (eval echo configure:9031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9032 gdb_cv_have_struct_link_map_with_lm_members=yes
9034 echo "configure: failed program was:" >&5
9035 cat conftest.$ac_ext >&5
9037 gdb_cv_have_struct_link_map_with_lm_members=no
9042 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
9043 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
9044 cat >> confdefs.h <<\EOF
9045 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
9051 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
9052 echo "configure:9053: checking for member som_addr in struct so_map" >&5
9053 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9056 cat > conftest.$ac_ext <<EOF
9057 #line 9058 "configure"
9058 #include "confdefs.h"
9059 #include <sys/types.h>
9065 struct so_map lm; (void) lm.som_addr;
9068 if { (eval echo configure:9069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9070 gdb_cv_have_struct_so_map_with_som_members=yes
9072 echo "configure: failed program was:" >&5
9073 cat conftest.$ac_ext >&5
9075 gdb_cv_have_struct_so_map_with_som_members=no
9080 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
9081 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
9082 cat >> confdefs.h <<\EOF
9083 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
9089 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
9090 echo "configure:9091: checking for struct link_map32 in sys/link.h" >&5
9091 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9094 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9098 #include <sys/link.h>
9100 struct link_map32 l;
9103 if { (eval echo configure:9104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9105 gdb_cv_have_struct_link_map32=yes
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9110 gdb_cv_have_struct_link_map32=no
9115 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
9116 if test $gdb_cv_have_struct_link_map32 = yes; then
9117 cat >> confdefs.h <<\EOF
9118 #define HAVE_STRUCT_LINK_MAP32 1
9121 cat >> confdefs.h <<\EOF
9122 #define _SYSCALL32 1
9129 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
9130 echo "configure:9131: checking for long long support in compiler" >&5
9131 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
9132 echo $ac_n "(cached) $ac_c" 1>&6
9134 cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9140 extern long long foo;
9141 switch (foo & 2) { case 0: return 1; }
9145 if { (eval echo configure:9146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9147 gdb_cv_c_long_long=yes
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9152 gdb_cv_c_long_long=no
9157 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
9158 if test $gdb_cv_c_long_long = yes; then
9159 cat >> confdefs.h <<\EOF
9160 #define CC_HAS_LONG_LONG 1
9166 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
9167 echo "configure:9168: checking for long long support in printf" >&5
9168 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9171 if test "$cross_compiling" = yes; then
9172 gdb_cv_printf_has_long_long=no
9174 cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9181 l = (l << 16) + 0x0123;
9182 l = (l << 16) + 0x4567;
9183 l = (l << 16) + 0x89ab;
9184 l = (l << 16) + 0xcdef;
9185 sprintf (buf, "0x%016llx", l);
9186 return (strcmp ("0x0123456789abcdef", buf));
9189 if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9191 gdb_cv_printf_has_long_long=yes
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9196 gdb_cv_printf_has_long_long=no
9203 if test $gdb_cv_printf_has_long_long = yes; then
9204 cat >> confdefs.h <<\EOF
9205 #define PRINTF_HAS_LONG_LONG 1
9209 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
9212 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
9213 echo "configure:9214: checking for long double support in compiler" >&5
9214 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
9215 echo $ac_n "(cached) $ac_c" 1>&6
9217 cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9225 if { (eval echo configure:9226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9227 ac_cv_c_long_double=yes
9229 echo "configure: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9232 ac_cv_c_long_double=no
9237 echo "$ac_t""$ac_cv_c_long_double" 1>&6
9238 if test $ac_cv_c_long_double = yes; then
9239 cat >> confdefs.h <<\EOF
9240 #define HAVE_LONG_DOUBLE 1
9246 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
9247 echo "configure:9248: checking for long double support in printf" >&5
9248 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9251 if test "$cross_compiling" = yes; then
9252 gdb_cv_printf_has_long_double=no
9254 cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9260 long double f = 3.141592653;
9261 sprintf (buf, "%Lg", f);
9262 return (strncmp ("3.14159", buf, 7));
9265 if { (eval echo configure:9266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9267 gdb_cv_printf_has_long_double=yes
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9272 gdb_cv_printf_has_long_double=no
9279 if test $gdb_cv_printf_has_long_double = yes; then
9280 cat >> confdefs.h <<\EOF
9281 #define PRINTF_HAS_LONG_DOUBLE 1
9285 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
9288 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
9289 echo "configure:9290: checking for long double support in scanf" >&5
9290 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
9291 echo $ac_n "(cached) $ac_c" 1>&6
9293 if test "$cross_compiling" = yes; then
9294 gdb_cv_scanf_has_long_double=no
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9301 char *buf = "3.141592653";
9303 sscanf (buf, "%Lg", &f);
9304 return !(f > 3.14159 && f < 3.14160);
9307 if { (eval echo configure:9308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9309 gdb_cv_scanf_has_long_double=yes
9311 echo "configure: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9314 gdb_cv_scanf_has_long_double=no
9321 if test $gdb_cv_scanf_has_long_double = yes; then
9322 cat >> confdefs.h <<\EOF
9323 #define SCANF_HAS_LONG_DOUBLE 1
9327 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
9331 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
9332 echo "configure:9333: checking for -bbigtoc option" >&5
9333 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9337 SAVE_LDFLAGS=$LDFLAGS
9340 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9341 *) gdb_cv_bigtoc=-bbigtoc ;;
9344 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9345 cat > conftest.$ac_ext <<EOF
9346 #line 9347 "configure"
9347 #include "confdefs.h"
9353 if { (eval echo configure:9354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9356 echo "configure: failed program was:" >&5
9357 cat conftest.$ac_ext >&5
9362 LDFLAGS="${SAVE_LDFLAGS}"
9366 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
9367 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
9373 if test ${build} = ${host} -a ${host} = ${target} ; then
9376 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
9377 echo "configure:9378: checking for HPUX/OSF thread support" >&5
9378 if test -f /usr/include/dce/cma_config.h ; then
9379 if test "$GCC" = "yes" ; then
9380 echo "$ac_t""yes" 1>&6
9381 cat >> confdefs.h <<\EOF
9382 #define HAVE_HPUX_THREAD_SUPPORT 1
9385 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
9386 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
9388 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
9391 echo "$ac_t""no" 1>&6
9395 # See if thread_db library is around for Solaris thread debugging.
9396 # Note that we must explicitly test for version 1 of the library
9397 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
9399 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
9400 echo "configure:9401: checking for Solaris thread debugging library" >&5
9401 if test -f /usr/lib/libthread_db.so.1 ; then
9402 echo "$ac_t""yes" 1>&6
9403 cat >> confdefs.h <<\EOF
9404 #define HAVE_THREAD_DB_LIB 1
9407 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
9408 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
9409 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9410 echo "configure:9411: checking for dlopen in -ldl" >&5
9411 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
9412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9415 ac_save_LIBS="$LIBS"
9417 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9420 /* Override any gcc2 internal prototype to avoid an error. */
9421 /* We use char because int might match the return type of a gcc2
9422 builtin and then its argument prototype would still apply. */
9429 if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9431 eval "ac_cv_lib_$ac_lib_var=yes"
9433 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9436 eval "ac_cv_lib_$ac_lib_var=no"
9439 LIBS="$ac_save_LIBS"
9442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9443 echo "$ac_t""yes" 1>&6
9444 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9446 cat >> confdefs.h <<EOF
9447 #define $ac_tr_lib 1
9453 echo "$ac_t""no" 1>&6
9456 if test "$GCC" = "yes" ; then
9457 # The GNU linker requires the -export-dynamic option to make
9458 # all symbols visible in the dynamic symbol table.
9459 hold_ldflags=$LDFLAGS
9460 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
9461 echo "configure:9462: checking for the ld -export-dynamic flag" >&5
9462 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
9463 cat > conftest.$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9471 if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9481 LDFLAGS=$hold_ldflags
9482 echo "$ac_t""$found" 1>&6
9483 if test $found = yes; then
9484 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
9487 # Sun randomly tweaked the prototypes in <proc_service.h>
9489 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
9490 echo "configure:9491: checking if <proc_service.h> is old" >&5
9491 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9495 cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9499 #include <proc_service.h>
9501 (struct ps_prochandle*, psaddr_t, const void*, size_t);
9507 if { (eval echo configure:9508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9509 gdb_cv_proc_service_is_old=no
9511 echo "configure: failed program was:" >&5
9512 cat conftest.$ac_ext >&5
9514 gdb_cv_proc_service_is_old=yes
9520 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
9521 if test $gdb_cv_proc_service_is_old = yes; then
9522 cat >> confdefs.h <<\EOF
9523 #define PROC_SERVICE_IS_OLD 1
9528 echo "$ac_t""no" 1>&6
9532 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
9533 echo "configure:9534: checking for AiX thread debugging library" >&5
9534 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9537 cat > conftest.$ac_ext <<EOF
9538 #line 9539 "configure"
9539 #include "confdefs.h"
9540 #include <sys/pthdebug.h>
9542 #ifndef PTHDB_VERSION_3
9547 if { (eval echo configure:9548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9549 gdb_cv_have_aix_thread_debug=yes
9551 echo "configure: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9554 gdb_cv_have_aix_thread_debug=no
9559 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
9560 if test $gdb_cv_have_aix_thread_debug = yes; then
9561 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
9562 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
9563 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
9570 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
9571 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
9572 echo "configure:9573: checking whether <thread_db.h> has TD_NOTALLOC" >&5
9573 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9576 cat > conftest.$ac_ext <<EOF
9577 #line 9578 "configure"
9578 #include "confdefs.h"
9579 #include <thread_db.h>
9581 int i = TD_NOTALLOC;
9584 if { (eval echo configure:9585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9586 gdb_cv_thread_db_h_has_td_notalloc=yes
9588 echo "configure: failed program was:" >&5
9589 cat conftest.$ac_ext >&5
9591 gdb_cv_thread_db_h_has_td_notalloc=no
9598 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
9600 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
9601 cat >> confdefs.h <<\EOF
9602 #define THREAD_DB_HAS_TD_NOTALLOC 1
9607 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
9608 echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
9609 echo "configure:9610: checking whether <sys/syscall.h> has __NR_tkill" >&5
9610 if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
9611 echo $ac_n "(cached) $ac_c" 1>&6
9613 cat > conftest.$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 #include <sys/syscall.h>
9621 if { (eval echo configure:9622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9623 gdb_cv_sys_syscall_h_has_tkill=yes
9625 echo "configure: failed program was:" >&5
9626 cat conftest.$ac_ext >&5
9628 gdb_cv_sys_syscall_h_has_tkill=no
9635 echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
9637 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
9638 cat >> confdefs.h <<\EOF
9639 #define HAVE_TKILL_SYSCALL 1
9645 # Check whether --with-sysroot or --without-sysroot was given.
9646 if test "${with_sysroot+set}" = set; then
9647 withval="$with_sysroot"
9649 case ${with_sysroot} in
9650 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
9651 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
9654 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9656 if test "x$exec_prefix" = xNONE; then
9657 if test "x$prefix" = xNONE; then
9658 test_prefix=/usr/local
9663 test_prefix=$exec_prefix
9665 case ${TARGET_SYSTEM_ROOT} in
9666 "${test_prefix}"|"${test_prefix}/"*|\
9667 '${exec_prefix}'|'${exec_prefix}/'*)
9668 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9669 TARGET_SYSTEM_ROOT_DEFINE="$t"
9676 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
9683 # NOTE: Don't add -Wall or -Wunused, they both include
9684 # -Wunused-parameter which reports bogus warnings.
9685 # NOTE: If you add to this list, remember to update
9686 # gdb/doc/gdbint.texinfo.
9687 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
9688 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
9689 -Wunused-label -Wunused-function"
9690 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
9691 # -Wunused-function -Wunused-variable -Wunused-value
9692 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
9693 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
9694 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
9695 # -Woverloaded-virtual -Winline -Werror"
9696 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9697 if test "${enable_build_warnings+set}" = set; then
9698 enableval="$enable_build_warnings"
9699 case "${enableval}" in
9701 no) build_warnings="-w";;
9702 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9703 build_warnings="${build_warnings} ${t}";;
9704 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9705 build_warnings="${t} ${build_warnings}";;
9706 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9708 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
9709 echo "Setting compiler warning flags = $build_warnings" 6>&1
9712 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
9713 if test "${enable_gdb_build_warnings+set}" = set; then
9714 enableval="$enable_gdb_build_warnings"
9715 case "${enableval}" in
9717 no) build_warnings="-w";;
9718 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9719 build_warnings="${build_warnings} ${t}";;
9720 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9721 build_warnings="${t} ${build_warnings}";;
9722 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9724 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
9725 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9730 if test "x${build_warnings}" != x -a "x$GCC" = xyes
9732 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
9733 echo "configure:9734: checking compiler warning flags" >&5
9734 # Separate out the -Werror flag as some files just cannot be
9735 # compiled with it enabled.
9736 for w in ${build_warnings}; do
9738 -Werr*) WERROR_CFLAGS=-Werror ;;
9739 *) # Check that GCC accepts it
9740 saved_CFLAGS="$CFLAGS"
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9750 if { (eval echo configure:9751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9752 WARN_CFLAGS="${WARN_CFLAGS} $w"
9754 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9758 CFLAGS="$saved_CFLAGS"
9761 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
9766 # In the Cygwin environment, we need some additional flags.
9767 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
9768 echo "configure:9769: checking for cygwin" >&5
9769 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9772 cat > conftest.$ac_ext <<EOF
9773 #line 9774 "configure"
9774 #include "confdefs.h"
9776 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
9780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9781 egrep "lose" >/dev/null 2>&1; then
9783 gdb_cv_os_cygwin=yes
9792 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
9795 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
9797 *go32* ) SER_HARDWIRE=ser-go32.o ;;
9798 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
9802 # libreadline needs libuser32.a in a cygwin environment
9804 if test x$gdb_cv_os_cygwin = xyes; then
9805 WIN32LIBS="-luser32"
9807 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
9813 LIBGUI="../libgui/src/libgui.a"
9814 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
9832 if test "${enable_gdbtk}" = "yes"; then
9834 # Gdbtk must have an absolute path to srcdir in order to run
9835 # properly when not installed.
9843 # Ok, lets find the tcl configuration
9844 # First, look for one uninstalled.
9845 # the alternative search directory is invoked by --with-tclconfig
9848 if test x"${no_tcl}" = x ; then
9849 # we reset no_tcl in case something fails here
9851 # Check whether --with-tclconfig or --without-tclconfig was given.
9852 if test "${with_tclconfig+set}" = set; then
9853 withval="$with_tclconfig"
9854 with_tclconfig=${withval}
9857 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
9858 echo "configure:9859: checking for Tcl configuration" >&5
9859 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
9860 echo $ac_n "(cached) $ac_c" 1>&6
9864 # First check to see if --with-tclconfig was specified.
9865 if test x"${with_tclconfig}" != x ; then
9866 if test -f "${with_tclconfig}/tclConfig.sh" ; then
9867 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
9869 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
9873 # then check for a private Tcl installation
9874 if test x"${ac_cv_c_tclconfig}" = x ; then
9877 `ls -dr ../tcl[7-9]* 2>/dev/null` \
9879 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
9881 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
9882 if test -f "$i/${configdir}/tclConfig.sh" ; then
9883 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
9888 # check in a few common install locations
9889 if test x"${ac_cv_c_tclconfig}" = x ; then
9890 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9891 if test -f "$i/tclConfig.sh" ; then
9892 ac_cv_c_tclconfig=`(cd $i; pwd)`
9897 # check in a few other private locations
9898 if test x"${ac_cv_c_tclconfig}" = x ; then
9901 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
9902 if test -f "$i/${configdir}/tclConfig.sh" ; then
9903 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
9911 if test x"${ac_cv_c_tclconfig}" = x ; then
9912 TCLCONFIG="# no Tcl configs found"
9913 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
9916 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
9917 echo "$ac_t""found $TCLCONFIG" 1>&6
9921 if test -z "${no_tcl}"; then
9952 # Ok, lets find the tk configuration
9953 # First, look for one uninstalled.
9954 # the alternative search directory is invoked by --with-tkconfig
9957 if test x"${no_tk}" = x ; then
9958 # we reset no_tk in case something fails here
9960 # Check whether --with-tkconfig or --without-tkconfig was given.
9961 if test "${with_tkconfig+set}" = set; then
9962 withval="$with_tkconfig"
9963 with_tkconfig=${withval}
9966 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
9967 echo "configure:9968: checking for Tk configuration" >&5
9968 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9973 # First check to see if --with-tkconfig was specified.
9974 if test x"${with_tkconfig}" != x ; then
9975 if test -f "${with_tkconfig}/tkConfig.sh" ; then
9976 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
9978 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
9982 # then check for a private Tk library
9983 if test x"${ac_cv_c_tkconfig}" = x ; then
9986 `ls -dr ../tk[4-9]* 2>/dev/null` \
9988 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9990 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9991 if test -f "$i/${configdir}/tkConfig.sh" ; then
9992 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
9997 # check in a few common install locations
9998 if test x"${ac_cv_c_tkconfig}" = x ; then
9999 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10000 if test -f "$i/tkConfig.sh" ; then
10001 ac_cv_c_tkconfig=`(cd $i; pwd)`
10006 # check in a few other private locations
10007 if test x"${ac_cv_c_tkconfig}" = x ; then
10010 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
10011 if test -f "$i/${configdir}/tkConfig.sh" ; then
10012 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
10020 if test x"${ac_cv_c_tkconfig}" = x ; then
10021 TKCONFIG="# no Tk configs found"
10022 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
10025 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
10026 echo "$ac_t""found $TKCONFIG" 1>&6
10032 # now look for Tcl library stuff
10034 tcldir="../tcl/${configdir}/"
10036 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
10038 # If $no_tk is nonempty, then we can't do Tk, and there is no
10039 # point to doing Tcl.
10040 if test -z "${no_tk}"; then
10042 if test -f "$TKCONFIG" ; then
10060 # Ok, lets find the tcl source trees so we can use the headers
10061 # Warning: transition of version 9 to 10 will break this algorithm
10062 # because 10 sorts before 9. We also look for just tcl. We have to
10063 # be careful that we don't match stuff like tclX by accident.
10064 # the alternative search directory is involked by --with-tclinclude
10068 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
10069 echo "configure:10070: checking for Tcl private headers. dir=${configdir}" >&5
10070 # Check whether --with-tclinclude or --without-tclinclude was given.
10071 if test "${with_tclinclude+set}" = set; then
10072 withval="$with_tclinclude"
10073 with_tclinclude=${withval}
10076 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10080 # first check to see if --with-tclinclude was specified
10081 if test x"${with_tclinclude}" != x ; then
10082 if test -f ${with_tclinclude}/tclInt.h ; then
10083 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
10084 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
10085 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
10087 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
10091 # next check if it came with Tcl configuration file
10092 if test x"${ac_cv_c_tclconfig}" = x ; then
10093 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
10094 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
10098 # next check in private source directory
10100 # since ls returns lowest version numbers first, reverse its output
10101 if test x"${ac_cv_c_tclh}" = x ; then
10104 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
10105 ${srcdir}/../../tcl \
10106 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
10107 ${srcdir}/../../../tcl \
10108 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
10109 if test -f $i/generic/tclInt.h ; then
10110 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10115 # finally check in a few common install locations
10117 # since ls returns lowest version numbers first, reverse its output
10118 if test x"${ac_cv_c_tclh}" = x ; then
10120 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
10121 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
10122 /usr/local/src/tcl \
10123 /usr/local/lib/tcl \
10124 ${prefix}/include ; do
10125 if test -f $i/generic/tclInt.h ; then
10126 ac_cv_c_tclh=`(cd $i/generic; pwd)`
10131 # see if one is installed
10132 if test x"${ac_cv_c_tclh}" = x ; then
10133 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
10134 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
10135 echo "configure:10136: checking for tclInt.h" >&5
10136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10139 cat > conftest.$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 #include <tclInt.h>
10144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10145 { (eval echo configure:10146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10147 if test -z "$ac_err"; then
10149 eval "ac_cv_header_$ac_safe=yes"
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10155 eval "ac_cv_header_$ac_safe=no"
10159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10160 echo "$ac_t""yes" 1>&6
10161 ac_cv_c_tclh=installed
10163 echo "$ac_t""no" 1>&6
10171 if test x"${ac_cv_c_tclh}" = x ; then
10172 TCLHDIR="# no Tcl private headers found"
10173 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
10175 if test x"${ac_cv_c_tclh}" != x ; then
10177 if test x"${ac_cv_c_tclh}" = x"installed" ; then
10178 echo "$ac_t""is installed" 1>&6
10181 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
10182 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
10183 TCLHDIR="-I${ac_cv_c_tclh}"
10191 # Ok, lets find the tk source trees so we can use the headers
10192 # If the directory (presumably symlink) named "tk" exists, use that one
10193 # in preference to any others. Same logic is used when choosing library
10194 # and again with Tcl. The search order is the best place to look first, then in
10195 # decreasing significance. The loop breaks if the trigger file is found.
10196 # Note the gross little conversion here of srcdir by cd'ing to the found
10197 # directory. This converts the path from a relative to an absolute, so
10198 # recursive cache variables for the path will work right. We check all
10199 # the possible paths in one loop rather than many seperate loops to speed
10201 # the alternative search directory is involked by --with-tkinclude
10204 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
10205 echo "configure:10206: checking for Tk private headers" >&5
10206 # Check whether --with-tkinclude or --without-tkinclude was given.
10207 if test "${with_tkinclude+set}" = set; then
10208 withval="$with_tkinclude"
10209 with_tkinclude=${withval}
10212 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
10213 echo $ac_n "(cached) $ac_c" 1>&6
10216 # first check to see if --with-tkinclude was specified
10217 if test x"${with_tkinclude}" != x ; then
10218 if test -f ${with_tkinclude}/tk.h ; then
10219 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
10220 elif test -f ${with_tkinclude}/generic/tk.h ; then
10221 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
10223 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
10227 # next check if it came with Tk configuration file
10228 if test x"${ac_cv_c_tkconfig}" = x ; then
10229 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
10230 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
10234 # next check in private source directory
10236 # since ls returns lowest version numbers first, reverse its output
10237 if test x"${ac_cv_c_tkh}" = x ; then
10240 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
10241 ${srcdir}/../../tk \
10242 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
10243 ${srcdir}/../../../tk \
10244 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
10245 if test -f $i/generic/tk.h ; then
10246 ac_cv_c_tkh=`(cd $i/generic; pwd)`
10251 # finally check in a few common install locations
10253 # since ls returns lowest version numbers first, reverse its output
10254 if test x"${ac_cv_c_tkh}" = x ; then
10256 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
10257 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
10258 /usr/local/src/tk \
10259 /usr/local/lib/tk \
10260 ${prefix}/include ; do
10261 if test -f $i/generic/tk.h ; then
10262 ac_cv_c_tkh=`(cd $i/generic; pwd)`
10267 # see if one is installed
10268 if test x"${ac_cv_c_tkh}" = x ; then
10269 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
10270 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
10271 echo "configure:10272: checking for tk.h" >&5
10272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10275 cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10281 { (eval echo configure:10282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10283 if test -z "$ac_err"; then
10285 eval "ac_cv_header_$ac_safe=yes"
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10291 eval "ac_cv_header_$ac_safe=no"
10295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10296 echo "$ac_t""yes" 1>&6
10297 ac_cv_c_tkh=installed
10299 echo "$ac_t""no" 1>&6
10307 if test x"${ac_cv_c_tkh}" != x ; then
10309 if test x"${ac_cv_c_tkh}" = x"installed" ; then
10310 echo "$ac_t""is installed" 1>&6
10313 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
10314 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
10315 TKHDIR="-I${ac_cv_c_tkh}"
10318 TKHDIR="# no Tk directory found"
10319 echo "configure: warning: Can't find Tk private headers" 1>&2
10326 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
10327 echo "configure:10328: checking for Itcl private headers. srcdir=${srcdir}" >&5
10328 if test x"${ac_cv_c_itclh}" = x ; then
10329 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
10330 if test -f $i/generic/itcl.h ; then
10331 ac_cv_c_itclh=`(cd $i/generic; pwd)`
10336 if test x"${ac_cv_c_itclh}" = x ; then
10337 ITCLHDIR="# no Itcl private headers found"
10338 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
10340 if test x"${ac_cv_c_itclh}" != x ; then
10341 ITCLHDIR="-I${ac_cv_c_itclh}"
10343 # should always be here
10344 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
10349 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
10350 echo "configure:10351: checking for Itk private headers. srcdir=${srcdir}" >&5
10351 if test x"${ac_cv_c_itkh}" = x ; then
10352 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
10353 if test -f $i/generic/itk.h ; then
10354 ac_cv_c_itkh=`(cd $i/generic; pwd)`
10359 if test x"${ac_cv_c_itkh}" = x ; then
10360 ITKHDIR="# no Itk private headers found"
10361 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
10363 if test x"${ac_cv_c_itkh}" != x ; then
10364 ITKHDIR="-I${ac_cv_c_itkh}"
10366 # should always be here
10367 # ITKLIB="../itcl/itk/unix/libitk.a"
10373 # now look for Tk library stuff
10375 tkdir="../tk/${configdir}/"
10377 TK_DEPS="${tkdir}${TK_LIB_FILE}"
10379 # now look for Itcl library stuff
10383 # Ok, lets find the itcl configuration
10384 # First, look for one uninstalled.
10385 # the alternative search directory is invoked by --with-itclconfig
10388 if test x"${no_itcl}" = x ; then
10389 # we reset no_itcl in case something fails here
10391 # Check whether --with-itclconfig or --without-itclconfig was given.
10392 if test "${with_itclconfig+set}" = set; then
10393 withval="$with_itclconfig"
10394 with_itclconfig=${withval}
10397 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
10398 echo "configure:10399: checking for Itcl configuration" >&5
10399 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10404 # First check to see if --with-itclconfig was specified.
10405 if test x"${with_itclconfig}" != x ; then
10406 if test -f "${with_itclconfig}/itclConfig.sh" ; then
10407 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
10409 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
10413 # then check for a private Itcl library
10414 if test x"${ac_cv_c_itclconfig}" = x ; then
10417 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
10419 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
10421 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
10422 if test -f "$i/itclConfig.sh" ; then
10423 ac_cv_c_itclconfig=`(cd $i; pwd)`
10428 # check in a few common install locations
10429 if test x"${ac_cv_c_itclconfig}" = x ; then
10430 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10431 if test -f "$i/itclConfig.sh" ; then
10432 ac_cv_c_itclconfig=`(cd $i; pwd)`
10437 # check in a few other private locations
10438 if test x"${ac_cv_c_itclconfig}" = x ; then
10440 ${srcdir}/../itcl/itcl \
10441 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
10442 if test -f "$i/itclConfig.sh" ; then
10443 ac_cv_c_itclconfig=`(cd $i; pwd)`
10451 if test x"${ac_cv_c_itclconfig}" = x ; then
10452 ITCLCONFIG="# no Itcl configs found"
10453 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
10456 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
10457 echo "$ac_t""found $ITCLCONFIG" 1>&6
10461 if test -z "${no_itcl}"; then
10463 if test -f "$ITCLCONFIG" ; then
10478 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
10479 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
10483 # now look for Itk library stuff
10486 # Ok, lets find the itk configuration
10487 # First, look for one uninstalled.
10488 # the alternative search directory is invoked by --with-itkconfig
10491 if test x"${no_itk}" = x ; then
10492 # we reset no_itk in case something fails here
10494 # Check whether --with-itkconfig or --without-itkconfig was given.
10495 if test "${with_itkconfig+set}" = set; then
10496 withval="$with_itkconfig"
10497 with_itkconfig=${withval}
10500 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
10501 echo "configure:10502: checking for Itk configuration" >&5
10502 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
10507 # First check to see if --with-itkconfig was specified.
10508 if test x"${with_itkconfig}" != x ; then
10509 if test -f "${with_itkconfig}/itkConfig.sh" ; then
10510 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
10512 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
10516 # then check for a private Itk library
10517 if test x"${ac_cv_c_itkconfig}" = x ; then
10520 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
10522 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
10524 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
10525 if test -f "$i/itkConfig.sh" ; then
10526 ac_cv_c_itkconfig=`(cd $i; pwd)`
10531 # check in a few common install locations
10532 if test x"${ac_cv_c_itkconfig}" = x ; then
10533 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10534 if test -f "$i/itkConfig.sh" ; then
10535 ac_cv_c_itkconfig=`(cd $i; pwd)`
10540 # check in a few other private locations
10541 if test x"${ac_cv_c_itkconfig}" = x ; then
10543 ${srcdir}/../itcl/itk \
10544 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
10545 if test -f "$i/itkConfig.sh" ; then
10546 ac_cv_c_itkconfig=`(cd $i; pwd)`
10554 if test x"${ac_cv_c_itkconfig}" = x ; then
10555 ITKCONFIG="# no Itk configs found"
10556 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
10559 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
10560 echo "$ac_t""found $ITKCONFIG" 1>&6
10565 if test -z "${no_itcl}"; then
10567 if test -f "$ITKCONFIG" ; then
10582 ITKLIB="${ITK_BUILD_LIB_SPEC}"
10583 ITK_DEPS="${ITK_LIB_FULL_PATH}"
10586 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
10587 # Tcl/Tk 8.1 require -fwritable strings. I don't
10588 # know whether 8.2 will or not, but I bet it will.
10589 # I don't have to worry about 7.x since we don't support it.
10591 if test "$GCC" = "yes"; then
10592 if test "$TCL_VERSION" != "8.0" ; then
10593 GDBTK_CFLAGS="-fwritable-strings"
10597 # Include some libraries that Tcl and Tk want.
10598 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
10599 # Yes, the ordering seems wrong here. But it isn't.
10600 # TK_LIBS is the list of libraries that need to be linked
10601 # after Tcl/Tk. Note that this isn't put into LIBS. If it
10602 # were in LIBS then any link tests after this point would
10603 # try to include things like `$(LIBGUI)', which wouldn't work.
10604 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
10606 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
10607 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
10608 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
10609 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
10610 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
10611 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
10612 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
10614 if test x$gdb_cv_os_cygwin = xyes; then
10615 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
10616 WIN32LDAPP="-Wl,--subsystem,console"
10617 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
10622 configdirs="${configdirs} gdbtk"
10638 # If we find X, set shell vars x_includes and x_libraries to the
10639 # paths, otherwise set no_x=yes.
10640 # Uses ac_ vars as temps to allow command line to override cache and checks.
10641 # --without-x overrides everything else, but does not touch the cache.
10642 echo $ac_n "checking for X""... $ac_c" 1>&6
10643 echo "configure:10644: checking for X" >&5
10645 # Check whether --with-x or --without-x was given.
10646 if test "${with_x+set}" = set; then
10651 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10652 if test "x$with_x" = xno; then
10653 # The user explicitly disabled X.
10656 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10657 # Both variables are already set.
10660 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10661 echo $ac_n "(cached) $ac_c" 1>&6
10663 # One or both of the vars are not set, and there is no cached value.
10664 ac_x_includes=NO ac_x_libraries=NO
10666 if mkdir conftestdir; then
10668 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10669 cat > Imakefile <<'EOF'
10671 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10673 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10675 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10676 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10677 for ac_extension in a so sl; do
10678 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10679 test -f $ac_im_libdir/libX11.$ac_extension; then
10680 ac_im_usrlibdir=$ac_im_libdir; break
10683 # Screen out bogus values from the imake configuration. They are
10684 # bogus both because they are the default anyway, and because
10685 # using them would break gcc on systems where it needs fixed includes.
10686 case "$ac_im_incroot" in
10688 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10690 case "$ac_im_usrlibdir" in
10691 /usr/lib | /lib) ;;
10692 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10699 if test "$ac_x_includes" = NO; then
10700 # Guess where to find include files, by looking for this one X11 .h file.
10701 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10703 # First, try using that file with no special directory specified.
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include <$x_direct_test_include>
10709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10710 { (eval echo configure:10711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10712 if test -z "$ac_err"; then
10714 # We can compile using X headers with no special include directory.
10718 echo "configure: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10721 # Look for the header file in a standard set of common directories.
10722 # Check X11 before X11Rn because it is often a symlink to the current release.
10725 /usr/X11R6/include \
10726 /usr/X11R5/include \
10727 /usr/X11R4/include \
10730 /usr/include/X11R6 \
10731 /usr/include/X11R5 \
10732 /usr/include/X11R4 \
10734 /usr/local/X11/include \
10735 /usr/local/X11R6/include \
10736 /usr/local/X11R5/include \
10737 /usr/local/X11R4/include \
10739 /usr/local/include/X11 \
10740 /usr/local/include/X11R6 \
10741 /usr/local/include/X11R5 \
10742 /usr/local/include/X11R4 \
10744 /usr/X386/include \
10745 /usr/x386/include \
10746 /usr/XFree86/include/X11 \
10749 /usr/local/include \
10750 /usr/unsupported/include \
10751 /usr/athena/include \
10752 /usr/local/x11r5/include \
10753 /usr/lpp/Xamples/include \
10755 /usr/openwin/include \
10756 /usr/openwin/share/include \
10759 if test -r "$ac_dir/$x_direct_test_include"; then
10760 ac_x_includes=$ac_dir
10766 fi # $ac_x_includes = NO
10768 if test "$ac_x_libraries" = NO; then
10769 # Check for the libraries.
10771 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10772 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10774 # See if we find them without any special options.
10775 # Don't add to $LIBS permanently.
10776 ac_save_LIBS="$LIBS"
10777 LIBS="-l$x_direct_test_library $LIBS"
10778 cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10783 ${x_direct_test_function}()
10786 if { (eval echo configure:10787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10788 LIBS="$ac_save_LIBS"
10789 # We can link X programs with no special library path.
10792 echo "configure: failed program was:" >&5
10793 cat conftest.$ac_ext >&5
10795 LIBS="$ac_save_LIBS"
10796 # First see if replacing the include by lib works.
10797 # Check X11 before X11Rn because it is often a symlink to the current release.
10798 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10809 /usr/local/X11/lib \
10810 /usr/local/X11R6/lib \
10811 /usr/local/X11R5/lib \
10812 /usr/local/X11R4/lib \
10814 /usr/local/lib/X11 \
10815 /usr/local/lib/X11R6 \
10816 /usr/local/lib/X11R5 \
10817 /usr/local/lib/X11R4 \
10821 /usr/XFree86/lib/X11 \
10825 /usr/unsupported/lib \
10827 /usr/local/x11r5/lib \
10828 /usr/lpp/Xamples/lib \
10832 /usr/openwin/share/lib \
10835 for ac_extension in a so sl; do
10836 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10837 ac_x_libraries=$ac_dir
10844 fi # $ac_x_libraries = NO
10846 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10847 # Didn't find X anywhere. Cache the known absence of X.
10848 ac_cv_have_x="have_x=no"
10850 # Record where we found X for the cache.
10851 ac_cv_have_x="have_x=yes \
10852 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10856 eval "$ac_cv_have_x"
10859 if test "$have_x" != yes; then
10860 echo "$ac_t""$have_x" 1>&6
10863 # If each of the values was on the command line, it overrides each guess.
10864 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10865 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10866 # Update the cache value to reflect the command line values.
10867 ac_cv_have_x="have_x=yes \
10868 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10869 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10874 # Unlike the sim directory, whether a simulator is linked is controlled by
10875 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
10876 # This code just checks for a few cases where we'd like to ignore those
10877 # definitions, even when they're present in the '.mt' file. These cases
10878 # are when --disable-sim is specified, or if the simulator directory is
10879 # not part of the source tree.
10881 # Check whether --enable-sim or --disable-sim was given.
10882 if test "${enable_sim+set}" = set; then
10883 enableval="$enable_sim"
10884 echo "enable_sim = $enable_sim";
10885 echo "enableval = ${enableval}";
10886 case "${enableval}" in
10887 yes) ignore_sim=false ;;
10888 no) ignore_sim=true ;;
10889 *) ignore_sim=false ;;
10896 if test ! -d "${srcdir}/../sim"; then
10900 if test "${ignore_sim}" = "true"; then
10902 IGNORE_SIM_OBS="SIM_OBS="
10906 cat >> confdefs.h <<\EOF
10925 # List of host floatformats.
10926 cat >> confdefs.h <<EOF
10927 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
10930 cat >> confdefs.h <<EOF
10931 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
10934 cat >> confdefs.h <<EOF
10935 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
10939 # target_subdir is used by the testsuite to find the target libraries.
10941 if test "${host}" != "${target}"; then
10942 target_subdir="${target_alias}/"
10947 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
10948 if test ! -f ${host_makefile_frag}; then
10949 # When building a native debuger the .mh file containing things
10950 # like NATDEPFILES is needed. Cross debuggers don't need .mh
10951 # since it no longer contains anything useful.
10952 if test "${target}" = "${host}"; then
10953 { echo "configure: error: "*** Gdb does not support native target ${host}"" 1>&2; exit 1; }
10955 host_makefile_frag=/dev/null
10958 frags="$frags $host_makefile_frag"
10960 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
10961 if test ! -f ${target_makefile_frag}; then
10962 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
10964 frags="$frags $target_makefile_frag"
10971 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10972 ' ${host_makefile_frag}`
10974 targetfile=`sed -n '
10975 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10976 ' ${target_makefile_frag}`
10978 if test "${target}" = "${host}"; then
10979 # We pick this up from the host configuration file (.mh) because we
10980 # do not have a native configuration Makefile fragment.
10981 nativefile=`sed -n '
10982 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10983 ' ${host_makefile_frag}`
10987 if test x"${gdb_osabi}" != x ; then
10988 cat >> confdefs.h <<EOF
10989 #define GDB_OSABI_DEFAULT $gdb_osabi
10994 # Enable multi-ice-gdb-server.
10995 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10996 if test "${enable_multi_ice+set}" = set; then
10997 enableval="$enable_multi_ice"
11001 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
11005 if test "x$enable_multi_ice" = xyes; then
11006 configdirs="$configdirs multi-ice"
11009 # We only build gdbserver automatically if host and target are the same.
11010 if test "x$target" = "x$host"; then
11011 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
11012 echo "configure:11013: checking whether gdbserver is supported on this host" >&5
11013 if test "x$build_gdbserver" = xyes; then
11014 configdirs="$configdirs gdbserver"
11015 echo "$ac_t""yes" 1>&6
11017 echo "$ac_t""no" 1>&6
11021 subdirs="doc testsuite $configdirs"
11024 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
11025 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
11033 if test "${hostfile}" != ""; then
11035 GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}"
11036 files="${files} ${GDB_XM_FILE}"
11037 links="${links} xm.h"
11038 cat >> confdefs.h <<EOF
11039 #define GDB_XM_FILE ${GDB_XM_FILE}
11047 if test "${targetfile}" != ""; then
11049 GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}"
11050 files="${files} ${GDB_TM_FILE}"
11051 links="${links} tm.h"
11052 cat >> confdefs.h <<EOF
11053 #define GDB_TM_FILE ${GDB_TM_FILE}
11061 if test "${nativefile}" != ""; then
11063 GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}"
11064 files="${files} ${GDB_NM_FILE}"
11065 links="${links} nm.h"
11066 cat >> confdefs.h <<EOF
11067 #define GDB_NM_FILE ${GDB_NM_FILE}
11075 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
11076 echo "configure:11077: checking for Cygwin environment" >&5
11077 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11087 #define __CYGWIN__ __CYGWIN32__
11092 if { (eval echo configure:11093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11105 echo "$ac_t""$ac_cv_cygwin" 1>&6
11107 test "$ac_cv_cygwin" = yes && CYGWIN=yes
11108 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
11109 echo "configure:11110: checking for mingw32 environment" >&5
11110 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
11111 echo $ac_n "(cached) $ac_c" 1>&6
11113 cat > conftest.$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11118 return __MINGW32__;
11121 if { (eval echo configure:11122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11125 echo "configure: failed program was:" >&5
11126 cat conftest.$ac_ext >&5
11134 echo "$ac_t""$ac_cv_mingw32" 1>&6
11136 test "$ac_cv_mingw32" = yes && MINGW32=yes
11139 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
11140 echo "configure:11141: checking for executable suffix" >&5
11141 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
11142 echo $ac_n "(cached) $ac_c" 1>&6
11144 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
11148 echo 'int main () { return 0; }' > conftest.$ac_ext
11150 if { (eval echo configure:11151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
11151 for file in conftest.*; do
11153 *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
11154 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
11158 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
11161 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
11166 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
11167 echo "$ac_t""${ac_cv_exeext}" 1>&6
11172 cat >> confdefs.h <<\EOF
11173 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
11179 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11180 if test "${with_libiconv_prefix+set}" = set; then
11181 withval="$with_libiconv_prefix"
11183 for dir in `echo "$withval" | tr : ' '`; do
11184 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
11185 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
11191 echo $ac_n "checking for iconv""... $ac_c" 1>&6
11192 echo "configure:11193: checking for iconv" >&5
11193 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11197 am_cv_func_iconv="no, consider installing GNU libiconv"
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11202 #include <stdlib.h>
11205 iconv_t cd = iconv_open("","");
11206 iconv(cd,NULL,NULL,NULL,NULL);
11210 if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11212 am_cv_func_iconv=yes
11214 echo "configure: failed program was:" >&5
11215 cat conftest.$ac_ext >&5
11218 if test "$am_cv_func_iconv" != yes; then
11219 am_save_LIBS="$LIBS"
11220 LIBS="$LIBS -liconv"
11221 cat > conftest.$ac_ext <<EOF
11222 #line 11223 "configure"
11223 #include "confdefs.h"
11224 #include <stdlib.h>
11227 iconv_t cd = iconv_open("","");
11228 iconv(cd,NULL,NULL,NULL,NULL);
11232 if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11234 am_cv_lib_iconv=yes
11235 am_cv_func_iconv=yes
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11241 LIBS="$am_save_LIBS"
11246 echo "$ac_t""$am_cv_func_iconv" 1>&6
11247 if test "$am_cv_func_iconv" = yes; then
11248 cat >> confdefs.h <<\EOF
11249 #define HAVE_ICONV 1
11252 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
11253 echo "configure:11254: checking for iconv declaration" >&5
11254 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
11255 echo $ac_n "(cached) $ac_c" 1>&6
11258 cat > conftest.$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11262 #include <stdlib.h>
11268 #if defined(__STDC__) || defined(__cplusplus)
11269 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11278 if { (eval echo configure:11279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11280 am_cv_proto_iconv_arg1=""
11282 echo "configure: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11285 am_cv_proto_iconv_arg1="const"
11288 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);"
11291 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11292 echo "$ac_t""${ac_t:-
11293 }$am_cv_proto_iconv" 1>&6
11294 cat >> confdefs.h <<EOF
11295 #define ICONV_CONST $am_cv_proto_iconv_arg1
11300 if test "$am_cv_lib_iconv" = yes; then
11307 cat > confcache <<\EOF
11308 # This file is a shell script that caches the results of configure
11309 # tests run on this system so they can be shared between configure
11310 # scripts and configure runs. It is not useful on other systems.
11311 # If it contains results you don't want to keep, you may remove or edit it.
11313 # By default, configure uses ./config.cache as the cache file,
11314 # creating it if it does not exist already. You can give configure
11315 # the --cache-file=FILE option to use a different cache file; that is
11316 # what configure does when it calls configure scripts in
11317 # subdirectories, so they share the cache.
11318 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11319 # config.status only pays attention to the cache file if you give it the
11320 # --recheck option to rerun configure.
11323 # The following way of writing the cache mishandles newlines in values,
11324 # but we know of no workaround that is simple, portable, and efficient.
11325 # So, don't put newlines in cache variables' values.
11326 # Ultrix sh set writes to stderr and can't be redirected directly,
11327 # and sets the high bit in the cache file unless we assign to the vars.
11329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11331 # `set' does not quote correctly, so add quotes (double-quote substitution
11332 # turns \\\\ into \\, and sed turns \\ into \).
11334 -e "s/'/'\\\\''/g" \
11335 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11338 # `set' quotes correctly as required by POSIX, so do not add quotes.
11339 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11342 if cmp -s $cache_file confcache; then
11345 if test -w $cache_file; then
11346 echo "updating cache $cache_file"
11347 cat confcache > $cache_file
11349 echo "not updating unwritable cache $cache_file"
11354 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11356 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11357 # Let make expand exec_prefix.
11358 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11360 # Any assignment to VPATH causes Sun make to only execute
11361 # the first set of double-colon rules, so remove it if not needed.
11362 # If there is a colon in the path, we need to keep it.
11363 if test "x$srcdir" = x.; then
11364 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11367 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11369 DEFS=-DHAVE_CONFIG_H
11371 # Without the "./", some shells look in PATH for config.status.
11372 : ${CONFIG_STATUS=./config.status}
11374 echo creating $CONFIG_STATUS
11375 rm -f $CONFIG_STATUS
11376 cat > $CONFIG_STATUS <<EOF
11378 # Generated automatically by configure.
11379 # Run this file to recreate the current configuration.
11380 # This directory was configured as follows,
11381 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11383 # $0 $ac_configure_args
11385 # Compiler output produced by configure, useful for debugging
11386 # configure, is in ./config.log if it exists.
11388 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11391 case "\$ac_option" in
11392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11393 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11394 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11395 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11396 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11398 -help | --help | --hel | --he | --h)
11399 echo "\$ac_cs_usage"; exit 0 ;;
11400 *) echo "\$ac_cs_usage"; exit 1 ;;
11404 ac_given_srcdir=$srcdir
11405 ac_given_INSTALL="$INSTALL"
11407 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11409 cat >> $CONFIG_STATUS <<EOF
11411 # Protect against being on the right side of a sed subst in config.status.
11412 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11413 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11417 s%@CFLAGS@%$CFLAGS%g
11418 s%@CPPFLAGS@%$CPPFLAGS%g
11419 s%@CXXFLAGS@%$CXXFLAGS%g
11420 s%@FFLAGS@%$FFLAGS%g
11422 s%@LDFLAGS@%$LDFLAGS%g
11424 s%@exec_prefix@%$exec_prefix%g
11425 s%@prefix@%$prefix%g
11426 s%@program_transform_name@%$program_transform_name%g
11427 s%@bindir@%$bindir%g
11428 s%@sbindir@%$sbindir%g
11429 s%@libexecdir@%$libexecdir%g
11430 s%@datadir@%$datadir%g
11431 s%@sysconfdir@%$sysconfdir%g
11432 s%@sharedstatedir@%$sharedstatedir%g
11433 s%@localstatedir@%$localstatedir%g
11434 s%@libdir@%$libdir%g
11435 s%@includedir@%$includedir%g
11436 s%@oldincludedir@%$oldincludedir%g
11437 s%@infodir@%$infodir%g
11438 s%@mandir@%$mandir%g
11439 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
11440 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
11445 s%@host_alias@%$host_alias%g
11446 s%@host_cpu@%$host_cpu%g
11447 s%@host_vendor@%$host_vendor%g
11448 s%@host_os@%$host_os%g
11449 s%@target@%$target%g
11450 s%@target_alias@%$target_alias%g
11451 s%@target_cpu@%$target_cpu%g
11452 s%@target_vendor@%$target_vendor%g
11453 s%@target_os@%$target_os%g
11455 s%@build_alias@%$build_alias%g
11456 s%@build_cpu@%$build_cpu%g
11457 s%@build_vendor@%$build_vendor%g
11458 s%@build_os@%$build_os%g
11459 s%@RANLIB@%$RANLIB%g
11460 s%@SET_MAKE@%$SET_MAKE%g
11461 s%@ALLOCA@%$ALLOCA%g
11462 s%@USE_NLS@%$USE_NLS%g
11463 s%@MSGFMT@%$MSGFMT%g
11464 s%@GMSGFMT@%$GMSGFMT%g
11465 s%@XGETTEXT@%$XGETTEXT%g
11466 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
11467 s%@CATALOGS@%$CATALOGS%g
11468 s%@CATOBJEXT@%$CATOBJEXT%g
11469 s%@DATADIRNAME@%$DATADIRNAME%g
11470 s%@GMOFILES@%$GMOFILES%g
11471 s%@INSTOBJEXT@%$INSTOBJEXT%g
11472 s%@INTLDEPS@%$INTLDEPS%g
11473 s%@INTLLIBS@%$INTLLIBS%g
11474 s%@INTLOBJS@%$INTLOBJS%g
11475 s%@POFILES@%$POFILES%g
11477 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
11479 s%@GT_YES@%$GT_YES%g
11480 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
11482 s%@localedir@%$localedir%g
11483 s%@PACKAGE@%$PACKAGE%g
11484 s%@subdirs@%$subdirs%g
11486 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11487 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11488 s%@INSTALL_DATA@%$INSTALL_DATA%g
11492 s%@DLLTOOL@%$DLLTOOL%g
11493 s%@WINDRES@%$WINDRES%g
11495 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
11496 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
11497 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
11498 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
11499 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
11500 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
11501 s%@WIN32LIBS@%$WIN32LIBS%g
11502 s%@LIBGUI@%$LIBGUI%g
11503 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
11504 s%@WIN32LDAPP@%$WIN32LDAPP%g
11505 s%@TCL_VERSION@%$TCL_VERSION%g
11506 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
11507 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
11508 s%@TCL_CC@%$TCL_CC%g
11509 s%@TCL_DEFS@%$TCL_DEFS%g
11510 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
11511 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
11512 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
11513 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
11514 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
11515 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
11516 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
11517 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
11518 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
11519 s%@TCL_RANLIB@%$TCL_RANLIB%g
11520 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
11521 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
11522 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
11523 s%@TK_VERSION@%$TK_VERSION%g
11524 s%@TK_DEFS@%$TK_DEFS%g
11525 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
11526 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
11527 s%@TK_XLIBSW@%$TK_XLIBSW%g
11528 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
11529 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
11530 s%@TCLHDIR@%$TCLHDIR%g
11531 s%@TKHDIR@%$TKHDIR%g
11532 s%@ITCLHDIR@%$ITCLHDIR%g
11533 s%@ITKHDIR@%$ITKHDIR%g
11534 s%@ITCL_VERSION@%$ITCL_VERSION%g
11535 s%@ITCL_DEFS@%$ITCL_DEFS%g
11536 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
11537 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
11538 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
11539 s%@ITK_VERSION@%$ITK_VERSION%g
11540 s%@ITK_DEFS@%$ITK_DEFS%g
11541 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
11542 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
11543 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
11544 s%@X_CFLAGS@%$X_CFLAGS%g
11545 s%@X_LDFLAGS@%$X_LDFLAGS%g
11546 s%@X_LIBS@%$X_LIBS%g
11547 s%@TCL_DEPS@%$TCL_DEPS%g
11548 s%@TK_DEPS@%$TK_DEPS%g
11549 s%@ITCLLIB@%$ITCLLIB%g
11550 s%@ITCL_DEPS@%$ITCL_DEPS%g
11551 s%@ITKLIB@%$ITKLIB%g
11552 s%@ITK_DEPS@%$ITK_DEPS%g
11553 s%@GDBTKLIBS@%$GDBTKLIBS%g
11554 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
11555 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
11556 s%@IGNORE_SIM@%$IGNORE_SIM%g
11557 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
11558 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
11559 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
11560 s%@CONFIG_OBS@%$CONFIG_OBS%g
11561 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
11562 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
11563 s%@CONFIG_ALL@%$CONFIG_ALL%g
11564 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
11565 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
11566 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
11567 s%@target_subdir@%$target_subdir%g
11568 /@host_makefile_frag@/r $host_makefile_frag
11569 s%@host_makefile_frag@%%g
11570 /@target_makefile_frag@/r $target_makefile_frag
11571 s%@target_makefile_frag@%%g
11576 s%@EXEEXT@%$EXEEXT%g
11577 s%@LIBICONV@%$LIBICONV%g
11582 cat >> $CONFIG_STATUS <<\EOF
11584 # Split the substitutions into bite-sized pieces for seds with
11585 # small command number limits, like on Digital OSF/1 and HP-UX.
11586 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11587 ac_file=1 # Number of current file.
11588 ac_beg=1 # First line for current file.
11589 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11592 while $ac_more_lines; do
11593 if test $ac_beg -gt 1; then
11594 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11596 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11598 if test ! -s conftest.s$ac_file; then
11599 ac_more_lines=false
11600 rm -f conftest.s$ac_file
11602 if test -z "$ac_sed_cmds"; then
11603 ac_sed_cmds="sed -f conftest.s$ac_file"
11605 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11607 ac_file=`expr $ac_file + 1`
11609 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11612 if test -z "$ac_sed_cmds"; then
11617 cat >> $CONFIG_STATUS <<EOF
11619 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
11621 cat >> $CONFIG_STATUS <<\EOF
11622 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11625 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11626 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11627 *) ac_file_in="${ac_file}.in" ;;
11630 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11632 # Remove last slash and all that follows it. Not all systems have dirname.
11633 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11634 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11635 # The file is in a subdirectory.
11636 test ! -d "$ac_dir" && mkdir "$ac_dir"
11637 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11638 # A "../" for each directory in $ac_dir_suffix.
11639 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11641 ac_dir_suffix= ac_dots=
11644 case "$ac_given_srcdir" in
11646 if test -z "$ac_dots"; then top_srcdir=.
11647 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11648 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11649 *) # Relative path.
11650 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11651 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11654 case "$ac_given_INSTALL" in
11655 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11656 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11659 echo creating "$ac_file"
11661 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11663 *Makefile*) ac_comsub="1i\\
11664 # $configure_input" ;;
11668 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11670 s%@configure_input@%$configure_input%g
11671 s%@srcdir@%$srcdir%g
11672 s%@top_srcdir@%$top_srcdir%g
11673 s%@INSTALL@%$INSTALL%g
11674 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11678 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11679 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11681 # ac_d sets the value in "#define NAME VALUE" lines.
11682 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11683 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11686 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11687 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11688 ac_uB='\([ ]\)%\1#\2define\3'
11691 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11692 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11693 ac_eB='$%\1#\2define\3'
11697 if test "${CONFIG_HEADERS+set}" != set; then
11699 cat >> $CONFIG_STATUS <<EOF
11700 CONFIG_HEADERS="config.h:config.in"
11702 cat >> $CONFIG_STATUS <<\EOF
11704 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11705 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11707 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11708 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11709 *) ac_file_in="${ac_file}.in" ;;
11712 echo creating $ac_file
11714 rm -f conftest.frag conftest.in conftest.out
11715 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11716 cat $ac_file_inputs > conftest.in
11720 # Transform confdefs.h into a sed script conftest.vals that substitutes
11721 # the proper values into config.h.in to produce config.h. And first:
11722 # Protect against being on the right side of a sed subst in config.status.
11723 # Protect against being in an unquoted here document in config.status.
11724 rm -f conftest.vals
11725 cat > conftest.hdr <<\EOF
11728 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11732 sed -n -f conftest.hdr confdefs.h > conftest.vals
11735 # This sed command replaces #undef with comments. This is necessary, for
11736 # example, in the case of _POSIX_SOURCE, which is predefined and required
11737 # on some systems where configure will not decide to define it.
11738 cat >> conftest.vals <<\EOF
11739 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11742 # Break up conftest.vals because some shells have a limit on
11743 # the size of here documents, and old seds have small limits too.
11745 rm -f conftest.tail
11748 ac_lines=`grep -c . conftest.vals`
11749 # grep -c gives empty output for an empty file on some AIX systems.
11750 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11751 # Write a limited-size here document to conftest.frag.
11752 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11753 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11755 sed -f conftest.frag conftest.in > conftest.out
11757 mv conftest.out conftest.in
11758 ' >> $CONFIG_STATUS
11759 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11760 rm -f conftest.vals
11761 mv conftest.tail conftest.vals
11763 rm -f conftest.vals
11765 cat >> $CONFIG_STATUS <<\EOF
11766 rm -f conftest.frag conftest.h
11767 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11768 cat conftest.in >> conftest.h
11770 if cmp -s $ac_file conftest.h 2>/dev/null; then
11771 echo "$ac_file is unchanged"
11774 # Remove last slash and all that follows it. Not all systems have dirname.
11775 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11776 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11777 # The file is in a subdirectory.
11778 test ! -d "$ac_dir" && mkdir "$ac_dir"
11781 mv conftest.h $ac_file
11787 cat >> $CONFIG_STATUS <<EOF
11788 ac_sources="$files"
11792 cat >> $CONFIG_STATUS <<\EOF
11793 srcdir=$ac_given_srcdir
11794 while test -n "$ac_sources"; do
11795 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11796 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11798 echo "linking $srcdir/$ac_source to $ac_dest"
11800 if test ! -r $srcdir/$ac_source; then
11801 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
11805 # Make relative symlinks.
11806 # Remove last slash and all that follows it. Not all systems have dirname.
11807 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
11808 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
11809 # The dest file is in a subdirectory.
11810 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
11811 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
11812 # A "../" for each directory in $ac_dest_dir_suffix.
11813 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
11815 ac_dest_dir_suffix= ac_dots=
11819 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
11820 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
11823 # Make a symlink if possible; otherwise try a hard link.
11824 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11825 ln $srcdir/$ac_source $ac_dest; then :
11827 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
11831 cat >> $CONFIG_STATUS <<EOF
11833 gdb_host_cpu=$gdb_host_cpu
11834 gdb_target_cpu=$gdb_target_cpu
11835 nativefile=$nativefile
11838 cat >> $CONFIG_STATUS <<\EOF
11840 if test "${nativefile}" = ""; then
11842 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
11843 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
11844 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
11846 mv -f Makefile.tem Makefile
11849 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
11850 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
11851 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
11852 mv -f Makefile.tmp Makefile
11855 case x$CONFIG_HEADERS in
11856 xconfig.h:config.in)
11862 chmod +x $CONFIG_STATUS
11863 rm -fr confdefs* $ac_clean_files
11864 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11866 if test "$no_recursion" != yes; then
11868 # Remove --cache-file and --srcdir arguments so they do not pile up.
11869 ac_sub_configure_args=
11871 for ac_arg in $ac_configure_args; do
11872 if test -n "$ac_prev"; then
11877 -cache-file | --cache-file | --cache-fil | --cache-fi \
11878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11879 ac_prev=cache_file ;;
11880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11883 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11885 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11887 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11891 for ac_config_dir in doc testsuite $configdirs; do
11893 # Do not complain, so a configure script can configure whichever
11894 # parts of a large source tree are present.
11895 if test ! -d $srcdir/$ac_config_dir; then
11899 echo configuring in $ac_config_dir
11904 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
11906 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
11914 # A "../" for each directory in /$ac_config_dir.
11915 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
11918 .) # No --srcdir option. We are building in place.
11919 ac_sub_srcdir=$srcdir ;;
11920 /*) # Absolute path.
11921 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
11922 *) # Relative path.
11923 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
11926 # Check for guested configure; otherwise get Cygnus style configure.
11927 if test -f $ac_sub_srcdir/configure; then
11928 ac_sub_configure=$ac_sub_srcdir/configure
11929 elif test -f $ac_sub_srcdir/configure.in; then
11930 ac_sub_configure=$ac_configure
11932 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
11936 # The recursion is here.
11937 if test -n "$ac_sub_configure"; then
11939 # Make the cache file name correct relative to the subdirectory.
11940 case "$cache_file" in
11941 /*) ac_sub_cache_file=$cache_file ;;
11942 *) # Relative path.
11943 ac_sub_cache_file="$ac_dots$cache_file" ;;
11945 case "$ac_given_INSTALL" in
11946 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11947 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11950 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11951 # The eval makes quoting arguments work.
11952 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11955 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }