3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]"
24 --disable-gdbcli disable command-line interface (CLI)"
26 --disable-gdbmi disable machine-interface (MI)"
28 --enable-tui enable full-screen terminal user interface (TUI)"
30 --enable-gdbtk enable gdbtk graphical user interface (GUI)"
32 --enable-profiling enable profiling of GDB"
34 --without-included-regex don't use included regex; this is the default
35 on systems with version 2 of the GNU C library
36 (use with caution on other system)"
38 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
40 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
42 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
44 --with-mmalloc Use memory mapped malloc package"
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
50 --with-tclinclude=DIR Directory where tcl private headers are"
52 --with-tkinclude=DIR Directory where tk private headers are"
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
58 --with-x use the X Window System"
60 --enable-sim Link gdb with simulator"
62 --enable-multi-ice build the multi-ice-gdb-server"
64 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file=./config.cache
79 program_transform_name=s,x,x,
88 bindir='${exec_prefix}/bin'
89 sbindir='${exec_prefix}/sbin'
90 libexecdir='${exec_prefix}/libexec'
91 datadir='${prefix}/share'
92 sysconfdir='${prefix}/etc'
93 sharedstatedir='${prefix}/com'
94 localstatedir='${prefix}/var'
95 libdir='${exec_prefix}/lib'
96 includedir='${prefix}/include'
97 oldincludedir='/usr/include'
98 infodir='${prefix}/info'
99 mandir='${prefix}/man'
101 # Initialize some other variables.
104 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
133 -build | --build | --buil | --bui | --bu)
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 datadir="$ac_optarg" ;;
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host | --host | --hos | --ho)
244 -host=* | --host=* | --hos=* | --ho=*)
247 -includedir | --includedir | --includedi | --included | --include \
248 | --includ | --inclu | --incl | --inc)
249 ac_prev=includedir ;;
250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251 | --includ=* | --inclu=* | --incl=* | --inc=*)
252 includedir="$ac_optarg" ;;
254 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257 infodir="$ac_optarg" ;;
259 -libdir | --libdir | --libdi | --libd)
261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
262 libdir="$ac_optarg" ;;
264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265 | --libexe | --libex | --libe)
266 ac_prev=libexecdir ;;
267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268 | --libexe=* | --libex=* | --libe=*)
269 libexecdir="$ac_optarg" ;;
271 -localstatedir | --localstatedir | --localstatedi | --localstated \
272 | --localstate | --localstat | --localsta | --localst \
273 | --locals | --local | --loca | --loc | --lo)
274 ac_prev=localstatedir ;;
275 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278 localstatedir="$ac_optarg" ;;
280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 mandir="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299 | --oldin | --oldi | --old | --ol | --o)
300 ac_prev=oldincludedir ;;
301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304 oldincludedir="$ac_optarg" ;;
306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309 prefix="$ac_optarg" ;;
311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
312 | --program-pre | --program-pr | --program-p)
313 ac_prev=program_prefix ;;
314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316 program_prefix="$ac_optarg" ;;
318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
319 | --program-suf | --program-su | --program-s)
320 ac_prev=program_suffix ;;
321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323 program_suffix="$ac_optarg" ;;
325 -program-transform-name | --program-transform-name \
326 | --program-transform-nam | --program-transform-na \
327 | --program-transform-n | --program-transform- \
328 | --program-transform | --program-transfor \
329 | --program-transfo | --program-transf \
330 | --program-trans | --program-tran \
331 | --progr-tra | --program-tr | --program-t)
332 ac_prev=program_transform_name ;;
333 -program-transform-name=* | --program-transform-name=* \
334 | --program-transform-nam=* | --program-transform-na=* \
335 | --program-transform-n=* | --program-transform-=* \
336 | --program-transform=* | --program-transfor=* \
337 | --program-transfo=* | --program-transf=* \
338 | --program-trans=* | --program-tran=* \
339 | --progr-tra=* | --program-tr=* | --program-t=*)
340 program_transform_name="$ac_optarg" ;;
342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343 | -silent | --silent | --silen | --sile | --sil)
346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 sbindir="$ac_optarg" ;;
352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354 | --sharedst | --shareds | --shared | --share | --shar \
356 ac_prev=sharedstatedir ;;
357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 sharedstatedir="$ac_optarg" ;;
363 -site | --site | --sit)
365 -site=* | --site=* | --sit=*)
368 -site-file | --site-file | --site-fil | --site-fi | --site-f)
370 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
371 sitefile="$ac_optarg" ;;
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=main.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE; then
541 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 CONFIG_SITE="$sitefile"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='\c' ac_t=
587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
588 echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
590 if test "${enable_maintainer_mode+set}" = set; then
591 enableval="$enable_maintainer_mode"
592 USE_MAINTAINER_MODE=$enableval
594 USE_MAINTAINER_MODE=no
597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
600 if test $USE_MAINTAINER_MODE = yes; then
601 MAINTAINER_MODE_TRUE=
602 MAINTAINER_MODE_FALSE='#'
604 MAINTAINER_MODE_TRUE='#'
605 MAINTAINER_MODE_FALSE=
607 MAINT=$MAINTAINER_MODE_TRUE
611 # Extract the first word of "gcc", so it can be a program name with args.
612 set dummy gcc; ac_word=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC="$CC" # Let the user override the test.
621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
623 for ac_dir in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
641 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc; ac_word=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 if test -n "$CC"; then
649 ac_cv_prog_CC="$CC" # Let the user override the test.
651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
654 for ac_dir in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy $ac_cv_prog_CC
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
675 set dummy "$ac_dir/$ac_word" "$@"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
692 # Extract the first word of "cl", so it can be a program name with args.
693 set dummy cl; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC="$CC" # Let the user override the test.
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
704 for ac_dir in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp='$CPP $CPPFLAGS'
732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling=$ac_cv_prog_cc_cross
736 cat > conftest.$ac_ext << EOF
738 #line 739 "configure"
739 #include "confdefs.h"
743 if { (eval echo configure:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
744 ac_cv_prog_cc_works=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (./conftest; exit) 2>/dev/null; then
747 ac_cv_prog_cc_cross=no
749 ac_cv_prog_cc_cross=yes
752 echo "configure: failed program was:" >&5
753 cat conftest.$ac_ext >&5
754 ac_cv_prog_cc_works=no
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp='$CPP $CPPFLAGS'
760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling=$ac_cv_prog_cc_cross
764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
765 if test $ac_cv_prog_cc_works = no; then
766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
771 cross_compiling=$ac_cv_prog_cc_cross
773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
774 echo "configure:775: checking whether we are using GNU C" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftest.c <<EOF
783 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
792 if test $ac_cv_prog_gcc = yes; then
798 ac_test_CFLAGS="${CFLAGS+set}"
799 ac_save_CFLAGS="$CFLAGS"
801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
802 echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 echo 'void f(){}' > conftest.c
807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
817 if test "$ac_test_CFLAGS" = set; then
818 CFLAGS="$ac_save_CFLAGS"
819 elif test $ac_cv_prog_cc_g = yes; then
820 if test "$GCC" = yes; then
826 if test "$GCC" = yes; then
833 cat >> confdefs.h <<\EOF
834 #define _GNU_SOURCE 1
838 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
839 echo "configure:840: checking how to run the C preprocessor" >&5
840 # On Suns, sometimes $CPP names a directory.
841 if test -n "$CPP" && test -d "$CPP"; then
844 if test -z "$CPP"; then
845 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 # This must be in double quotes, not single quotes, because CPP may get
849 # substituted into the Makefile and "${CC-cc}" will confuse make.
851 # On the NeXT, cc -E runs the code through the compiler's parser,
852 # not just through cpp.
853 cat > conftest.$ac_ext <<EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 { (eval echo configure:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
862 if test -z "$ac_err"; then
866 echo "configure: failed program was:" >&5
867 cat conftest.$ac_ext >&5
869 CPP="${CC-cc} -E -traditional-cpp"
870 cat > conftest.$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877 { (eval echo configure:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
879 if test -z "$ac_err"; then
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
886 CPP="${CC-cc} -nologo -E"
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
910 ac_cv_prog_CPP="$CPP"
912 CPP="$ac_cv_prog_CPP"
914 ac_cv_prog_CPP="$CPP"
916 echo "$ac_t""$CPP" 1>&6
918 echo $ac_n "checking for AIX""... $ac_c" 1>&6
919 echo "configure:920: checking for AIX" >&5
920 cat > conftest.$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
929 egrep "yes" >/dev/null 2>&1; then
931 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
932 #define _ALL_SOURCE 1
937 echo "$ac_t""no" 1>&6
942 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
943 echo "configure:944: checking for POSIXized ISC" >&5
944 if test -d /etc/conf/kconfig.d &&
945 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
947 echo "$ac_t""yes" 1>&6
948 ISC=yes # If later tests want to check for ISC.
949 cat >> confdefs.h <<\EOF
950 #define _POSIX_SOURCE 1
953 if test "$GCC" = yes; then
959 echo "$ac_t""no" 1>&6
966 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
967 echo "configure:968: checking for ${CC-cc} option to accept ANSI C" >&5
968 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 am_cv_prog_cc_stdc=no
973 # Don't try gcc -ansi; that turns off useful extensions and
974 # breaks some systems' header files.
976 # Ultrix and OSF/1 -std1
977 # HP-UX 10.20 and later -Ae
978 # HP-UX older versions -Aa -D_HPUX_SOURCE
979 # SVR4 -Xc -D__EXTENSIONS__
980 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
982 CC="$ac_save_CC $ac_arg"
983 cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
988 #include <sys/types.h>
989 #include <sys/stat.h>
990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
991 struct buf { int x; };
992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
993 static char *e (p, i)
999 static char *f (char * (*g) (char **, int), char **p, ...)
1004 s = g (p, va_arg (v,int));
1008 int test (int i, double x);
1009 struct s1 {int (*f) (int a);};
1010 struct s2 {int (*f) (double a);};
1011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1021 if { (eval echo configure:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1023 am_cv_prog_cc_stdc="$ac_arg"; break
1025 echo "configure: failed program was:" >&5
1026 cat conftest.$ac_ext >&5
1034 if test -z "$am_cv_prog_cc_stdc"; then
1035 echo "$ac_t""none needed" 1>&6
1037 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1039 case "x$am_cv_prog_cc_stdc" in
1041 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1046 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1047 if test -f $ac_dir/install-sh; then
1049 ac_install_sh="$ac_aux_dir/install-sh -c"
1051 elif test -f $ac_dir/install.sh; then
1053 ac_install_sh="$ac_aux_dir/install.sh -c"
1057 if test -z "$ac_aux_dir"; then
1058 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1060 ac_config_guess=$ac_aux_dir/config.guess
1061 ac_config_sub=$ac_aux_dir/config.sub
1062 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1065 # Do some error checking and defaulting for the host and target type.
1067 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1070 # 1. You are not allowed to specify --host, --target, and nonopt at the
1072 # 2. Host defaults to nonopt.
1073 # 3. If nonopt is not specified, then host defaults to the current host,
1074 # as determined by config.guess.
1075 # 4. Target and build default to nonopt.
1076 # 5. If nonopt is not specified, then target and build default to host.
1078 # The aliases save the names the user supplied, while $host etc.
1079 # will get canonicalized.
1080 case $host---$target---$nonopt in
1081 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1082 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1086 # Make sure we can run config.sub.
1087 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1088 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1091 echo $ac_n "checking host system type""... $ac_c" 1>&6
1092 echo "configure:1093: checking host system type" >&5
1095 case "$host_alias" in
1099 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1100 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1102 *) host_alias=$nonopt ;;
1106 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1107 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110 echo "$ac_t""$host" 1>&6
1112 echo $ac_n "checking target system type""... $ac_c" 1>&6
1113 echo "configure:1114: checking target system type" >&5
1115 target_alias=$target
1116 case "$target_alias" in
1119 NONE) target_alias=$host_alias ;;
1120 *) target_alias=$nonopt ;;
1124 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1125 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1128 echo "$ac_t""$target" 1>&6
1130 echo $ac_n "checking build system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking build system type" >&5
1134 case "$build_alias" in
1137 NONE) build_alias=$host_alias ;;
1138 *) build_alias=$nonopt ;;
1142 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1143 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1144 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1145 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1146 echo "$ac_t""$build" 1>&6
1148 test "$host_alias" != "$target_alias" &&
1149 test "$program_prefix$program_suffix$program_transform_name" = \
1151 program_prefix=${target_alias}-
1154 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1155 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1156 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1157 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1158 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
1160 if test $host != $build; then
1161 ac_tool_prefix=${host_alias}-
1166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1178 for ac_dir in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1188 RANLIB="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1196 if test -z "$ac_cv_prog_RANLIB"; then
1197 if test -n "$ac_tool_prefix"; then
1198 # Extract the first word of "ranlib", so it can be a program name with args.
1199 set dummy ranlib; ac_word=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1210 for ac_dir in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB="ranlib"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1221 RANLIB="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1235 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether ${MAKE-make} sets \${MAKE}" >&5
1237 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1238 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftestmake <<\EOF
1243 @echo 'ac_maketemp="${MAKE}"'
1245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1246 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1247 if test -n "$ac_maketemp"; then
1248 eval ac_cv_prog_make_${ac_make}_set=yes
1250 eval ac_cv_prog_make_${ac_make}_set=no
1254 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1255 echo "$ac_t""yes" 1>&6
1258 echo "$ac_t""no" 1>&6
1259 SET_MAKE="MAKE=${MAKE-make}"
1262 # Extract the first word of "ranlib", so it can be a program name with args.
1263 set dummy ranlib; ac_word=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$RANLIB"; then
1270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1274 for ac_dir in $ac_dummy; do
1275 test -z "$ac_dir" && ac_dir=.
1276 if test -f $ac_dir/$ac_word; then
1277 ac_cv_prog_RANLIB="ranlib"
1282 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1285 RANLIB="$ac_cv_prog_RANLIB"
1286 if test -n "$RANLIB"; then
1287 echo "$ac_t""$RANLIB" 1>&6
1289 echo "$ac_t""no" 1>&6
1292 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1293 echo "configure:1294: checking for ANSI C header files" >&5
1294 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1310 ac_cv_header_stdc=yes
1313 echo "configure: failed program was:" >&5
1314 cat conftest.$ac_ext >&5
1316 ac_cv_header_stdc=no
1320 if test $ac_cv_header_stdc = yes; then
1321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1328 egrep "memchr" >/dev/null 2>&1; then
1332 ac_cv_header_stdc=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "free" >/dev/null 2>&1; then
1350 ac_cv_header_stdc=no
1356 if test $ac_cv_header_stdc = yes; then
1357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1358 if test "$cross_compiling" = yes; then
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1365 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1366 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1368 int main () { int i; for (i = 0; i < 256; i++)
1369 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1373 if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1380 ac_cv_header_stdc=no
1388 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1389 if test $ac_cv_header_stdc = yes; then
1390 cat >> confdefs.h <<\EOF
1391 #define STDC_HEADERS 1
1396 echo $ac_n "checking for working const""... $ac_c" 1>&6
1397 echo "configure:1398: checking for working const" >&5
1398 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 /* Ultrix mips cc rejects this. */
1408 typedef int charset[2]; const charset x;
1409 /* SunOS 4.1.1 cc rejects this. */
1410 char const *const *ccp;
1412 /* NEC SVR4.0.2 mips cc rejects this. */
1413 struct point {int x, y;};
1414 static struct point const zero = {0,0};
1415 /* AIX XL C 1.02.0.0 rejects this.
1416 It does not let you subtract one const X* pointer from another in an arm
1417 of an if-expression whose if-part is not a constant expression */
1418 const char *g = "string";
1419 ccp = &g + (g ? g-g : 0);
1420 /* HPUX 7.0 cc rejects these. */
1423 ccp = (char const *const *) p;
1424 { /* SCO 3.2v4 cc rejects this. */
1426 char const *s = 0 ? (char *) 0 : (char const *) 0;
1430 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1432 const int *foo = &x[0];
1435 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1436 typedef const int *iptr;
1440 { /* AIX XL C 1.02.0.0 rejects this saying
1441 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1442 struct s { int j; const int *ap[3]; };
1443 struct s *b; b->j = 5;
1445 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1451 if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1463 echo "$ac_t""$ac_cv_c_const" 1>&6
1464 if test $ac_cv_c_const = no; then
1465 cat >> confdefs.h <<\EOF
1471 echo $ac_n "checking for inline""... $ac_c" 1>&6
1472 echo "configure:1473: checking for inline" >&5
1473 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1477 for ac_kw in inline __inline__ __inline; do
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1486 if { (eval echo configure:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 ac_cv_c_inline=$ac_kw; break
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1498 echo "$ac_t""$ac_cv_c_inline" 1>&6
1499 case "$ac_cv_c_inline" in
1501 no) cat >> confdefs.h <<\EOF
1505 *) cat >> confdefs.h <<EOF
1506 #define inline $ac_cv_c_inline
1511 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1512 echo "configure:1513: checking for off_t" >&5
1513 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 cat > conftest.$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 #include <sys/types.h>
1525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1528 ac_cv_type_off_t=yes
1536 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1537 if test $ac_cv_type_off_t = no; then
1538 cat >> confdefs.h <<\EOF
1544 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1545 echo "configure:1546: checking for size_t" >&5
1546 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 #include <sys/types.h>
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1559 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1561 ac_cv_type_size_t=yes
1564 ac_cv_type_size_t=no
1569 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1570 if test $ac_cv_type_size_t = no; then
1571 cat >> confdefs.h <<\EOF
1572 #define size_t unsigned
1577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1578 # for constant arguments. Useless!
1579 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1580 echo "configure:1581: checking for working alloca.h" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 char *p = alloca(2 * sizeof(int));
1592 if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1594 ac_cv_header_alloca_h=yes
1596 echo "configure: failed program was:" >&5
1597 cat conftest.$ac_ext >&5
1599 ac_cv_header_alloca_h=no
1604 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1605 if test $ac_cv_header_alloca_h = yes; then
1606 cat >> confdefs.h <<\EOF
1607 #define HAVE_ALLOCA_H 1
1612 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1613 echo "configure:1614: checking for alloca" >&5
1614 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1622 # define alloca __builtin_alloca
1625 # include <malloc.h>
1626 # define alloca _alloca
1629 # include <alloca.h>
1634 # ifndef alloca /* predefined by HP cc +Olibcalls */
1643 char *p = (char *) alloca(1);
1646 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1648 ac_cv_func_alloca_works=yes
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1653 ac_cv_func_alloca_works=no
1658 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1659 if test $ac_cv_func_alloca_works = yes; then
1660 cat >> confdefs.h <<\EOF
1661 #define HAVE_ALLOCA 1
1666 if test $ac_cv_func_alloca_works = no; then
1667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1668 # that cause trouble. Some versions do not even contain alloca or
1669 # contain a buggy version. If you still want to use their alloca,
1670 # use ar to extract alloca.o from them instead of compiling alloca.c.
1671 ALLOCA=alloca.${ac_objext}
1672 cat >> confdefs.h <<\EOF
1677 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether alloca needs Cray hooks" >&5
1679 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 #if defined(CRAY) && ! defined(CRAY2)
1692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1693 egrep "webecray" >/dev/null 2>&1; then
1704 echo "$ac_t""$ac_cv_os_cray" 1>&6
1705 if test $ac_cv_os_cray = yes; then
1706 for ac_func in _getb67 GETB67 getb67; do
1707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_func" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $ac_func(); below. */
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1738 eval "ac_cv_func_$ac_func=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1743 eval "ac_cv_func_$ac_func=no"
1748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 cat >> confdefs.h <<EOF
1751 #define CRAY_STACKSEG_END $ac_func
1756 echo "$ac_t""no" 1>&6
1762 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1763 echo "configure:1764: checking stack direction for C alloca" >&5
1764 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 if test "$cross_compiling" = yes; then
1768 ac_cv_c_stack_direction=0
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 find_stack_direction ()
1775 static char *addr = 0;
1780 return find_stack_direction ();
1783 return (&dummy > addr) ? 1 : -1;
1787 exit (find_stack_direction() < 0);
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1792 ac_cv_c_stack_direction=1
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 ac_cv_c_stack_direction=-1
1804 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1805 cat >> confdefs.h <<EOF
1806 #define STACK_DIRECTION $ac_cv_c_stack_direction
1811 for ac_hdr in unistd.h
1813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_hdr" >&5
1816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1827 if test -z "$ac_err"; then
1829 eval "ac_cv_header_$ac_safe=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1835 eval "ac_cv_header_$ac_safe=no"
1839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1842 cat >> confdefs.h <<EOF
1843 #define $ac_tr_hdr 1
1847 echo "$ac_t""no" 1>&6
1851 for ac_func in getpagesize
1853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_func" >&5
1855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $ac_func(); below. */
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1882 if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1884 eval "ac_cv_func_$ac_func=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1889 eval "ac_cv_func_$ac_func=no"
1894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1897 cat >> confdefs.h <<EOF
1898 #define $ac_tr_func 1
1902 echo "$ac_t""no" 1>&6
1906 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1907 echo "configure:1908: checking for working mmap" >&5
1908 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test "$cross_compiling" = yes; then
1912 ac_cv_func_mmap_fixed_mapped=no
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1918 /* Thanks to Mike Haertel and Jim Avera for this test.
1919 Here is a matrix of mmap possibilities:
1920 mmap private not fixed
1921 mmap private fixed at somewhere currently unmapped
1922 mmap private fixed at somewhere already mapped
1923 mmap shared not fixed
1924 mmap shared fixed at somewhere currently unmapped
1925 mmap shared fixed at somewhere already mapped
1926 For private mappings, we should verify that changes cannot be read()
1927 back from the file, nor mmap's back from the file at a different
1928 address. (There have been systems where private was not correctly
1929 implemented like the infamous i386 svr4.0, and systems where the
1930 VM page cache was not coherent with the filesystem buffer cache
1931 like early versions of FreeBSD and possibly contemporary NetBSD.)
1932 For shared mappings, we should conversely verify that changes get
1933 propogated back to all the places they're supposed to be.
1935 Grep wants private fixed already mapped.
1936 The main things grep needs to know about mmap are:
1937 * does it exist and is it safe to write into the mmap'd area
1938 * how to use it (BSD variants) */
1939 #include <sys/types.h>
1941 #include <sys/mman.h>
1943 /* This mess was copied from the GNU getpagesize.h. */
1944 #ifndef HAVE_GETPAGESIZE
1945 # ifdef HAVE_UNISTD_H
1946 # include <unistd.h>
1949 /* Assume that all systems that can run configure have sys/param.h. */
1950 # ifndef HAVE_SYS_PARAM_H
1951 # define HAVE_SYS_PARAM_H 1
1954 # ifdef _SC_PAGESIZE
1955 # define getpagesize() sysconf(_SC_PAGESIZE)
1956 # else /* no _SC_PAGESIZE */
1957 # ifdef HAVE_SYS_PARAM_H
1958 # include <sys/param.h>
1959 # ifdef EXEC_PAGESIZE
1960 # define getpagesize() EXEC_PAGESIZE
1961 # else /* no EXEC_PAGESIZE */
1963 # define getpagesize() NBPG * CLSIZE
1966 # endif /* no CLSIZE */
1967 # else /* no NBPG */
1969 # define getpagesize() NBPC
1970 # else /* no NBPC */
1972 # define getpagesize() PAGESIZE
1973 # endif /* PAGESIZE */
1974 # endif /* no NBPC */
1975 # endif /* no NBPG */
1976 # endif /* no EXEC_PAGESIZE */
1977 # else /* no HAVE_SYS_PARAM_H */
1978 # define getpagesize() 8192 /* punt totally */
1979 # endif /* no HAVE_SYS_PARAM_H */
1980 # endif /* no _SC_PAGESIZE */
1982 #endif /* no HAVE_GETPAGESIZE */
1985 extern "C" { void *malloc(unsigned); }
1993 char *data, *data2, *data3;
1997 pagesize = getpagesize();
2000 * First, make a file with some known garbage in it.
2002 data = malloc(pagesize);
2005 for (i = 0; i < pagesize; ++i)
2006 *(data + i) = rand();
2008 fd = creat("conftestmmap", 0600);
2011 if (write(fd, data, pagesize) != pagesize)
2016 * Next, try to mmap the file at a fixed address which
2017 * already has something else allocated at it. If we can,
2018 * also make sure that we see the same garbage.
2020 fd = open("conftestmmap", O_RDWR);
2023 data2 = malloc(2 * pagesize);
2026 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2027 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2030 for (i = 0; i < pagesize; ++i)
2031 if (*(data + i) != *(data2 + i))
2035 * Finally, make sure that changes to the mapped area
2036 * do not percolate back to the file as seen by read().
2037 * (This is a bug on some variants of i386 svr4.0.)
2039 for (i = 0; i < pagesize; ++i)
2040 *(data2 + i) = *(data2 + i) + 1;
2041 data3 = malloc(pagesize);
2044 if (read(fd, data3, pagesize) != pagesize)
2046 for (i = 0; i < pagesize; ++i)
2047 if (*(data + i) != *(data3 + i))
2050 unlink("conftestmmap");
2055 if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2057 ac_cv_func_mmap_fixed_mapped=yes
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2062 ac_cv_func_mmap_fixed_mapped=no
2069 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2070 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2071 cat >> confdefs.h <<\EOF
2078 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2079 unistd.h values.h sys/param.h
2081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2097 eval "ac_cv_header_$ac_safe=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2103 eval "ac_cv_header_$ac_safe=no"
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h <<EOF
2111 #define $ac_tr_hdr 1
2115 echo "$ac_t""no" 1>&6
2119 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2120 __argz_count __argz_stringify __argz_next
2122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_func" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $ac_func(); below. */
2133 /* Override any gcc2 internal prototype to avoid an error. */
2134 /* We use char because int might match the return type of a gcc2
2135 builtin and then its argument prototype would still apply. */
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2153 eval "ac_cv_func_$ac_func=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 eval "ac_cv_func_$ac_func=no"
2163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166 cat >> confdefs.h <<EOF
2167 #define $ac_tr_func 1
2171 echo "$ac_t""no" 1>&6
2176 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2177 for ac_func in stpcpy
2179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_func" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $ac_func(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2208 if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210 eval "ac_cv_func_$ac_func=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 eval "ac_cv_func_$ac_func=no"
2220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2223 cat >> confdefs.h <<EOF
2224 #define $ac_tr_func 1
2228 echo "$ac_t""no" 1>&6
2233 if test "${ac_cv_func_stpcpy}" = "yes"; then
2234 cat >> confdefs.h <<\EOF
2235 #define HAVE_STPCPY 1
2240 if test $ac_cv_header_locale_h = yes; then
2241 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2242 echo "configure:2243: checking for LC_MESSAGES" >&5
2243 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2254 if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2256 am_cv_val_LC_MESSAGES=yes
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2261 am_cv_val_LC_MESSAGES=no
2266 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2267 if test $am_cv_val_LC_MESSAGES = yes; then
2268 cat >> confdefs.h <<\EOF
2269 #define HAVE_LC_MESSAGES 1
2274 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether NLS is requested" >&5
2276 # Check whether --enable-nls or --disable-nls was given.
2277 if test "${enable_nls+set}" = set; then
2278 enableval="$enable_nls"
2284 echo "$ac_t""$USE_NLS" 1>&6
2287 USE_INCLUDED_LIBINTL=no
2289 if test "$USE_NLS" = "yes"; then
2290 cat >> confdefs.h <<\EOF
2291 #define ENABLE_NLS 1
2294 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether included gettext is requested" >&5
2296 # Check whether --with-included-gettext or --without-included-gettext was given.
2297 if test "${with_included_gettext+set}" = set; then
2298 withval="$with_included_gettext"
2299 nls_cv_force_use_gnu_gettext=$withval
2301 nls_cv_force_use_gnu_gettext=no
2304 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2306 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2307 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2309 nls_cv_header_libgt=
2312 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2314 echo "configure:2315: checking for libintl.h" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <libintl.h>
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2341 echo "configure:2342: checking for gettext in libc" >&5
2342 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <libintl.h>
2350 return (int) gettext ("")
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2355 gt_cv_func_gettext_libc=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2360 gt_cv_func_gettext_libc=no
2365 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2367 if test "$gt_cv_func_gettext_libc" != "yes"; then
2368 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for bindtextdomain in -lintl" >&5
2370 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS="$LIBS"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char bindtextdomain();
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2404 echo "configure:2405: checking for gettext in libintl" >&5
2405 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 return (int) gettext ("")
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2418 gt_cv_func_gettext_libintl=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 gt_cv_func_gettext_libintl=no
2428 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2430 echo "$ac_t""no" 1>&6
2435 if test "$gt_cv_func_gettext_libc" = "yes" \
2436 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2437 cat >> confdefs.h <<\EOF
2438 #define HAVE_GETTEXT 1
2441 # Extract the first word of "msgfmt", so it can be a program name with args.
2442 set dummy msgfmt; ac_word=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2454 for ac_dir in $PATH; do
2455 test -z "$ac_dir" && ac_dir=.
2456 if test -f $ac_dir/$ac_word; then
2457 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2458 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2464 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2468 MSGFMT="$ac_cv_path_MSGFMT"
2469 if test -n "$MSGFMT"; then
2470 echo "$ac_t""$MSGFMT" 1>&6
2472 echo "$ac_t""no" 1>&6
2474 if test "$MSGFMT" != "no"; then
2475 for ac_func in dcgettext
2477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_func" >&5
2479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* System header to define __stub macros and hopefully few prototypes,
2486 which can conflict with char $ac_func(); below. */
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2495 /* The GNU C library defines this for functions which it implements
2496 to always fail with ENOSYS. Some functions are actually named
2497 something starting with __ and the normal name is an alias. */
2498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2508 eval "ac_cv_func_$ac_func=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2513 eval "ac_cv_func_$ac_func=no"
2518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2521 cat >> confdefs.h <<EOF
2522 #define $ac_tr_func 1
2526 echo "$ac_t""no" 1>&6
2530 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2531 set dummy gmsgfmt; ac_word=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2542 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2547 for ac_dir in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir=.
2549 if test -f $ac_dir/$ac_word; then
2550 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2555 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2559 GMSGFMT="$ac_cv_path_GMSGFMT"
2560 if test -n "$GMSGFMT"; then
2561 echo "$ac_t""$GMSGFMT" 1>&6
2563 echo "$ac_t""no" 1>&6
2566 # Extract the first word of "xgettext", so it can be a program name with args.
2567 set dummy xgettext; ac_word=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2579 for ac_dir in $PATH; do
2580 test -z "$ac_dir" && ac_dir=.
2581 if test -f $ac_dir/$ac_word; then
2582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2583 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2589 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2593 XGETTEXT="$ac_cv_path_XGETTEXT"
2594 if test -n "$XGETTEXT"; then
2595 echo "$ac_t""$XGETTEXT" 1>&6
2597 echo "$ac_t""no" 1>&6
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2605 extern int _nl_msg_cat_cntr;
2606 return _nl_msg_cat_cntr
2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2614 echo "configure: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2626 echo "$ac_t""no" 1>&6
2631 if test "$CATOBJEXT" = "NONE"; then
2632 nls_cv_use_gnu_gettext=yes
2636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2637 INTLOBJS="\$(GETTOBJS)"
2638 # Extract the first word of "msgfmt", so it can be a program name with args.
2639 set dummy msgfmt; ac_word=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2647 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2651 for ac_dir in $PATH; do
2652 test -z "$ac_dir" && ac_dir=.
2653 if test -f $ac_dir/$ac_word; then
2654 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2655 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2661 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2665 MSGFMT="$ac_cv_path_MSGFMT"
2666 if test -n "$MSGFMT"; then
2667 echo "$ac_t""$MSGFMT" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2673 set dummy gmsgfmt; ac_word=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2681 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2684 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2689 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2701 GMSGFMT="$ac_cv_path_GMSGFMT"
2702 if test -n "$GMSGFMT"; then
2703 echo "$ac_t""$GMSGFMT" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 # Extract the first word of "xgettext", so it can be a program name with args.
2709 set dummy xgettext; ac_word=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2721 for ac_dir in $PATH; do
2722 test -z "$ac_dir" && ac_dir=.
2723 if test -f $ac_dir/$ac_word; then
2724 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2725 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2731 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2735 XGETTEXT="$ac_cv_path_XGETTEXT"
2736 if test -n "$XGETTEXT"; then
2737 echo "$ac_t""$XGETTEXT" 1>&6
2739 echo "$ac_t""no" 1>&6
2743 USE_INCLUDED_LIBINTL=yes
2747 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2749 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2750 nls_cv_header_intl=libintl.h
2751 nls_cv_header_libgt=libgettext.h
2754 if test "$XGETTEXT" != ":"; then
2755 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2758 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2763 # We need to process the po/ directory.
2767 nls_cv_header_intl=libintl.h
2768 nls_cv_header_libgt=libgettext.h
2771 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2772 # because some of the sources are only built for this goal.
2773 if test "$PACKAGE" = gettext; then
2775 USE_INCLUDED_LIBINTL=yes
2778 for lang in $ALL_LINGUAS; do
2779 GMOFILES="$GMOFILES $lang.gmo"
2780 POFILES="$POFILES $lang.po"
2796 if test "x$CATOBJEXT" != "x"; then
2797 if test "x$ALL_LINGUAS" = "x"; then
2800 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2801 echo "configure:2802: checking for catalogs to be installed" >&5
2803 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2804 case "$ALL_LINGUAS" in
2805 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2808 LINGUAS=$NEW_LINGUAS
2809 echo "$ac_t""$LINGUAS" 1>&6
2812 if test -n "$LINGUAS"; then
2813 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2817 if test $ac_cv_header_locale_h = yes; then
2818 INCLUDE_LOCALE_H="#include <locale.h>"
2821 /* The system does not provide the header <locale.h>. Take care yourself. */"
2825 if test -f $srcdir/po2tbl.sed.in; then
2826 if test "$CATOBJEXT" = ".cat"; then
2827 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for linux/version.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <linux/version.h>
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2857 echo "$ac_t""no" 1>&6
2862 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2864 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2865 $srcdir/po2tbl.sed.in > po2tbl.sed
2868 if test "$PACKAGE" = "gettext"; then
2878 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2884 if test -f $srcdir/po/POTFILES.in; then
2885 test -d po || mkdir po
2886 if test "x$srcdir" != "x."; then
2887 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2888 posrcprefix="$srcdir/"
2890 posrcprefix="../$srcdir/"
2896 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2897 < $srcdir/po/POTFILES.in > po/POTFILES
2900 cat >> confdefs.h <<\EOF
2901 #define PACKAGE "gdb"
2905 debugdir=${libdir}/debug
2907 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2908 if test "${with_separate_debug_dir+set}" = set; then
2909 withval="$with_separate_debug_dir"
2910 debugdir="${withval}"
2915 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2917 ac_define_dir=`eval echo $debugdir`
2918 ac_define_dir=`eval echo $ac_define_dir`
2919 cat >> confdefs.h <<EOF
2920 #define DEBUGDIR "$ac_define_dir"
2924 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2938 subdirs="doc testsuite"
2942 . $srcdir/configure.host
2944 . $srcdir/configure.tgt
2946 # Fetch the default architecture and default target vector from BFD.
2947 targ=$target; . $srcdir/../bfd/config.bfd
2949 # We only want the first architecture, so strip off the others if
2950 # there is more than one.
2951 targ_archs=`echo $targ_archs | sed 's/ .*//'`
2953 if test "x$targ_archs" != x; then
2954 cat >> confdefs.h <<EOF
2955 #define DEFAULT_BFD_ARCH $targ_archs
2959 if test "x$targ_defvec" != x; then
2960 cat >> confdefs.h <<EOF
2961 #define DEFAULT_BFD_VEC $targ_defvec
2966 if test "$program_transform_name" = s,x,x,; then
2967 program_transform_name=
2969 # Double any \ or $. echo might interpret backslashes.
2970 cat <<\EOF_SED > conftestsed
2971 s,\\,\\\\,g; s,\$,$$,g
2973 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2976 test "$program_prefix" != NONE &&
2977 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2978 # Use a double $ so make ignores it.
2979 test "$program_suffix" != NONE &&
2980 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2982 # sed with no file args requires a program.
2983 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2986 # The CLI cannot be disabled yet, but may be in the future.
2989 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2990 if test "${enable_gdbcli+set}" = set; then
2991 enableval="$enable_gdbcli"
2996 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2998 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
3004 if test x"$enable_gdbcli" = xyes; then
3005 if test -d $srcdir/cli; then
3006 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3007 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3008 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3009 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_CLI_INITS)"
3010 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3011 CONFIG_ALL="$CONFIG_ALL \$(SUBDIR_CLI_ALL)"
3012 CONFIG_CLEAN="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)"
3013 CONFIG_INSTALL="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)"
3014 CONFIG_UNINSTALL="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)"
3019 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3020 if test "${enable_gdbmi+set}" = set; then
3021 enableval="$enable_gdbmi"
3026 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3032 if test x"$enable_gdbmi" = xyes; then
3033 if test -d $srcdir/mi; then
3034 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3035 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3036 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3037 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_MI_INITS)"
3038 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3039 CONFIG_ALL="$CONFIG_ALL \$(SUBDIR_MI_ALL)"
3040 CONFIG_CLEAN="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)"
3041 CONFIG_INSTALL="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)"
3042 CONFIG_UNINSTALL="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)"
3047 # Check whether --enable-tui or --disable-tui was given.
3048 if test "${enable_tui+set}" = set; then
3049 enableval="$enable_tui"
3054 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3058 if test x"$enable_tui" = xyes; then
3059 if test -d $srcdir/tui; then
3060 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3061 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3062 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3063 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3064 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3065 CONFIG_ALL="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3066 CONFIG_CLEAN="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3067 CONFIG_INSTALL="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3068 CONFIG_UNINSTALL="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3074 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3075 if test "${enable_gdbtk+set}" = set; then
3076 enableval="$enable_gdbtk"
3081 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3084 if test -d $srcdir/gdbtk; then
3091 # We unconditionally disable gdbtk tests on selected platforms.
3094 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3098 # Profiling support.
3099 # Check whether --enable-profiling or --disable-profiling was given.
3100 if test "${enable_profiling+set}" = set; then
3101 enableval="$enable_profiling"
3106 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3113 for ac_func in monstartup _mcleanup
3115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_func" >&5
3117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 cat > conftest.$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 /* System header to define __stub macros and hopefully few prototypes,
3124 which can conflict with char $ac_func(); below. */
3126 /* Override any gcc2 internal prototype to avoid an error. */
3127 /* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3133 /* The GNU C library defines this for functions which it implements
3134 to always fail with ENOSYS. Some functions are actually named
3135 something starting with __ and the normal name is an alias. */
3136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3144 if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146 eval "ac_cv_func_$ac_func=yes"
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 eval "ac_cv_func_$ac_func=no"
3156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3159 cat >> confdefs.h <<EOF
3160 #define $ac_tr_func 1
3164 echo "$ac_t""no" 1>&6
3168 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3169 echo "configure:3170: checking for _etext" >&5
3170 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3183 if { (eval echo configure:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3185 ac_cv_var__etext=yes
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3195 echo "$ac_t""$ac_cv_var__etext" 1>&6
3196 if test $ac_cv_var__etext = yes; then
3197 cat >> confdefs.h <<\EOF
3198 #define HAVE__ETEXT 1
3202 if test "$enable_profiling" = yes ; then
3203 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
3204 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3207 OLD_CFLAGS="$CFLAGS"
3208 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
3210 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3211 echo "configure:3212: checking whether $CC supports -pg" >&5
3212 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3223 if { (eval echo configure:3224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3225 ac_cv_cc_supports_pg=yes
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3230 ac_cv_cc_supports_pg=no
3235 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3237 if test $ac_cv_cc_supports_pg = no; then
3238 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3241 CFLAGS="$OLD_CFLAGS"
3244 # --------------------- #
3245 # Checks for programs. #
3246 # --------------------- #
3248 for ac_prog in mawk gawk nawk awk
3250 # Extract the first word of "$ac_prog", so it can be a program name with args.
3251 set dummy $ac_prog; ac_word=$2
3252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3253 echo "configure:3254: checking for $ac_word" >&5
3254 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 if test -n "$AWK"; then
3258 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3262 for ac_dir in $ac_dummy; do
3263 test -z "$ac_dir" && ac_dir=.
3264 if test -f $ac_dir/$ac_word; then
3265 ac_cv_prog_AWK="$ac_prog"
3272 AWK="$ac_cv_prog_AWK"
3273 if test -n "$AWK"; then
3274 echo "$ac_t""$AWK" 1>&6
3276 echo "$ac_t""no" 1>&6
3279 test -n "$AWK" && break
3282 # Find a good install program. We prefer a C program (faster),
3283 # so one script is as good as another. But avoid the broken or
3284 # incompatible versions:
3285 # SysV /etc/install, /usr/sbin/install
3286 # SunOS /usr/etc/install
3287 # IRIX /sbin/install
3289 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3290 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3291 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3292 # ./install, which can be erroneously created by make from ./install.sh.
3293 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3294 echo "configure:3295: checking for a BSD compatible install" >&5
3295 if test -z "$INSTALL"; then
3296 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3300 for ac_dir in $PATH; do
3301 # Account for people who put trailing slashes in PATH elements.
3303 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3305 # OSF1 and SCO ODT 3.0 have their own names for install.
3306 # Don't use installbsd from OSF since it installs stuff as root
3308 for ac_prog in ginstall scoinst install; do
3309 if test -f $ac_dir/$ac_prog; then
3310 if test $ac_prog = install &&
3311 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3312 # AIX install. It has an incompatible calling convention.
3315 ac_cv_path_install="$ac_dir/$ac_prog -c"
3326 if test "${ac_cv_path_install+set}" = set; then
3327 INSTALL="$ac_cv_path_install"
3329 # As a last resort, use the slow shell script. We don't cache a
3330 # path for INSTALL within a source directory, because that will
3331 # break other packages using the cache if that directory is
3332 # removed, or if the path is relative.
3333 INSTALL="$ac_install_sh"
3336 echo "$ac_t""$INSTALL" 1>&6
3338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3339 # It thinks the first close brace ends the variable substitution.
3340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3342 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3344 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3346 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3347 echo "configure:3348: checking whether ln -s works" >&5
3348 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3352 if ln -s X conftestdata 2>/dev/null
3355 ac_cv_prog_LN_S="ln -s"
3360 LN_S="$ac_cv_prog_LN_S"
3361 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3362 echo "$ac_t""yes" 1>&6
3364 echo "$ac_t""no" 1>&6
3367 # Extract the first word of "ranlib", so it can be a program name with args.
3368 set dummy ranlib; ac_word=$2
3369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_word" >&5
3371 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3374 if test -n "$RANLIB"; then
3375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3379 for ac_dir in $ac_dummy; do
3380 test -z "$ac_dir" && ac_dir=.
3381 if test -f $ac_dir/$ac_word; then
3382 ac_cv_prog_RANLIB="ranlib"
3387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3390 RANLIB="$ac_cv_prog_RANLIB"
3391 if test -n "$RANLIB"; then
3392 echo "$ac_t""$RANLIB" 1>&6
3394 echo "$ac_t""no" 1>&6
3397 for ac_prog in 'bison -y' byacc
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3402 echo "configure:3403: checking for $ac_word" >&5
3403 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 if test -n "$YACC"; then
3407 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3411 for ac_dir in $ac_dummy; do
3412 test -z "$ac_dir" && ac_dir=.
3413 if test -f $ac_dir/$ac_word; then
3414 ac_cv_prog_YACC="$ac_prog"
3421 YACC="$ac_cv_prog_YACC"
3422 if test -n "$YACC"; then
3423 echo "$ac_t""$YACC" 1>&6
3425 echo "$ac_t""no" 1>&6
3428 test -n "$YACC" && break
3430 test -n "$YACC" || YACC="yacc"
3433 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}ar; ac_word=$2
3435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3436 echo "configure:3437: checking for $ac_word" >&5
3437 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 if test -n "$AR"; then
3441 ac_cv_prog_AR="$AR" # Let the user override the test.
3443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3445 for ac_dir in $ac_dummy; do
3446 test -z "$ac_dir" && ac_dir=.
3447 if test -f $ac_dir/$ac_word; then
3448 ac_cv_prog_AR="${ac_tool_prefix}ar"
3453 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3457 if test -n "$AR"; then
3458 echo "$ac_t""$AR" 1>&6
3460 echo "$ac_t""no" 1>&6
3465 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3466 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3468 echo "configure:3469: checking for $ac_word" >&5
3469 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 if test -n "$DLLTOOL"; then
3473 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3477 for ac_dir in $ac_dummy; do
3478 test -z "$ac_dir" && ac_dir=.
3479 if test -f $ac_dir/$ac_word; then
3480 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3485 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
3488 DLLTOOL="$ac_cv_prog_DLLTOOL"
3489 if test -n "$DLLTOOL"; then
3490 echo "$ac_t""$DLLTOOL" 1>&6
3492 echo "$ac_t""no" 1>&6
3497 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}windres; ac_word=$2
3499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3500 echo "configure:3501: checking for $ac_word" >&5
3501 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 if test -n "$WINDRES"; then
3505 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3509 for ac_dir in $ac_dummy; do
3510 test -z "$ac_dir" && ac_dir=.
3511 if test -f $ac_dir/$ac_word; then
3512 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3517 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres"
3520 WINDRES="$ac_cv_prog_WINDRES"
3521 if test -n "$WINDRES"; then
3522 echo "$ac_t""$WINDRES" 1>&6
3524 echo "$ac_t""no" 1>&6
3530 # Needed for GNU/Hurd.
3531 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3532 set dummy ${ac_tool_prefix}mig; ac_word=$2
3533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3534 echo "configure:3535: checking for $ac_word" >&5
3535 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 if test -n "$MIG"; then
3539 ac_cv_prog_MIG="$MIG" # Let the user override the test.
3541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3543 for ac_dir in $ac_dummy; do
3544 test -z "$ac_dir" && ac_dir=.
3545 if test -f $ac_dir/$ac_word; then
3546 ac_cv_prog_MIG="${ac_tool_prefix}mig"
3551 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
3554 MIG="$ac_cv_prog_MIG"
3555 if test -n "$MIG"; then
3556 echo "$ac_t""$MIG" 1>&6
3558 echo "$ac_t""no" 1>&6
3564 # ---------------------- #
3565 # Checks for libraries. #
3566 # ---------------------- #
3568 # We might need to link with -lm; most simulators need it.
3569 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3570 echo "configure:3571: checking for main in -lm" >&5
3571 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_save_LIBS="$LIBS"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3585 if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3587 eval "ac_cv_lib_$ac_lib_var=yes"
3589 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3592 eval "ac_cv_lib_$ac_lib_var=no"
3595 LIBS="$ac_save_LIBS"
3598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3600 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3601 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3602 cat >> confdefs.h <<EOF
3603 #define $ac_tr_lib 1
3609 echo "$ac_t""no" 1>&6
3613 # We need to link with -lw to get `wctype' on Solaris before Solaris
3614 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3615 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3616 # is known to have this problem). Therefore we avoid libw if we can.
3617 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3618 echo "configure:3619: checking for wctype" >&5
3619 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 /* System header to define __stub macros and hopefully few prototypes,
3626 which can conflict with char wctype(); below. */
3628 /* Override any gcc2 internal prototype to avoid an error. */
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3635 /* The GNU C library defines this for functions which it implements
3636 to always fail with ENOSYS. Some functions are actually named
3637 something starting with __ and the normal name is an alias. */
3638 #if defined (__stub_wctype) || defined (__stub___wctype)
3646 if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3648 eval "ac_cv_func_wctype=yes"
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3653 eval "ac_cv_func_wctype=no"
3658 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3662 echo "$ac_t""no" 1>&6
3663 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3664 echo "configure:3665: checking for wctype in -lw" >&5
3665 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 ac_save_LIBS="$LIBS"
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 /* Override any gcc2 internal prototype to avoid an error. */
3675 /* We use char because int might match the return type of a gcc2
3676 builtin and then its argument prototype would still apply. */
3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3685 eval "ac_cv_lib_$ac_lib_var=yes"
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3690 eval "ac_cv_lib_$ac_lib_var=no"
3693 LIBS="$ac_save_LIBS"
3696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3697 echo "$ac_t""yes" 1>&6
3698 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3699 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3700 cat >> confdefs.h <<EOF
3701 #define $ac_tr_lib 1
3707 echo "$ac_t""no" 1>&6
3713 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3715 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3716 echo "configure:3717: checking for library containing socketpair" >&5
3717 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3720 ac_func_search_save_LIBS="$LIBS"
3721 ac_cv_search_socketpair="no"
3722 cat > conftest.$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3725 /* Override any gcc2 internal prototype to avoid an error. */
3726 /* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3734 if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3736 ac_cv_search_socketpair="none required"
3738 echo "configure: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3742 test "$ac_cv_search_socketpair" = "no" && for i in socket; do
3743 LIBS="-l$i $ac_func_search_save_LIBS"
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747 /* Override any gcc2 internal prototype to avoid an error. */
3748 /* We use char because int might match the return type of a gcc2
3749 builtin and then its argument prototype would still apply. */
3756 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3758 ac_cv_search_socketpair="-l$i"
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3766 LIBS="$ac_func_search_save_LIBS"
3769 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
3770 if test "$ac_cv_search_socketpair" != "no"; then
3771 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
3777 # Since GDB uses Readline, we need termcap functionality, so we need
3778 # to find a library that provides that. When GDB is configured with
3779 # --enable-tui, we need full curses functionality.
3781 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
3782 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
3783 # Makefile fragments. That's why we need to have `Hcurses' before
3784 # `curses'. I don't see why we should use HP curses if a more
3785 # standard curses is available, except that according to HP's
3786 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
3787 # HP-UX 10.10 and 10.20.
3789 if test "$need_curses" = yes; then
3791 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
3792 echo "configure:3793: checking for library containing initscr" >&5
3793 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3796 ac_func_search_save_LIBS="$LIBS"
3797 ac_cv_search_initscr="no"
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 /* Override any gcc2 internal prototype to avoid an error. */
3802 /* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3810 if { (eval echo configure:3811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3812 ac_cv_search_initscr="none required"
3814 echo "configure: failed program was:" >&5
3815 cat conftest.$ac_ext >&5
3818 test "$ac_cv_search_initscr" = "no" && for i in ncurses Hcurses curses; do
3819 LIBS="-l$i $ac_func_search_save_LIBS"
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3834 ac_cv_search_initscr="-l$i"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3842 LIBS="$ac_func_search_save_LIBS"
3845 echo "$ac_t""$ac_cv_search_initscr" 1>&6
3846 if test "$ac_cv_search_initscr" != "no"; then
3847 test "$ac_cv_search_initscr" = "none required" || LIBS="$ac_cv_search_initscr $LIBS"
3850 { echo "configure: error: no curses library found" 1>&2; exit 1; }
3856 if test -d $srcdir/libtermcap; then
3857 LIBS="../libtermcap/libtermcap.a $LIBS"
3858 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
3861 # ??? Is this really true?
3862 ac_cv_search_tgetent="none required"
3865 # Readline prefers curses over termcap on AIX.
3868 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3869 echo "configure:3870: checking for library containing tgetent" >&5
3870 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 ac_func_search_save_LIBS="$LIBS"
3874 ac_cv_search_tgetent="no"
3875 cat > conftest.$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3878 /* Override any gcc2 internal prototype to avoid an error. */
3879 /* We use char because int might match the return type of a gcc2
3880 builtin and then its argument prototype would still apply. */
3887 if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3889 ac_cv_search_tgetent="none required"
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3895 test "$ac_cv_search_tgetent" = "no" && for i in tinfo ncurses curses termcap; do
3896 LIBS="-l$i $ac_func_search_save_LIBS"
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* Override any gcc2 internal prototype to avoid an error. */
3901 /* We use char because int might match the return type of a gcc2
3902 builtin and then its argument prototype would still apply. */
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 ac_cv_search_tgetent="-l$i"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3919 LIBS="$ac_func_search_save_LIBS"
3922 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3923 if test "$ac_cv_search_tgetent" != "no"; then
3924 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
3932 # Note: We used to check for libtermlib and libterminfo too, but
3933 # Readline doesn't, so I think we're safe with leaving them out.
3935 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3936 echo "configure:3937: checking for library containing tgetent" >&5
3937 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 ac_func_search_save_LIBS="$LIBS"
3941 ac_cv_search_tgetent="no"
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 /* Override any gcc2 internal prototype to avoid an error. */
3946 /* We use char because int might match the return type of a gcc2
3947 builtin and then its argument prototype would still apply. */
3954 if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3956 ac_cv_search_tgetent="none required"
3958 echo "configure: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3962 test "$ac_cv_search_tgetent" = "no" && for i in termcap tinfo ncurses Hcurses curses; do
3963 LIBS="-l$i $ac_func_search_save_LIBS"
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3967 /* Override any gcc2 internal prototype to avoid an error. */
3968 /* We use char because int might match the return type of a gcc2
3969 builtin and then its argument prototype would still apply. */
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978 ac_cv_search_tgetent="-l$i"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3986 LIBS="$ac_func_search_save_LIBS"
3989 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3990 if test "$ac_cv_search_tgetent" != "no"; then
3991 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
3997 if test "$ac_cv_search_tgetent" = no; then
3998 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4001 # ------------------------- #
4002 # Checks for header files. #
4003 # ------------------------- #
4006 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4009 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4010 echo "configure:4011: checking for $ac_hdr that defines DIR" >&5
4011 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 #include <sys/types.h>
4023 if { (eval echo configure:4024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4025 eval "ac_cv_header_dirent_$ac_safe=yes"
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4030 eval "ac_cv_header_dirent_$ac_safe=no"
4034 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4035 echo "$ac_t""yes" 1>&6
4036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4037 cat >> confdefs.h <<EOF
4038 #define $ac_tr_hdr 1
4040 ac_header_dirent=$ac_hdr; break
4042 echo "$ac_t""no" 1>&6
4045 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4046 if test $ac_header_dirent = dirent.h; then
4047 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4048 echo "configure:4049: checking for opendir in -ldir" >&5
4049 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 ac_save_LIBS="$LIBS"
4055 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 /* We use char because int might match the return type of a gcc2
4060 builtin and then its argument prototype would still apply. */
4067 if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4069 eval "ac_cv_lib_$ac_lib_var=yes"
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4074 eval "ac_cv_lib_$ac_lib_var=no"
4077 LIBS="$ac_save_LIBS"
4080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4084 echo "$ac_t""no" 1>&6
4088 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4089 echo "configure:4090: checking for opendir in -lx" >&5
4090 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4094 ac_save_LIBS="$LIBS"
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4099 /* Override any gcc2 internal prototype to avoid an error. */
4100 /* We use char because int might match the return type of a gcc2
4101 builtin and then its argument prototype would still apply. */
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4110 eval "ac_cv_lib_$ac_lib_var=yes"
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4115 eval "ac_cv_lib_$ac_lib_var=no"
4118 LIBS="$ac_save_LIBS"
4121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4125 echo "$ac_t""no" 1>&6
4130 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4131 echo "configure:4132: checking whether stat file-mode macros are broken" >&5
4132 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 #include <sys/types.h>
4139 #include <sys/stat.h>
4141 #if defined(S_ISBLK) && defined(S_IFDIR)
4142 # if S_ISBLK (S_IFDIR)
4147 #if defined(S_ISBLK) && defined(S_IFCHR)
4148 # if S_ISBLK (S_IFCHR)
4153 #if defined(S_ISLNK) && defined(S_IFREG)
4154 # if S_ISLNK (S_IFREG)
4159 #if defined(S_ISSOCK) && defined(S_IFREG)
4160 # if S_ISSOCK (S_IFREG)
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167 egrep "You lose" >/dev/null 2>&1; then
4169 ac_cv_header_stat_broken=yes
4172 ac_cv_header_stat_broken=no
4178 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4179 if test $ac_cv_header_stat_broken = yes; then
4180 cat >> confdefs.h <<\EOF
4181 #define STAT_MACROS_BROKEN 1
4186 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4187 echo "configure:4188: checking for ANSI C header files" >&5
4188 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4202 if test -z "$ac_err"; then
4204 ac_cv_header_stdc=yes
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 ac_cv_header_stdc=no
4214 if test $ac_cv_header_stdc = yes; then
4215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 egrep "memchr" >/dev/null 2>&1; then
4226 ac_cv_header_stdc=no
4232 if test $ac_cv_header_stdc = yes; then
4233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 egrep "free" >/dev/null 2>&1; then
4244 ac_cv_header_stdc=no
4250 if test $ac_cv_header_stdc = yes; then
4251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4252 if test "$cross_compiling" = yes; then
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4259 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4260 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4262 int main () { int i; for (i = 0; i < 256; i++)
4263 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 ac_cv_header_stdc=no
4282 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4283 if test $ac_cv_header_stdc = yes; then
4284 cat >> confdefs.h <<\EOF
4285 #define STDC_HEADERS 1
4290 for ac_hdr in link.h
4292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4294 echo "configure:4295: checking for $ac_hdr" >&5
4295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4304 { (eval echo configure:4305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4306 if test -z "$ac_err"; then
4308 eval "ac_cv_header_$ac_safe=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 eval "ac_cv_header_$ac_safe=no"
4318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4321 cat >> confdefs.h <<EOF
4322 #define $ac_tr_hdr 1
4326 echo "$ac_t""no" 1>&6
4330 for ac_hdr in nlist.h
4332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4334 echo "configure:4335: checking for $ac_hdr" >&5
4335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4344 { (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4346 if test -z "$ac_err"; then
4348 eval "ac_cv_header_$ac_safe=yes"
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4354 eval "ac_cv_header_$ac_safe=no"
4358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4361 cat >> confdefs.h <<EOF
4362 #define $ac_tr_hdr 1
4366 echo "$ac_t""no" 1>&6
4370 for ac_hdr in poll.h sys/poll.h
4372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_hdr" >&5
4375 if eval "test \"`echo '$''{'ac_cv_header_$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"
4383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4384 { (eval echo configure:4385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4386 if test -z "$ac_err"; then
4388 eval "ac_cv_header_$ac_safe=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_header_$ac_safe=no"
4398 if eval "test \"`echo '$ac_cv_header_'$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
4406 echo "$ac_t""no" 1>&6
4410 for ac_hdr in proc_service.h thread_db.h
4412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4414 echo "configure:4415: checking for $ac_hdr" >&5
4415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4424 { (eval echo configure:4425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4426 if test -z "$ac_err"; then
4428 eval "ac_cv_header_$ac_safe=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_header_$ac_safe=no"
4438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4441 cat >> confdefs.h <<EOF
4442 #define $ac_tr_hdr 1
4446 echo "$ac_t""no" 1>&6
4450 for ac_hdr in stddef.h
4452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_hdr" >&5
4455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4464 { (eval echo configure:4465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4466 if test -z "$ac_err"; then
4468 eval "ac_cv_header_$ac_safe=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4474 eval "ac_cv_header_$ac_safe=no"
4478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4481 cat >> confdefs.h <<EOF
4482 #define $ac_tr_hdr 1
4486 echo "$ac_t""no" 1>&6
4490 for ac_hdr in stdlib.h
4492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4494 echo "configure:4495: checking for $ac_hdr" >&5
4495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4504 { (eval echo configure:4505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4506 if test -z "$ac_err"; then
4508 eval "ac_cv_header_$ac_safe=yes"
4511 echo "configure: failed program was:" >&5
4512 cat conftest.$ac_ext >&5
4514 eval "ac_cv_header_$ac_safe=no"
4518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4519 echo "$ac_t""yes" 1>&6
4520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4521 cat >> confdefs.h <<EOF
4522 #define $ac_tr_hdr 1
4526 echo "$ac_t""no" 1>&6
4530 for ac_hdr in stdint.h
4532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4534 echo "configure:4535: checking for $ac_hdr" >&5
4535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4544 { (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4546 if test -z "$ac_err"; then
4548 eval "ac_cv_header_$ac_safe=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_header_$ac_safe=no"
4558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4561 cat >> confdefs.h <<EOF
4562 #define $ac_tr_hdr 1
4566 echo "$ac_t""no" 1>&6
4570 for ac_hdr in string.h memory.h strings.h
4572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4574 echo "configure:4575: checking for $ac_hdr" >&5
4575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4584 { (eval echo configure:4585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4586 if test -z "$ac_err"; then
4588 eval "ac_cv_header_$ac_safe=yes"
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4594 eval "ac_cv_header_$ac_safe=no"
4598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4601 cat >> confdefs.h <<EOF
4602 #define $ac_tr_hdr 1
4606 echo "$ac_t""no" 1>&6
4610 for ac_hdr in sys/fault.h
4612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_hdr" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4626 if test -z "$ac_err"; then
4628 eval "ac_cv_header_$ac_safe=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 eval "ac_cv_header_$ac_safe=no"
4638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_hdr 1
4646 echo "$ac_t""no" 1>&6
4650 for ac_hdr in sys/file.h
4652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4654 echo "configure:4655: checking for $ac_hdr" >&5
4655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4664 { (eval echo configure:4665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4666 if test -z "$ac_err"; then
4668 eval "ac_cv_header_$ac_safe=yes"
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4674 eval "ac_cv_header_$ac_safe=no"
4678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4681 cat >> confdefs.h <<EOF
4682 #define $ac_tr_hdr 1
4686 echo "$ac_t""no" 1>&6
4690 for ac_hdr in sys/filio.h
4692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_hdr" >&5
4695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4704 { (eval echo configure:4705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4706 if test -z "$ac_err"; then
4708 eval "ac_cv_header_$ac_safe=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4714 eval "ac_cv_header_$ac_safe=no"
4718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4721 cat >> confdefs.h <<EOF
4722 #define $ac_tr_hdr 1
4726 echo "$ac_t""no" 1>&6
4730 for ac_hdr in sys/ioctl.h
4732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_hdr" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4746 if test -z "$ac_err"; then
4748 eval "ac_cv_header_$ac_safe=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4754 eval "ac_cv_header_$ac_safe=no"
4758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4761 cat >> confdefs.h <<EOF
4762 #define $ac_tr_hdr 1
4766 echo "$ac_t""no" 1>&6
4770 for ac_hdr in sys/param.h
4772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_hdr" >&5
4775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4784 { (eval echo configure:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4786 if test -z "$ac_err"; then
4788 eval "ac_cv_header_$ac_safe=yes"
4791 echo "configure: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4794 eval "ac_cv_header_$ac_safe=no"
4798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4801 cat >> confdefs.h <<EOF
4802 #define $ac_tr_hdr 1
4806 echo "$ac_t""no" 1>&6
4810 for ac_hdr in sys/proc.h
4812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4814 echo "configure:4815: checking for $ac_hdr" >&5
4815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4816 echo $ac_n "(cached) $ac_c" 1>&6
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4824 { (eval echo configure:4825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4826 if test -z "$ac_err"; then
4828 eval "ac_cv_header_$ac_safe=yes"
4831 echo "configure: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4834 eval "ac_cv_header_$ac_safe=no"
4838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4841 cat >> confdefs.h <<EOF
4842 #define $ac_tr_hdr 1
4846 echo "$ac_t""no" 1>&6
4850 for ac_hdr in sys/procfs.h
4852 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4854 echo "configure:4855: checking for $ac_hdr" >&5
4855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4864 { (eval echo configure:4865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4866 if test -z "$ac_err"; then
4868 eval "ac_cv_header_$ac_safe=yes"
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4874 eval "ac_cv_header_$ac_safe=no"
4878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4879 echo "$ac_t""yes" 1>&6
4880 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4881 cat >> confdefs.h <<EOF
4882 #define $ac_tr_hdr 1
4886 echo "$ac_t""no" 1>&6
4890 for ac_hdr in sys/ptrace.h ptrace.h
4892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4894 echo "configure:4895: checking for $ac_hdr" >&5
4895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4904 { (eval echo configure:4905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4906 if test -z "$ac_err"; then
4908 eval "ac_cv_header_$ac_safe=yes"
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4914 eval "ac_cv_header_$ac_safe=no"
4918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4921 cat >> confdefs.h <<EOF
4922 #define $ac_tr_hdr 1
4926 echo "$ac_t""no" 1>&6
4930 for ac_hdr in sys/reg.h sys/debugreg.h
4932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_hdr" >&5
4935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4944 { (eval echo configure:4945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4946 if test -z "$ac_err"; then
4948 eval "ac_cv_header_$ac_safe=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 eval "ac_cv_header_$ac_safe=no"
4958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4961 cat >> confdefs.h <<EOF
4962 #define $ac_tr_hdr 1
4966 echo "$ac_t""no" 1>&6
4970 for ac_hdr in sys/select.h
4972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $ac_hdr" >&5
4975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4984 { (eval echo configure:4985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4986 if test -z "$ac_err"; then
4988 eval "ac_cv_header_$ac_safe=yes"
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4994 eval "ac_cv_header_$ac_safe=no"
4998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4999 echo "$ac_t""yes" 1>&6
5000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5001 cat >> confdefs.h <<EOF
5002 #define $ac_tr_hdr 1
5006 echo "$ac_t""no" 1>&6
5010 for ac_hdr in sys/syscall.h
5012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5014 echo "configure:5015: checking for $ac_hdr" >&5
5015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5024 { (eval echo configure:5025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5026 if test -z "$ac_err"; then
5028 eval "ac_cv_header_$ac_safe=yes"
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5034 eval "ac_cv_header_$ac_safe=no"
5038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5039 echo "$ac_t""yes" 1>&6
5040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5041 cat >> confdefs.h <<EOF
5042 #define $ac_tr_hdr 1
5046 echo "$ac_t""no" 1>&6
5050 for ac_hdr in sys/user.h
5052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5054 echo "configure:5055: checking for $ac_hdr" >&5
5055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5058 cat > conftest.$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5064 { (eval echo configure:5065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5066 if test -z "$ac_err"; then
5068 eval "ac_cv_header_$ac_safe=yes"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 eval "ac_cv_header_$ac_safe=no"
5078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5079 echo "$ac_t""yes" 1>&6
5080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5081 cat >> confdefs.h <<EOF
5082 #define $ac_tr_hdr 1
5086 echo "$ac_t""no" 1>&6
5090 for ac_hdr in sys/wait.h wait.h
5092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5094 echo "configure:5095: checking for $ac_hdr" >&5
5095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5104 { (eval echo configure:5105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5106 if test -z "$ac_err"; then
5108 eval "ac_cv_header_$ac_safe=yes"
5111 echo "configure: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5114 eval "ac_cv_header_$ac_safe=no"
5118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5119 echo "$ac_t""yes" 1>&6
5120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5121 cat >> confdefs.h <<EOF
5122 #define $ac_tr_hdr 1
5126 echo "$ac_t""no" 1>&6
5130 for ac_hdr in termios.h termio.h sgtty.h
5132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5134 echo "configure:5135: checking for $ac_hdr" >&5
5135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5144 { (eval echo configure:5145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5146 if test -z "$ac_err"; then
5148 eval "ac_cv_header_$ac_safe=yes"
5151 echo "configure: failed program was:" >&5
5152 cat conftest.$ac_ext >&5
5154 eval "ac_cv_header_$ac_safe=no"
5158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5161 cat >> confdefs.h <<EOF
5162 #define $ac_tr_hdr 1
5166 echo "$ac_t""no" 1>&6
5170 for ac_hdr in unistd.h
5172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5174 echo "configure:5175: checking for $ac_hdr" >&5
5175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5178 cat > conftest.$ac_ext <<EOF
5179 #line 5180 "configure"
5180 #include "confdefs.h"
5183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5184 { (eval echo configure:5185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5186 if test -z "$ac_err"; then
5188 eval "ac_cv_header_$ac_safe=yes"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5194 eval "ac_cv_header_$ac_safe=no"
5198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5199 echo "$ac_t""yes" 1>&6
5200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5201 cat >> confdefs.h <<EOF
5202 #define $ac_tr_hdr 1
5206 echo "$ac_t""no" 1>&6
5211 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5212 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5213 # think that we don't have <curses.h> if we're using GCC.
5216 if test "$GCC" = yes; then
5217 cat >> confdefs.h <<\EOF
5218 #define _MSE_INT_H 1
5223 for ac_hdr in curses.h ncurses.h term.h
5225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5227 echo "configure:5228: checking for $ac_hdr" >&5
5228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5231 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5237 { (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5239 if test -z "$ac_err"; then
5241 eval "ac_cv_header_$ac_safe=yes"
5244 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5247 eval "ac_cv_header_$ac_safe=no"
5251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5252 echo "$ac_t""yes" 1>&6
5253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5254 cat >> confdefs.h <<EOF
5255 #define $ac_tr_hdr 1
5259 echo "$ac_t""no" 1>&6
5264 # FIXME: kettenis/20030102: In most cases we include these
5265 # unconditionally, so what's the point in checking these?
5266 for ac_hdr in ctype.h time.h
5268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5270 echo "configure:5271: checking for $ac_hdr" >&5
5271 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5272 echo $ac_n "(cached) $ac_c" 1>&6
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5280 { (eval echo configure:5281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5282 if test -z "$ac_err"; then
5284 eval "ac_cv_header_$ac_safe=yes"
5287 echo "configure: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5290 eval "ac_cv_header_$ac_safe=no"
5294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5295 echo "$ac_t""yes" 1>&6
5296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5297 cat >> confdefs.h <<EOF
5298 #define $ac_tr_hdr 1
5302 echo "$ac_t""no" 1>&6
5307 # ------------------ #
5308 # Checks for types. #
5309 # ------------------ #
5311 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5312 echo "configure:5313: checking return type of signal handlers" >&5
5313 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 #include <sys/types.h>
5325 extern "C" void (*signal (int, void (*)(int)))(int);
5327 void (*signal ()) ();
5334 if { (eval echo configure:5335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5336 ac_cv_type_signal=void
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5341 ac_cv_type_signal=int
5346 echo "$ac_t""$ac_cv_type_signal" 1>&6
5347 cat >> confdefs.h <<EOF
5348 #define RETSIGTYPE $ac_cv_type_signal
5353 # ------------------------------------- #
5354 # Checks for compiler characteristics. #
5355 # ------------------------------------- #
5357 echo $ac_n "checking for working const""... $ac_c" 1>&6
5358 echo "configure:5359: checking for working const" >&5
5359 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5368 /* Ultrix mips cc rejects this. */
5369 typedef int charset[2]; const charset x;
5370 /* SunOS 4.1.1 cc rejects this. */
5371 char const *const *ccp;
5373 /* NEC SVR4.0.2 mips cc rejects this. */
5374 struct point {int x, y;};
5375 static struct point const zero = {0,0};
5376 /* AIX XL C 1.02.0.0 rejects this.
5377 It does not let you subtract one const X* pointer from another in an arm
5378 of an if-expression whose if-part is not a constant expression */
5379 const char *g = "string";
5380 ccp = &g + (g ? g-g : 0);
5381 /* HPUX 7.0 cc rejects these. */
5384 ccp = (char const *const *) p;
5385 { /* SCO 3.2v4 cc rejects this. */
5387 char const *s = 0 ? (char *) 0 : (char const *) 0;
5391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5393 const int *foo = &x[0];
5396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5397 typedef const int *iptr;
5401 { /* AIX XL C 1.02.0.0 rejects this saying
5402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5403 struct s { int j; const int *ap[3]; };
5404 struct s *b; b->j = 5;
5406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5412 if { (eval echo configure:5413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5416 echo "configure: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5424 echo "$ac_t""$ac_cv_c_const" 1>&6
5425 if test $ac_cv_c_const = no; then
5426 cat >> confdefs.h <<\EOF
5432 echo $ac_n "checking for inline""... $ac_c" 1>&6
5433 echo "configure:5434: checking for inline" >&5
5434 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5438 for ac_kw in inline __inline__ __inline; do
5439 cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5447 if { (eval echo configure:5448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5449 ac_cv_c_inline=$ac_kw; break
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5459 echo "$ac_t""$ac_cv_c_inline" 1>&6
5460 case "$ac_cv_c_inline" in
5462 no) cat >> confdefs.h <<\EOF
5466 *) cat >> confdefs.h <<EOF
5467 #define inline $ac_cv_c_inline
5473 # ------------------------------ #
5474 # Checks for library functions. #
5475 # ------------------------------ #
5477 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5478 # for constant arguments. Useless!
5479 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5480 echo "configure:5481: checking for working alloca.h" >&5
5481 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5489 char *p = alloca(2 * sizeof(int));
5492 if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5494 ac_cv_header_alloca_h=yes
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5499 ac_cv_header_alloca_h=no
5504 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5505 if test $ac_cv_header_alloca_h = yes; then
5506 cat >> confdefs.h <<\EOF
5507 #define HAVE_ALLOCA_H 1
5512 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5513 echo "configure:5514: checking for alloca" >&5
5514 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5522 # define alloca __builtin_alloca
5525 # include <malloc.h>
5526 # define alloca _alloca
5529 # include <alloca.h>
5534 # ifndef alloca /* predefined by HP cc +Olibcalls */
5543 char *p = (char *) alloca(1);
5546 if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5548 ac_cv_func_alloca_works=yes
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5553 ac_cv_func_alloca_works=no
5558 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5559 if test $ac_cv_func_alloca_works = yes; then
5560 cat >> confdefs.h <<\EOF
5561 #define HAVE_ALLOCA 1
5566 if test $ac_cv_func_alloca_works = no; then
5567 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5568 # that cause trouble. Some versions do not even contain alloca or
5569 # contain a buggy version. If you still want to use their alloca,
5570 # use ar to extract alloca.o from them instead of compiling alloca.c.
5571 ALLOCA=alloca.${ac_objext}
5572 cat >> confdefs.h <<\EOF
5577 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5578 echo "configure:5579: checking whether alloca needs Cray hooks" >&5
5579 if eval "test \"`echo '$''{'ac_cv_os_cray'+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"
5585 #if defined(CRAY) && ! defined(CRAY2)
5592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5593 egrep "webecray" >/dev/null 2>&1; then
5604 echo "$ac_t""$ac_cv_os_cray" 1>&6
5605 if test $ac_cv_os_cray = yes; then
5606 for ac_func in _getb67 GETB67 getb67; do
5607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5608 echo "configure:5609: checking for $ac_func" >&5
5609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 /* System header to define __stub macros and hopefully few prototypes,
5616 which can conflict with char $ac_func(); below. */
5618 /* Override any gcc2 internal prototype to avoid an error. */
5619 /* We use char because int might match the return type of a gcc2
5620 builtin and then its argument prototype would still apply. */
5625 /* The GNU C library defines this for functions which it implements
5626 to always fail with ENOSYS. Some functions are actually named
5627 something starting with __ and the normal name is an alias. */
5628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5636 if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5638 eval "ac_cv_func_$ac_func=yes"
5640 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5643 eval "ac_cv_func_$ac_func=no"
5648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5650 cat >> confdefs.h <<EOF
5651 #define CRAY_STACKSEG_END $ac_func
5656 echo "$ac_t""no" 1>&6
5662 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5663 echo "configure:5664: checking stack direction for C alloca" >&5
5664 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5667 if test "$cross_compiling" = yes; then
5668 ac_cv_c_stack_direction=0
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 find_stack_direction ()
5675 static char *addr = 0;
5680 return find_stack_direction ();
5683 return (&dummy > addr) ? 1 : -1;
5687 exit (find_stack_direction() < 0);
5690 if { (eval echo configure:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5692 ac_cv_c_stack_direction=1
5694 echo "configure: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5697 ac_cv_c_stack_direction=-1
5704 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5705 cat >> confdefs.h <<EOF
5706 #define STACK_DIRECTION $ac_cv_c_stack_direction
5711 for ac_hdr in unistd.h
5713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5715 echo "configure:5716: checking for $ac_hdr" >&5
5716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5725 { (eval echo configure:5726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5727 if test -z "$ac_err"; then
5729 eval "ac_cv_header_$ac_safe=yes"
5732 echo "configure: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5735 eval "ac_cv_header_$ac_safe=no"
5739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5740 echo "$ac_t""yes" 1>&6
5741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5742 cat >> confdefs.h <<EOF
5743 #define $ac_tr_hdr 1
5747 echo "$ac_t""no" 1>&6
5751 for ac_func in getpagesize
5753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5754 echo "configure:5755: checking for $ac_func" >&5
5755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5756 echo $ac_n "(cached) $ac_c" 1>&6
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5761 /* System header to define __stub macros and hopefully few prototypes,
5762 which can conflict with char $ac_func(); below. */
5764 /* Override any gcc2 internal prototype to avoid an error. */
5765 /* We use char because int might match the return type of a gcc2
5766 builtin and then its argument prototype would still apply. */
5771 /* The GNU C library defines this for functions which it implements
5772 to always fail with ENOSYS. Some functions are actually named
5773 something starting with __ and the normal name is an alias. */
5774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5782 if { (eval echo configure:5783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5784 eval "ac_cv_func_$ac_func=yes"
5786 echo "configure: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5789 eval "ac_cv_func_$ac_func=no"
5794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5795 echo "$ac_t""yes" 1>&6
5796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5797 cat >> confdefs.h <<EOF
5798 #define $ac_tr_func 1
5802 echo "$ac_t""no" 1>&6
5806 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5807 echo "configure:5808: checking for working mmap" >&5
5808 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5811 if test "$cross_compiling" = yes; then
5812 ac_cv_func_mmap_fixed_mapped=no
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5818 /* Thanks to Mike Haertel and Jim Avera for this test.
5819 Here is a matrix of mmap possibilities:
5820 mmap private not fixed
5821 mmap private fixed at somewhere currently unmapped
5822 mmap private fixed at somewhere already mapped
5823 mmap shared not fixed
5824 mmap shared fixed at somewhere currently unmapped
5825 mmap shared fixed at somewhere already mapped
5826 For private mappings, we should verify that changes cannot be read()
5827 back from the file, nor mmap's back from the file at a different
5828 address. (There have been systems where private was not correctly
5829 implemented like the infamous i386 svr4.0, and systems where the
5830 VM page cache was not coherent with the filesystem buffer cache
5831 like early versions of FreeBSD and possibly contemporary NetBSD.)
5832 For shared mappings, we should conversely verify that changes get
5833 propogated back to all the places they're supposed to be.
5835 Grep wants private fixed already mapped.
5836 The main things grep needs to know about mmap are:
5837 * does it exist and is it safe to write into the mmap'd area
5838 * how to use it (BSD variants) */
5839 #include <sys/types.h>
5841 #include <sys/mman.h>
5843 /* This mess was copied from the GNU getpagesize.h. */
5844 #ifndef HAVE_GETPAGESIZE
5845 # ifdef HAVE_UNISTD_H
5846 # include <unistd.h>
5849 /* Assume that all systems that can run configure have sys/param.h. */
5850 # ifndef HAVE_SYS_PARAM_H
5851 # define HAVE_SYS_PARAM_H 1
5854 # ifdef _SC_PAGESIZE
5855 # define getpagesize() sysconf(_SC_PAGESIZE)
5856 # else /* no _SC_PAGESIZE */
5857 # ifdef HAVE_SYS_PARAM_H
5858 # include <sys/param.h>
5859 # ifdef EXEC_PAGESIZE
5860 # define getpagesize() EXEC_PAGESIZE
5861 # else /* no EXEC_PAGESIZE */
5863 # define getpagesize() NBPG * CLSIZE
5866 # endif /* no CLSIZE */
5867 # else /* no NBPG */
5869 # define getpagesize() NBPC
5870 # else /* no NBPC */
5872 # define getpagesize() PAGESIZE
5873 # endif /* PAGESIZE */
5874 # endif /* no NBPC */
5875 # endif /* no NBPG */
5876 # endif /* no EXEC_PAGESIZE */
5877 # else /* no HAVE_SYS_PARAM_H */
5878 # define getpagesize() 8192 /* punt totally */
5879 # endif /* no HAVE_SYS_PARAM_H */
5880 # endif /* no _SC_PAGESIZE */
5882 #endif /* no HAVE_GETPAGESIZE */
5885 extern "C" { void *malloc(unsigned); }
5893 char *data, *data2, *data3;
5897 pagesize = getpagesize();
5900 * First, make a file with some known garbage in it.
5902 data = malloc(pagesize);
5905 for (i = 0; i < pagesize; ++i)
5906 *(data + i) = rand();
5908 fd = creat("conftestmmap", 0600);
5911 if (write(fd, data, pagesize) != pagesize)
5916 * Next, try to mmap the file at a fixed address which
5917 * already has something else allocated at it. If we can,
5918 * also make sure that we see the same garbage.
5920 fd = open("conftestmmap", O_RDWR);
5923 data2 = malloc(2 * pagesize);
5926 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5927 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5928 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5930 for (i = 0; i < pagesize; ++i)
5931 if (*(data + i) != *(data2 + i))
5935 * Finally, make sure that changes to the mapped area
5936 * do not percolate back to the file as seen by read().
5937 * (This is a bug on some variants of i386 svr4.0.)
5939 for (i = 0; i < pagesize; ++i)
5940 *(data2 + i) = *(data2 + i) + 1;
5941 data3 = malloc(pagesize);
5944 if (read(fd, data3, pagesize) != pagesize)
5946 for (i = 0; i < pagesize; ++i)
5947 if (*(data + i) != *(data3 + i))
5950 unlink("conftestmmap");
5955 if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5957 ac_cv_func_mmap_fixed_mapped=yes
5959 echo "configure: failed program was:" >&5
5960 cat conftest.$ac_ext >&5
5962 ac_cv_func_mmap_fixed_mapped=no
5969 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5970 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5971 cat >> confdefs.h <<\EOF
5977 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5978 echo "configure:5979: checking for pid_t" >&5
5979 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5980 echo $ac_n "(cached) $ac_c" 1>&6
5982 cat > conftest.$ac_ext <<EOF
5983 #line 5984 "configure"
5984 #include "confdefs.h"
5985 #include <sys/types.h>
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5994 ac_cv_type_pid_t=yes
6002 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6003 if test $ac_cv_type_pid_t = no; then
6004 cat >> confdefs.h <<\EOF
6010 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6011 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6012 echo "configure:6013: checking for vfork.h" >&5
6013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6022 { (eval echo configure:6023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6024 if test -z "$ac_err"; then
6026 eval "ac_cv_header_$ac_safe=yes"
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6032 eval "ac_cv_header_$ac_safe=no"
6036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 cat >> confdefs.h <<\EOF
6039 #define HAVE_VFORK_H 1
6043 echo "$ac_t""no" 1>&6
6046 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6047 echo "configure:6048: checking for working vfork" >&5
6048 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6051 if test "$cross_compiling" = yes; then
6052 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6053 echo "configure:6054: checking for vfork" >&5
6054 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6060 /* System header to define __stub macros and hopefully few prototypes,
6061 which can conflict with char vfork(); below. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6070 /* The GNU C library defines this for functions which it implements
6071 to always fail with ENOSYS. Some functions are actually named
6072 something starting with __ and the normal name is an alias. */
6073 #if defined (__stub_vfork) || defined (__stub___vfork)
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6083 eval "ac_cv_func_vfork=yes"
6085 echo "configure: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6088 eval "ac_cv_func_vfork=no"
6093 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6094 echo "$ac_t""yes" 1>&6
6097 echo "$ac_t""no" 1>&6
6100 ac_cv_func_vfork_works=$ac_cv_func_vfork
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 /* Thanks to Paul Eggert for this test. */
6107 #include <sys/types.h>
6108 #include <sys/stat.h>
6109 #ifdef HAVE_UNISTD_H
6115 /* On some sparc systems, changes by the child to local and incoming
6116 argument registers are propagated back to the parent.
6117 The compiler is told about this with #include <vfork.h>,
6118 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6119 Test for this by using a static variable whose address
6120 is put into a register that is clobbered by the vfork. */
6123 sparc_address_test (int arg)
6125 sparc_address_test (arg) int arg;
6143 pid_t parent = getpid ();
6146 sparc_address_test ();
6151 /* Here is another test for sparc vfork register problems.
6152 This test uses lots of local variables, at least
6153 as many local variables as main has allocated so far
6154 including compiler temporaries. 4 locals are enough for
6155 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6156 A buggy compiler should reuse the register of parent
6157 for one of the local variables, since it will think that
6158 parent can't possibly be used any more in this routine.
6159 Assigning to the local variable will thus munge parent
6160 in the parent process. */
6162 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6163 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6164 /* Convince the compiler that p..p7 are live; otherwise, it might
6165 use the same hardware register for all 8 local variables. */
6166 if (p != p1 || p != p2 || p != p3 || p != p4
6167 || p != p5 || p != p6 || p != p7)
6170 /* On some systems (e.g. IRIX 3.3),
6171 vfork doesn't separate parent from child file descriptors.
6172 If the child closes a descriptor before it execs or exits,
6173 this munges the parent's descriptor as well.
6174 Test for this by closing stdout in the child. */
6175 _exit(close(fileno(stdout)) != 0);
6180 while (wait(&status) != child)
6183 /* Was there some problem with vforking? */
6186 /* Did the child fail? (This shouldn't happen.) */
6189 /* Did the vfork/compiler bug occur? */
6190 || parent != getpid()
6192 /* Did the file descriptor bug occur? */
6193 || fstat(fileno(stdout), &st) != 0
6198 if { (eval echo configure:6199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6200 ac_cv_func_vfork_works=yes
6202 echo "configure: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6205 ac_cv_func_vfork_works=no
6212 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6213 if test $ac_cv_func_vfork_works = no; then
6214 cat >> confdefs.h <<\EOF
6220 for ac_func in canonicalize_file_name realpath
6222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6223 echo "configure:6224: checking for $ac_func" >&5
6224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 /* System header to define __stub macros and hopefully few prototypes,
6231 which can conflict with char $ac_func(); below. */
6233 /* Override any gcc2 internal prototype to avoid an error. */
6234 /* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */
6240 /* The GNU C library defines this for functions which it implements
6241 to always fail with ENOSYS. Some functions are actually named
6242 something starting with __ and the normal name is an alias. */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6251 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6253 eval "ac_cv_func_$ac_func=yes"
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6258 eval "ac_cv_func_$ac_func=no"
6263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6264 echo "$ac_t""yes" 1>&6
6265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6266 cat >> confdefs.h <<EOF
6267 #define $ac_tr_func 1
6271 echo "$ac_t""no" 1>&6
6277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6278 echo "configure:6279: checking for $ac_func" >&5
6279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6282 cat > conftest.$ac_ext <<EOF
6283 #line 6284 "configure"
6284 #include "confdefs.h"
6285 /* System header to define __stub macros and hopefully few prototypes,
6286 which can conflict with char $ac_func(); below. */
6288 /* Override any gcc2 internal prototype to avoid an error. */
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6295 /* The GNU C library defines this for functions which it implements
6296 to always fail with ENOSYS. Some functions are actually named
6297 something starting with __ and the normal name is an alias. */
6298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6306 if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6308 eval "ac_cv_func_$ac_func=yes"
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6313 eval "ac_cv_func_$ac_func=no"
6318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6319 echo "$ac_t""yes" 1>&6
6320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6321 cat >> confdefs.h <<EOF
6322 #define $ac_tr_func 1
6326 echo "$ac_t""no" 1>&6
6330 for ac_func in pread64
6332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6333 echo "configure:6334: checking for $ac_func" >&5
6334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6335 echo $ac_n "(cached) $ac_c" 1>&6
6337 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6340 /* System header to define __stub macros and hopefully few prototypes,
6341 which can conflict with char $ac_func(); below. */
6343 /* Override any gcc2 internal prototype to avoid an error. */
6344 /* We use char because int might match the return type of a gcc2
6345 builtin and then its argument prototype would still apply. */
6350 /* The GNU C library defines this for functions which it implements
6351 to always fail with ENOSYS. Some functions are actually named
6352 something starting with __ and the normal name is an alias. */
6353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6363 eval "ac_cv_func_$ac_func=yes"
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6368 eval "ac_cv_func_$ac_func=no"
6373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6374 echo "$ac_t""yes" 1>&6
6375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6376 cat >> confdefs.h <<EOF
6377 #define $ac_tr_func 1
6381 echo "$ac_t""no" 1>&6
6387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6388 echo "configure:6389: checking for $ac_func" >&5
6389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 /* System header to define __stub macros and hopefully few prototypes,
6396 which can conflict with char $ac_func(); below. */
6398 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6405 /* The GNU C library defines this for functions which it implements
6406 to always fail with ENOSYS. Some functions are actually named
6407 something starting with __ and the normal name is an alias. */
6408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6416 if { (eval echo configure:6417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6418 eval "ac_cv_func_$ac_func=yes"
6420 echo "configure: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6423 eval "ac_cv_func_$ac_func=no"
6428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6431 cat >> confdefs.h <<EOF
6432 #define $ac_tr_func 1
6436 echo "$ac_t""no" 1>&6
6440 for ac_func in setpgid setpgrp
6442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6443 echo "configure:6444: checking for $ac_func" >&5
6444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 /* System header to define __stub macros and hopefully few prototypes,
6451 which can conflict with char $ac_func(); below. */
6453 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6460 /* The GNU C library defines this for functions which it implements
6461 to always fail with ENOSYS. Some functions are actually named
6462 something starting with __ and the normal name is an alias. */
6463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473 eval "ac_cv_func_$ac_func=yes"
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6478 eval "ac_cv_func_$ac_func=no"
6483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6484 echo "$ac_t""yes" 1>&6
6485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6486 cat >> confdefs.h <<EOF
6487 #define $ac_tr_func 1
6491 echo "$ac_t""no" 1>&6
6495 for ac_func in sigaction sigprocmask sigsetmask
6497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6498 echo "configure:6499: checking for $ac_func" >&5
6499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6505 /* System header to define __stub macros and hopefully few prototypes,
6506 which can conflict with char $ac_func(); below. */
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6515 /* The GNU C library defines this for functions which it implements
6516 to always fail with ENOSYS. Some functions are actually named
6517 something starting with __ and the normal name is an alias. */
6518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6526 if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6528 eval "ac_cv_func_$ac_func=yes"
6530 echo "configure: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6533 eval "ac_cv_func_$ac_func=no"
6538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6541 cat >> confdefs.h <<EOF
6542 #define $ac_tr_func 1
6546 echo "$ac_t""no" 1>&6
6550 for ac_func in socketpair
6552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6553 echo "configure:6554: checking for $ac_func" >&5
6554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6557 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6560 /* System header to define __stub macros and hopefully few prototypes,
6561 which can conflict with char $ac_func(); below. */
6563 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6570 /* The GNU C library defines this for functions which it implements
6571 to always fail with ENOSYS. Some functions are actually named
6572 something starting with __ and the normal name is an alias. */
6573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6581 if { (eval echo configure:6582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6583 eval "ac_cv_func_$ac_func=yes"
6585 echo "configure: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6588 eval "ac_cv_func_$ac_func=no"
6593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6594 echo "$ac_t""yes" 1>&6
6595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6596 cat >> confdefs.h <<EOF
6597 #define $ac_tr_func 1
6601 echo "$ac_t""no" 1>&6
6606 if test "$cross_compiling" = no; then
6607 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6608 echo "configure:6609: checking whether setpgrp takes no argument" >&5
6609 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6612 if test "$cross_compiling" = yes; then
6613 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
6615 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6619 #ifdef HAVE_UNISTD_H
6624 * If this system has a BSD-style setpgrp, which takes arguments, exit
6629 if (setpgrp(1,1) == -1)
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6638 ac_cv_func_setpgrp_void=no
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6643 ac_cv_func_setpgrp_void=yes
6651 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6652 if test $ac_cv_func_setpgrp_void = yes; then
6653 cat >> confdefs.h <<\EOF
6654 #define SETPGRP_VOID 1
6660 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6661 echo "configure:6662: checking whether setpgrp takes no argument" >&5
6662 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6665 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6673 if (setpgrp(1,1) == -1)
6680 if { (eval echo configure:6681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6682 ac_cv_func_setpgrp_void=no
6684 echo "configure: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6687 ac_cv_func_setpgrp_void=yes
6692 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6693 if test $ac_cv_func_setpgrp_void = yes; then
6694 cat >> confdefs.h <<\EOF
6695 #define SETPGRP_VOID 1
6701 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
6702 # since sigsetjmp might only be defined as a macro.
6703 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6704 echo "configure:6705: checking for sigsetjmp" >&5
6705 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6715 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6718 if { (eval echo configure:6719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6720 gdb_cv_func_sigsetjmp=yes
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6725 gdb_cv_func_sigsetjmp=no
6730 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
6731 if test $gdb_cv_func_sigsetjmp = yes; then
6732 cat >> confdefs.h <<\EOF
6733 #define HAVE_SIGSETJMP 1
6738 # Assume we'll default to using the included libiberty regex.
6739 gdb_use_included_regex=yes
6741 # However, if the system regex is GNU regex, then default to *not*
6742 # using the included regex.
6743 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6744 echo "configure:6745: checking for GNU regex" >&5
6745 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6751 #include <gnu-versions.h>
6753 #define REGEX_INTERFACE_VERSION 1
6754 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
6755 # error "Version mismatch"
6759 if { (eval echo configure:6760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6761 gdb_cv_have_gnu_regex=yes
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6766 gdb_cv_have_gnu_regex=no
6771 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6772 if test $gdb_cv_have_gnu_regex = yes; then
6773 gdb_use_included_regex=no
6776 # Check whether --with-included-regex or --without-included-regex was given.
6777 if test "${with_included_regex+set}" = set; then
6778 withval="$with_included_regex"
6779 gdb_with_regex=$withval
6781 gdb_with_regex=$gdb_use_included_regex
6784 if test "$gdb_with_regex" = yes; then
6785 cat >> confdefs.h <<\EOF
6786 #define USE_INCLUDED_REGEX 1
6791 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
6792 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
6793 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
6794 echo "configure:6795: checking for r_fs in struct reg" >&5
6795 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 #include <machine/reg.h>
6803 struct reg r; r.r_fs;
6806 if { (eval echo configure:6807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6808 gdb_cv_struct_reg_r_fs=yes
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 gdb_cv_struct_reg_r_fs=no
6818 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
6819 if test $gdb_cv_struct_reg_r_fs = yes; then
6820 cat >> confdefs.h <<\EOF
6821 #define HAVE_STRUCT_REG_R_FS 1
6825 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
6826 echo "configure:6827: checking for r_gs in struct reg" >&5
6827 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 #include <machine/reg.h>
6835 struct reg r; r.r_gs;
6838 if { (eval echo configure:6839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6840 gdb_cv_struct_reg_r_gs=yes
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 gdb_cv_struct_reg_r_gs=no
6850 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
6851 if test $gdb_cv_struct_reg_r_gs = yes; then
6852 cat >> confdefs.h <<\EOF
6853 #define HAVE_STRUCT_REG_R_GS 1
6858 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
6859 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
6860 echo "configure:6861: checking for PTRACE_GETREGS" >&5
6861 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 #include <sys/ptrace.h>
6872 if { (eval echo configure:6873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6874 gdb_cv_have_ptrace_getregs=yes
6876 echo "configure: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6879 gdb_cv_have_ptrace_getregs=no
6884 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
6885 if test $gdb_cv_have_ptrace_getregs = yes; then
6886 cat >> confdefs.h <<\EOF
6887 #define HAVE_PTRACE_GETREGS 1
6892 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
6893 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
6894 echo "configure:6895: checking for PTRACE_GETFPXREGS" >&5
6895 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
6896 echo $ac_n "(cached) $ac_c" 1>&6
6898 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 #include <sys/ptrace.h>
6906 if { (eval echo configure:6907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6908 gdb_cv_have_ptrace_getfpxregs=yes
6910 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6913 gdb_cv_have_ptrace_getfpxregs=no
6918 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
6919 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
6920 cat >> confdefs.h <<\EOF
6921 #define HAVE_PTRACE_GETFPXREGS 1
6926 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
6927 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
6928 echo "configure:6929: checking for PT_GETDBREGS" >&5
6929 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6935 #include <sys/types.h>
6936 #include <sys/ptrace.h>
6941 if { (eval echo configure:6942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6943 gdb_cv_have_pt_getdbregs=yes
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 gdb_cv_have_pt_getdbregs=no
6953 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
6954 if test $gdb_cv_have_pt_getdbregs = yes; then
6955 cat >> confdefs.h <<\EOF
6956 #define HAVE_PT_GETDBREGS 1
6961 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
6962 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
6963 echo "configure:6964: checking for PT_GETXMMREGS" >&5
6964 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
6965 echo $ac_n "(cached) $ac_c" 1>&6
6967 cat > conftest.$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6970 #include <sys/types.h>
6971 #include <sys/ptrace.h>
6976 if { (eval echo configure:6977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6978 gdb_cv_have_pt_getxmmregs=yes
6980 echo "configure: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6983 gdb_cv_have_pt_getxmmregs=no
6988 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
6989 if test $gdb_cv_have_pt_getxmmregs = yes; then
6990 cat >> confdefs.h <<\EOF
6991 #define HAVE_PT_GETXMMREGS 1
6997 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
6998 echo "configure:6999: checking whether malloc must be declared" >&5
6999 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7000 echo $ac_n "(cached) $ac_c" 1>&6
7002 cat > conftest.$ac_ext <<EOF
7003 #line 7004 "configure"
7004 #include "confdefs.h"
7007 #ifdef HAVE_STRING_H
7010 #ifdef HAVE_STRINGS_H
7011 #include <strings.h>
7014 #ifdef HAVE_STDLIB_H
7017 #ifdef HAVE_UNISTD_H
7021 char *(*pfn) = (char *(*)) malloc
7024 if { (eval echo configure:7025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7026 bfd_cv_decl_needed_malloc=no
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 bfd_cv_decl_needed_malloc=yes
7036 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7037 if test $bfd_cv_decl_needed_malloc = yes; then
7038 cat >> confdefs.h <<\EOF
7039 #define NEED_DECLARATION_MALLOC 1
7044 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7045 echo "configure:7046: checking whether realloc must be declared" >&5
7046 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7054 #ifdef HAVE_STRING_H
7057 #ifdef HAVE_STRINGS_H
7058 #include <strings.h>
7061 #ifdef HAVE_STDLIB_H
7064 #ifdef HAVE_UNISTD_H
7068 char *(*pfn) = (char *(*)) realloc
7071 if { (eval echo configure:7072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7073 bfd_cv_decl_needed_realloc=no
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 bfd_cv_decl_needed_realloc=yes
7083 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7084 if test $bfd_cv_decl_needed_realloc = yes; then
7085 cat >> confdefs.h <<\EOF
7086 #define NEED_DECLARATION_REALLOC 1
7091 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7092 echo "configure:7093: checking whether free must be declared" >&5
7093 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7101 #ifdef HAVE_STRING_H
7104 #ifdef HAVE_STRINGS_H
7105 #include <strings.h>
7108 #ifdef HAVE_STDLIB_H
7111 #ifdef HAVE_UNISTD_H
7115 char *(*pfn) = (char *(*)) free
7118 if { (eval echo configure:7119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7120 bfd_cv_decl_needed_free=no
7122 echo "configure: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7125 bfd_cv_decl_needed_free=yes
7130 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7131 if test $bfd_cv_decl_needed_free = yes; then
7132 cat >> confdefs.h <<\EOF
7133 #define NEED_DECLARATION_FREE 1
7138 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7139 echo "configure:7140: checking whether strerror must be declared" >&5
7140 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7148 #ifdef HAVE_STRING_H
7151 #ifdef HAVE_STRINGS_H
7152 #include <strings.h>
7155 #ifdef HAVE_STDLIB_H
7158 #ifdef HAVE_UNISTD_H
7162 char *(*pfn) = (char *(*)) strerror
7165 if { (eval echo configure:7166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7167 bfd_cv_decl_needed_strerror=no
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 bfd_cv_decl_needed_strerror=yes
7177 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7178 if test $bfd_cv_decl_needed_strerror = yes; then
7179 cat >> confdefs.h <<\EOF
7180 #define NEED_DECLARATION_STRERROR 1
7185 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7186 echo "configure:7187: checking whether strdup must be declared" >&5
7187 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7195 #ifdef HAVE_STRING_H
7198 #ifdef HAVE_STRINGS_H
7199 #include <strings.h>
7202 #ifdef HAVE_STDLIB_H
7205 #ifdef HAVE_UNISTD_H
7209 char *(*pfn) = (char *(*)) strdup
7212 if { (eval echo configure:7213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7214 bfd_cv_decl_needed_strdup=no
7216 echo "configure: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7219 bfd_cv_decl_needed_strdup=yes
7224 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7225 if test $bfd_cv_decl_needed_strdup = yes; then
7226 cat >> confdefs.h <<\EOF
7227 #define NEED_DECLARATION_STRDUP 1
7232 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7233 echo "configure:7234: checking whether strstr must be declared" >&5
7234 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7242 #ifdef HAVE_STRING_H
7245 #ifdef HAVE_STRINGS_H
7246 #include <strings.h>
7249 #ifdef HAVE_STDLIB_H
7252 #ifdef HAVE_UNISTD_H
7256 char *(*pfn) = (char *(*)) strstr
7259 if { (eval echo configure:7260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7261 bfd_cv_decl_needed_strstr=no
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7266 bfd_cv_decl_needed_strstr=yes
7271 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7272 if test $bfd_cv_decl_needed_strstr = yes; then
7273 cat >> confdefs.h <<\EOF
7274 #define NEED_DECLARATION_STRSTR 1
7279 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7280 echo "configure:7281: checking whether canonicalize_file_name must be declared" >&5
7281 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7282 echo $ac_n "(cached) $ac_c" 1>&6
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7289 #ifdef HAVE_STRING_H
7292 #ifdef HAVE_STRINGS_H
7293 #include <strings.h>
7296 #ifdef HAVE_STDLIB_H
7299 #ifdef HAVE_UNISTD_H
7303 char *(*pfn) = (char *(*)) canonicalize_file_name
7306 if { (eval echo configure:7307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7308 bfd_cv_decl_needed_canonicalize_file_name=no
7310 echo "configure: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7313 bfd_cv_decl_needed_canonicalize_file_name=yes
7318 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7319 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7320 cat >> confdefs.h <<\EOF
7321 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7327 # The following save_state_t checkery is only necessary for HPUX
7328 # versions earlier than 10.20. When those fade from memory, this
7329 # could be expunged. --jsm 1999-03-22
7331 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7332 echo "configure:7333: checking for HPUX save_state structure" >&5
7333 cat > conftest.$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7336 #include <machine/save_state.h>
7338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7339 egrep "save_state_t" >/dev/null 2>&1; then
7341 gdb_cv_hpux_savestate=yes
7344 gdb_cv_hpux_savestate=no
7348 cat > conftest.$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 #include <machine/save_state.h>
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354 egrep "ss_wide" >/dev/null 2>&1; then
7356 gdb_cv_hpux_sswide=yes
7359 gdb_cv_hpux_sswide=no
7363 if test $gdb_cv_hpux_savestate = yes
7365 cat >> confdefs.h <<\EOF
7366 #define HAVE_STRUCT_SAVE_STATE_T 1
7370 if test $gdb_cv_hpux_sswide = yes
7372 cat >> confdefs.h <<\EOF
7373 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7377 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7380 # If we are configured native on GNU/Linux, work around problems with
7382 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7384 if test "${target}" = "${host}"; then
7387 cat >> confdefs.h <<\EOF
7388 #define START_INFERIOR_TRAPS_EXPECTED 2
7391 cat >> confdefs.h <<\EOF
7392 #define sys_quotactl 1
7397 cat >> confdefs.h <<\EOF
7398 #define NEW_PROC_API 1
7402 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
7403 cat >> confdefs.h <<\EOF
7404 #define NEW_PROC_API 1
7409 cat >> confdefs.h <<\EOF
7410 #define NEW_PROC_API 1
7417 if test "$ac_cv_header_sys_procfs_h" = yes; then
7418 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7419 echo "configure:7420: checking for pstatus_t in sys/procfs.h" >&5
7420 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7421 echo $ac_n "(cached) $ac_c" 1>&6
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7428 #include <sys/procfs.h>
7433 if { (eval echo configure:7434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7435 bfd_cv_have_sys_procfs_type_pstatus_t=yes
7437 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7440 bfd_cv_have_sys_procfs_type_pstatus_t=no
7446 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7447 cat >> confdefs.h <<\EOF
7448 #define HAVE_PSTATUS_T 1
7452 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7454 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7455 echo "configure:7456: checking for prrun_t in sys/procfs.h" >&5
7456 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7464 #include <sys/procfs.h>
7469 if { (eval echo configure:7470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7471 bfd_cv_have_sys_procfs_type_prrun_t=yes
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7476 bfd_cv_have_sys_procfs_type_prrun_t=no
7482 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7483 cat >> confdefs.h <<\EOF
7484 #define HAVE_PRRUN_T 1
7488 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7490 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7491 echo "configure:7492: checking for gregset_t in sys/procfs.h" >&5
7492 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7493 echo $ac_n "(cached) $ac_c" 1>&6
7495 cat > conftest.$ac_ext <<EOF
7496 #line 7497 "configure"
7497 #include "confdefs.h"
7500 #include <sys/procfs.h>
7505 if { (eval echo configure:7506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7507 bfd_cv_have_sys_procfs_type_gregset_t=yes
7509 echo "configure: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7512 bfd_cv_have_sys_procfs_type_gregset_t=no
7518 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
7519 cat >> confdefs.h <<\EOF
7520 #define HAVE_GREGSET_T 1
7524 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
7526 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
7527 echo "configure:7528: checking for fpregset_t in sys/procfs.h" >&5
7528 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7531 cat > conftest.$ac_ext <<EOF
7532 #line 7533 "configure"
7533 #include "confdefs.h"
7536 #include <sys/procfs.h>
7541 if { (eval echo configure:7542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7543 bfd_cv_have_sys_procfs_type_fpregset_t=yes
7545 echo "configure: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7548 bfd_cv_have_sys_procfs_type_fpregset_t=no
7554 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
7555 cat >> confdefs.h <<\EOF
7556 #define HAVE_FPREGSET_T 1
7560 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
7562 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
7563 echo "configure:7564: checking for prgregset_t in sys/procfs.h" >&5
7564 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7572 #include <sys/procfs.h>
7577 if { (eval echo configure:7578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7579 bfd_cv_have_sys_procfs_type_prgregset_t=yes
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7584 bfd_cv_have_sys_procfs_type_prgregset_t=no
7590 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7591 cat >> confdefs.h <<\EOF
7592 #define HAVE_PRGREGSET_T 1
7596 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
7598 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
7599 echo "configure:7600: checking for prfpregset_t in sys/procfs.h" >&5
7600 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7608 #include <sys/procfs.h>
7613 if { (eval echo configure:7614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7615 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7620 bfd_cv_have_sys_procfs_type_prfpregset_t=no
7626 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7627 cat >> confdefs.h <<\EOF
7628 #define HAVE_PRFPREGSET_T 1
7632 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
7634 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
7635 echo "configure:7636: checking for prgregset32_t in sys/procfs.h" >&5
7636 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7644 #include <sys/procfs.h>
7649 if { (eval echo configure:7650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7651 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
7653 echo "configure: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7656 bfd_cv_have_sys_procfs_type_prgregset32_t=no
7662 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
7663 cat >> confdefs.h <<\EOF
7664 #define HAVE_PRGREGSET32_T 1
7668 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
7670 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
7671 echo "configure:7672: checking for prfpregset32_t in sys/procfs.h" >&5
7672 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7675 cat > conftest.$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7680 #include <sys/procfs.h>
7685 if { (eval echo configure:7686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7687 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7692 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
7698 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
7699 cat >> confdefs.h <<\EOF
7700 #define HAVE_PRFPREGSET32_T 1
7704 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
7706 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
7707 echo "configure:7708: checking for lwpid_t in sys/procfs.h" >&5
7708 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
7709 echo $ac_n "(cached) $ac_c" 1>&6
7711 cat > conftest.$ac_ext <<EOF
7712 #line 7713 "configure"
7713 #include "confdefs.h"
7716 #include <sys/procfs.h>
7721 if { (eval echo configure:7722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7723 bfd_cv_have_sys_procfs_type_lwpid_t=yes
7725 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7728 bfd_cv_have_sys_procfs_type_lwpid_t=no
7734 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7735 cat >> confdefs.h <<\EOF
7736 #define HAVE_LWPID_T 1
7740 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
7742 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
7743 echo "configure:7744: checking for psaddr_t in sys/procfs.h" >&5
7744 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7752 #include <sys/procfs.h>
7757 if { (eval echo configure:7758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7759 bfd_cv_have_sys_procfs_type_psaddr_t=yes
7761 echo "configure: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7764 bfd_cv_have_sys_procfs_type_psaddr_t=no
7770 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7771 cat >> confdefs.h <<\EOF
7772 #define HAVE_PSADDR_T 1
7776 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
7778 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
7779 echo "configure:7780: checking for prsysent_t in sys/procfs.h" >&5
7780 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
7781 echo $ac_n "(cached) $ac_c" 1>&6
7783 cat > conftest.$ac_ext <<EOF
7784 #line 7785 "configure"
7785 #include "confdefs.h"
7788 #include <sys/procfs.h>
7793 if { (eval echo configure:7794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7795 bfd_cv_have_sys_procfs_type_prsysent_t=yes
7797 echo "configure: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7800 bfd_cv_have_sys_procfs_type_prsysent_t=no
7806 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
7807 cat >> confdefs.h <<\EOF
7808 #define HAVE_PRSYSENT_T 1
7812 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
7814 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
7815 echo "configure:7816: checking for pr_sigset_t in sys/procfs.h" >&5
7816 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
7817 echo $ac_n "(cached) $ac_c" 1>&6
7819 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7824 #include <sys/procfs.h>
7829 if { (eval echo configure:7830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7831 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
7833 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5
7836 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
7842 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
7843 cat >> confdefs.h <<\EOF
7844 #define HAVE_PR_SIGSET_T 1
7848 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
7850 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
7851 echo "configure:7852: checking for pr_sigaction64_t in sys/procfs.h" >&5
7852 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7855 cat > conftest.$ac_ext <<EOF
7856 #line 7857 "configure"
7857 #include "confdefs.h"
7860 #include <sys/procfs.h>
7862 pr_sigaction64_t avar
7865 if { (eval echo configure:7866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7867 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
7878 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
7879 cat >> confdefs.h <<\EOF
7880 #define HAVE_PR_SIGACTION64_T 1
7884 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
7886 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
7887 echo "configure:7888: checking for pr_siginfo64_t in sys/procfs.h" >&5
7888 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7896 #include <sys/procfs.h>
7901 if { (eval echo configure:7902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7903 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7908 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
7914 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
7915 cat >> confdefs.h <<\EOF
7916 #define HAVE_PR_SIGINFO64_T 1
7920 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
7926 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7927 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
7928 echo "configure:7929: checking whether prfpregset_t type is broken" >&5
7929 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
7930 echo $ac_n "(cached) $ac_c" 1>&6
7932 if test "$cross_compiling" = yes; then
7933 gdb_cv_prfpregset_t_broken=yes
7935 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure"
7937 #include "confdefs.h"
7938 #include <sys/procfs.h>
7941 if (sizeof (prfpregset_t) == sizeof (void *))
7946 if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7948 gdb_cv_prfpregset_t_broken=no
7950 echo "configure: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7953 gdb_cv_prfpregset_t_broken=yes
7960 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
7961 if test $gdb_cv_prfpregset_t_broken = yes; then
7962 cat >> confdefs.h <<\EOF
7963 #define PRFPREGSET_T_BROKEN 1
7970 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
7971 echo "configure:7972: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
7972 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7979 #include <sys/types.h>
7980 #include <sys/procfs.h>
7985 dummy = ioctl(0, PIOCSET, &dummy);
7989 if { (eval echo configure:7990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7991 gdb_cv_have_procfs_piocset=yes
7993 echo "configure: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7996 gdb_cv_have_procfs_piocset=no
8001 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8002 if test $gdb_cv_have_procfs_piocset = yes; then
8003 cat >> confdefs.h <<\EOF
8004 #define HAVE_PROCFS_PIOCSET 1
8010 if test ${host} = ${target} ; then
8012 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8013 echo "configure:8014: checking for member l_addr in struct link_map" >&5
8014 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8017 cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8022 struct link_map lm; (void) lm.l_addr;
8025 if { (eval echo configure:8026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8027 gdb_cv_have_struct_link_map_with_l_members=yes
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8032 gdb_cv_have_struct_link_map_with_l_members=no
8037 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8038 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8039 cat >> confdefs.h <<\EOF
8040 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8046 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8047 echo "configure:8048: checking for member lm_addr in struct link_map" >&5
8048 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8051 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8054 #include <sys/types.h>
8057 struct link_map lm; (void) lm.lm_addr;
8060 if { (eval echo configure:8061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8062 gdb_cv_have_struct_link_map_with_lm_members=yes
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8067 gdb_cv_have_struct_link_map_with_lm_members=no
8072 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8073 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8074 cat >> confdefs.h <<\EOF
8075 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8081 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8082 echo "configure:8083: checking for member som_addr in struct so_map" >&5
8083 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8086 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 #include <sys/types.h>
8095 struct so_map lm; (void) lm.som_addr;
8098 if { (eval echo configure:8099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8100 gdb_cv_have_struct_so_map_with_som_members=yes
8102 echo "configure: failed program was:" >&5
8103 cat conftest.$ac_ext >&5
8105 gdb_cv_have_struct_so_map_with_som_members=no
8110 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8111 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8112 cat >> confdefs.h <<\EOF
8113 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8119 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8120 echo "configure:8121: checking for struct link_map32 in sys/link.h" >&5
8121 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8122 echo $ac_n "(cached) $ac_c" 1>&6
8124 cat > conftest.$ac_ext <<EOF
8125 #line 8126 "configure"
8126 #include "confdefs.h"
8128 #include <sys/link.h>
8130 struct link_map32 l;
8133 if { (eval echo configure:8134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8135 gdb_cv_have_struct_link_map32=yes
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8140 gdb_cv_have_struct_link_map32=no
8145 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8146 if test $gdb_cv_have_struct_link_map32 = yes; then
8147 cat >> confdefs.h <<\EOF
8148 #define HAVE_STRUCT_LINK_MAP32 1
8151 cat >> confdefs.h <<\EOF
8152 #define _SYSCALL32 1
8159 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8160 echo "configure:8161: checking for long long support in compiler" >&5
8161 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8162 echo $ac_n "(cached) $ac_c" 1>&6
8164 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8170 extern long long foo;
8171 switch (foo & 2) { case 0: return 1; }
8175 if { (eval echo configure:8176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8177 gdb_cv_c_long_long=yes
8179 echo "configure: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8182 gdb_cv_c_long_long=no
8187 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8188 if test $gdb_cv_c_long_long = yes; then
8189 cat >> confdefs.h <<\EOF
8190 #define CC_HAS_LONG_LONG 1
8196 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8197 echo "configure:8198: checking for long long support in printf" >&5
8198 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8199 echo $ac_n "(cached) $ac_c" 1>&6
8201 if test "$cross_compiling" = yes; then
8202 gdb_cv_printf_has_long_long=no
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8211 l = (l << 16) + 0x0123;
8212 l = (l << 16) + 0x4567;
8213 l = (l << 16) + 0x89ab;
8214 l = (l << 16) + 0xcdef;
8215 sprintf (buf, "0x%016llx", l);
8216 return (strcmp ("0x0123456789abcdef", buf));
8219 if { (eval echo configure:8220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8221 gdb_cv_printf_has_long_long=yes
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8226 gdb_cv_printf_has_long_long=no
8233 if test $gdb_cv_printf_has_long_long = yes; then
8234 cat >> confdefs.h <<\EOF
8235 #define PRINTF_HAS_LONG_LONG 1
8239 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8242 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8243 echo "configure:8244: checking for long double support in compiler" >&5
8244 if eval "test \"`echo '$''{'ac_cv_c_long_double'+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"
8255 if { (eval echo configure:8256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8257 ac_cv_c_long_double=yes
8259 echo "configure: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8262 ac_cv_c_long_double=no
8267 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8268 if test $ac_cv_c_long_double = yes; then
8269 cat >> confdefs.h <<\EOF
8270 #define HAVE_LONG_DOUBLE 1
8276 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8277 echo "configure:8278: checking for long double support in printf" >&5
8278 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8279 echo $ac_n "(cached) $ac_c" 1>&6
8281 if test "$cross_compiling" = yes; then
8282 gdb_cv_printf_has_long_double=no
8284 cat > conftest.$ac_ext <<EOF
8285 #line 8286 "configure"
8286 #include "confdefs.h"
8290 long double f = 3.141592653;
8291 sprintf (buf, "%Lg", f);
8292 return (strncmp ("3.14159", buf, 7));
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8297 gdb_cv_printf_has_long_double=yes
8299 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8302 gdb_cv_printf_has_long_double=no
8309 if test $gdb_cv_printf_has_long_double = yes; then
8310 cat >> confdefs.h <<\EOF
8311 #define PRINTF_HAS_LONG_DOUBLE 1
8315 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8318 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8319 echo "configure:8320: checking for long double support in scanf" >&5
8320 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8321 echo $ac_n "(cached) $ac_c" 1>&6
8323 if test "$cross_compiling" = yes; then
8324 gdb_cv_scanf_has_long_double=no
8326 cat > conftest.$ac_ext <<EOF
8327 #line 8328 "configure"
8328 #include "confdefs.h"
8331 char *buf = "3.141592653";
8333 sscanf (buf, "%Lg", &f);
8334 return !(f > 3.14159 && f < 3.14160);
8337 if { (eval echo configure:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8339 gdb_cv_scanf_has_long_double=yes
8341 echo "configure: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8344 gdb_cv_scanf_has_long_double=no
8351 if test $gdb_cv_scanf_has_long_double = yes; then
8352 cat >> confdefs.h <<\EOF
8353 #define SCANF_HAS_LONG_DOUBLE 1
8357 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8361 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8362 echo "configure:8363: checking for -bbigtoc option" >&5
8363 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8364 echo $ac_n "(cached) $ac_c" 1>&6
8367 SAVE_LDFLAGS=$LDFLAGS
8370 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8371 *) gdb_cv_bigtoc=-bbigtoc ;;
8374 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8375 cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8386 echo "configure: failed program was:" >&5
8387 cat conftest.$ac_ext >&5
8395 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8396 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8402 if test ${build} = ${host} -a ${host} = ${target} ; then
8405 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8406 echo "configure:8407: checking for HPUX/OSF thread support" >&5
8407 if test -f /usr/include/dce/cma_config.h ; then
8408 if test "$GCC" = "yes" ; then
8409 echo "$ac_t""yes" 1>&6
8410 cat >> confdefs.h <<\EOF
8411 #define HAVE_HPUX_THREAD_SUPPORT 1
8414 CONFIG_LIB_OBS="${CONFIG_LIB_OBS} hpux-thread.o"
8415 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
8417 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8420 echo "$ac_t""no" 1>&6
8424 # See if thread_db library is around for Solaris thread debugging.
8425 # Note that we must explicitly test for version 1 of the library
8426 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8428 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8429 echo "configure:8430: checking for Solaris thread debugging library" >&5
8430 if test -f /usr/lib/libthread_db.so.1 ; then
8431 echo "$ac_t""yes" 1>&6
8432 cat >> confdefs.h <<\EOF
8433 #define HAVE_THREAD_DB_LIB 1
8436 CONFIG_LIB_OBS="${CONFIG_LIB_OBS} sol-thread.o"
8437 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
8438 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8439 echo "configure:8440: checking for dlopen in -ldl" >&5
8440 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8442 echo $ac_n "(cached) $ac_c" 1>&6
8444 ac_save_LIBS="$LIBS"
8446 cat > conftest.$ac_ext <<EOF
8447 #line 8448 "configure"
8448 #include "confdefs.h"
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 /* We use char because int might match the return type of a gcc2
8451 builtin and then its argument prototype would still apply. */
8458 if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8460 eval "ac_cv_lib_$ac_lib_var=yes"
8462 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8465 eval "ac_cv_lib_$ac_lib_var=no"
8468 LIBS="$ac_save_LIBS"
8471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8472 echo "$ac_t""yes" 1>&6
8473 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8474 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8475 cat >> confdefs.h <<EOF
8476 #define $ac_tr_lib 1
8482 echo "$ac_t""no" 1>&6
8485 if test "$GCC" = "yes" ; then
8486 # The GNU linker requires the -export-dynamic option to make
8487 # all symbols visible in the dynamic symbol table.
8488 hold_ldflags=$LDFLAGS
8489 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8490 echo "configure:8491: checking for the ld -export-dynamic flag" >&5
8491 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8492 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure"
8494 #include "confdefs.h"
8500 if { (eval echo configure:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8504 echo "configure: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8510 LDFLAGS=$hold_ldflags
8511 echo "$ac_t""$found" 1>&6
8512 if test $found = yes; then
8513 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
8516 # Sun randomly tweaked the prototypes in <proc_service.h>
8518 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
8519 echo "configure:8520: checking if <proc_service.h> is old" >&5
8520 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8524 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure"
8526 #include "confdefs.h"
8528 #include <proc_service.h>
8530 (struct ps_prochandle*, psaddr_t, const void*, size_t);
8536 if { (eval echo configure:8537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8538 gdb_cv_proc_service_is_old=no
8540 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8543 gdb_cv_proc_service_is_old=yes
8549 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
8550 if test $gdb_cv_proc_service_is_old = yes; then
8551 cat >> confdefs.h <<\EOF
8552 #define PROC_SERVICE_IS_OLD 1
8557 echo "$ac_t""no" 1>&6
8561 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
8562 echo "configure:8563: checking for AiX thread debugging library" >&5
8563 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
8564 echo $ac_n "(cached) $ac_c" 1>&6
8566 cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
8569 #include <sys/pthdebug.h>
8571 #ifndef PTHDB_VERSION_3
8576 if { (eval echo configure:8577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8578 gdb_cv_have_aix_thread_debug=yes
8580 echo "configure: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8583 gdb_cv_have_aix_thread_debug=no
8588 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
8589 if test $gdb_cv_have_aix_thread_debug = yes; then
8590 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
8591 CONFIG_LIB_OBS="${CONFIG_LIB_OBS} aix-thread.o"
8592 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
8599 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
8600 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
8601 echo "configure:8602: checking whether <thread_db.h> has TD_NOTALLOC" >&5
8602 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8605 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 #include <thread_db.h>
8610 int i = TD_NOTALLOC;
8613 if { (eval echo configure:8614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8615 gdb_cv_thread_db_h_has_td_notalloc=yes
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8620 gdb_cv_thread_db_h_has_td_notalloc=no
8627 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
8629 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
8630 cat >> confdefs.h <<\EOF
8631 #define THREAD_DB_HAS_TD_NOTALLOC 1
8637 # Check whether --with-sysroot or --without-sysroot was given.
8638 if test "${with_sysroot+set}" = set; then
8639 withval="$with_sysroot"
8641 case ${with_sysroot} in
8642 yes) { echo "configure: error: with-sysroot must specify path" 1>&2; exit 1; } ;;
8643 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
8646 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8648 if test "x$exec_prefix" = xNONE; then
8649 if test "x$prefix" = xNONE; then
8650 test_prefix=/usr/local
8655 test_prefix=$exec_prefix
8657 case ${TARGET_SYSTEM_ROOT} in
8659 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8660 TARGET_SYSTEM_ROOT_DEFINE="$t"
8667 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
8674 # NOTE: Don't add -Wall or -Wunused, they both include
8675 # -Wunused-parameter which reports bogus warnings.
8676 # NOTE: If you add to this list, remember to update
8677 # gdb/doc/gdbint.texinfo.
8678 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
8679 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
8680 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
8681 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
8682 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
8683 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
8684 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
8685 # -Woverloaded-virtual -Winline -Werror"
8686 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8687 if test "${enable_build_warnings+set}" = set; then
8688 enableval="$enable_build_warnings"
8689 case "${enableval}" in
8691 no) build_warnings="-w";;
8692 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8693 build_warnings="${build_warnings} ${t}";;
8694 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8695 build_warnings="${t} ${build_warnings}";;
8696 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8698 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
8699 echo "Setting compiler warning flags = $build_warnings" 6>&1
8702 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
8703 if test "${enable_gdb_build_warnings+set}" = set; then
8704 enableval="$enable_gdb_build_warnings"
8705 case "${enableval}" in
8707 no) build_warnings="-w";;
8708 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8709 build_warnings="${build_warnings} ${t}";;
8710 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
8711 build_warnings="${t} ${build_warnings}";;
8712 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8714 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
8715 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8720 if test "x${build_warnings}" != x -a "x$GCC" = xyes
8722 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
8723 echo "configure:8724: checking compiler warning flags" >&5
8724 # Separate out the -Werror flag as some files just cannot be
8725 # compiled with it enabled.
8726 for w in ${build_warnings}; do
8728 -Werr*) WERROR_CFLAGS=-Werror ;;
8729 *) # Check that GCC accepts it
8730 saved_CFLAGS="$CFLAGS"
8732 cat > conftest.$ac_ext <<EOF
8733 #line 8734 "configure"
8734 #include "confdefs.h"
8740 if { (eval echo configure:8741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8742 WARN_CFLAGS="${WARN_CFLAGS} $w"
8744 echo "configure: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8748 CFLAGS="$saved_CFLAGS"
8751 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
8761 # Check whether --with-mmalloc or --without-mmalloc was given.
8762 if test "${with_mmalloc+set}" = set; then
8763 withval="$with_mmalloc"
8764 case "${withval}" in
8765 yes) want_mmalloc=true ;;
8766 no) want_mmalloc=false;;
8767 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
8773 if test x$want_mmalloc = xtrue; then
8774 cat >> confdefs.h <<\EOF
8775 #define USE_MMALLOC 1
8778 cat >> confdefs.h <<\EOF
8779 #define MMCHECK_FORCE 1
8782 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
8783 MMALLOC='../mmalloc/libmmalloc.a'
8786 # In the Cygwin environment, we need some additional flags.
8787 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
8788 echo "configure:8789: checking for cygwin" >&5
8789 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8796 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
8800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8801 egrep "lose" >/dev/null 2>&1; then
8803 gdb_cv_os_cygwin=yes
8812 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
8815 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
8817 *go32* ) SER_HARDWIRE=ser-go32.o ;;
8818 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
8822 # libreadline needs libuser32.a in a cygwin environment
8824 if test x$gdb_cv_os_cygwin = xyes; then
8825 WIN32LIBS="-luser32"
8827 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
8833 LIBGUI="../libgui/src/libgui.a"
8834 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
8845 if test "${enable_gdbtk}" = "yes"; then
8847 # Gdbtk must have an absolute path to srcdir in order to run
8848 # properly when not installed.
8856 # Ok, lets find the tcl configuration
8857 # First, look for one uninstalled.
8858 # the alternative search directory is invoked by --with-tclconfig
8861 if test x"${no_tcl}" = x ; then
8862 # we reset no_tcl in case something fails here
8864 # Check whether --with-tclconfig or --without-tclconfig was given.
8865 if test "${with_tclconfig+set}" = set; then
8866 withval="$with_tclconfig"
8867 with_tclconfig=${withval}
8870 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
8871 echo "configure:8872: checking for Tcl configuration" >&5
8872 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8877 # First check to see if --with-tclconfig was specified.
8878 if test x"${with_tclconfig}" != x ; then
8879 if test -f "${with_tclconfig}/tclConfig.sh" ; then
8880 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
8882 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
8886 # then check for a private Tcl installation
8887 if test x"${ac_cv_c_tclconfig}" = x ; then
8890 `ls -dr ../tcl[7-9]* 2>/dev/null` \
8892 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
8894 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
8895 if test -f "$i/${configdir}/tclConfig.sh" ; then
8896 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
8901 # check in a few common install locations
8902 if test x"${ac_cv_c_tclconfig}" = x ; then
8903 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8904 if test -f "$i/tclConfig.sh" ; then
8905 ac_cv_c_tclconfig=`(cd $i; pwd)`
8910 # check in a few other private locations
8911 if test x"${ac_cv_c_tclconfig}" = x ; then
8914 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
8915 if test -f "$i/${configdir}/tclConfig.sh" ; then
8916 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
8924 if test x"${ac_cv_c_tclconfig}" = x ; then
8925 TCLCONFIG="# no Tcl configs found"
8926 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
8929 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
8930 echo "$ac_t""found $TCLCONFIG" 1>&6
8934 if test -z "${no_tcl}"; then
8965 # Ok, lets find the tk configuration
8966 # First, look for one uninstalled.
8967 # the alternative search directory is invoked by --with-tkconfig
8970 if test x"${no_tk}" = x ; then
8971 # we reset no_tk in case something fails here
8973 # Check whether --with-tkconfig or --without-tkconfig was given.
8974 if test "${with_tkconfig+set}" = set; then
8975 withval="$with_tkconfig"
8976 with_tkconfig=${withval}
8979 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
8980 echo "configure:8981: checking for Tk configuration" >&5
8981 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8986 # First check to see if --with-tkconfig was specified.
8987 if test x"${with_tkconfig}" != x ; then
8988 if test -f "${with_tkconfig}/tkConfig.sh" ; then
8989 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
8991 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
8995 # then check for a private Tk library
8996 if test x"${ac_cv_c_tkconfig}" = x ; then
8999 `ls -dr ../tk[4-9]* 2>/dev/null` \
9001 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9003 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9004 if test -f "$i/${configdir}/tkConfig.sh" ; then
9005 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
9010 # check in a few common install locations
9011 if test x"${ac_cv_c_tkconfig}" = x ; then
9012 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9013 if test -f "$i/tkConfig.sh" ; then
9014 ac_cv_c_tkconfig=`(cd $i; pwd)`
9019 # check in a few other private locations
9020 if test x"${ac_cv_c_tkconfig}" = x ; then
9023 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
9024 if test -f "$i/${configdir}/tkConfig.sh" ; then
9025 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
9033 if test x"${ac_cv_c_tkconfig}" = x ; then
9034 TKCONFIG="# no Tk configs found"
9035 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9038 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
9039 echo "$ac_t""found $TKCONFIG" 1>&6
9045 # now look for Tcl library stuff
9056 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
9058 # If $no_tk is nonempty, then we can't do Tk, and there is no
9059 # point to doing Tcl.
9060 if test -z "${no_tk}"; then
9062 if test -f "$TKCONFIG" ; then
9080 # Ok, lets find the tcl source trees so we can use the headers
9081 # Warning: transition of version 9 to 10 will break this algorithm
9082 # because 10 sorts before 9. We also look for just tcl. We have to
9083 # be careful that we don't match stuff like tclX by accident.
9084 # the alternative search directory is involked by --with-tclinclude
9088 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9089 echo "configure:9090: checking for Tcl private headers. dir=${configdir}" >&5
9090 # Check whether --with-tclinclude or --without-tclinclude was given.
9091 if test "${with_tclinclude+set}" = set; then
9092 withval="$with_tclinclude"
9093 with_tclinclude=${withval}
9096 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9100 # first check to see if --with-tclinclude was specified
9101 if test x"${with_tclinclude}" != x ; then
9102 if test -f ${with_tclinclude}/tclInt.h ; then
9103 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
9104 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
9105 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
9107 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9111 # next check if it came with Tcl configuration file
9112 if test x"${ac_cv_c_tclconfig}" = x ; then
9113 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
9114 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
9118 # next check in private source directory
9120 # since ls returns lowest version numbers first, reverse its output
9121 if test x"${ac_cv_c_tclh}" = x ; then
9124 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9125 ${srcdir}/../../tcl \
9126 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9127 ${srcdir}/../../../tcl \
9128 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9129 if test -f $i/generic/tclInt.h ; then
9130 ac_cv_c_tclh=`(cd $i/generic; pwd)`
9135 # finally check in a few common install locations
9137 # since ls returns lowest version numbers first, reverse its output
9138 if test x"${ac_cv_c_tclh}" = x ; then
9140 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9141 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9142 /usr/local/src/tcl \
9143 /usr/local/lib/tcl \
9144 ${prefix}/include ; do
9145 if test -f $i/generic/tclInt.h ; then
9146 ac_cv_c_tclh=`(cd $i/generic; pwd)`
9151 # see if one is installed
9152 if test x"${ac_cv_c_tclh}" = x ; then
9153 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9154 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9155 echo "configure:9156: checking for tclInt.h" >&5
9156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9157 echo $ac_n "(cached) $ac_c" 1>&6
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9161 "configure"
9161 #include "confdefs.h"
9164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9165 { (eval echo configure:9166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9167 if test -z "$ac_err"; then
9169 eval "ac_cv_header_$ac_safe=yes"
9172 echo "configure: failed program was:" >&5
9173 cat conftest.$ac_ext >&5
9175 eval "ac_cv_header_$ac_safe=no"
9179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9180 echo "$ac_t""yes" 1>&6
9181 ac_cv_c_tclh=installed
9183 echo "$ac_t""no" 1>&6
9191 if test x"${ac_cv_c_tclh}" = x ; then
9192 TCLHDIR="# no Tcl private headers found"
9193 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9195 if test x"${ac_cv_c_tclh}" != x ; then
9197 if test x"${ac_cv_c_tclh}" = x"installed" ; then
9198 echo "$ac_t""is installed" 1>&6
9201 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9202 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9203 TCLHDIR="-I${ac_cv_c_tclh}"
9211 # Ok, lets find the tk source trees so we can use the headers
9212 # If the directory (presumably symlink) named "tk" exists, use that one
9213 # in preference to any others. Same logic is used when choosing library
9214 # and again with Tcl. The search order is the best place to look first, then in
9215 # decreasing significance. The loop breaks if the trigger file is found.
9216 # Note the gross little conversion here of srcdir by cd'ing to the found
9217 # directory. This converts the path from a relative to an absolute, so
9218 # recursive cache variables for the path will work right. We check all
9219 # the possible paths in one loop rather than many seperate loops to speed
9221 # the alternative search directory is involked by --with-tkinclude
9224 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9225 echo "configure:9226: checking for Tk private headers" >&5
9226 # Check whether --with-tkinclude or --without-tkinclude was given.
9227 if test "${with_tkinclude+set}" = set; then
9228 withval="$with_tkinclude"
9229 with_tkinclude=${withval}
9232 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9233 echo $ac_n "(cached) $ac_c" 1>&6
9236 # first check to see if --with-tkinclude was specified
9237 if test x"${with_tkinclude}" != x ; then
9238 if test -f ${with_tkinclude}/tk.h ; then
9239 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
9240 elif test -f ${with_tkinclude}/generic/tk.h ; then
9241 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
9243 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9247 # next check if it came with Tk configuration file
9248 if test x"${ac_cv_c_tkconfig}" = x ; then
9249 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
9250 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
9254 # next check in private source directory
9256 # since ls returns lowest version numbers first, reverse its output
9257 if test x"${ac_cv_c_tkh}" = x ; then
9260 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9261 ${srcdir}/../../tk \
9262 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9263 ${srcdir}/../../../tk \
9264 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9265 if test -f $i/generic/tk.h ; then
9266 ac_cv_c_tkh=`(cd $i/generic; pwd)`
9271 # finally check in a few common install locations
9273 # since ls returns lowest version numbers first, reverse its output
9274 if test x"${ac_cv_c_tkh}" = x ; then
9276 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9277 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9280 ${prefix}/include ; do
9281 if test -f $i/generic/tk.h ; then
9282 ac_cv_c_tkh=`(cd $i/generic; pwd)`
9287 # see if one is installed
9288 if test x"${ac_cv_c_tkh}" = x ; then
9289 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
9290 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9291 echo "configure:9292: checking for tk.h" >&5
9292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9301 { (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9303 if test -z "$ac_err"; then
9305 eval "ac_cv_header_$ac_safe=yes"
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9311 eval "ac_cv_header_$ac_safe=no"
9315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9316 echo "$ac_t""yes" 1>&6
9317 ac_cv_c_tkh=installed
9319 echo "$ac_t""no" 1>&6
9327 if test x"${ac_cv_c_tkh}" != x ; then
9329 if test x"${ac_cv_c_tkh}" = x"installed" ; then
9330 echo "$ac_t""is installed" 1>&6
9333 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9334 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9335 TKHDIR="-I${ac_cv_c_tkh}"
9338 TKHDIR="# no Tk directory found"
9339 echo "configure: warning: Can't find Tk private headers" 1>&2
9346 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9347 echo "configure:9348: checking for Itcl private headers. srcdir=${srcdir}" >&5
9348 if test x"${ac_cv_c_itclh}" = x ; then
9349 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
9350 if test -f $i/generic/itcl.h ; then
9351 ac_cv_c_itclh=`(cd $i/generic; pwd)`
9356 if test x"${ac_cv_c_itclh}" = x ; then
9357 ITCLHDIR="# no Itcl private headers found"
9358 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9360 if test x"${ac_cv_c_itclh}" != x ; then
9361 ITCLHDIR="-I${ac_cv_c_itclh}"
9363 # should always be here
9364 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9369 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9370 echo "configure:9371: checking for Itk private headers. srcdir=${srcdir}" >&5
9371 if test x"${ac_cv_c_itkh}" = x ; then
9372 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
9373 if test -f $i/generic/itk.h ; then
9374 ac_cv_c_itkh=`(cd $i/generic; pwd)`
9379 if test x"${ac_cv_c_itkh}" = x ; then
9380 ITKHDIR="# no Itk private headers found"
9381 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9383 if test x"${ac_cv_c_itkh}" != x ; then
9384 ITKHDIR="-I${ac_cv_c_itkh}"
9386 # should always be here
9387 # ITKLIB="../itcl/itk/unix/libitk.a"
9393 # now look for Tk library stuff
9404 TK_DEPS="${tkdir}${TK_LIB_FILE}"
9406 # now look for Itcl library stuff
9410 # Ok, lets find the itcl configuration
9411 # First, look for one uninstalled.
9412 # the alternative search directory is invoked by --with-itclconfig
9415 if test x"${no_itcl}" = x ; then
9416 # we reset no_itcl in case something fails here
9418 # Check whether --with-itclconfig or --without-itclconfig was given.
9419 if test "${with_itclconfig+set}" = set; then
9420 withval="$with_itclconfig"
9421 with_itclconfig=${withval}
9424 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9425 echo "configure:9426: checking for Itcl configuration" >&5
9426 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9427 echo $ac_n "(cached) $ac_c" 1>&6
9431 # First check to see if --with-itclconfig was specified.
9432 if test x"${with_itclconfig}" != x ; then
9433 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9434 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
9436 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9440 # then check for a private Itcl library
9441 if test x"${ac_cv_c_itclconfig}" = x ; then
9444 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9446 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9448 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9449 if test -f "$i/itclConfig.sh" ; then
9450 ac_cv_c_itclconfig=`(cd $i; pwd)`
9455 # check in a few common install locations
9456 if test x"${ac_cv_c_itclconfig}" = x ; then
9457 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9458 if test -f "$i/itclConfig.sh" ; then
9459 ac_cv_c_itclconfig=`(cd $i; pwd)`
9464 # check in a few other private locations
9465 if test x"${ac_cv_c_itclconfig}" = x ; then
9467 ${srcdir}/../itcl/itcl \
9468 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9469 if test -f "$i/itclConfig.sh" ; then
9470 ac_cv_c_itclconfig=`(cd $i; pwd)`
9478 if test x"${ac_cv_c_itclconfig}" = x ; then
9479 ITCLCONFIG="# no Itcl configs found"
9480 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9483 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
9484 echo "$ac_t""found $ITCLCONFIG" 1>&6
9488 if test -z "${no_itcl}"; then
9490 if test -f "$ITCLCONFIG" ; then
9505 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
9506 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
9510 # now look for Itk library stuff
9513 # Ok, lets find the itk configuration
9514 # First, look for one uninstalled.
9515 # the alternative search directory is invoked by --with-itkconfig
9518 if test x"${no_itk}" = x ; then
9519 # we reset no_itk in case something fails here
9521 # Check whether --with-itkconfig or --without-itkconfig was given.
9522 if test "${with_itkconfig+set}" = set; then
9523 withval="$with_itkconfig"
9524 with_itkconfig=${withval}
9527 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9528 echo "configure:9529: checking for Itk configuration" >&5
9529 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9530 echo $ac_n "(cached) $ac_c" 1>&6
9534 # First check to see if --with-itkconfig was specified.
9535 if test x"${with_itkconfig}" != x ; then
9536 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9537 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
9539 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9543 # then check for a private Itk library
9544 if test x"${ac_cv_c_itkconfig}" = x ; then
9547 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9549 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9551 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9552 if test -f "$i/itkConfig.sh" ; then
9553 ac_cv_c_itkconfig=`(cd $i; pwd)`
9558 # check in a few common install locations
9559 if test x"${ac_cv_c_itkconfig}" = x ; then
9560 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9561 if test -f "$i/itkConfig.sh" ; then
9562 ac_cv_c_itkconfig=`(cd $i; pwd)`
9567 # check in a few other private locations
9568 if test x"${ac_cv_c_itkconfig}" = x ; then
9570 ${srcdir}/../itcl/itk \
9571 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
9572 if test -f "$i/itkConfig.sh" ; then
9573 ac_cv_c_itkconfig=`(cd $i; pwd)`
9581 if test x"${ac_cv_c_itkconfig}" = x ; then
9582 ITKCONFIG="# no Itk configs found"
9583 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
9586 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
9587 echo "$ac_t""found $ITKCONFIG" 1>&6
9592 if test -z "${no_itcl}"; then
9594 if test -f "$ITKCONFIG" ; then
9609 ITKLIB="${ITK_BUILD_LIB_SPEC}"
9610 ITK_DEPS="${ITK_LIB_FULL_PATH}"
9613 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
9614 # Tcl/Tk 8.1 require -fwritable strings. I don't
9615 # know whether 8.2 will or not, but I bet it will.
9616 # I don't have to worry about 7.x since we don't support it.
9618 if test "$GCC" = "yes"; then
9619 if test "$TCL_VERSION" != "8.0" ; then
9620 GDBTK_CFLAGS="-fwritable-strings"
9624 # Include some libraries that Tcl and Tk want.
9625 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
9626 # Yes, the ordering seems wrong here. But it isn't.
9627 # TK_LIBS is the list of libraries that need to be linked
9628 # after Tcl/Tk. Note that this isn't put into LIBS. If it
9629 # were in LIBS then any link tests after this point would
9630 # try to include things like `$(LIBGUI)', which wouldn't work.
9631 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
9633 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
9634 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
9635 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
9636 CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
9637 CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
9638 CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
9639 CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
9640 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
9642 if test x$gdb_cv_os_cygwin = xyes; then
9643 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
9644 WIN32LDAPP="-Wl,--subsystem,console"
9645 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
9650 configdirs="${configdirs} gdbtk"
9666 # If we find X, set shell vars x_includes and x_libraries to the
9667 # paths, otherwise set no_x=yes.
9668 # Uses ac_ vars as temps to allow command line to override cache and checks.
9669 # --without-x overrides everything else, but does not touch the cache.
9670 echo $ac_n "checking for X""... $ac_c" 1>&6
9671 echo "configure:9672: checking for X" >&5
9673 # Check whether --with-x or --without-x was given.
9674 if test "${with_x+set}" = set; then
9679 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9680 if test "x$with_x" = xno; then
9681 # The user explicitly disabled X.
9684 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9685 # Both variables are already set.
9688 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9691 # One or both of the vars are not set, and there is no cached value.
9692 ac_x_includes=NO ac_x_libraries=NO
9694 if mkdir conftestdir; then
9696 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9697 cat > Imakefile <<'EOF'
9699 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9701 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9703 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9704 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9705 for ac_extension in a so sl; do
9706 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9707 test -f $ac_im_libdir/libX11.$ac_extension; then
9708 ac_im_usrlibdir=$ac_im_libdir; break
9711 # Screen out bogus values from the imake configuration. They are
9712 # bogus both because they are the default anyway, and because
9713 # using them would break gcc on systems where it needs fixed includes.
9714 case "$ac_im_incroot" in
9716 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9718 case "$ac_im_usrlibdir" in
9720 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9727 if test "$ac_x_includes" = NO; then
9728 # Guess where to find include files, by looking for this one X11 .h file.
9729 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9731 # First, try using that file with no special directory specified.
9732 cat > conftest.$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9735 #include <$x_direct_test_include>
9737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9738 { (eval echo configure:9739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9740 if test -z "$ac_err"; then
9742 # We can compile using X headers with no special include directory.
9746 echo "configure: failed program was:" >&5
9747 cat conftest.$ac_ext >&5
9749 # Look for the header file in a standard set of common directories.
9750 # Check X11 before X11Rn because it is often a symlink to the current release.
9753 /usr/X11R6/include \
9754 /usr/X11R5/include \
9755 /usr/X11R4/include \
9758 /usr/include/X11R6 \
9759 /usr/include/X11R5 \
9760 /usr/include/X11R4 \
9762 /usr/local/X11/include \
9763 /usr/local/X11R6/include \
9764 /usr/local/X11R5/include \
9765 /usr/local/X11R4/include \
9767 /usr/local/include/X11 \
9768 /usr/local/include/X11R6 \
9769 /usr/local/include/X11R5 \
9770 /usr/local/include/X11R4 \
9774 /usr/XFree86/include/X11 \
9777 /usr/local/include \
9778 /usr/unsupported/include \
9779 /usr/athena/include \
9780 /usr/local/x11r5/include \
9781 /usr/lpp/Xamples/include \
9783 /usr/openwin/include \
9784 /usr/openwin/share/include \
9787 if test -r "$ac_dir/$x_direct_test_include"; then
9788 ac_x_includes=$ac_dir
9794 fi # $ac_x_includes = NO
9796 if test "$ac_x_libraries" = NO; then
9797 # Check for the libraries.
9799 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9800 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9802 # See if we find them without any special options.
9803 # Don't add to $LIBS permanently.
9804 ac_save_LIBS="$LIBS"
9805 LIBS="-l$x_direct_test_library $LIBS"
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9811 ${x_direct_test_function}()
9814 if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9816 LIBS="$ac_save_LIBS"
9817 # We can link X programs with no special library path.
9820 echo "configure: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9823 LIBS="$ac_save_LIBS"
9824 # First see if replacing the include by lib works.
9825 # Check X11 before X11Rn because it is often a symlink to the current release.
9826 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9837 /usr/local/X11/lib \
9838 /usr/local/X11R6/lib \
9839 /usr/local/X11R5/lib \
9840 /usr/local/X11R4/lib \
9842 /usr/local/lib/X11 \
9843 /usr/local/lib/X11R6 \
9844 /usr/local/lib/X11R5 \
9845 /usr/local/lib/X11R4 \
9849 /usr/XFree86/lib/X11 \
9853 /usr/unsupported/lib \
9855 /usr/local/x11r5/lib \
9856 /usr/lpp/Xamples/lib \
9860 /usr/openwin/share/lib \
9863 for ac_extension in a so sl; do
9864 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9865 ac_x_libraries=$ac_dir
9872 fi # $ac_x_libraries = NO
9874 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9875 # Didn't find X anywhere. Cache the known absence of X.
9876 ac_cv_have_x="have_x=no"
9878 # Record where we found X for the cache.
9879 ac_cv_have_x="have_x=yes \
9880 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9884 eval "$ac_cv_have_x"
9887 if test "$have_x" != yes; then
9888 echo "$ac_t""$have_x" 1>&6
9891 # If each of the values was on the command line, it overrides each guess.
9892 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9893 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9894 # Update the cache value to reflect the command line values.
9895 ac_cv_have_x="have_x=yes \
9896 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9897 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9902 # Unlike the sim directory, whether a simulator is linked is controlled by
9903 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
9904 # This code just checks for a few cases where we'd like to ignore those
9905 # definitions, even when they're present in the '.mt' file. These cases
9906 # are when --disable-sim is specified, or if the simulator directory is
9907 # not part of the source tree.
9909 # Check whether --enable-sim or --disable-sim was given.
9910 if test "${enable_sim+set}" = set; then
9911 enableval="$enable_sim"
9912 echo "enable_sim = $enable_sim";
9913 echo "enableval = ${enableval}";
9914 case "${enableval}" in
9915 yes) ignore_sim=false ;;
9916 no) ignore_sim=true ;;
9917 *) ignore_sim=false ;;
9924 if test ! -d "${srcdir}/../sim"; then
9928 if test "${ignore_sim}" = "true"; then
9930 IGNORE_SIM_OBS="SIM_OBS="
9934 cat >> confdefs.h <<\EOF
9955 # target_subdir is used by the testsuite to find the target libraries.
9957 if test "${host}" != "${target}"; then
9958 target_subdir="${target_alias}/"
9963 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
9964 if test ! -f ${host_makefile_frag}; then
9965 # When building a native debuger the .mh file containing things
9966 # like NATDEPFILES is needed. Cross debuggers don't need .mh
9967 # since it no longer contains anything useful.
9968 if test "${target}" = "${host}"; then
9969 { echo "configure: error: "*** Gdb does not support native target ${host}"" 1>&2; exit 1; }
9971 host_makefile_frag=/dev/null
9974 frags="$frags $host_makefile_frag"
9976 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
9977 if test ! -f ${target_makefile_frag}; then
9978 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
9980 frags="$frags $target_makefile_frag"
9987 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9988 ' ${host_makefile_frag}`
9990 targetfile=`sed -n '
9991 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9992 ' ${target_makefile_frag}`
9994 GDB_MULTI_ARCH=`sed -n '
9995 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
9996 ' ${target_makefile_frag}`
9998 if test "${target}" = "${host}"; then
9999 # We pick this up from the host configuration file (.mh) because we
10000 # do not have a native configuration Makefile fragment.
10001 nativefile=`sed -n '
10002 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10003 ' ${host_makefile_frag}`
10007 # New targets should just set gdb_multi_arch=yes in configure.tgt.
10008 # Old targets being converted can either do that or set GDB_MULTI_ARCH
10009 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
10010 # will be the default.
10011 if test x"${GDB_MULTI_ARCH}" = x ; then
10012 case "${gdb_multi_arch}" in
10013 yes ) GDB_MULTI_ARCH=GDB_MULTI_ARCH_PURE ;;
10014 no ) GDB_MULTI_ARCH=0 ;;
10015 0|1|2 ) GDB_MULTI_ARCH=${gdb_multi_arch} ;;
10018 if test x"${GDB_MULTI_ARCH}" != x ; then
10019 cat >> confdefs.h <<EOF
10020 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
10024 # Warn the user when they use an old practice
10025 case "${GDB_MULTI_ARCH}" in
10027 0 | GDB_MULTI_ARCH_PARTIAL | 1 | GDB_MULTI_ARCH_TM | 2 )
10028 echo "configure: warning: "GDB: Target is not pure multi-arch"" 1>&2 ;;
10029 GDB_MULTI_ARCH_PURE )
10030 if test x"${targetfile}" != x ; then
10031 echo "configure: warning: "GDB: Ignoring TM_FILE in ${target_makefile_frag}"" 1>&2
10034 *) { echo "configure: error: "GDB: Unknown GDB_MULTI_ARCH value ${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
10037 if test x"${gdb_osabi}" != x ; then
10038 cat >> confdefs.h <<EOF
10039 #define GDB_OSABI_DEFAULT $gdb_osabi
10044 # Enable multi-ice-gdb-server.
10045 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10046 if test "${enable_multi_ice+set}" = set; then
10047 enableval="$enable_multi_ice"
10051 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10055 if test "x$enable_multi_ice" = xyes; then
10056 configdirs="$configdirs multi-ice"
10059 # We only build gdbserver automatically if host and target are the same.
10060 if test "x$target" = "x$host"; then
10061 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10062 echo "configure:10063: checking whether gdbserver is supported on this host" >&5
10063 if test "x$build_gdbserver" = xyes; then
10064 configdirs="$configdirs gdbserver"
10065 echo "$ac_t""yes" 1>&6
10067 echo "$ac_t""no" 1>&6
10071 subdirs="doc testsuite $configdirs"
10074 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10075 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10083 if test "${hostfile}" != ""; then
10085 GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}"
10086 files="${files} ${GDB_XM_FILE}"
10087 links="${links} xm.h"
10088 cat >> confdefs.h <<EOF
10089 #define GDB_XM_FILE ${GDB_XM_FILE}
10097 if test "${targetfile}" != ""; then
10099 GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}"
10100 files="${files} ${GDB_TM_FILE}"
10101 links="${links} tm.h"
10102 cat >> confdefs.h <<EOF
10103 #define GDB_TM_FILE ${GDB_TM_FILE}
10111 if test "${nativefile}" != ""; then
10113 GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}"
10114 files="${files} ${GDB_NM_FILE}"
10115 links="${links} nm.h"
10116 cat >> confdefs.h <<EOF
10117 #define GDB_NM_FILE ${GDB_NM_FILE}
10125 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10126 echo "configure:10127: checking for Cygwin environment" >&5
10127 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10128 echo $ac_n "(cached) $ac_c" 1>&6
10130 cat > conftest.$ac_ext <<EOF
10131 #line 10132 "configure"
10132 #include "confdefs.h"
10137 #define __CYGWIN__ __CYGWIN32__
10142 if { (eval echo configure:10143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10155 echo "$ac_t""$ac_cv_cygwin" 1>&6
10157 test "$ac_cv_cygwin" = yes && CYGWIN=yes
10158 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10159 echo "configure:10160: checking for mingw32 environment" >&5
10160 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10163 cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10168 return __MINGW32__;
10171 if { (eval echo configure:10172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10175 echo "configure: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10184 echo "$ac_t""$ac_cv_mingw32" 1>&6
10186 test "$ac_cv_mingw32" = yes && MINGW32=yes
10189 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10190 echo "configure:10191: checking for executable suffix" >&5
10191 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10192 echo $ac_n "(cached) $ac_c" 1>&6
10194 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
10198 echo 'int main () { return 0; }' > conftest.$ac_ext
10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10201 for file in conftest.*; do
10203 *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
10204 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
10208 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10211 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
10216 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
10217 echo "$ac_t""${ac_cv_exeext}" 1>&6
10222 cat >> confdefs.h <<\EOF
10223 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10229 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10230 if test "${with_libiconv_prefix+set}" = set; then
10231 withval="$with_libiconv_prefix"
10233 for dir in `echo "$withval" | tr : ' '`; do
10234 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10235 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
10241 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10242 echo "configure:10243: checking for iconv" >&5
10243 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10247 am_cv_func_iconv="no, consider installing GNU libiconv"
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10252 #include <stdlib.h>
10255 iconv_t cd = iconv_open("","");
10256 iconv(cd,NULL,NULL,NULL,NULL);
10260 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10262 am_cv_func_iconv=yes
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10268 if test "$am_cv_func_iconv" != yes; then
10269 am_save_LIBS="$LIBS"
10270 LIBS="$LIBS -liconv"
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10273 "configure"
10273 #include "confdefs.h"
10274 #include <stdlib.h>
10277 iconv_t cd = iconv_open("","");
10278 iconv(cd,NULL,NULL,NULL,NULL);
10282 if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10284 am_cv_lib_iconv=yes
10285 am_cv_func_iconv=yes
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10291 LIBS="$am_save_LIBS"
10296 echo "$ac_t""$am_cv_func_iconv" 1>&6
10297 if test "$am_cv_func_iconv" = yes; then
10298 cat >> confdefs.h <<\EOF
10299 #define HAVE_ICONV 1
10302 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10303 echo "configure:10304: checking for iconv declaration" >&5
10304 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10308 cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10312 #include <stdlib.h>
10318 #if defined(__STDC__) || defined(__cplusplus)
10319 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10328 if { (eval echo configure:10329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10330 am_cv_proto_iconv_arg1=""
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10335 am_cv_proto_iconv_arg1="const"
10338 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);"
10341 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10342 echo "$ac_t""${ac_t:-
10343 }$am_cv_proto_iconv" 1>&6
10344 cat >> confdefs.h <<EOF
10345 #define ICONV_CONST $am_cv_proto_iconv_arg1
10350 if test "$am_cv_lib_iconv" = yes; then
10357 cat > confcache <<\EOF
10358 # This file is a shell script that caches the results of configure
10359 # tests run on this system so they can be shared between configure
10360 # scripts and configure runs. It is not useful on other systems.
10361 # If it contains results you don't want to keep, you may remove or edit it.
10363 # By default, configure uses ./config.cache as the cache file,
10364 # creating it if it does not exist already. You can give configure
10365 # the --cache-file=FILE option to use a different cache file; that is
10366 # what configure does when it calls configure scripts in
10367 # subdirectories, so they share the cache.
10368 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10369 # config.status only pays attention to the cache file if you give it the
10370 # --recheck option to rerun configure.
10373 # The following way of writing the cache mishandles newlines in values,
10374 # but we know of no workaround that is simple, portable, and efficient.
10375 # So, don't put newlines in cache variables' values.
10376 # Ultrix sh set writes to stderr and can't be redirected directly,
10377 # and sets the high bit in the cache file unless we assign to the vars.
10379 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10381 # `set' does not quote correctly, so add quotes (double-quote substitution
10382 # turns \\\\ into \\, and sed turns \\ into \).
10384 -e "s/'/'\\\\''/g" \
10385 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10388 # `set' quotes correctly as required by POSIX, so do not add quotes.
10389 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10392 if cmp -s $cache_file confcache; then
10395 if test -w $cache_file; then
10396 echo "updating cache $cache_file"
10397 cat confcache > $cache_file
10399 echo "not updating unwritable cache $cache_file"
10404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10407 # Let make expand exec_prefix.
10408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10410 # Any assignment to VPATH causes Sun make to only execute
10411 # the first set of double-colon rules, so remove it if not needed.
10412 # If there is a colon in the path, we need to keep it.
10413 if test "x$srcdir" = x.; then
10414 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10417 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10419 DEFS=-DHAVE_CONFIG_H
10421 # Without the "./", some shells look in PATH for config.status.
10422 : ${CONFIG_STATUS=./config.status}
10424 echo creating $CONFIG_STATUS
10425 rm -f $CONFIG_STATUS
10426 cat > $CONFIG_STATUS <<EOF
10428 # Generated automatically by configure.
10429 # Run this file to recreate the current configuration.
10430 # This directory was configured as follows,
10431 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10433 # $0 $ac_configure_args
10435 # Compiler output produced by configure, useful for debugging
10436 # configure, is in ./config.log if it exists.
10438 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10441 case "\$ac_option" in
10442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10443 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10444 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10445 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10446 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10448 -help | --help | --hel | --he | --h)
10449 echo "\$ac_cs_usage"; exit 0 ;;
10450 *) echo "\$ac_cs_usage"; exit 1 ;;
10454 ac_given_srcdir=$srcdir
10455 ac_given_INSTALL="$INSTALL"
10457 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10459 cat >> $CONFIG_STATUS <<EOF
10461 # Protect against being on the right side of a sed subst in config.status.
10462 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10463 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10467 s%@CFLAGS@%$CFLAGS%g
10468 s%@CPPFLAGS@%$CPPFLAGS%g
10469 s%@CXXFLAGS@%$CXXFLAGS%g
10470 s%@FFLAGS@%$FFLAGS%g
10472 s%@LDFLAGS@%$LDFLAGS%g
10474 s%@exec_prefix@%$exec_prefix%g
10475 s%@prefix@%$prefix%g
10476 s%@program_transform_name@%$program_transform_name%g
10477 s%@bindir@%$bindir%g
10478 s%@sbindir@%$sbindir%g
10479 s%@libexecdir@%$libexecdir%g
10480 s%@datadir@%$datadir%g
10481 s%@sysconfdir@%$sysconfdir%g
10482 s%@sharedstatedir@%$sharedstatedir%g
10483 s%@localstatedir@%$localstatedir%g
10484 s%@libdir@%$libdir%g
10485 s%@includedir@%$includedir%g
10486 s%@oldincludedir@%$oldincludedir%g
10487 s%@infodir@%$infodir%g
10488 s%@mandir@%$mandir%g
10489 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10490 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10495 s%@host_alias@%$host_alias%g
10496 s%@host_cpu@%$host_cpu%g
10497 s%@host_vendor@%$host_vendor%g
10498 s%@host_os@%$host_os%g
10499 s%@target@%$target%g
10500 s%@target_alias@%$target_alias%g
10501 s%@target_cpu@%$target_cpu%g
10502 s%@target_vendor@%$target_vendor%g
10503 s%@target_os@%$target_os%g
10505 s%@build_alias@%$build_alias%g
10506 s%@build_cpu@%$build_cpu%g
10507 s%@build_vendor@%$build_vendor%g
10508 s%@build_os@%$build_os%g
10509 s%@RANLIB@%$RANLIB%g
10510 s%@SET_MAKE@%$SET_MAKE%g
10511 s%@ALLOCA@%$ALLOCA%g
10512 s%@USE_NLS@%$USE_NLS%g
10513 s%@MSGFMT@%$MSGFMT%g
10514 s%@GMSGFMT@%$GMSGFMT%g
10515 s%@XGETTEXT@%$XGETTEXT%g
10516 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10517 s%@CATALOGS@%$CATALOGS%g
10518 s%@CATOBJEXT@%$CATOBJEXT%g
10519 s%@DATADIRNAME@%$DATADIRNAME%g
10520 s%@GMOFILES@%$GMOFILES%g
10521 s%@INSTOBJEXT@%$INSTOBJEXT%g
10522 s%@INTLDEPS@%$INTLDEPS%g
10523 s%@INTLLIBS@%$INTLLIBS%g
10524 s%@INTLOBJS@%$INTLOBJS%g
10525 s%@POFILES@%$POFILES%g
10527 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10529 s%@GT_YES@%$GT_YES%g
10530 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10532 s%@subdirs@%$subdirs%g
10534 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10535 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10536 s%@INSTALL_DATA@%$INSTALL_DATA%g
10540 s%@DLLTOOL@%$DLLTOOL%g
10541 s%@WINDRES@%$WINDRES%g
10543 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10544 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
10545 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
10546 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
10547 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
10548 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
10549 s%@MMALLOC@%$MMALLOC%g
10550 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
10551 s%@WIN32LIBS@%$WIN32LIBS%g
10552 s%@LIBGUI@%$LIBGUI%g
10553 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
10554 s%@WIN32LDAPP@%$WIN32LDAPP%g
10555 s%@TCL_VERSION@%$TCL_VERSION%g
10556 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
10557 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
10558 s%@TCL_CC@%$TCL_CC%g
10559 s%@TCL_DEFS@%$TCL_DEFS%g
10560 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
10561 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
10562 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
10563 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
10564 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
10565 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
10566 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
10567 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
10568 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
10569 s%@TCL_RANLIB@%$TCL_RANLIB%g
10570 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
10571 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
10572 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
10573 s%@TK_VERSION@%$TK_VERSION%g
10574 s%@TK_DEFS@%$TK_DEFS%g
10575 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
10576 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
10577 s%@TK_XLIBSW@%$TK_XLIBSW%g
10578 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
10579 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
10580 s%@TCLHDIR@%$TCLHDIR%g
10581 s%@TKHDIR@%$TKHDIR%g
10582 s%@ITCLHDIR@%$ITCLHDIR%g
10583 s%@ITKHDIR@%$ITKHDIR%g
10584 s%@ITCL_VERSION@%$ITCL_VERSION%g
10585 s%@ITCL_DEFS@%$ITCL_DEFS%g
10586 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
10587 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
10588 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
10589 s%@ITK_VERSION@%$ITK_VERSION%g
10590 s%@ITK_DEFS@%$ITK_DEFS%g
10591 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
10592 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
10593 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
10594 s%@X_CFLAGS@%$X_CFLAGS%g
10595 s%@X_LDFLAGS@%$X_LDFLAGS%g
10596 s%@X_LIBS@%$X_LIBS%g
10597 s%@TCL_DEPS@%$TCL_DEPS%g
10598 s%@TK_DEPS@%$TK_DEPS%g
10599 s%@ITCLLIB@%$ITCLLIB%g
10600 s%@ITCL_DEPS@%$ITCL_DEPS%g
10601 s%@ITKLIB@%$ITKLIB%g
10602 s%@ITK_DEPS@%$ITK_DEPS%g
10603 s%@GDBTKLIBS@%$GDBTKLIBS%g
10604 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
10605 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
10606 s%@IGNORE_SIM@%$IGNORE_SIM%g
10607 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
10608 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
10609 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
10610 s%@CONFIG_OBS@%$CONFIG_OBS%g
10611 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
10612 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
10613 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
10614 s%@CONFIG_INITS@%$CONFIG_INITS%g
10615 s%@CONFIG_ALL@%$CONFIG_ALL%g
10616 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
10617 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
10618 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
10619 s%@target_subdir@%$target_subdir%g
10620 /@host_makefile_frag@/r $host_makefile_frag
10621 s%@host_makefile_frag@%%g
10622 /@target_makefile_frag@/r $target_makefile_frag
10623 s%@target_makefile_frag@%%g
10628 s%@EXEEXT@%$EXEEXT%g
10629 s%@LIBICONV@%$LIBICONV%g
10634 cat >> $CONFIG_STATUS <<\EOF
10636 # Split the substitutions into bite-sized pieces for seds with
10637 # small command number limits, like on Digital OSF/1 and HP-UX.
10638 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10639 ac_file=1 # Number of current file.
10640 ac_beg=1 # First line for current file.
10641 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10644 while $ac_more_lines; do
10645 if test $ac_beg -gt 1; then
10646 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10648 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10650 if test ! -s conftest.s$ac_file; then
10651 ac_more_lines=false
10652 rm -f conftest.s$ac_file
10654 if test -z "$ac_sed_cmds"; then
10655 ac_sed_cmds="sed -f conftest.s$ac_file"
10657 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10659 ac_file=`expr $ac_file + 1`
10661 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10664 if test -z "$ac_sed_cmds"; then
10669 cat >> $CONFIG_STATUS <<EOF
10671 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
10673 cat >> $CONFIG_STATUS <<\EOF
10674 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10675 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10677 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10678 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10679 *) ac_file_in="${ac_file}.in" ;;
10682 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10684 # Remove last slash and all that follows it. Not all systems have dirname.
10685 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10686 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10687 # The file is in a subdirectory.
10688 test ! -d "$ac_dir" && mkdir "$ac_dir"
10689 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10690 # A "../" for each directory in $ac_dir_suffix.
10691 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10693 ac_dir_suffix= ac_dots=
10696 case "$ac_given_srcdir" in
10698 if test -z "$ac_dots"; then top_srcdir=.
10699 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10700 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10701 *) # Relative path.
10702 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10703 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10706 case "$ac_given_INSTALL" in
10707 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10708 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10711 echo creating "$ac_file"
10713 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10715 *Makefile*) ac_comsub="1i\\
10716 # $configure_input" ;;
10720 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10722 s%@configure_input@%$configure_input%g
10723 s%@srcdir@%$srcdir%g
10724 s%@top_srcdir@%$top_srcdir%g
10725 s%@INSTALL@%$INSTALL%g
10726 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10730 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10731 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10733 # ac_d sets the value in "#define NAME VALUE" lines.
10734 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10735 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10738 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10739 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10740 ac_uB='\([ ]\)%\1#\2define\3'
10743 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10744 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10745 ac_eB='$%\1#\2define\3'
10749 if test "${CONFIG_HEADERS+set}" != set; then
10751 cat >> $CONFIG_STATUS <<EOF
10752 CONFIG_HEADERS="config.h:config.in"
10754 cat >> $CONFIG_STATUS <<\EOF
10756 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10759 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10760 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10761 *) ac_file_in="${ac_file}.in" ;;
10764 echo creating $ac_file
10766 rm -f conftest.frag conftest.in conftest.out
10767 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10768 cat $ac_file_inputs > conftest.in
10772 # Transform confdefs.h into a sed script conftest.vals that substitutes
10773 # the proper values into config.h.in to produce config.h. And first:
10774 # Protect against being on the right side of a sed subst in config.status.
10775 # Protect against being in an unquoted here document in config.status.
10776 rm -f conftest.vals
10777 cat > conftest.hdr <<\EOF
10780 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10784 sed -n -f conftest.hdr confdefs.h > conftest.vals
10787 # This sed command replaces #undef with comments. This is necessary, for
10788 # example, in the case of _POSIX_SOURCE, which is predefined and required
10789 # on some systems where configure will not decide to define it.
10790 cat >> conftest.vals <<\EOF
10791 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10794 # Break up conftest.vals because some shells have a limit on
10795 # the size of here documents, and old seds have small limits too.
10797 rm -f conftest.tail
10800 ac_lines=`grep -c . conftest.vals`
10801 # grep -c gives empty output for an empty file on some AIX systems.
10802 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10803 # Write a limited-size here document to conftest.frag.
10804 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10805 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10807 sed -f conftest.frag conftest.in > conftest.out
10809 mv conftest.out conftest.in
10810 ' >> $CONFIG_STATUS
10811 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10812 rm -f conftest.vals
10813 mv conftest.tail conftest.vals
10815 rm -f conftest.vals
10817 cat >> $CONFIG_STATUS <<\EOF
10818 rm -f conftest.frag conftest.h
10819 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10820 cat conftest.in >> conftest.h
10822 if cmp -s $ac_file conftest.h 2>/dev/null; then
10823 echo "$ac_file is unchanged"
10826 # Remove last slash and all that follows it. Not all systems have dirname.
10827 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10828 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10829 # The file is in a subdirectory.
10830 test ! -d "$ac_dir" && mkdir "$ac_dir"
10833 mv conftest.h $ac_file
10839 cat >> $CONFIG_STATUS <<EOF
10840 ac_sources="$files"
10844 cat >> $CONFIG_STATUS <<\EOF
10845 srcdir=$ac_given_srcdir
10846 while test -n "$ac_sources"; do
10847 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10848 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10850 echo "linking $srcdir/$ac_source to $ac_dest"
10852 if test ! -r $srcdir/$ac_source; then
10853 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10857 # Make relative symlinks.
10858 # Remove last slash and all that follows it. Not all systems have dirname.
10859 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
10860 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10861 # The dest file is in a subdirectory.
10862 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10863 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
10864 # A "../" for each directory in $ac_dest_dir_suffix.
10865 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
10867 ac_dest_dir_suffix= ac_dots=
10871 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10872 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10875 # Make a symlink if possible; otherwise try a hard link.
10876 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10877 ln $srcdir/$ac_source $ac_dest; then :
10879 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10883 cat >> $CONFIG_STATUS <<EOF
10885 gdb_host_cpu=$gdb_host_cpu
10886 gdb_target_cpu=$gdb_target_cpu
10887 nativefile=$nativefile
10890 cat >> $CONFIG_STATUS <<\EOF
10892 if test "${target}" != "${host}"; then
10894 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
10895 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
10896 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
10898 mv -f Makefile.tem Makefile
10901 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
10902 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
10903 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
10904 mv -f Makefile.tmp Makefile
10907 case x$CONFIG_HEADERS in
10908 xconfig.h:config.in)
10914 chmod +x $CONFIG_STATUS
10915 rm -fr confdefs* $ac_clean_files
10916 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10918 if test "$no_recursion" != yes; then
10920 # Remove --cache-file and --srcdir arguments so they do not pile up.
10921 ac_sub_configure_args=
10923 for ac_arg in $ac_configure_args; do
10924 if test -n "$ac_prev"; then
10929 -cache-file | --cache-file | --cache-fil | --cache-fi \
10930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10931 ac_prev=cache_file ;;
10932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10935 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10937 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10939 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10943 for ac_config_dir in doc testsuite $configdirs; do
10945 # Do not complain, so a configure script can configure whichever
10946 # parts of a large source tree are present.
10947 if test ! -d $srcdir/$ac_config_dir; then
10951 echo configuring in $ac_config_dir
10956 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
10958 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
10966 # A "../" for each directory in /$ac_config_dir.
10967 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
10970 .) # No --srcdir option. We are building in place.
10971 ac_sub_srcdir=$srcdir ;;
10972 /*) # Absolute path.
10973 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
10974 *) # Relative path.
10975 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
10978 # Check for guested configure; otherwise get Cygnus style configure.
10979 if test -f $ac_sub_srcdir/configure; then
10980 ac_sub_configure=$ac_sub_srcdir/configure
10981 elif test -f $ac_sub_srcdir/configure.in; then
10982 ac_sub_configure=$ac_configure
10984 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
10988 # The recursion is here.
10989 if test -n "$ac_sub_configure"; then
10991 # Make the cache file name correct relative to the subdirectory.
10992 case "$cache_file" in
10993 /*) ac_sub_cache_file=$cache_file ;;
10994 *) # Relative path.
10995 ac_sub_cache_file="$ac_dots$cache_file" ;;
10997 case "$ac_given_INSTALL" in
10998 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10999 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11002 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11003 # The eval makes quoting arguments work.
11004 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11007 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }