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 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
19 --enable-multi-ice Build the multi-ice-gdb-server"
21 --enable-tui Enable full-screen terminal user interface"
23 --enable-netrom Enable NetROM support"
25 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
27 --with-mmalloc Use memory mapped malloc package"
29 --with-cpu=CPU Set the default CPU variant to debug"
31 --enable-gdbtk Enable GDBTK GUI front end"
33 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
35 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
37 --with-tclinclude=DIR Directory where tcl private headers are"
39 --with-tkinclude=DIR Directory where tk private headers are"
41 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
43 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
45 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
47 --with-x use the X Window System"
49 --enable-sim Link gdb with simulator"
51 --enable-shared Use shared libraries"
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file=./config.cache
66 program_transform_name=s,x,x,
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
87 # Initialize some other variables.
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
119 -build | --build | --buil | --bui | --bu)
121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122 build="$ac_optarg" ;;
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135 datadir="$ac_optarg" ;;
137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host | --host | --hos | --ho)
229 -host=* | --host=* | --hos=* | --ho=*)
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
244 -libdir | --libdir | --libdi | --libd)
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335 sbindir="$ac_optarg" ;;
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346 sharedstatedir="$ac_optarg" ;;
348 -site | --site | --sit)
350 -site=* | --site=* | --sit=*)
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
365 -target | --target | --targe | --targ | --tar | --ta | --t)
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=main.c
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
564 # Extract the first word of "gcc", so it can be a program name with args.
565 set dummy gcc; ac_word=$2
566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
567 echo "configure:568: checking for $ac_word" >&5
568 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
571 if test -n "$CC"; then
572 ac_cv_prog_CC="$CC" # Let the user override the test.
574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
576 for ac_dir in $ac_dummy; do
577 test -z "$ac_dir" && ac_dir=.
578 if test -f $ac_dir/$ac_word; then
587 if test -n "$CC"; then
588 echo "$ac_t""$CC" 1>&6
590 echo "$ac_t""no" 1>&6
593 if test -z "$CC"; then
594 # Extract the first word of "cc", so it can be a program name with args.
595 set dummy cc; ac_word=$2
596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
597 echo "configure:598: checking for $ac_word" >&5
598 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
601 if test -n "$CC"; then
602 ac_cv_prog_CC="$CC" # Let the user override the test.
604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
607 for ac_dir in $ac_dummy; do
608 test -z "$ac_dir" && ac_dir=.
609 if test -f $ac_dir/$ac_word; then
610 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
619 if test $ac_prog_rejected = yes; then
620 # We found a bogon in the path, so make sure we never use it.
621 set dummy $ac_cv_prog_CC
623 if test $# -gt 0; then
624 # We chose a different compiler from the bogus one.
625 # However, it has the same basename, so the bogon will be chosen
626 # first if we set CC to just the basename; use the full file name.
628 set dummy "$ac_dir/$ac_word" "$@"
636 if test -n "$CC"; then
637 echo "$ac_t""$CC" 1>&6
639 echo "$ac_t""no" 1>&6
642 if test -z "$CC"; then
645 # Extract the first word of "cl", so it can be a program name with args.
646 set dummy cl; ac_word=$2
647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648 echo "configure:649: checking for $ac_word" >&5
649 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 if test -n "$CC"; then
653 ac_cv_prog_CC="$CC" # Let the user override the test.
655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
657 for ac_dir in $ac_dummy; do
658 test -z "$ac_dir" && ac_dir=.
659 if test -f $ac_dir/$ac_word; then
668 if test -n "$CC"; then
669 echo "$ac_t""$CC" 1>&6
671 echo "$ac_t""no" 1>&6
676 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
679 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
680 echo "configure:681: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
684 ac_cpp='$CPP $CPPFLAGS'
685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
687 cross_compiling=$ac_cv_prog_cc_cross
689 cat > conftest.$ac_ext << EOF
691 #line 692 "configure"
692 #include "confdefs.h"
696 if { (eval echo configure:697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
697 ac_cv_prog_cc_works=yes
698 # If we can't run a trivial program, we are probably using a cross compiler.
699 if (./conftest; exit) 2>/dev/null; then
700 ac_cv_prog_cc_cross=no
702 ac_cv_prog_cc_cross=yes
705 echo "configure: failed program was:" >&5
706 cat conftest.$ac_ext >&5
707 ac_cv_prog_cc_works=no
711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
712 ac_cpp='$CPP $CPPFLAGS'
713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
715 cross_compiling=$ac_cv_prog_cc_cross
717 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
718 if test $ac_cv_prog_cc_works = no; then
719 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
721 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
722 echo "configure:723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
723 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
724 cross_compiling=$ac_cv_prog_cc_cross
726 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
727 echo "configure:728: checking whether we are using GNU C" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 cat > conftest.c <<EOF
736 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
743 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
745 if test $ac_cv_prog_gcc = yes; then
751 ac_test_CFLAGS="${CFLAGS+set}"
752 ac_save_CFLAGS="$CFLAGS"
754 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
755 echo "configure:756: checking whether ${CC-cc} accepts -g" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 echo 'void f(){}' > conftest.c
760 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
769 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
770 if test "$ac_test_CFLAGS" = set; then
771 CFLAGS="$ac_save_CFLAGS"
772 elif test $ac_cv_prog_cc_g = yes; then
773 if test "$GCC" = yes; then
779 if test "$GCC" = yes; then
786 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
787 echo "configure:788: checking how to run the C preprocessor" >&5
788 # On Suns, sometimes $CPP names a directory.
789 if test -n "$CPP" && test -d "$CPP"; then
792 if test -z "$CPP"; then
793 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 # This must be in double quotes, not single quotes, because CPP may get
797 # substituted into the Makefile and "${CC-cc}" will confuse make.
799 # On the NeXT, cc -E runs the code through the compiler's parser,
800 # not just through cpp.
801 cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
808 { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
810 if test -z "$ac_err"; then
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
817 CPP="${CC-cc} -E -traditional-cpp"
818 cat > conftest.$ac_ext <<EOF
819 #line 820 "configure"
820 #include "confdefs.h"
824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
825 { (eval echo configure:826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
827 if test -z "$ac_err"; then
831 echo "configure: failed program was:" >&5
832 cat conftest.$ac_ext >&5
834 CPP="${CC-cc} -nologo -E"
835 cat > conftest.$ac_ext <<EOF
836 #line 837 "configure"
837 #include "confdefs.h"
841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
842 { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
844 if test -z "$ac_err"; then
848 echo "configure: failed program was:" >&5
849 cat conftest.$ac_ext >&5
858 ac_cv_prog_CPP="$CPP"
860 CPP="$ac_cv_prog_CPP"
862 ac_cv_prog_CPP="$CPP"
864 echo "$ac_t""$CPP" 1>&6
866 echo $ac_n "checking for AIX""... $ac_c" 1>&6
867 echo "configure:868: checking for AIX" >&5
868 cat > conftest.$ac_ext <<EOF
869 #line 870 "configure"
870 #include "confdefs.h"
876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
877 egrep "yes" >/dev/null 2>&1; then
879 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
880 #define _ALL_SOURCE 1
885 echo "$ac_t""no" 1>&6
890 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
891 echo "configure:892: checking for POSIXized ISC" >&5
892 if test -d /etc/conf/kconfig.d &&
893 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
895 echo "$ac_t""yes" 1>&6
896 ISC=yes # If later tests want to check for ISC.
897 cat >> confdefs.h <<\EOF
898 #define _POSIX_SOURCE 1
901 if test "$GCC" = yes; then
907 echo "$ac_t""no" 1>&6
914 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
915 echo "configure:916: checking for ${CC-cc} option to accept ANSI C" >&5
916 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 am_cv_prog_cc_stdc=no
921 # Don't try gcc -ansi; that turns off useful extensions and
922 # breaks some systems' header files.
924 # Ultrix and OSF/1 -std1
925 # HP-UX -Aa -D_HPUX_SOURCE
926 # SVR4 -Xc -D__EXTENSIONS__
927 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
929 CC="$ac_save_CC $ac_arg"
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
935 #include <sys/types.h>
936 #include <sys/stat.h>
937 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
938 struct buf { int x; };
939 FILE * (*rcsopen) (struct buf *, struct stat *, int);
940 static char *e (p, i)
946 static char *f (char * (*g) (char **, int), char **p, ...)
951 s = g (p, va_arg (v,int));
955 int test (int i, double x);
956 struct s1 {int (*f) (int a);};
957 struct s2 {int (*f) (double a);};
958 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
964 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
968 if { (eval echo configure:969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
970 am_cv_prog_cc_stdc="$ac_arg"; break
972 echo "configure: failed program was:" >&5
973 cat conftest.$ac_ext >&5
981 if test -z "$am_cv_prog_cc_stdc"; then
982 echo "$ac_t""none needed" 1>&6
984 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
986 case "x$am_cv_prog_cc_stdc" in
988 *) CC="$CC $am_cv_prog_cc_stdc" ;;
993 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
994 if test -f $ac_dir/install-sh; then
996 ac_install_sh="$ac_aux_dir/install-sh -c"
998 elif test -f $ac_dir/install.sh; then
1000 ac_install_sh="$ac_aux_dir/install.sh -c"
1004 if test -z "$ac_aux_dir"; then
1005 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1007 ac_config_guess=$ac_aux_dir/config.guess
1008 ac_config_sub=$ac_aux_dir/config.sub
1009 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1012 # Do some error checking and defaulting for the host and target type.
1014 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1017 # 1. You are not allowed to specify --host, --target, and nonopt at the
1019 # 2. Host defaults to nonopt.
1020 # 3. If nonopt is not specified, then host defaults to the current host,
1021 # as determined by config.guess.
1022 # 4. Target and build default to nonopt.
1023 # 5. If nonopt is not specified, then target and build default to host.
1025 # The aliases save the names the user supplied, while $host etc.
1026 # will get canonicalized.
1027 case $host---$target---$nonopt in
1028 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1029 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1033 # Make sure we can run config.sub.
1034 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1035 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1038 echo $ac_n "checking host system type""... $ac_c" 1>&6
1039 echo "configure:1040: checking host system type" >&5
1042 case "$host_alias" in
1046 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1047 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1049 *) host_alias=$nonopt ;;
1053 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1054 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$ac_t""$host" 1>&6
1059 echo $ac_n "checking target system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking target system type" >&5
1062 target_alias=$target
1063 case "$target_alias" in
1066 NONE) target_alias=$host_alias ;;
1067 *) target_alias=$nonopt ;;
1071 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1072 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$target" 1>&6
1077 echo $ac_n "checking build system type""... $ac_c" 1>&6
1078 echo "configure:1079: checking build system type" >&5
1081 case "$build_alias" in
1084 NONE) build_alias=$host_alias ;;
1085 *) build_alias=$nonopt ;;
1089 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1090 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1091 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1092 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1093 echo "$ac_t""$build" 1>&6
1095 test "$host_alias" != "$target_alias" &&
1096 test "$program_prefix$program_suffix$program_transform_name" = \
1098 program_prefix=${target_alias}-
1102 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether ${MAKE-make} sets \${MAKE}" >&5
1104 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1105 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 cat > conftestmake <<\EOF
1110 @echo 'ac_maketemp="${MAKE}"'
1112 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1113 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1114 if test -n "$ac_maketemp"; then
1115 eval ac_cv_prog_make_${ac_make}_set=yes
1117 eval ac_cv_prog_make_${ac_make}_set=no
1121 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1122 echo "$ac_t""yes" 1>&6
1125 echo "$ac_t""no" 1>&6
1126 SET_MAKE="MAKE=${MAKE-make}"
1129 # Extract the first word of "ranlib", so it can be a program name with args.
1130 set dummy ranlib; ac_word=$2
1131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1132 echo "configure:1133: checking for $ac_word" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 if test -n "$RANLIB"; then
1137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1141 for ac_dir in $ac_dummy; do
1142 test -z "$ac_dir" && ac_dir=.
1143 if test -f $ac_dir/$ac_word; then
1144 ac_cv_prog_RANLIB="ranlib"
1149 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1152 RANLIB="$ac_cv_prog_RANLIB"
1153 if test -n "$RANLIB"; then
1154 echo "$ac_t""$RANLIB" 1>&6
1156 echo "$ac_t""no" 1>&6
1159 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1160 echo "configure:1161: checking for ANSI C header files" >&5
1161 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 cat > conftest.$ac_ext <<EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1173 { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1175 if test -z "$ac_err"; then
1177 ac_cv_header_stdc=yes
1180 echo "configure: failed program was:" >&5
1181 cat conftest.$ac_ext >&5
1183 ac_cv_header_stdc=no
1187 if test $ac_cv_header_stdc = yes; then
1188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1189 cat > conftest.$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1195 egrep "memchr" >/dev/null 2>&1; then
1199 ac_cv_header_stdc=no
1205 if test $ac_cv_header_stdc = yes; then
1206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1207 cat > conftest.$ac_ext <<EOF
1208 #line 1209 "configure"
1209 #include "confdefs.h"
1212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1213 egrep "free" >/dev/null 2>&1; then
1217 ac_cv_header_stdc=no
1223 if test $ac_cv_header_stdc = yes; then
1224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1225 if test "$cross_compiling" = yes; then
1228 cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1232 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1233 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1235 int main () { int i; for (i = 0; i < 256; i++)
1236 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1240 if { (eval echo configure:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1244 echo "configure: failed program was:" >&5
1245 cat conftest.$ac_ext >&5
1247 ac_cv_header_stdc=no
1255 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1256 if test $ac_cv_header_stdc = yes; then
1257 cat >> confdefs.h <<\EOF
1258 #define STDC_HEADERS 1
1263 echo $ac_n "checking for working const""... $ac_c" 1>&6
1264 echo "configure:1265: checking for working const" >&5
1265 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1274 /* Ultrix mips cc rejects this. */
1275 typedef int charset[2]; const charset x;
1276 /* SunOS 4.1.1 cc rejects this. */
1277 char const *const *ccp;
1279 /* NEC SVR4.0.2 mips cc rejects this. */
1280 struct point {int x, y;};
1281 static struct point const zero = {0,0};
1282 /* AIX XL C 1.02.0.0 rejects this.
1283 It does not let you subtract one const X* pointer from another in an arm
1284 of an if-expression whose if-part is not a constant expression */
1285 const char *g = "string";
1286 ccp = &g + (g ? g-g : 0);
1287 /* HPUX 7.0 cc rejects these. */
1290 ccp = (char const *const *) p;
1291 { /* SCO 3.2v4 cc rejects this. */
1293 char const *s = 0 ? (char *) 0 : (char const *) 0;
1297 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1299 const int *foo = &x[0];
1302 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1303 typedef const int *iptr;
1307 { /* AIX XL C 1.02.0.0 rejects this saying
1308 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1309 struct s { int j; const int *ap[3]; };
1310 struct s *b; b->j = 5;
1312 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1318 if { (eval echo configure:1319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1322 echo "configure: failed program was:" >&5
1323 cat conftest.$ac_ext >&5
1330 echo "$ac_t""$ac_cv_c_const" 1>&6
1331 if test $ac_cv_c_const = no; then
1332 cat >> confdefs.h <<\EOF
1338 echo $ac_n "checking for inline""... $ac_c" 1>&6
1339 echo "configure:1340: checking for inline" >&5
1340 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1344 for ac_kw in inline __inline__ __inline; do
1345 cat > conftest.$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1353 if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1355 ac_cv_c_inline=$ac_kw; break
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1365 echo "$ac_t""$ac_cv_c_inline" 1>&6
1366 case "$ac_cv_c_inline" in
1368 no) cat >> confdefs.h <<\EOF
1372 *) cat >> confdefs.h <<EOF
1373 #define inline $ac_cv_c_inline
1378 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1379 echo "configure:1380: checking for off_t" >&5
1380 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 #include <sys/types.h>
1392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1393 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1395 ac_cv_type_off_t=yes
1403 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1404 if test $ac_cv_type_off_t = no; then
1405 cat >> confdefs.h <<\EOF
1411 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1412 echo "configure:1413: checking for size_t" >&5
1413 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419 #include <sys/types.h>
1425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1426 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1428 ac_cv_type_size_t=yes
1431 ac_cv_type_size_t=no
1436 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1437 if test $ac_cv_type_size_t = no; then
1438 cat >> confdefs.h <<\EOF
1439 #define size_t unsigned
1444 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1445 # for constant arguments. Useless!
1446 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1447 echo "configure:1448: checking for working alloca.h" >&5
1448 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1451 cat > conftest.$ac_ext <<EOF
1452 #line 1453 "configure"
1453 #include "confdefs.h"
1456 char *p = alloca(2 * sizeof(int));
1459 if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1461 ac_cv_header_alloca_h=yes
1463 echo "configure: failed program was:" >&5
1464 cat conftest.$ac_ext >&5
1466 ac_cv_header_alloca_h=no
1471 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1472 if test $ac_cv_header_alloca_h = yes; then
1473 cat >> confdefs.h <<\EOF
1474 #define HAVE_ALLOCA_H 1
1479 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1480 echo "configure:1481: checking for alloca" >&5
1481 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1489 # define alloca __builtin_alloca
1492 # include <malloc.h>
1493 # define alloca _alloca
1496 # include <alloca.h>
1501 # ifndef alloca /* predefined by HP cc +Olibcalls */
1510 char *p = (char *) alloca(1);
1513 if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1515 ac_cv_func_alloca_works=yes
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 ac_cv_func_alloca_works=no
1525 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1526 if test $ac_cv_func_alloca_works = yes; then
1527 cat >> confdefs.h <<\EOF
1528 #define HAVE_ALLOCA 1
1533 if test $ac_cv_func_alloca_works = no; then
1534 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1535 # that cause trouble. Some versions do not even contain alloca or
1536 # contain a buggy version. If you still want to use their alloca,
1537 # use ar to extract alloca.o from them instead of compiling alloca.c.
1538 ALLOCA=alloca.${ac_objext}
1539 cat >> confdefs.h <<\EOF
1544 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1545 echo "configure:1546: checking whether alloca needs Cray hooks" >&5
1546 if eval "test \"`echo '$''{'ac_cv_os_cray'+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 #if defined(CRAY) && ! defined(CRAY2)
1559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1560 egrep "webecray" >/dev/null 2>&1; then
1571 echo "$ac_t""$ac_cv_os_cray" 1>&6
1572 if test $ac_cv_os_cray = yes; then
1573 for ac_func in _getb67 GETB67 getb67; do
1574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1575 echo "configure:1576: checking for $ac_func" >&5
1576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 cat > conftest.$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1582 /* System header to define __stub macros and hopefully few prototypes,
1583 which can conflict with char $ac_func(); below. */
1585 /* Override any gcc2 internal prototype to avoid an error. */
1586 /* We use char because int might match the return type of a gcc2
1587 builtin and then its argument prototype would still apply. */
1592 /* The GNU C library defines this for functions which it implements
1593 to always fail with ENOSYS. Some functions are actually named
1594 something starting with __ and the normal name is an alias. */
1595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1603 if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1605 eval "ac_cv_func_$ac_func=yes"
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1610 eval "ac_cv_func_$ac_func=no"
1615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 cat >> confdefs.h <<EOF
1618 #define CRAY_STACKSEG_END $ac_func
1623 echo "$ac_t""no" 1>&6
1629 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1630 echo "configure:1631: checking stack direction for C alloca" >&5
1631 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 if test "$cross_compiling" = yes; then
1635 ac_cv_c_stack_direction=0
1637 cat > conftest.$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1640 find_stack_direction ()
1642 static char *addr = 0;
1647 return find_stack_direction ();
1650 return (&dummy > addr) ? 1 : -1;
1654 exit (find_stack_direction() < 0);
1657 if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1659 ac_cv_c_stack_direction=1
1661 echo "configure: failed program was:" >&5
1662 cat conftest.$ac_ext >&5
1664 ac_cv_c_stack_direction=-1
1671 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1672 cat >> confdefs.h <<EOF
1673 #define STACK_DIRECTION $ac_cv_c_stack_direction
1678 for ac_hdr in unistd.h
1680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_hdr" >&5
1683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1692 { (eval echo configure:1693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1694 if test -z "$ac_err"; then
1696 eval "ac_cv_header_$ac_safe=yes"
1699 echo "configure: failed program was:" >&5
1700 cat conftest.$ac_ext >&5
1702 eval "ac_cv_header_$ac_safe=no"
1706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1709 cat >> confdefs.h <<EOF
1710 #define $ac_tr_hdr 1
1714 echo "$ac_t""no" 1>&6
1718 for ac_func in getpagesize
1720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1721 echo "configure:1722: checking for $ac_func" >&5
1722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 /* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char $ac_func(); below. */
1731 /* Override any gcc2 internal prototype to avoid an error. */
1732 /* We use char because int might match the return type of a gcc2
1733 builtin and then its argument prototype would still apply. */
1738 /* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1749 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1751 eval "ac_cv_func_$ac_func=yes"
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1756 eval "ac_cv_func_$ac_func=no"
1761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1764 cat >> confdefs.h <<EOF
1765 #define $ac_tr_func 1
1769 echo "$ac_t""no" 1>&6
1773 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1774 echo "configure:1775: checking for working mmap" >&5
1775 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 if test "$cross_compiling" = yes; then
1779 ac_cv_func_mmap_fixed_mapped=no
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1785 /* Thanks to Mike Haertel and Jim Avera for this test.
1786 Here is a matrix of mmap possibilities:
1787 mmap private not fixed
1788 mmap private fixed at somewhere currently unmapped
1789 mmap private fixed at somewhere already mapped
1790 mmap shared not fixed
1791 mmap shared fixed at somewhere currently unmapped
1792 mmap shared fixed at somewhere already mapped
1793 For private mappings, we should verify that changes cannot be read()
1794 back from the file, nor mmap's back from the file at a different
1795 address. (There have been systems where private was not correctly
1796 implemented like the infamous i386 svr4.0, and systems where the
1797 VM page cache was not coherent with the filesystem buffer cache
1798 like early versions of FreeBSD and possibly contemporary NetBSD.)
1799 For shared mappings, we should conversely verify that changes get
1800 propogated back to all the places they're supposed to be.
1802 Grep wants private fixed already mapped.
1803 The main things grep needs to know about mmap are:
1804 * does it exist and is it safe to write into the mmap'd area
1805 * how to use it (BSD variants) */
1806 #include <sys/types.h>
1808 #include <sys/mman.h>
1810 /* This mess was copied from the GNU getpagesize.h. */
1811 #ifndef HAVE_GETPAGESIZE
1812 # ifdef HAVE_UNISTD_H
1813 # include <unistd.h>
1816 /* Assume that all systems that can run configure have sys/param.h. */
1817 # ifndef HAVE_SYS_PARAM_H
1818 # define HAVE_SYS_PARAM_H 1
1821 # ifdef _SC_PAGESIZE
1822 # define getpagesize() sysconf(_SC_PAGESIZE)
1823 # else /* no _SC_PAGESIZE */
1824 # ifdef HAVE_SYS_PARAM_H
1825 # include <sys/param.h>
1826 # ifdef EXEC_PAGESIZE
1827 # define getpagesize() EXEC_PAGESIZE
1828 # else /* no EXEC_PAGESIZE */
1830 # define getpagesize() NBPG * CLSIZE
1833 # endif /* no CLSIZE */
1834 # else /* no NBPG */
1836 # define getpagesize() NBPC
1837 # else /* no NBPC */
1839 # define getpagesize() PAGESIZE
1840 # endif /* PAGESIZE */
1841 # endif /* no NBPC */
1842 # endif /* no NBPG */
1843 # endif /* no EXEC_PAGESIZE */
1844 # else /* no HAVE_SYS_PARAM_H */
1845 # define getpagesize() 8192 /* punt totally */
1846 # endif /* no HAVE_SYS_PARAM_H */
1847 # endif /* no _SC_PAGESIZE */
1849 #endif /* no HAVE_GETPAGESIZE */
1852 extern "C" { void *malloc(unsigned); }
1860 char *data, *data2, *data3;
1864 pagesize = getpagesize();
1867 * First, make a file with some known garbage in it.
1869 data = malloc(pagesize);
1872 for (i = 0; i < pagesize; ++i)
1873 *(data + i) = rand();
1875 fd = creat("conftestmmap", 0600);
1878 if (write(fd, data, pagesize) != pagesize)
1883 * Next, try to mmap the file at a fixed address which
1884 * already has something else allocated at it. If we can,
1885 * also make sure that we see the same garbage.
1887 fd = open("conftestmmap", O_RDWR);
1890 data2 = malloc(2 * pagesize);
1893 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1894 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1895 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1897 for (i = 0; i < pagesize; ++i)
1898 if (*(data + i) != *(data2 + i))
1902 * Finally, make sure that changes to the mapped area
1903 * do not percolate back to the file as seen by read().
1904 * (This is a bug on some variants of i386 svr4.0.)
1906 for (i = 0; i < pagesize; ++i)
1907 *(data2 + i) = *(data2 + i) + 1;
1908 data3 = malloc(pagesize);
1911 if (read(fd, data3, pagesize) != pagesize)
1913 for (i = 0; i < pagesize; ++i)
1914 if (*(data + i) != *(data3 + i))
1917 unlink("conftestmmap");
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1924 ac_cv_func_mmap_fixed_mapped=yes
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1929 ac_cv_func_mmap_fixed_mapped=no
1936 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1937 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1938 cat >> confdefs.h <<\EOF
1945 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1946 unistd.h values.h sys/param.h
1948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1950 echo "configure:1951: checking for $ac_hdr" >&5
1951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1960 { (eval echo configure:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1962 if test -z "$ac_err"; then
1964 eval "ac_cv_header_$ac_safe=yes"
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1970 eval "ac_cv_header_$ac_safe=no"
1974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1975 echo "$ac_t""yes" 1>&6
1976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1977 cat >> confdefs.h <<EOF
1978 #define $ac_tr_hdr 1
1982 echo "$ac_t""no" 1>&6
1986 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1987 __argz_count __argz_stringify __argz_next
1989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_func" >&5
1991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $ac_func(); below. */
2000 /* Override any gcc2 internal prototype to avoid an error. */
2001 /* We use char because int might match the return type of a gcc2
2002 builtin and then its argument prototype would still apply. */
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020 eval "ac_cv_func_$ac_func=yes"
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2025 eval "ac_cv_func_$ac_func=no"
2030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2033 cat >> confdefs.h <<EOF
2034 #define $ac_tr_func 1
2038 echo "$ac_t""no" 1>&6
2043 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2044 for ac_func in stpcpy
2046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_func" >&5
2048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2054 /* System header to define __stub macros and hopefully few prototypes,
2055 which can conflict with char $ac_func(); below. */
2057 /* Override any gcc2 internal prototype to avoid an error. */
2058 /* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2077 eval "ac_cv_func_$ac_func=yes"
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 eval "ac_cv_func_$ac_func=no"
2087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2090 cat >> confdefs.h <<EOF
2091 #define $ac_tr_func 1
2095 echo "$ac_t""no" 1>&6
2100 if test "${ac_cv_func_stpcpy}" = "yes"; then
2101 cat >> confdefs.h <<\EOF
2102 #define HAVE_STPCPY 1
2107 if test $ac_cv_header_locale_h = yes; then
2108 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2109 echo "configure:2110: checking for LC_MESSAGES" >&5
2110 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2123 am_cv_val_LC_MESSAGES=yes
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2128 am_cv_val_LC_MESSAGES=no
2133 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2134 if test $am_cv_val_LC_MESSAGES = yes; then
2135 cat >> confdefs.h <<\EOF
2136 #define HAVE_LC_MESSAGES 1
2141 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2142 echo "configure:2143: checking whether NLS is requested" >&5
2143 # Check whether --enable-nls or --disable-nls was given.
2144 if test "${enable_nls+set}" = set; then
2145 enableval="$enable_nls"
2151 echo "$ac_t""$USE_NLS" 1>&6
2154 USE_INCLUDED_LIBINTL=no
2156 if test "$USE_NLS" = "yes"; then
2157 cat >> confdefs.h <<\EOF
2158 #define ENABLE_NLS 1
2161 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2162 echo "configure:2163: checking whether included gettext is requested" >&5
2163 # Check whether --with-included-gettext or --without-included-gettext was given.
2164 if test "${with_included_gettext+set}" = set; then
2165 withval="$with_included_gettext"
2166 nls_cv_force_use_gnu_gettext=$withval
2168 nls_cv_force_use_gnu_gettext=no
2171 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2173 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2174 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2176 nls_cv_header_libgt=
2179 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2180 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2181 echo "configure:2182: checking for libintl.h" >&5
2182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 #include <libintl.h>
2190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2191 { (eval echo configure:2192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2193 if test -z "$ac_err"; then
2195 eval "ac_cv_header_$ac_safe=yes"
2198 echo "configure: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2201 eval "ac_cv_header_$ac_safe=no"
2205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2207 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2208 echo "configure:2209: checking for gettext in libc" >&5
2209 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 cat > conftest.$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2215 #include <libintl.h>
2217 return (int) gettext ("")
2220 if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2222 gt_cv_func_gettext_libc=yes
2224 echo "configure: failed program was:" >&5
2225 cat conftest.$ac_ext >&5
2227 gt_cv_func_gettext_libc=no
2232 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2234 if test "$gt_cv_func_gettext_libc" != "yes"; then
2235 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2236 echo "configure:2237: checking for bindtextdomain in -lintl" >&5
2237 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 ac_save_LIBS="$LIBS"
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 /* Override any gcc2 internal prototype to avoid an error. */
2247 /* We use char because int might match the return type of a gcc2
2248 builtin and then its argument prototype would still apply. */
2249 char bindtextdomain();
2255 if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2257 eval "ac_cv_lib_$ac_lib_var=yes"
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2262 eval "ac_cv_lib_$ac_lib_var=no"
2265 LIBS="$ac_save_LIBS"
2268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2271 echo "configure:2272: checking for gettext in libintl" >&5
2272 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2280 return (int) gettext ("")
2283 if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2285 gt_cv_func_gettext_libintl=yes
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 gt_cv_func_gettext_libintl=no
2295 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2297 echo "$ac_t""no" 1>&6
2302 if test "$gt_cv_func_gettext_libc" = "yes" \
2303 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2304 cat >> confdefs.h <<\EOF
2305 #define HAVE_GETTEXT 1
2308 # Extract the first word of "msgfmt", so it can be a program name with args.
2309 set dummy msgfmt; ac_word=$2
2310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2311 echo "configure:2312: checking for $ac_word" >&5
2312 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2317 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2321 for ac_dir in $PATH; do
2322 test -z "$ac_dir" && ac_dir=.
2323 if test -f $ac_dir/$ac_word; then
2324 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2325 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2331 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2335 MSGFMT="$ac_cv_path_MSGFMT"
2336 if test -n "$MSGFMT"; then
2337 echo "$ac_t""$MSGFMT" 1>&6
2339 echo "$ac_t""no" 1>&6
2341 if test "$MSGFMT" != "no"; then
2342 for ac_func in dcgettext
2344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_func" >&5
2346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* System header to define __stub macros and hopefully few prototypes,
2353 which can conflict with char $ac_func(); below. */
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2362 /* The GNU C library defines this for functions which it implements
2363 to always fail with ENOSYS. Some functions are actually named
2364 something starting with __ and the normal name is an alias. */
2365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2375 eval "ac_cv_func_$ac_func=yes"
2377 echo "configure: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2380 eval "ac_cv_func_$ac_func=no"
2385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2388 cat >> confdefs.h <<EOF
2389 #define $ac_tr_func 1
2393 echo "$ac_t""no" 1>&6
2397 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2398 set dummy gmsgfmt; ac_word=$2
2399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2400 echo "configure:2401: checking for $ac_word" >&5
2401 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2406 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2409 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2414 for ac_dir in $ac_dummy; do
2415 test -z "$ac_dir" && ac_dir=.
2416 if test -f $ac_dir/$ac_word; then
2417 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2422 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2426 GMSGFMT="$ac_cv_path_GMSGFMT"
2427 if test -n "$GMSGFMT"; then
2428 echo "$ac_t""$GMSGFMT" 1>&6
2430 echo "$ac_t""no" 1>&6
2433 # Extract the first word of "xgettext", so it can be a program name with args.
2434 set dummy xgettext; ac_word=$2
2435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_word" >&5
2437 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2442 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2446 for ac_dir in $PATH; do
2447 test -z "$ac_dir" && ac_dir=.
2448 if test -f $ac_dir/$ac_word; then
2449 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2450 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2456 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2460 XGETTEXT="$ac_cv_path_XGETTEXT"
2461 if test -n "$XGETTEXT"; then
2462 echo "$ac_t""$XGETTEXT" 1>&6
2464 echo "$ac_t""no" 1>&6
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 extern int _nl_msg_cat_cntr;
2473 return _nl_msg_cat_cntr
2476 if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2493 echo "$ac_t""no" 1>&6
2498 if test "$CATOBJEXT" = "NONE"; then
2499 nls_cv_use_gnu_gettext=yes
2503 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2504 INTLOBJS="\$(GETTOBJS)"
2505 # Extract the first word of "msgfmt", so it can be a program name with args.
2506 set dummy msgfmt; ac_word=$2
2507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_word" >&5
2509 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2514 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2518 for ac_dir in $PATH; do
2519 test -z "$ac_dir" && ac_dir=.
2520 if test -f $ac_dir/$ac_word; then
2521 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2522 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2528 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2532 MSGFMT="$ac_cv_path_MSGFMT"
2533 if test -n "$MSGFMT"; then
2534 echo "$ac_t""$MSGFMT" 1>&6
2536 echo "$ac_t""no" 1>&6
2539 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2540 set dummy gmsgfmt; ac_word=$2
2541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2542 echo "configure:2543: checking for $ac_word" >&5
2543 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2548 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2551 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2556 for ac_dir in $ac_dummy; do
2557 test -z "$ac_dir" && ac_dir=.
2558 if test -f $ac_dir/$ac_word; then
2559 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2564 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2568 GMSGFMT="$ac_cv_path_GMSGFMT"
2569 if test -n "$GMSGFMT"; then
2570 echo "$ac_t""$GMSGFMT" 1>&6
2572 echo "$ac_t""no" 1>&6
2575 # Extract the first word of "xgettext", so it can be a program name with args.
2576 set dummy xgettext; ac_word=$2
2577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_word" >&5
2579 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2584 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2588 for ac_dir in $PATH; do
2589 test -z "$ac_dir" && ac_dir=.
2590 if test -f $ac_dir/$ac_word; then
2591 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2592 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2598 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2602 XGETTEXT="$ac_cv_path_XGETTEXT"
2603 if test -n "$XGETTEXT"; then
2604 echo "$ac_t""$XGETTEXT" 1>&6
2606 echo "$ac_t""no" 1>&6
2610 USE_INCLUDED_LIBINTL=yes
2614 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2616 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2617 nls_cv_header_intl=libintl.h
2618 nls_cv_header_libgt=libgettext.h
2621 if test "$XGETTEXT" != ":"; then
2622 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2625 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2630 # We need to process the po/ directory.
2634 nls_cv_header_intl=libintl.h
2635 nls_cv_header_libgt=libgettext.h
2638 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2639 # because some of the sources are only built for this goal.
2640 if test "$PACKAGE" = gettext; then
2642 USE_INCLUDED_LIBINTL=yes
2645 for lang in $ALL_LINGUAS; do
2646 GMOFILES="$GMOFILES $lang.gmo"
2647 POFILES="$POFILES $lang.po"
2663 if test "x$CATOBJEXT" != "x"; then
2664 if test "x$ALL_LINGUAS" = "x"; then
2667 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2668 echo "configure:2669: checking for catalogs to be installed" >&5
2670 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2671 case "$ALL_LINGUAS" in
2672 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2675 LINGUAS=$NEW_LINGUAS
2676 echo "$ac_t""$LINGUAS" 1>&6
2679 if test -n "$LINGUAS"; then
2680 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2684 if test $ac_cv_header_locale_h = yes; then
2685 INCLUDE_LOCALE_H="#include <locale.h>"
2688 /* The system does not provide the header <locale.h>. Take care yourself. */"
2692 if test -f $srcdir/po2tbl.sed.in; then
2693 if test "$CATOBJEXT" = ".cat"; then
2694 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2695 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2696 echo "configure:2697: checking for linux/version.h" >&5
2697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 #include <linux/version.h>
2705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2710 eval "ac_cv_header_$ac_safe=yes"
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2716 eval "ac_cv_header_$ac_safe=no"
2720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2724 echo "$ac_t""no" 1>&6
2729 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2731 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2732 $srcdir/po2tbl.sed.in > po2tbl.sed
2735 if test "$PACKAGE" = "gettext"; then
2745 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2751 if test -d $srcdir/po; then
2752 test -d po || mkdir po
2753 if test "x$srcdir" != "x."; then
2754 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2755 posrcprefix="$srcdir/"
2757 posrcprefix="../$srcdir/"
2763 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2764 < $srcdir/po/POTFILES.in > po/POTFILES
2774 configdirs="doc testsuite"
2776 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2777 if test "${enable_multi_ice+set}" = set; then
2778 enableval="$enable_multi_ice"
2779 case "${enableval}" in
2780 yes ) enable_multi_ice="yes" ;;
2781 no) enable_multi_ice="no" ;;
2782 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2788 if test "${enable_multi_ice}" = "yes"; then
2789 configdirs="${configdirs} multi-ice"
2793 . ${srcdir}/configure.host
2795 . ${srcdir}/configure.tgt
2798 for ac_prog in mawk gawk nawk awk
2800 # Extract the first word of "$ac_prog", so it can be a program name with args.
2801 set dummy $ac_prog; ac_word=$2
2802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2803 echo "configure:2804: checking for $ac_word" >&5
2804 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 if test -n "$AWK"; then
2808 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2812 for ac_dir in $ac_dummy; do
2813 test -z "$ac_dir" && ac_dir=.
2814 if test -f $ac_dir/$ac_word; then
2815 ac_cv_prog_AWK="$ac_prog"
2822 AWK="$ac_cv_prog_AWK"
2823 if test -n "$AWK"; then
2824 echo "$ac_t""$AWK" 1>&6
2826 echo "$ac_t""no" 1>&6
2829 test -n "$AWK" && break
2832 # Find a good install program. We prefer a C program (faster),
2833 # so one script is as good as another. But avoid the broken or
2834 # incompatible versions:
2835 # SysV /etc/install, /usr/sbin/install
2836 # SunOS /usr/etc/install
2837 # IRIX /sbin/install
2839 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2840 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2841 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2842 # ./install, which can be erroneously created by make from ./install.sh.
2843 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2844 echo "configure:2845: checking for a BSD compatible install" >&5
2845 if test -z "$INSTALL"; then
2846 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2850 for ac_dir in $PATH; do
2851 # Account for people who put trailing slashes in PATH elements.
2853 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2855 # OSF1 and SCO ODT 3.0 have their own names for install.
2856 # Don't use installbsd from OSF since it installs stuff as root
2858 for ac_prog in ginstall scoinst install; do
2859 if test -f $ac_dir/$ac_prog; then
2860 if test $ac_prog = install &&
2861 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2862 # AIX install. It has an incompatible calling convention.
2865 ac_cv_path_install="$ac_dir/$ac_prog -c"
2876 if test "${ac_cv_path_install+set}" = set; then
2877 INSTALL="$ac_cv_path_install"
2879 # As a last resort, use the slow shell script. We don't cache a
2880 # path for INSTALL within a source directory, because that will
2881 # break other packages using the cache if that directory is
2882 # removed, or if the path is relative.
2883 INSTALL="$ac_install_sh"
2886 echo "$ac_t""$INSTALL" 1>&6
2888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2889 # It thinks the first close brace ends the variable substitution.
2890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896 if test $host != $build; then
2897 ac_tool_prefix=${host_alias}-
2902 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2903 set dummy ${ac_tool_prefix}ar; ac_word=$2
2904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2905 echo "configure:2906: checking for $ac_word" >&5
2906 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 if test -n "$AR"; then
2910 ac_cv_prog_AR="$AR" # Let the user override the test.
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2914 for ac_dir in $ac_dummy; do
2915 test -z "$ac_dir" && ac_dir=.
2916 if test -f $ac_dir/$ac_word; then
2917 ac_cv_prog_AR="${ac_tool_prefix}ar"
2922 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2926 if test -n "$AR"; then
2927 echo "$ac_t""$AR" 1>&6
2929 echo "$ac_t""no" 1>&6
2934 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_word" >&5
2938 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 if test -n "$RANLIB"; then
2942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2946 for ac_dir in $ac_dummy; do
2947 test -z "$ac_dir" && ac_dir=.
2948 if test -f $ac_dir/$ac_word; then
2949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2956 RANLIB="$ac_cv_prog_RANLIB"
2957 if test -n "$RANLIB"; then
2958 echo "$ac_t""$RANLIB" 1>&6
2960 echo "$ac_t""no" 1>&6
2964 if test -z "$ac_cv_prog_RANLIB"; then
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "ranlib", so it can be a program name with args.
2967 set dummy ranlib; ac_word=$2
2968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2969 echo "configure:2970: checking for $ac_word" >&5
2970 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 if test -n "$RANLIB"; then
2974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2978 for ac_dir in $ac_dummy; do
2979 test -z "$ac_dir" && ac_dir=.
2980 if test -f $ac_dir/$ac_word; then
2981 ac_cv_prog_RANLIB="ranlib"
2986 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2989 RANLIB="$ac_cv_prog_RANLIB"
2990 if test -n "$RANLIB"; then
2991 echo "$ac_t""$RANLIB" 1>&6
2993 echo "$ac_t""no" 1>&6
3001 for ac_prog in 'bison -y' byacc
3003 # Extract the first word of "$ac_prog", so it can be a program name with args.
3004 set dummy $ac_prog; ac_word=$2
3005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3006 echo "configure:3007: checking for $ac_word" >&5
3007 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 if test -n "$YACC"; then
3011 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3015 for ac_dir in $ac_dummy; do
3016 test -z "$ac_dir" && ac_dir=.
3017 if test -f $ac_dir/$ac_word; then
3018 ac_cv_prog_YACC="$ac_prog"
3025 YACC="$ac_cv_prog_YACC"
3026 if test -n "$YACC"; then
3027 echo "$ac_t""$YACC" 1>&6
3029 echo "$ac_t""no" 1>&6
3032 test -n "$YACC" && break
3034 test -n "$YACC" || YACC="yacc"
3037 if test "$program_transform_name" = s,x,x,; then
3038 program_transform_name=
3040 # Double any \ or $. echo might interpret backslashes.
3041 cat <<\EOF_SED > conftestsed
3042 s,\\,\\\\,g; s,\$,$$,g
3044 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
3047 test "$program_prefix" != NONE &&
3048 program_transform_name="s,^,${program_prefix},; $program_transform_name"
3049 # Use a double $ so make ignores it.
3050 test "$program_suffix" != NONE &&
3051 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
3053 # sed with no file args requires a program.
3054 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
3057 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3058 echo "configure:3059: checking return type of signal handlers" >&5
3059 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 #include <sys/types.h>
3071 extern "C" void (*signal (int, void (*)(int)))(int);
3073 void (*signal ()) ();
3080 if { (eval echo configure:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3082 ac_cv_type_signal=void
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3087 ac_cv_type_signal=int
3092 echo "$ac_t""$ac_cv_type_signal" 1>&6
3093 cat >> confdefs.h <<EOF
3094 #define RETSIGTYPE $ac_cv_type_signal
3099 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3100 echo "configure:3101: checking for ANSI C header files" >&5
3101 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3113 { (eval echo configure:3114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3115 if test -z "$ac_err"; then
3117 ac_cv_header_stdc=yes
3120 echo "configure: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3123 ac_cv_header_stdc=no
3127 if test $ac_cv_header_stdc = yes; then
3128 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135 egrep "memchr" >/dev/null 2>&1; then
3139 ac_cv_header_stdc=no
3145 if test $ac_cv_header_stdc = yes; then
3146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 egrep "free" >/dev/null 2>&1; then
3157 ac_cv_header_stdc=no
3163 if test $ac_cv_header_stdc = yes; then
3164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3165 if test "$cross_compiling" = yes; then
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3172 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3173 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3175 int main () { int i; for (i = 0; i < 256; i++)
3176 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3180 if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3187 ac_cv_header_stdc=no
3195 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3196 if test $ac_cv_header_stdc = yes; then
3197 cat >> confdefs.h <<\EOF
3198 #define STDC_HEADERS 1
3204 for ac_hdr in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3205 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3206 string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
3207 term.h termio.h termios.h unistd.h wait.h sys/wait.h \
3208 wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
3211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3213 echo "configure:3214: checking for $ac_hdr" >&5
3214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3223 { (eval echo configure:3224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3225 if test -z "$ac_err"; then
3227 eval "ac_cv_header_$ac_safe=yes"
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3233 eval "ac_cv_header_$ac_safe=no"
3237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3238 echo "$ac_t""yes" 1>&6
3239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_hdr 1
3245 echo "$ac_t""no" 1>&6
3249 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3250 echo "configure:3251: checking whether stat file-mode macros are broken" >&5
3251 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 #include <sys/types.h>
3258 #include <sys/stat.h>
3260 #if defined(S_ISBLK) && defined(S_IFDIR)
3261 # if S_ISBLK (S_IFDIR)
3266 #if defined(S_ISBLK) && defined(S_IFCHR)
3267 # if S_ISBLK (S_IFCHR)
3272 #if defined(S_ISLNK) && defined(S_IFREG)
3273 # if S_ISLNK (S_IFREG)
3278 #if defined(S_ISSOCK) && defined(S_IFREG)
3279 # if S_ISSOCK (S_IFREG)
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 egrep "You lose" >/dev/null 2>&1; then
3288 ac_cv_header_stat_broken=yes
3291 ac_cv_header_stat_broken=no
3297 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3298 if test $ac_cv_header_stat_broken = yes; then
3299 cat >> confdefs.h <<\EOF
3300 #define STAT_MACROS_BROKEN 1
3306 echo $ac_n "checking for working const""... $ac_c" 1>&6
3307 echo "configure:3308: checking for working const" >&5
3308 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3317 /* Ultrix mips cc rejects this. */
3318 typedef int charset[2]; const charset x;
3319 /* SunOS 4.1.1 cc rejects this. */
3320 char const *const *ccp;
3322 /* NEC SVR4.0.2 mips cc rejects this. */
3323 struct point {int x, y;};
3324 static struct point const zero = {0,0};
3325 /* AIX XL C 1.02.0.0 rejects this.
3326 It does not let you subtract one const X* pointer from another in an arm
3327 of an if-expression whose if-part is not a constant expression */
3328 const char *g = "string";
3329 ccp = &g + (g ? g-g : 0);
3330 /* HPUX 7.0 cc rejects these. */
3333 ccp = (char const *const *) p;
3334 { /* SCO 3.2v4 cc rejects this. */
3336 char const *s = 0 ? (char *) 0 : (char const *) 0;
3340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3342 const int *foo = &x[0];
3345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3346 typedef const int *iptr;
3350 { /* AIX XL C 1.02.0.0 rejects this saying
3351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3352 struct s { int j; const int *ap[3]; };
3353 struct s *b; b->j = 5;
3355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3361 if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3373 echo "$ac_t""$ac_cv_c_const" 1>&6
3374 if test $ac_cv_c_const = no; then
3375 cat >> confdefs.h <<\EOF
3382 for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3385 echo "configure:3386: checking for $ac_func" >&5
3386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 /* System header to define __stub macros and hopefully few prototypes,
3393 which can conflict with char $ac_func(); below. */
3395 /* Override any gcc2 internal prototype to avoid an error. */
3396 /* We use char because int might match the return type of a gcc2
3397 builtin and then its argument prototype would still apply. */
3402 /* The GNU C library defines this for functions which it implements
3403 to always fail with ENOSYS. Some functions are actually named
3404 something starting with __ and the normal name is an alias. */
3405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3413 if { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3415 eval "ac_cv_func_$ac_func=yes"
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3420 eval "ac_cv_func_$ac_func=no"
3425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3428 cat >> confdefs.h <<EOF
3429 #define $ac_tr_func 1
3433 echo "$ac_t""no" 1>&6
3437 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3438 # for constant arguments. Useless!
3439 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3440 echo "configure:3441: checking for working alloca.h" >&5
3441 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3449 char *p = alloca(2 * sizeof(int));
3452 if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3454 ac_cv_header_alloca_h=yes
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3459 ac_cv_header_alloca_h=no
3464 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3465 if test $ac_cv_header_alloca_h = yes; then
3466 cat >> confdefs.h <<\EOF
3467 #define HAVE_ALLOCA_H 1
3472 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3473 echo "configure:3474: checking for alloca" >&5
3474 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3482 # define alloca __builtin_alloca
3485 # include <malloc.h>
3486 # define alloca _alloca
3489 # include <alloca.h>
3494 # ifndef alloca /* predefined by HP cc +Olibcalls */
3503 char *p = (char *) alloca(1);
3506 if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 ac_cv_func_alloca_works=yes
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 ac_cv_func_alloca_works=no
3518 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3519 if test $ac_cv_func_alloca_works = yes; then
3520 cat >> confdefs.h <<\EOF
3521 #define HAVE_ALLOCA 1
3526 if test $ac_cv_func_alloca_works = no; then
3527 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3528 # that cause trouble. Some versions do not even contain alloca or
3529 # contain a buggy version. If you still want to use their alloca,
3530 # use ar to extract alloca.o from them instead of compiling alloca.c.
3531 ALLOCA=alloca.${ac_objext}
3532 cat >> confdefs.h <<\EOF
3537 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3538 echo "configure:3539: checking whether alloca needs Cray hooks" >&5
3539 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #if defined(CRAY) && ! defined(CRAY2)
3552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553 egrep "webecray" >/dev/null 2>&1; then
3564 echo "$ac_t""$ac_cv_os_cray" 1>&6
3565 if test $ac_cv_os_cray = yes; then
3566 for ac_func in _getb67 GETB67 getb67; do
3567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3568 echo "configure:3569: checking for $ac_func" >&5
3569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 /* System header to define __stub macros and hopefully few prototypes,
3576 which can conflict with char $ac_func(); below. */
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 /* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3585 /* The GNU C library defines this for functions which it implements
3586 to always fail with ENOSYS. Some functions are actually named
3587 something starting with __ and the normal name is an alias. */
3588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3596 if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3598 eval "ac_cv_func_$ac_func=yes"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3603 eval "ac_cv_func_$ac_func=no"
3608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3609 echo "$ac_t""yes" 1>&6
3610 cat >> confdefs.h <<EOF
3611 #define CRAY_STACKSEG_END $ac_func
3616 echo "$ac_t""no" 1>&6
3622 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3623 echo "configure:3624: checking stack direction for C alloca" >&5
3624 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3627 if test "$cross_compiling" = yes; then
3628 ac_cv_c_stack_direction=0
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 find_stack_direction ()
3635 static char *addr = 0;
3640 return find_stack_direction ();
3643 return (&dummy > addr) ? 1 : -1;
3647 exit (find_stack_direction() < 0);
3650 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3652 ac_cv_c_stack_direction=1
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 ac_cv_c_stack_direction=-1
3664 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3665 cat >> confdefs.h <<EOF
3666 #define STACK_DIRECTION $ac_cv_c_stack_direction
3672 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3673 echo "configure:3674: checking for PTRACE_GETXFPREGS" >&5
3674 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 #include <sys/ptrace.h>
3685 if { (eval echo configure:3686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3687 gdb_cv_have_ptrace_getxfpregs=yes
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 gdb_cv_have_ptrace_getxfpregs=no
3697 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3698 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3699 cat >> confdefs.h <<\EOF
3700 #define HAVE_PTRACE_GETXFPREGS 1
3705 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3706 echo "configure:3707: checking for socketpair in -lsocket" >&5
3707 ac_lib_var=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 ac_save_LIBS="$LIBS"
3712 LIBS="-lsocket $LIBS"
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 /* Override any gcc2 internal prototype to avoid an error. */
3717 /* We use char because int might match the return type of a gcc2
3718 builtin and then its argument prototype would still apply. */
3725 if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3727 eval "ac_cv_lib_$ac_lib_var=yes"
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3732 eval "ac_cv_lib_$ac_lib_var=no"
3735 LIBS="$ac_save_LIBS"
3738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3740 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3742 cat >> confdefs.h <<EOF
3743 #define $ac_tr_lib 1
3746 LIBS="-lsocket $LIBS"
3749 echo "$ac_t""no" 1>&6
3752 for ac_func in socketpair
3754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3755 echo "configure:3756: checking for $ac_func" >&5
3756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3762 /* System header to define __stub macros and hopefully few prototypes,
3763 which can conflict with char $ac_func(); below. */
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3772 /* The GNU C library defines this for functions which it implements
3773 to always fail with ENOSYS. Some functions are actually named
3774 something starting with __ and the normal name is an alias. */
3775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 eval "ac_cv_func_$ac_func=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_func_$ac_func=no"
3795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3796 echo "$ac_t""yes" 1>&6
3797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3798 cat >> confdefs.h <<EOF
3799 #define $ac_tr_func 1
3803 echo "$ac_t""no" 1>&6
3809 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3810 echo "configure:3811: checking whether malloc must be declared" >&5
3811 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3819 #ifdef HAVE_STRING_H
3822 #ifdef HAVE_STRINGS_H
3823 #include <strings.h>
3826 #ifdef HAVE_STDLIB_H
3829 #ifdef HAVE_UNISTD_H
3833 char *(*pfn) = (char *(*)) malloc
3836 if { (eval echo configure:3837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3838 bfd_cv_decl_needed_malloc=no
3840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3843 bfd_cv_decl_needed_malloc=yes
3848 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3849 if test $bfd_cv_decl_needed_malloc = yes; then
3850 cat >> confdefs.h <<\EOF
3851 #define NEED_DECLARATION_MALLOC 1
3856 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3857 echo "configure:3858: checking whether realloc must be declared" >&5
3858 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3866 #ifdef HAVE_STRING_H
3869 #ifdef HAVE_STRINGS_H
3870 #include <strings.h>
3873 #ifdef HAVE_STDLIB_H
3876 #ifdef HAVE_UNISTD_H
3880 char *(*pfn) = (char *(*)) realloc
3883 if { (eval echo configure:3884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3885 bfd_cv_decl_needed_realloc=no
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 bfd_cv_decl_needed_realloc=yes
3895 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3896 if test $bfd_cv_decl_needed_realloc = yes; then
3897 cat >> confdefs.h <<\EOF
3898 #define NEED_DECLARATION_REALLOC 1
3903 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3904 echo "configure:3905: checking whether free must be declared" >&5
3905 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3913 #ifdef HAVE_STRING_H
3916 #ifdef HAVE_STRINGS_H
3917 #include <strings.h>
3920 #ifdef HAVE_STDLIB_H
3923 #ifdef HAVE_UNISTD_H
3927 char *(*pfn) = (char *(*)) free
3930 if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3932 bfd_cv_decl_needed_free=no
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3937 bfd_cv_decl_needed_free=yes
3942 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3943 if test $bfd_cv_decl_needed_free = yes; then
3944 cat >> confdefs.h <<\EOF
3945 #define NEED_DECLARATION_FREE 1
3950 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3951 echo "configure:3952: checking whether strerror must be declared" >&5
3952 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3960 #ifdef HAVE_STRING_H
3963 #ifdef HAVE_STRINGS_H
3964 #include <strings.h>
3967 #ifdef HAVE_STDLIB_H
3970 #ifdef HAVE_UNISTD_H
3974 char *(*pfn) = (char *(*)) strerror
3977 if { (eval echo configure:3978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3979 bfd_cv_decl_needed_strerror=no
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3984 bfd_cv_decl_needed_strerror=yes
3989 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
3990 if test $bfd_cv_decl_needed_strerror = yes; then
3991 cat >> confdefs.h <<\EOF
3992 #define NEED_DECLARATION_STRERROR 1
3997 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
3998 echo "configure:3999: checking whether strdup must be declared" >&5
3999 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4007 #ifdef HAVE_STRING_H
4010 #ifdef HAVE_STRINGS_H
4011 #include <strings.h>
4014 #ifdef HAVE_STDLIB_H
4017 #ifdef HAVE_UNISTD_H
4021 char *(*pfn) = (char *(*)) strdup
4024 if { (eval echo configure:4025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4026 bfd_cv_decl_needed_strdup=no
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 bfd_cv_decl_needed_strdup=yes
4036 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4037 if test $bfd_cv_decl_needed_strdup = yes; then
4038 cat >> confdefs.h <<\EOF
4039 #define NEED_DECLARATION_STRDUP 1
4044 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4045 echo "configure:4046: checking whether strstr must be declared" >&5
4046 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4054 #ifdef HAVE_STRING_H
4057 #ifdef HAVE_STRINGS_H
4058 #include <strings.h>
4061 #ifdef HAVE_STDLIB_H
4064 #ifdef HAVE_UNISTD_H
4068 char *(*pfn) = (char *(*)) strstr
4071 if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4073 bfd_cv_decl_needed_strstr=no
4075 echo "configure: failed program was:" >&5
4076 cat conftest.$ac_ext >&5
4078 bfd_cv_decl_needed_strstr=yes
4083 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4084 if test $bfd_cv_decl_needed_strstr = yes; then
4085 cat >> confdefs.h <<\EOF
4086 #define NEED_DECLARATION_STRSTR 1
4093 # The following save_state_t checkery is only necessary for HPUX
4094 # versions earlier than 10.20. When those fade from memory, this
4095 # could be expunged. --jsm 1999-03-22
4097 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4098 echo "configure:4099: checking for HPUX save_state structure" >&5
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 #include <machine/save_state.h>
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 egrep "save_state_t" >/dev/null 2>&1; then
4107 gdb_cv_hpux_savestate=yes
4110 gdb_cv_hpux_savestate=no
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 #include <machine/save_state.h>
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 egrep "ss_wide" >/dev/null 2>&1; then
4122 gdb_cv_hpux_sswide=yes
4125 gdb_cv_hpux_sswide=no
4129 if test $gdb_cv_hpux_savestate = yes
4131 cat >> confdefs.h <<\EOF
4132 #define HAVE_STRUCT_SAVE_STATE_T 1
4136 if test $gdb_cv_hpux_sswide = yes
4138 cat >> confdefs.h <<\EOF
4139 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4143 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4146 # If we are configured native on GNU/Linux, work around problems with
4148 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4150 if test "${target}" = "${host}"; then
4153 cat >> confdefs.h <<\EOF
4154 #define START_INFERIOR_TRAPS_EXPECTED 2
4157 cat >> confdefs.h <<\EOF
4158 #define sys_quotactl 1
4162 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5*)
4163 cat >> confdefs.h <<\EOF
4164 #define NEW_PROC_API 1
4168 # FIXME: we would like to define NEW_PROC_API for all versions of
4169 # Solaris from 2.6 on... but it isn't quite working yet. Seems
4170 # to work on sparc 2.6, so let's try it out there.
4171 sparc-sun-solaris2.6)
4172 cat >> confdefs.h <<\EOF
4173 #define NEW_PROC_API 1
4180 if test "$ac_cv_header_sys_procfs_h" = yes; then
4181 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4182 echo "configure:4183: checking for pstatus_t in sys/procfs.h" >&5
4183 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 #include <sys/procfs.h>
4194 if { (eval echo configure:4195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4196 bfd_cv_have_sys_procfs_type_pstatus_t=yes
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 bfd_cv_have_sys_procfs_type_pstatus_t=no
4207 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4208 cat >> confdefs.h <<\EOF
4209 #define HAVE_PSTATUS_T 1
4213 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4215 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4216 echo "configure:4217: checking for prrun_t in sys/procfs.h" >&5
4217 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4223 #include <sys/procfs.h>
4228 if { (eval echo configure:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4230 bfd_cv_have_sys_procfs_type_prrun_t=yes
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4235 bfd_cv_have_sys_procfs_type_prrun_t=no
4241 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4242 cat >> confdefs.h <<\EOF
4243 #define HAVE_PRRUN_T 1
4247 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4249 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4250 echo "configure:4251: checking for gregset_t in sys/procfs.h" >&5
4251 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 #include <sys/procfs.h>
4262 if { (eval echo configure:4263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4264 bfd_cv_have_sys_procfs_type_gregset_t=yes
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 bfd_cv_have_sys_procfs_type_gregset_t=no
4275 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4276 cat >> confdefs.h <<\EOF
4277 #define HAVE_GREGSET_T 1
4281 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4283 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4284 echo "configure:4285: checking for fpregset_t in sys/procfs.h" >&5
4285 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4288 cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4291 #include <sys/procfs.h>
4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4298 bfd_cv_have_sys_procfs_type_fpregset_t=yes
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4303 bfd_cv_have_sys_procfs_type_fpregset_t=no
4309 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4310 cat >> confdefs.h <<\EOF
4311 #define HAVE_FPREGSET_T 1
4315 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4317 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4318 echo "configure:4319: checking for prgregset_t in sys/procfs.h" >&5
4319 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 #include <sys/procfs.h>
4330 if { (eval echo configure:4331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4332 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 bfd_cv_have_sys_procfs_type_prgregset_t=no
4343 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4344 cat >> confdefs.h <<\EOF
4345 #define HAVE_PRGREGSET_T 1
4349 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4351 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4352 echo "configure:4353: checking for prfpregset_t in sys/procfs.h" >&5
4353 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4354 echo $ac_n "(cached) $ac_c" 1>&6
4356 cat > conftest.$ac_ext <<EOF
4357 #line 4358 "configure"
4358 #include "confdefs.h"
4359 #include <sys/procfs.h>
4364 if { (eval echo configure:4365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4366 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 bfd_cv_have_sys_procfs_type_prfpregset_t=no
4377 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4378 cat >> confdefs.h <<\EOF
4379 #define HAVE_PRFPREGSET_T 1
4383 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4385 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4386 echo "configure:4387: checking for lwpid_t in sys/procfs.h" >&5
4387 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 #include <sys/procfs.h>
4398 if { (eval echo configure:4399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4400 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 bfd_cv_have_sys_procfs_type_lwpid_t=no
4411 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4412 cat >> confdefs.h <<\EOF
4413 #define HAVE_LWPID_T 1
4417 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4419 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4420 echo "configure:4421: checking for psaddr_t in sys/procfs.h" >&5
4421 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4422 echo $ac_n "(cached) $ac_c" 1>&6
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 #include <sys/procfs.h>
4432 if { (eval echo configure:4433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4434 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4439 bfd_cv_have_sys_procfs_type_psaddr_t=no
4445 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4446 cat >> confdefs.h <<\EOF
4447 #define HAVE_PSADDR_T 1
4451 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4455 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4456 echo "configure:4457: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4457 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4464 #include <sys/types.h>
4465 #include <sys/procfs.h>
4470 dummy = ioctl(0, PIOCSET, &dummy);
4474 if { (eval echo configure:4475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4476 gdb_cv_have_procfs_piocset=yes
4478 echo "configure: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4481 gdb_cv_have_procfs_piocset=no
4486 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4487 if test $gdb_cv_have_procfs_piocset = yes; then
4488 cat >> confdefs.h <<\EOF
4489 #define HAVE_PROCFS_PIOCSET 1
4495 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4496 echo "configure:4497: checking for main in -lm" >&5
4497 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4501 ac_save_LIBS="$LIBS"
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513 eval "ac_cv_lib_$ac_lib_var=yes"
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 eval "ac_cv_lib_$ac_lib_var=no"
4521 LIBS="$ac_save_LIBS"
4524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4525 echo "$ac_t""yes" 1>&6
4526 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4528 cat >> confdefs.h <<EOF
4529 #define $ac_tr_lib 1
4535 echo "$ac_t""no" 1>&6
4539 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4540 echo "configure:4541: checking for wctype in -lc" >&5
4541 ac_lib_var=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4545 ac_save_LIBS="$LIBS"
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4550 /* Override any gcc2 internal prototype to avoid an error. */
4551 /* We use char because int might match the return type of a gcc2
4552 builtin and then its argument prototype would still apply. */
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4561 eval "ac_cv_lib_$ac_lib_var=yes"
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4566 eval "ac_cv_lib_$ac_lib_var=no"
4569 LIBS="$ac_save_LIBS"
4572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4573 echo "$ac_t""yes" 1>&6
4576 echo "$ac_t""no" 1>&6
4577 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4578 echo "configure:4579: checking for wctype in -lw" >&5
4579 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 ac_save_LIBS="$LIBS"
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 /* We use char because int might match the return type of a gcc2
4590 builtin and then its argument prototype would still apply. */
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4599 eval "ac_cv_lib_$ac_lib_var=yes"
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4604 eval "ac_cv_lib_$ac_lib_var=no"
4607 LIBS="$ac_save_LIBS"
4610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4611 echo "$ac_t""yes" 1>&6
4612 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4613 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4614 cat >> confdefs.h <<EOF
4615 #define $ac_tr_lib 1
4621 echo "$ac_t""no" 1>&6
4628 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4629 echo "configure:4630: checking for long long support in compiler" >&5
4630 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4639 extern long long foo;
4640 switch (foo & 2) { case 0: return 1; }
4644 if { (eval echo configure:4645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4646 gdb_cv_c_long_long=yes
4648 echo "configure: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4651 gdb_cv_c_long_long=no
4656 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4657 if test $gdb_cv_c_long_long = yes; then
4658 cat >> confdefs.h <<\EOF
4659 #define CC_HAS_LONG_LONG 1
4665 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4666 echo "configure:4667: checking for long long support in printf" >&5
4667 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 if test "$cross_compiling" = yes; then
4671 gdb_cv_printf_has_long_long=no
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4680 l = (l << 16) + 0x0123;
4681 l = (l << 16) + 0x4567;
4682 l = (l << 16) + 0x89ab;
4683 l = (l << 16) + 0xcdef;
4684 sprintf (buf, "0x%016llx", l);
4685 return (strcmp ("0x0123456789abcdef", buf));
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4690 gdb_cv_printf_has_long_long=yes
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 gdb_cv_printf_has_long_long=no
4702 if test $gdb_cv_printf_has_long_long = yes; then
4703 cat >> confdefs.h <<\EOF
4704 #define PRINTF_HAS_LONG_LONG 1
4708 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4711 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4712 echo "configure:4713: checking for long double support in compiler" >&5
4713 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4724 if { (eval echo configure:4725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4726 ac_cv_c_long_double=yes
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4731 ac_cv_c_long_double=no
4736 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4737 if test $ac_cv_c_long_double = yes; then
4738 cat >> confdefs.h <<\EOF
4739 #define HAVE_LONG_DOUBLE 1
4745 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4746 echo "configure:4747: checking for long double support in printf" >&5
4747 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 if test "$cross_compiling" = yes; then
4751 gdb_cv_printf_has_long_double=no
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4759 long double f = 3.141592653;
4760 sprintf (buf, "%Lg", f);
4761 return (strncmp ("3.14159", buf, 7));
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4766 gdb_cv_printf_has_long_double=yes
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 gdb_cv_printf_has_long_double=no
4778 if test $gdb_cv_printf_has_long_double = yes; then
4779 cat >> confdefs.h <<\EOF
4780 #define PRINTF_HAS_LONG_DOUBLE 1
4784 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4787 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4788 echo "configure:4789: checking for long double support in scanf" >&5
4789 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 if test "$cross_compiling" = yes; then
4793 gdb_cv_scanf_has_long_double=no
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4800 char *buf = "3.141592653";
4802 sscanf (buf, "%Lg", &f);
4803 return !(f > 3.14159 && f < 3.14160);
4806 if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4808 gdb_cv_scanf_has_long_double=yes
4810 echo "configure: failed program was:" >&5
4811 cat conftest.$ac_ext >&5
4813 gdb_cv_scanf_has_long_double=no
4820 if test $gdb_cv_scanf_has_long_double = yes; then
4821 cat >> confdefs.h <<\EOF
4822 #define SCANF_HAS_LONG_DOUBLE 1
4826 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4828 for ac_hdr in unistd.h
4830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4832 echo "configure:4833: checking for $ac_hdr" >&5
4833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4842 { (eval echo configure:4843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4844 if test -z "$ac_err"; then
4846 eval "ac_cv_header_$ac_safe=yes"
4849 echo "configure: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4852 eval "ac_cv_header_$ac_safe=no"
4856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4857 echo "$ac_t""yes" 1>&6
4858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4859 cat >> confdefs.h <<EOF
4860 #define $ac_tr_hdr 1
4864 echo "$ac_t""no" 1>&6
4868 for ac_func in getpagesize
4870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4871 echo "configure:4872: checking for $ac_func" >&5
4872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4878 /* System header to define __stub macros and hopefully few prototypes,
4879 which can conflict with char $ac_func(); below. */
4881 /* Override any gcc2 internal prototype to avoid an error. */
4882 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4888 /* The GNU C library defines this for functions which it implements
4889 to always fail with ENOSYS. Some functions are actually named
4890 something starting with __ and the normal name is an alias. */
4891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4901 eval "ac_cv_func_$ac_func=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 eval "ac_cv_func_$ac_func=no"
4911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4912 echo "$ac_t""yes" 1>&6
4913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4914 cat >> confdefs.h <<EOF
4915 #define $ac_tr_func 1
4919 echo "$ac_t""no" 1>&6
4923 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4924 echo "configure:4925: checking for working mmap" >&5
4925 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 if test "$cross_compiling" = yes; then
4929 ac_cv_func_mmap_fixed_mapped=no
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4935 /* Thanks to Mike Haertel and Jim Avera for this test.
4936 Here is a matrix of mmap possibilities:
4937 mmap private not fixed
4938 mmap private fixed at somewhere currently unmapped
4939 mmap private fixed at somewhere already mapped
4940 mmap shared not fixed
4941 mmap shared fixed at somewhere currently unmapped
4942 mmap shared fixed at somewhere already mapped
4943 For private mappings, we should verify that changes cannot be read()
4944 back from the file, nor mmap's back from the file at a different
4945 address. (There have been systems where private was not correctly
4946 implemented like the infamous i386 svr4.0, and systems where the
4947 VM page cache was not coherent with the filesystem buffer cache
4948 like early versions of FreeBSD and possibly contemporary NetBSD.)
4949 For shared mappings, we should conversely verify that changes get
4950 propogated back to all the places they're supposed to be.
4952 Grep wants private fixed already mapped.
4953 The main things grep needs to know about mmap are:
4954 * does it exist and is it safe to write into the mmap'd area
4955 * how to use it (BSD variants) */
4956 #include <sys/types.h>
4958 #include <sys/mman.h>
4960 /* This mess was copied from the GNU getpagesize.h. */
4961 #ifndef HAVE_GETPAGESIZE
4962 # ifdef HAVE_UNISTD_H
4963 # include <unistd.h>
4966 /* Assume that all systems that can run configure have sys/param.h. */
4967 # ifndef HAVE_SYS_PARAM_H
4968 # define HAVE_SYS_PARAM_H 1
4971 # ifdef _SC_PAGESIZE
4972 # define getpagesize() sysconf(_SC_PAGESIZE)
4973 # else /* no _SC_PAGESIZE */
4974 # ifdef HAVE_SYS_PARAM_H
4975 # include <sys/param.h>
4976 # ifdef EXEC_PAGESIZE
4977 # define getpagesize() EXEC_PAGESIZE
4978 # else /* no EXEC_PAGESIZE */
4980 # define getpagesize() NBPG * CLSIZE
4983 # endif /* no CLSIZE */
4984 # else /* no NBPG */
4986 # define getpagesize() NBPC
4987 # else /* no NBPC */
4989 # define getpagesize() PAGESIZE
4990 # endif /* PAGESIZE */
4991 # endif /* no NBPC */
4992 # endif /* no NBPG */
4993 # endif /* no EXEC_PAGESIZE */
4994 # else /* no HAVE_SYS_PARAM_H */
4995 # define getpagesize() 8192 /* punt totally */
4996 # endif /* no HAVE_SYS_PARAM_H */
4997 # endif /* no _SC_PAGESIZE */
4999 #endif /* no HAVE_GETPAGESIZE */
5002 extern "C" { void *malloc(unsigned); }
5010 char *data, *data2, *data3;
5014 pagesize = getpagesize();
5017 * First, make a file with some known garbage in it.
5019 data = malloc(pagesize);
5022 for (i = 0; i < pagesize; ++i)
5023 *(data + i) = rand();
5025 fd = creat("conftestmmap", 0600);
5028 if (write(fd, data, pagesize) != pagesize)
5033 * Next, try to mmap the file at a fixed address which
5034 * already has something else allocated at it. If we can,
5035 * also make sure that we see the same garbage.
5037 fd = open("conftestmmap", O_RDWR);
5040 data2 = malloc(2 * pagesize);
5043 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5044 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5045 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5047 for (i = 0; i < pagesize; ++i)
5048 if (*(data + i) != *(data2 + i))
5052 * Finally, make sure that changes to the mapped area
5053 * do not percolate back to the file as seen by read().
5054 * (This is a bug on some variants of i386 svr4.0.)
5056 for (i = 0; i < pagesize; ++i)
5057 *(data2 + i) = *(data2 + i) + 1;
5058 data3 = malloc(pagesize);
5061 if (read(fd, data3, pagesize) != pagesize)
5063 for (i = 0; i < pagesize; ++i)
5064 if (*(data + i) != *(data3 + i))
5067 unlink("conftestmmap");
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5074 ac_cv_func_mmap_fixed_mapped=yes
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 ac_cv_func_mmap_fixed_mapped=no
5086 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5087 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5088 cat >> confdefs.h <<\EOF
5097 if test ${build} = ${host} -a ${host} = ${target} ; then
5100 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5101 echo "configure:5102: checking for HPUX/OSF thread support" >&5
5102 if test -f /usr/include/dce/cma_config.h ; then
5103 if test "$GCC" = "yes" ; then
5104 echo "$ac_t""yes" 1>&6
5105 cat >> confdefs.h <<\EOF
5106 #define HAVE_HPUX_THREAD_SUPPORT 1
5109 CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
5110 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
5111 CONFIG_INITS="${CONFIG_INITS} hpux-thread.c"
5113 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5116 echo "$ac_t""no" 1>&6
5120 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5121 echo "configure:5122: checking for Solaris thread debugging library" >&5
5122 if test -f /usr/lib/libthread_db.so.1 ; then
5123 echo "$ac_t""yes" 1>&6
5124 cat >> confdefs.h <<\EOF
5125 #define HAVE_THREAD_DB_LIB 1
5128 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
5129 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
5130 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5131 echo "configure:5132: checking for dlopen in -ldl" >&5
5132 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 ac_save_LIBS="$LIBS"
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5141 /* Override any gcc2 internal prototype to avoid an error. */
5142 /* We use char because int might match the return type of a gcc2
5143 builtin and then its argument prototype would still apply. */
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 eval "ac_cv_lib_$ac_lib_var=yes"
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 eval "ac_cv_lib_$ac_lib_var=no"
5160 LIBS="$ac_save_LIBS"
5163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5164 echo "$ac_t""yes" 1>&6
5165 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5166 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5167 cat >> confdefs.h <<EOF
5168 #define $ac_tr_lib 1
5174 echo "$ac_t""no" 1>&6
5177 if test "$GCC" = "yes" ; then
5178 # The GNU linker requires the -export-dynamic option to make
5179 # all symbols visible in the dynamic symbol table.
5180 hold_ldflags=$LDFLAGS
5181 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5182 echo "configure:5183: checking for the ld -export-dynamic flag" >&5
5183 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5202 LDFLAGS=$hold_ldflags
5203 echo "$ac_t""$found" 1>&6
5204 if test $found = yes; then
5205 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5208 # Sun randomly tweaked the prototypes in <proc_service.h>
5210 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5211 echo "configure:5212: checking if <proc_service.h> is old" >&5
5212 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5220 #include <proc_service.h>
5222 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5228 if { (eval echo configure:5229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5230 gdb_cv_proc_service_is_old=no
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5235 gdb_cv_proc_service_is_old=yes
5241 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5242 if test $gdb_cv_proc_service_is_old = yes; then
5243 cat >> confdefs.h <<\EOF
5244 #define PROC_SERVICE_IS_OLD 1
5249 echo "$ac_t""no" 1>&6
5258 # Check whether --enable-tui or --disable-tui was given.
5259 if test "${enable_tui+set}" = set; then
5260 enableval="$enable_tui"
5262 case "${enable_tui}" in
5264 "") enable_tui=yes ;;
5266 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5272 case ${enable_tui} in
5274 cat >> confdefs.h <<\EOF
5279 TUI_LIBRARY=tui/libtui.a
5289 # Check whether --enable-netrom or --disable-netrom was given.
5290 if test "${enable_netrom+set}" = set; then
5291 enableval="$enable_netrom"
5292 case "${enableval}" in
5293 yes) enable_netrom=yes ;;
5294 no) enable_netrom=no ;;
5295 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5300 if test "${enable_netrom}" = "yes"; then
5301 CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
5302 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
5303 CONFIG_INITS="${CONFIG_INITS} remote-nrom.c"
5306 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5307 if test "${enable_build_warnings+set}" = set; then
5308 enableval="$enable_build_warnings"
5309 build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
5310 case "${enableval}" in
5312 no) build_warnings="-w";;
5313 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5314 build_warnings="${build_warnings} ${t}";;
5315 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5316 build_warnings="${t} ${build_warnings}";;
5317 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5319 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5320 echo "Setting warning flags = $build_warnings" 6>&1
5324 if test "x${build_warnings}" != x -a "x$GCC" = xyes
5326 # Separate out the -Werror flag as some files just cannot be
5327 # compiled with it enabled.
5328 for w in ${build_warnings}; do
5330 -Werr*) WERROR_CFLAGS=-Werror ;;
5331 *) WARN_CFLAGS="${WARN_CFLAGS} $w"
5347 # Check whether --with-mmalloc or --without-mmalloc was given.
5348 if test "${with_mmalloc+set}" = set; then
5349 withval="$with_mmalloc"
5350 case "${withval}" in
5351 yes) want_mmalloc=true ;;
5352 no) want_mmalloc=false;;
5353 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5359 if test x$want_mmalloc = xtrue; then
5360 cat >> confdefs.h <<\EOF
5361 #define USE_MMALLOC 1
5364 cat >> confdefs.h <<\EOF
5365 #define MMCHECK_FORCE 1
5368 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
5369 MMALLOC='../mmalloc/libmmalloc.a'
5373 # In the Cygwin environment, we need some additional flags.
5374 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5375 echo "configure:5376: checking for cygwin" >&5
5376 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5383 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5388 egrep "lose" >/dev/null 2>&1; then
5390 gdb_cv_os_cygwin=yes
5399 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5401 DLLTOOL=${DLLTOOL-dlltool}
5402 WINDRES=${WINDRES-windres}
5406 if test x$gdb_host = xgo32; then
5409 if test x$gdb_cv_os_cygwin = xyes; then
5410 TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5413 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5414 echo "configure:5415: checking for tgetent in -lncurses" >&5
5415 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 ac_save_LIBS="$LIBS"
5420 LIBS="-lncurses $LIBS"
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 /* Override any gcc2 internal prototype to avoid an error. */
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5433 if { (eval echo configure:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 eval "ac_cv_lib_$ac_lib_var=yes"
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 eval "ac_cv_lib_$ac_lib_var=no"
5443 LIBS="$ac_save_LIBS"
5446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5450 echo "$ac_t""no" 1>&6
5451 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5452 echo "configure:5453: checking for tgetent in -lHcurses" >&5
5453 ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5457 ac_save_LIBS="$LIBS"
5458 LIBS="-lHcurses $LIBS"
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 /* Override any gcc2 internal prototype to avoid an error. */
5463 /* We use char because int might match the return type of a gcc2
5464 builtin and then its argument prototype would still apply. */
5471 if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5473 eval "ac_cv_lib_$ac_lib_var=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 eval "ac_cv_lib_$ac_lib_var=no"
5481 LIBS="$ac_save_LIBS"
5484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5488 echo "$ac_t""no" 1>&6
5489 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5490 echo "configure:5491: checking for tgetent in -ltermlib" >&5
5491 ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5495 ac_save_LIBS="$LIBS"
5496 LIBS="-ltermlib $LIBS"
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5511 eval "ac_cv_lib_$ac_lib_var=yes"
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5516 eval "ac_cv_lib_$ac_lib_var=no"
5519 LIBS="$ac_save_LIBS"
5522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5526 echo "$ac_t""no" 1>&6
5527 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5528 echo "configure:5529: checking for tgetent in -ltermcap" >&5
5529 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5531 echo $ac_n "(cached) $ac_c" 1>&6
5533 ac_save_LIBS="$LIBS"
5534 LIBS="-ltermcap $LIBS"
5535 cat > conftest.$ac_ext <<EOF
5536 #line 5537 "configure"
5537 #include "confdefs.h"
5538 /* Override any gcc2 internal prototype to avoid an error. */
5539 /* We use char because int might match the return type of a gcc2
5540 builtin and then its argument prototype would still apply. */
5547 if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5549 eval "ac_cv_lib_$ac_lib_var=yes"
5551 echo "configure: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5554 eval "ac_cv_lib_$ac_lib_var=no"
5557 LIBS="$ac_save_LIBS"
5560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5561 echo "$ac_t""yes" 1>&6
5564 echo "$ac_t""no" 1>&6
5565 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5566 echo "configure:5567: checking for tgetent in -lcurses" >&5
5567 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 ac_save_LIBS="$LIBS"
5572 LIBS="-lcurses $LIBS"
5573 cat > conftest.$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5576 /* Override any gcc2 internal prototype to avoid an error. */
5577 /* We use char because int might match the return type of a gcc2
5578 builtin and then its argument prototype would still apply. */
5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5587 eval "ac_cv_lib_$ac_lib_var=yes"
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5592 eval "ac_cv_lib_$ac_lib_var=no"
5595 LIBS="$ac_save_LIBS"
5598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5599 echo "$ac_t""yes" 1>&6
5602 echo "$ac_t""no" 1>&6
5603 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5604 echo "configure:5605: checking for tgetent in -lterminfo" >&5
5605 ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 ac_save_LIBS="$LIBS"
5610 LIBS="-lterminfo $LIBS"
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5614 /* Override any gcc2 internal prototype to avoid an error. */
5615 /* We use char because int might match the return type of a gcc2
5616 builtin and then its argument prototype would still apply. */
5623 if { (eval echo configure:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5625 eval "ac_cv_lib_$ac_lib_var=yes"
5627 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5630 eval "ac_cv_lib_$ac_lib_var=no"
5633 LIBS="$ac_save_LIBS"
5636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5637 echo "$ac_t""yes" 1>&6
5640 echo "$ac_t""no" 1>&6
5654 if test "x$TERM_LIB" = x
5656 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5662 # libreadline needs libuser32.a in a cygwin environment
5664 if test x$gdb_cv_os_cygwin = xyes; then
5665 WIN32LIBS="-luser32"
5667 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
5673 LIBGUI="../libgui/src/libgui.a"
5674 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
5678 # Check whether --with-cpu or --without-cpu was given.
5679 if test "${with_cpu+set}" = set; then
5682 powerpc-* | powerpcle-* )
5683 ## It would be nice to keep this table in sync with the one in
5685 case "${with_cpu}" in
5686 ppc-uisa | rs6000 | 403 | 403GC | 505 | 860 | 601 | 602 | 603 \
5688 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5690 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1 )
5691 ## These are all RS6000 variants, as far as GDB is concerned.
5701 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5707 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5710 cat >> confdefs.h <<EOF
5711 #define TARGET_CPU_DEFAULT "${with_cpu}"
5721 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5722 if test "${enable_gdbtk+set}" = set; then
5723 enableval="$enable_gdbtk"
5724 case "${enableval}" in
5728 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5731 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5739 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5743 # Default is on for everything but go32 and Cygwin
5761 if test "${enable_gdbtk}" = "yes"; then
5765 # Ok, lets find the tcl configuration
5766 # First, look for one uninstalled.
5767 # the alternative search directory is invoked by --with-tclconfig
5770 if test x"${no_tcl}" = x ; then
5771 # we reset no_tcl in case something fails here
5773 # Check whether --with-tclconfig or --without-tclconfig was given.
5774 if test "${with_tclconfig+set}" = set; then
5775 withval="$with_tclconfig"
5776 with_tclconfig=${withval}
5779 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5780 echo "configure:5781: checking for Tcl configuration" >&5
5781 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5786 # First check to see if --with-tclconfig was specified.
5787 if test x"${with_tclconfig}" != x ; then
5788 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5789 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
5791 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5795 # then check for a private Tcl installation
5796 if test x"${ac_cv_c_tclconfig}" = x ; then
5799 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5801 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5803 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5804 if test -f "$i/${configdir}/tclConfig.sh" ; then
5805 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
5810 # check in a few common install locations
5811 if test x"${ac_cv_c_tclconfig}" = x ; then
5812 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5813 if test -f "$i/tclConfig.sh" ; then
5814 ac_cv_c_tclconfig=`(cd $i; pwd)`
5819 # check in a few other private locations
5820 if test x"${ac_cv_c_tclconfig}" = x ; then
5823 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5824 if test -f "$i/${configdir}/tclConfig.sh" ; then
5825 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
5833 if test x"${ac_cv_c_tclconfig}" = x ; then
5834 TCLCONFIG="# no Tcl configs found"
5835 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
5838 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
5839 echo "$ac_t""found $TCLCONFIG" 1>&6
5843 if test -z "${no_tcl}"; then
5873 # Ok, lets find the tk configuration
5874 # First, look for one uninstalled.
5875 # the alternative search directory is invoked by --with-tkconfig
5878 if test x"${no_tk}" = x ; then
5879 # we reset no_tk in case something fails here
5881 # Check whether --with-tkconfig or --without-tkconfig was given.
5882 if test "${with_tkconfig+set}" = set; then
5883 withval="$with_tkconfig"
5884 with_tkconfig=${withval}
5887 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
5888 echo "configure:5889: checking for Tk configuration" >&5
5889 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5894 # First check to see if --with-tkconfig was specified.
5895 if test x"${with_tkconfig}" != x ; then
5896 if test -f "${with_tkconfig}/tkConfig.sh" ; then
5897 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
5899 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
5903 # then check for a private Tk library
5904 if test x"${ac_cv_c_tkconfig}" = x ; then
5907 `ls -dr ../tk[4-9]* 2>/dev/null` \
5909 `ls -dr ../../tk[4-9]* 2>/dev/null` \
5911 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
5912 if test -f "$i/${configdir}/tkConfig.sh" ; then
5913 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
5918 # check in a few common install locations
5919 if test x"${ac_cv_c_tkconfig}" = x ; then
5920 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5921 if test -f "$i/tkConfig.sh" ; then
5922 ac_cv_c_tkconfig=`(cd $i; pwd)`
5927 # check in a few other private locations
5928 if test x"${ac_cv_c_tkconfig}" = x ; then
5931 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
5932 if test -f "$i/${configdir}/tkConfig.sh" ; then
5933 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
5941 if test x"${ac_cv_c_tkconfig}" = x ; then
5942 TKCONFIG="# no Tk configs found"
5943 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
5946 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
5947 echo "$ac_t""found $TKCONFIG" 1>&6
5953 # If $no_tk is nonempty, then we can't do Tk, and there is no
5954 # point to doing Tcl.
5955 if test -z "${no_tk}"; then
5957 if test -f "$TKCONFIG" ; then
5975 # Ok, lets find the tcl source trees so we can use the headers
5976 # Warning: transition of version 9 to 10 will break this algorithm
5977 # because 10 sorts before 9. We also look for just tcl. We have to
5978 # be careful that we don't match stuff like tclX by accident.
5979 # the alternative search directory is involked by --with-tclinclude
5983 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
5984 echo "configure:5985: checking for Tcl private headers. dir=${configdir}" >&5
5985 # Check whether --with-tclinclude or --without-tclinclude was given.
5986 if test "${with_tclinclude+set}" = set; then
5987 withval="$with_tclinclude"
5988 with_tclinclude=${withval}
5991 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5995 # first check to see if --with-tclinclude was specified
5996 if test x"${with_tclinclude}" != x ; then
5997 if test -f ${with_tclinclude}/tclInt.h ; then
5998 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
5999 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
6000 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
6002 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6006 # next check if it came with Tcl configuration file
6007 if test x"${ac_cv_c_tclconfig}" = x ; then
6008 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
6009 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
6013 # next check in private source directory
6015 # since ls returns lowest version numbers first, reverse its output
6016 if test x"${ac_cv_c_tclh}" = x ; then
6019 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6020 ${srcdir}/../../tcl \
6021 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6022 ${srcdir}/../../../tcl \
6023 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6024 if test -f $i/generic/tclInt.h ; then
6025 ac_cv_c_tclh=`(cd $i/generic; pwd)`
6030 # finally check in a few common install locations
6032 # since ls returns lowest version numbers first, reverse its output
6033 if test x"${ac_cv_c_tclh}" = x ; then
6035 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6036 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6037 /usr/local/src/tcl \
6038 /usr/local/lib/tcl \
6039 ${prefix}/include ; do
6040 if test -f $i/generic/tclInt.h ; then
6041 ac_cv_c_tclh=`(cd $i/generic; pwd)`
6046 # see if one is installed
6047 if test x"${ac_cv_c_tclh}" = x ; then
6048 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6049 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6050 echo "configure:6051: checking for tclInt.h" >&5
6051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6052 echo $ac_n "(cached) $ac_c" 1>&6
6054 cat > conftest.$ac_ext <<EOF
6055 #line 6056 "configure"
6056 #include "confdefs.h"
6059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6060 { (eval echo configure:6061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6062 if test -z "$ac_err"; then
6064 eval "ac_cv_header_$ac_safe=yes"
6067 echo "configure: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6070 eval "ac_cv_header_$ac_safe=no"
6074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6075 echo "$ac_t""yes" 1>&6
6076 ac_cv_c_tclh=installed
6078 echo "$ac_t""no" 1>&6
6086 if test x"${ac_cv_c_tclh}" = x ; then
6087 TCLHDIR="# no Tcl private headers found"
6088 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6090 if test x"${ac_cv_c_tclh}" != x ; then
6092 if test x"${ac_cv_c_tclh}" = x"installed" ; then
6093 echo "$ac_t""is installed" 1>&6
6096 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6097 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6098 TCLHDIR="-I${ac_cv_c_tclh}"
6106 # Ok, lets find the tk source trees so we can use the headers
6107 # If the directory (presumably symlink) named "tk" exists, use that one
6108 # in preference to any others. Same logic is used when choosing library
6109 # and again with Tcl. The search order is the best place to look first, then in
6110 # decreasing significance. The loop breaks if the trigger file is found.
6111 # Note the gross little conversion here of srcdir by cd'ing to the found
6112 # directory. This converts the path from a relative to an absolute, so
6113 # recursive cache variables for the path will work right. We check all
6114 # the possible paths in one loop rather than many seperate loops to speed
6116 # the alternative search directory is involked by --with-tkinclude
6119 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6120 echo "configure:6121: checking for Tk private headers" >&5
6121 # Check whether --with-tkinclude or --without-tkinclude was given.
6122 if test "${with_tkinclude+set}" = set; then
6123 withval="$with_tkinclude"
6124 with_tkinclude=${withval}
6127 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6131 # first check to see if --with-tkinclude was specified
6132 if test x"${with_tkinclude}" != x ; then
6133 if test -f ${with_tkinclude}/tk.h ; then
6134 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
6135 elif test -f ${with_tkinclude}/generic/tk.h ; then
6136 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
6138 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6142 # next check if it came with Tk configuration file
6143 if test x"${ac_cv_c_tkconfig}" = x ; then
6144 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
6145 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
6149 # next check in private source directory
6151 # since ls returns lowest version numbers first, reverse its output
6152 if test x"${ac_cv_c_tkh}" = x ; then
6155 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6156 ${srcdir}/../../tk \
6157 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6158 ${srcdir}/../../../tk \
6159 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6160 if test -f $i/generic/tk.h ; then
6161 ac_cv_c_tkh=`(cd $i/generic; pwd)`
6166 # finally check in a few common install locations
6168 # since ls returns lowest version numbers first, reverse its output
6169 if test x"${ac_cv_c_tkh}" = x ; then
6171 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6172 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6175 ${prefix}/include ; do
6176 if test -f $i/generic/tk.h ; then
6177 ac_cv_c_tkh=`(cd $i/generic; pwd)`
6182 # see if one is installed
6183 if test x"${ac_cv_c_tkh}" = x ; then
6184 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
6185 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6186 echo "configure:6187: checking for tk.h" >&5
6187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6188 echo $ac_n "(cached) $ac_c" 1>&6
6190 cat > conftest.$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6196 { (eval echo configure:6197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6198 if test -z "$ac_err"; then
6200 eval "ac_cv_header_$ac_safe=yes"
6203 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6206 eval "ac_cv_header_$ac_safe=no"
6210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6211 echo "$ac_t""yes" 1>&6
6212 ac_cv_c_tkh=installed
6214 echo "$ac_t""no" 1>&6
6222 if test x"${ac_cv_c_tkh}" != x ; then
6224 if test x"${ac_cv_c_tkh}" = x"installed" ; then
6225 echo "$ac_t""is installed" 1>&6
6228 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6229 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6230 TKHDIR="-I${ac_cv_c_tkh}"
6233 TKHDIR="# no Tk directory found"
6234 echo "configure: warning: Can't find Tk private headers" 1>&2
6241 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6242 echo "configure:6243: checking for Itcl private headers. srcdir=${srcdir}" >&5
6243 if test x"${ac_cv_c_itclh}" = x ; then
6244 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
6245 if test -f $i/generic/itcl.h ; then
6246 ac_cv_c_itclh=`(cd $i/generic; pwd)`
6251 if test x"${ac_cv_c_itclh}" = x ; then
6252 ITCLHDIR="# no Itcl private headers found"
6253 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6255 if test x"${ac_cv_c_itclh}" != x ; then
6256 ITCLHDIR="-I${ac_cv_c_itclh}"
6258 # should always be here
6259 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6264 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6265 echo "configure:6266: checking for Itk private headers. srcdir=${srcdir}" >&5
6266 if test x"${ac_cv_c_itkh}" = x ; then
6267 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
6268 if test -f $i/generic/itk.h ; then
6269 ac_cv_c_itkh=`(cd $i/generic; pwd)`
6274 if test x"${ac_cv_c_itkh}" = x ; then
6275 ITKHDIR="# no Itk private headers found"
6276 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6278 if test x"${ac_cv_c_itkh}" != x ; then
6279 ITKHDIR="-I${ac_cv_c_itkh}"
6281 # should always be here
6282 # ITKLIB="../itcl/itk/unix/libitk.a"
6287 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6288 echo "configure:6289: checking for Tix private headers. srcdir=${srcdir}" >&5
6289 if test x"${ac_cv_c_tixh}" = x ; then
6290 for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
6291 if test -f $i/generic/tix.h ; then
6292 ac_cv_c_tixh=`(cd $i/generic; pwd)`
6297 if test x"${ac_cv_c_tixh}" = x ; then
6298 TIXHDIR="# no Tix private headers found"
6299 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6301 if test x"${ac_cv_c_tixh}" != x ; then
6302 TIXHDIR="-I${ac_cv_c_tixh}"
6307 # now look for Itcl library stuff
6311 # Ok, lets find the itcl configuration
6312 # First, look for one uninstalled.
6313 # the alternative search directory is invoked by --with-itclconfig
6316 if test x"${no_itcl}" = x ; then
6317 # we reset no_itcl in case something fails here
6319 # Check whether --with-itclconfig or --without-itclconfig was given.
6320 if test "${with_itclconfig+set}" = set; then
6321 withval="$with_itclconfig"
6322 with_itclconfig=${withval}
6325 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6326 echo "configure:6327: checking for Itcl configuration" >&5
6327 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6332 # First check to see if --with-itclconfig was specified.
6333 if test x"${with_itclconfig}" != x ; then
6334 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6335 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
6337 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6341 # then check for a private Itcl library
6342 if test x"${ac_cv_c_itclconfig}" = x ; then
6345 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6347 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6349 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6350 if test -f "$i/itclConfig.sh" ; then
6351 ac_cv_c_itclconfig=`(cd $i; pwd)`
6356 # check in a few common install locations
6357 if test x"${ac_cv_c_itclconfig}" = x ; then
6358 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6359 if test -f "$i/itclConfig.sh" ; then
6360 ac_cv_c_itclconfig=`(cd $i; pwd)`
6365 # check in a few other private locations
6366 if test x"${ac_cv_c_itclconfig}" = x ; then
6368 ${srcdir}/../itcl/itcl \
6369 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6370 if test -f "$i/itclConfig.sh" ; then
6371 ac_cv_c_itclconfig=`(cd $i; pwd)`
6379 if test x"${ac_cv_c_itclconfig}" = x ; then
6380 ITCLCONFIG="# no Itcl configs found"
6381 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6384 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
6385 echo "$ac_t""found $ITCLCONFIG" 1>&6
6389 if test -z "${no_itcl}"; then
6391 if test -f "$ITCLCONFIG" ; then
6407 itcldir=../itcl/itcl/win/
6410 itcldir=../itcl/itcl/unix/
6415 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
6416 ITCL_DEPS="${itcldir}${ITCL_LIB_FILE}"
6420 # now look for Itk library stuff
6423 # Ok, lets find the itk configuration
6424 # First, look for one uninstalled.
6425 # the alternative search directory is invoked by --with-itkconfig
6428 if test x"${no_itk}" = x ; then
6429 # we reset no_itk in case something fails here
6431 # Check whether --with-itkconfig or --without-itkconfig was given.
6432 if test "${with_itkconfig+set}" = set; then
6433 withval="$with_itkconfig"
6434 with_itkconfig=${withval}
6437 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6438 echo "configure:6439: checking for Itk configuration" >&5
6439 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6444 # First check to see if --with-itkconfig was specified.
6445 if test x"${with_itkconfig}" != x ; then
6446 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6447 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
6449 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6453 # then check for a private Itk library
6454 if test x"${ac_cv_c_itkconfig}" = x ; then
6457 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6459 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6461 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6462 if test -f "$i/itkConfig.sh" ; then
6463 ac_cv_c_itkconfig=`(cd $i; pwd)`
6468 # check in a few common install locations
6469 if test x"${ac_cv_c_itkconfig}" = x ; then
6470 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6471 if test -f "$i/itkConfig.sh" ; then
6472 ac_cv_c_itkconfig=`(cd $i; pwd)`
6477 # check in a few other private locations
6478 if test x"${ac_cv_c_itkconfig}" = x ; then
6480 ${srcdir}/../itcl/itk \
6481 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6482 if test -f "$i/itkConfig.sh" ; then
6483 ac_cv_c_itkconfig=`(cd $i; pwd)`
6491 if test x"${ac_cv_c_itkconfig}" = x ; then
6492 ITKCONFIG="# no Itk configs found"
6493 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6496 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
6497 echo "$ac_t""found $ITKCONFIG" 1>&6
6502 if test -z "${no_itcl}"; then
6504 if test -f "$ITKCONFIG" ; then
6521 itkdir=../itcl/itk/win/
6524 itkdir=../itcl/itk/unix/
6528 ITKLIB="${ITK_BUILD_LIB_SPEC}"
6529 ITK_DEPS="${itkdir}${ITK_LIB_FILE}"
6532 # now look for Tix library stuff
6535 # Ok, lets find the tix configuration
6536 # First, look for one uninstalled.
6537 # the alternative search directory is invoked by --with-itkconfig
6540 if test x"${no_tix}" = x ; then
6541 # we reset no_tix in case something fails here
6543 # Check whether --with-tixconfig or --without-tixconfig was given.
6544 if test "${with_tixconfig+set}" = set; then
6545 withval="$with_tixconfig"
6546 with_tixconfig=${withval}
6549 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6550 echo "configure:6551: checking for Tix configuration" >&5
6551 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6556 # First check to see if --with-tixconfig was specified.
6557 if test x"${with_tixconfig}" != x ; then
6558 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6559 ac_cv_c_tixconfig=`(cd ${with_tixconfig}; pwd)`
6561 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6565 # then check for a private Tix library
6566 if test x"${ac_cv_c_tixconfig}" = x ; then
6569 `ls -dr ../tix 2>/dev/null` \
6571 `ls -dr ../../tix 2>/dev/null` \
6573 `ls -dr ../../../tix 2>/dev/null` ; do
6574 echo "**** Looking at $i - with ${configdir}"
6575 if test -f "$i/tixConfig.sh" ; then
6576 ac_cv_c_tixconfig=`(cd $i; pwd)`
6581 # check in a few common install locations
6582 if test x"${ac_cv_c_tixconfig}" = x ; then
6583 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6584 echo "**** Looking at $i"
6585 if test -f "$i/tixConfig.sh" ; then
6586 ac_cv_c_tixconfig=`(cd $i; pwd)`
6591 # check in a few other private locations
6592 echo "**** Other private locations"
6593 if test x"${ac_cv_c_tixconfig}" = x ; then
6596 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6597 echo "**** Looking at $i - with ${configdir}"
6598 if test -f "$i/${configdir}/tixConfig.sh" ; then
6599 ac_cv_c_tixconfig=`(cd $i/${configdir}; pwd)`
6607 if test x"${ac_cv_c_tixconfig}" = x ; then
6608 TIXCONFIG="# no Tix configs found"
6609 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6612 TIXCONFIG=${ac_cv_c_tixconfig}/tixConfig.sh
6613 echo "$ac_t""found $TIXCONFIG" 1>&6
6618 if test -z "${no_tix}"; then
6620 if test -f "$TIXCONFIG" ; then
6631 TIXLIB="${TIX_BUILD_LIB_SPEC}"
6632 TIX_DEPS="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
6636 ENABLE_CFLAGS="$ENABLE_CFLAGS -DGDBTK"
6637 # Tcl/Tk 8.1 require -fwritable strings. I don't
6638 # know whether 8.2 will or not, but I bet it will.
6639 # I don't have to worry about 7.x since we don't support it.
6641 if test "$GCC" = "yes"; then
6642 if test "$TCL_VERSION" != "8.0" ; then
6643 GDBTK_CFLAGS="-fwritable-strings"
6647 # Include some libraries that Tcl and Tk want.
6648 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6649 CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6650 # Yes, the ordering seems wrong here. But it isn't.
6651 # TK_LIBS is the list of libraries that need to be linked
6652 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6653 # were in LIBS then any link tests after this point would
6654 # try to include things like `$(LIBGUI)', which wouldn't work.
6655 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
6656 CONFIG_SRCS="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-variable.c gdbtk/generic/gdbtk-wrapper.c"
6657 CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-variable.o gdbtk-wrapper.o"
6658 CONFIG_INITS="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-variable.c gdbtk/generic/gdbtk-wrapper.c"
6660 if test x$gdb_cv_os_cygwin = xyes; then
6661 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
6662 WIN32LDAPP="-Wl,--subsystem,console"
6663 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
6682 # If we find X, set shell vars x_includes and x_libraries to the
6683 # paths, otherwise set no_x=yes.
6684 # Uses ac_ vars as temps to allow command line to override cache and checks.
6685 # --without-x overrides everything else, but does not touch the cache.
6686 echo $ac_n "checking for X""... $ac_c" 1>&6
6687 echo "configure:6688: checking for X" >&5
6689 # Check whether --with-x or --without-x was given.
6690 if test "${with_x+set}" = set; then
6695 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6696 if test "x$with_x" = xno; then
6697 # The user explicitly disabled X.
6700 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6701 # Both variables are already set.
6704 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6705 echo $ac_n "(cached) $ac_c" 1>&6
6707 # One or both of the vars are not set, and there is no cached value.
6708 ac_x_includes=NO ac_x_libraries=NO
6710 if mkdir conftestdir; then
6712 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6713 cat > Imakefile <<'EOF'
6715 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6717 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6719 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6720 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6721 for ac_extension in a so sl; do
6722 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6723 test -f $ac_im_libdir/libX11.$ac_extension; then
6724 ac_im_usrlibdir=$ac_im_libdir; break
6727 # Screen out bogus values from the imake configuration. They are
6728 # bogus both because they are the default anyway, and because
6729 # using them would break gcc on systems where it needs fixed includes.
6730 case "$ac_im_incroot" in
6732 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6734 case "$ac_im_usrlibdir" in
6736 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6743 if test "$ac_x_includes" = NO; then
6744 # Guess where to find include files, by looking for this one X11 .h file.
6745 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6747 # First, try using that file with no special directory specified.
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6751 #include <$x_direct_test_include>
6753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6754 { (eval echo configure:6755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6756 if test -z "$ac_err"; then
6758 # We can compile using X headers with no special include directory.
6762 echo "configure: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6765 # Look for the header file in a standard set of common directories.
6766 # Check X11 before X11Rn because it is often a symlink to the current release.
6769 /usr/X11R6/include \
6770 /usr/X11R5/include \
6771 /usr/X11R4/include \
6774 /usr/include/X11R6 \
6775 /usr/include/X11R5 \
6776 /usr/include/X11R4 \
6778 /usr/local/X11/include \
6779 /usr/local/X11R6/include \
6780 /usr/local/X11R5/include \
6781 /usr/local/X11R4/include \
6783 /usr/local/include/X11 \
6784 /usr/local/include/X11R6 \
6785 /usr/local/include/X11R5 \
6786 /usr/local/include/X11R4 \
6790 /usr/XFree86/include/X11 \
6793 /usr/local/include \
6794 /usr/unsupported/include \
6795 /usr/athena/include \
6796 /usr/local/x11r5/include \
6797 /usr/lpp/Xamples/include \
6799 /usr/openwin/include \
6800 /usr/openwin/share/include \
6803 if test -r "$ac_dir/$x_direct_test_include"; then
6804 ac_x_includes=$ac_dir
6810 fi # $ac_x_includes = NO
6812 if test "$ac_x_libraries" = NO; then
6813 # Check for the libraries.
6815 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6816 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6818 # See if we find them without any special options.
6819 # Don't add to $LIBS permanently.
6820 ac_save_LIBS="$LIBS"
6821 LIBS="-l$x_direct_test_library $LIBS"
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6827 ${x_direct_test_function}()
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6832 LIBS="$ac_save_LIBS"
6833 # We can link X programs with no special library path.
6836 echo "configure: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6839 LIBS="$ac_save_LIBS"
6840 # First see if replacing the include by lib works.
6841 # Check X11 before X11Rn because it is often a symlink to the current release.
6842 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6853 /usr/local/X11/lib \
6854 /usr/local/X11R6/lib \
6855 /usr/local/X11R5/lib \
6856 /usr/local/X11R4/lib \
6858 /usr/local/lib/X11 \
6859 /usr/local/lib/X11R6 \
6860 /usr/local/lib/X11R5 \
6861 /usr/local/lib/X11R4 \
6865 /usr/XFree86/lib/X11 \
6869 /usr/unsupported/lib \
6871 /usr/local/x11r5/lib \
6872 /usr/lpp/Xamples/lib \
6876 /usr/openwin/share/lib \
6879 for ac_extension in a so sl; do
6880 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6881 ac_x_libraries=$ac_dir
6888 fi # $ac_x_libraries = NO
6890 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6891 # Didn't find X anywhere. Cache the known absence of X.
6892 ac_cv_have_x="have_x=no"
6894 # Record where we found X for the cache.
6895 ac_cv_have_x="have_x=yes \
6896 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6900 eval "$ac_cv_have_x"
6903 if test "$have_x" != yes; then
6904 echo "$ac_t""$have_x" 1>&6
6907 # If each of the values was on the command line, it overrides each guess.
6908 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6909 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6910 # Update the cache value to reflect the command line values.
6911 ac_cv_have_x="have_x=yes \
6912 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6913 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6918 # Unlike the sim directory, whether a simulator is linked is controlled by
6919 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
6920 # This code just checks for a few cases where we'd like to ignore those
6921 # definitions, even when they're present in the '.mt' file. These cases
6922 # are when --disable-sim is specified, or if the simulator directory is
6923 # not part of the soruce tree.
6925 # Check whether --enable-sim or --disable-sim was given.
6926 if test "${enable_sim+set}" = set; then
6927 enableval="$enable_sim"
6928 echo "enable_sim = $enable_sim";
6929 echo "enableval = ${enableval}";
6930 case "${enableval}" in
6931 yes) ignore_sim=false ;;
6932 no) ignore_sim=true ;;
6933 *) ignore_sim=false ;;
6940 if test ! -d "${srcdir}/../sim"; then
6944 if test "${ignore_sim}" = "true"; then
6946 IGNORE_SIM_OBS="SIM_OBS="
6950 cat >> confdefs.h <<\EOF
6965 # Begin stuff to support --enable-shared
6966 # Check whether --enable-shared or --disable-shared was given.
6967 if test "${enable_shared+set}" = set; then
6968 enableval="$enable_shared"
6969 case "${enableval}" in
6978 # If we have shared libraries, try to set rpath reasonably.
6979 if test "${shared}" = "true"; then
6982 HLDFLAGS='-Wl,+s,+b,$(libdir)'
6984 *-*-irix5* | *-*-irix6*)
6985 HLDFLAGS='-Wl,-rpath,$(libdir)'
6989 *-*-linux* | *-pc-linux-gnu)
6990 HLDFLAGS='-Wl,-rpath,$(libdir)'
6993 HLDFLAGS='-R $(libdir)'
6996 HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
7001 # On SunOS, if the linker supports the -rpath option, use it to
7002 # prevent ../bfd and ../opcodes from being included in the run time
7006 echo 'main () { }' > conftest.c
7007 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
7008 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
7010 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
7012 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
7014 elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
7016 elif test "${shared}" = "true"; then
7017 HLDFLAGS='-Wl,-rpath=$(libdir)'
7019 HLDFLAGS='-Wl,-rpath='
7021 rm -f conftest.t conftest.c conftest
7026 # End stuff to support --enable-shared
7028 # target_subdir is used by the testsuite to find the target libraries.
7030 if test "${host}" != "${target}"; then
7031 target_subdir="${target_alias}/"
7036 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7037 if test ! -f ${host_makefile_frag}; then
7038 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
7040 frags="$frags $host_makefile_frag"
7042 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7043 if test ! -f ${target_makefile_frag}; then
7044 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
7046 frags="$frags $target_makefile_frag"
7053 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7054 ' ${host_makefile_frag}`
7056 targetfile=`sed -n '
7057 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7058 ' ${target_makefile_frag}`
7060 # these really aren't orthogonal true/false values of the same condition,
7061 # but shells are slow enough that I like to reuse the test conditions
7063 if test "${target}" = "${host}"; then
7064 nativefile=`sed -n '
7065 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7066 ' ${host_makefile_frag}`
7068 # GDBserver is only useful in a "native" enviroment
7069 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7073 SUBDIRS="doc testsuite nlm"
7074 if test "${enable_multi_ice}" = "yes"; then
7075 SUBDIRS="${SUBDIRS} multi-ice"
7080 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7081 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
7082 # corresponding links. But we have to remove the xm.h files and tm.h
7083 # files anyway, e.g. when switching from "configure host" to
7089 if test "${hostfile}" != ""; then
7090 files="${files} config/${gdb_host_cpu}/${hostfile}"
7091 links="${links} xm.h"
7094 if test "${targetfile}" != ""; then
7095 files="${files} config/${gdb_target_cpu}/${targetfile}"
7096 links="${links} tm.h"
7099 if test "${nativefile}" != ""; then
7100 files="${files} config/${gdb_host_cpu}/${nativefile}"
7101 links="${links} nm.h"
7103 # A cross-only configuration.
7104 files="${files} config/nm-empty.h"
7105 links="${links} nm.h"
7107 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7108 echo "configure:7109: checking whether ln -s works" >&5
7109 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7113 if ln -s X conftestdata 2>/dev/null
7116 ac_cv_prog_LN_S="ln -s"
7121 LN_S="$ac_cv_prog_LN_S"
7122 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7123 echo "$ac_t""yes" 1>&6
7125 echo "$ac_t""no" 1>&6
7128 # Make it possible to use the GUI without doing a full install
7129 if test "${enable_gdbtk}" = "yes" ; then
7130 if test "$LN_S" = "ln -s" -a ! -f gdbtcl ; then
7131 echo linking $srcdir/gdbtk/library to gdbtcl
7132 $LN_S $srcdir/gdbtk/library gdbtcl
7134 echo Warning: Unable to link $srcdir/gdbtk/library to gdbtcl. You will need to do a
7135 echo " " make install before you are able to run the GUI.
7141 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7142 echo "configure:7143: checking for Cygwin environment" >&5
7143 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7144 echo $ac_n "(cached) $ac_c" 1>&6
7146 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7153 #define __CYGWIN__ __CYGWIN32__
7158 if { (eval echo configure:7159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7162 echo "configure: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7171 echo "$ac_t""$ac_cv_cygwin" 1>&6
7173 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7174 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7175 echo "configure:7176: checking for mingw32 environment" >&5
7176 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7177 echo $ac_n "(cached) $ac_c" 1>&6
7179 cat > conftest.$ac_ext <<EOF
7180 #line 7181 "configure"
7181 #include "confdefs.h"
7187 if { (eval echo configure:7188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7191 echo "configure: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7200 echo "$ac_t""$ac_cv_mingw32" 1>&6
7202 test "$ac_cv_mingw32" = yes && MINGW32=yes
7205 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7206 echo "configure:7207: checking for executable suffix" >&5
7207 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7210 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
7214 echo 'int main () { return 0; }' > conftest.$ac_ext
7216 if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7217 for file in conftest.*; do
7219 *.c | *.o | *.obj) ;;
7220 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7224 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7227 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7232 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7233 echo "$ac_t""${ac_cv_exeext}" 1>&6
7237 subdirs="$configdirs"
7240 cat > confcache <<\EOF
7241 # This file is a shell script that caches the results of configure
7242 # tests run on this system so they can be shared between configure
7243 # scripts and configure runs. It is not useful on other systems.
7244 # If it contains results you don't want to keep, you may remove or edit it.
7246 # By default, configure uses ./config.cache as the cache file,
7247 # creating it if it does not exist already. You can give configure
7248 # the --cache-file=FILE option to use a different cache file; that is
7249 # what configure does when it calls configure scripts in
7250 # subdirectories, so they share the cache.
7251 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7252 # config.status only pays attention to the cache file if you give it the
7253 # --recheck option to rerun configure.
7256 # The following way of writing the cache mishandles newlines in values,
7257 # but we know of no workaround that is simple, portable, and efficient.
7258 # So, don't put newlines in cache variables' values.
7259 # Ultrix sh set writes to stderr and can't be redirected directly,
7260 # and sets the high bit in the cache file unless we assign to the vars.
7262 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7264 # `set' does not quote correctly, so add quotes (double-quote substitution
7265 # turns \\\\ into \\, and sed turns \\ into \).
7267 -e "s/'/'\\\\''/g" \
7268 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7271 # `set' quotes correctly as required by POSIX, so do not add quotes.
7272 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7275 if cmp -s $cache_file confcache; then
7278 if test -w $cache_file; then
7279 echo "updating cache $cache_file"
7280 cat confcache > $cache_file
7282 echo "not updating unwritable cache $cache_file"
7287 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7290 # Let make expand exec_prefix.
7291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7293 # Any assignment to VPATH causes Sun make to only execute
7294 # the first set of double-colon rules, so remove it if not needed.
7295 # If there is a colon in the path, we need to keep it.
7296 if test "x$srcdir" = x.; then
7297 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7300 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7302 DEFS=-DHAVE_CONFIG_H
7304 # Without the "./", some shells look in PATH for config.status.
7305 : ${CONFIG_STATUS=./config.status}
7307 echo creating $CONFIG_STATUS
7308 rm -f $CONFIG_STATUS
7309 cat > $CONFIG_STATUS <<EOF
7311 # Generated automatically by configure.
7312 # Run this file to recreate the current configuration.
7313 # This directory was configured as follows,
7314 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7316 # $0 $ac_configure_args
7318 # Compiler output produced by configure, useful for debugging
7319 # configure, is in ./config.log if it exists.
7321 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7324 case "\$ac_option" in
7325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7326 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7327 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7328 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7329 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7331 -help | --help | --hel | --he | --h)
7332 echo "\$ac_cs_usage"; exit 0 ;;
7333 *) echo "\$ac_cs_usage"; exit 1 ;;
7337 ac_given_srcdir=$srcdir
7338 ac_given_INSTALL="$INSTALL"
7340 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7342 cat >> $CONFIG_STATUS <<EOF
7344 # Protect against being on the right side of a sed subst in config.status.
7345 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7346 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7350 s%@CFLAGS@%$CFLAGS%g
7351 s%@CPPFLAGS@%$CPPFLAGS%g
7352 s%@CXXFLAGS@%$CXXFLAGS%g
7353 s%@FFLAGS@%$FFLAGS%g
7355 s%@LDFLAGS@%$LDFLAGS%g
7357 s%@exec_prefix@%$exec_prefix%g
7358 s%@prefix@%$prefix%g
7359 s%@program_transform_name@%$program_transform_name%g
7360 s%@bindir@%$bindir%g
7361 s%@sbindir@%$sbindir%g
7362 s%@libexecdir@%$libexecdir%g
7363 s%@datadir@%$datadir%g
7364 s%@sysconfdir@%$sysconfdir%g
7365 s%@sharedstatedir@%$sharedstatedir%g
7366 s%@localstatedir@%$localstatedir%g
7367 s%@libdir@%$libdir%g
7368 s%@includedir@%$includedir%g
7369 s%@oldincludedir@%$oldincludedir%g
7370 s%@infodir@%$infodir%g
7371 s%@mandir@%$mandir%g
7375 s%@host_alias@%$host_alias%g
7376 s%@host_cpu@%$host_cpu%g
7377 s%@host_vendor@%$host_vendor%g
7378 s%@host_os@%$host_os%g
7379 s%@target@%$target%g
7380 s%@target_alias@%$target_alias%g
7381 s%@target_cpu@%$target_cpu%g
7382 s%@target_vendor@%$target_vendor%g
7383 s%@target_os@%$target_os%g
7385 s%@build_alias@%$build_alias%g
7386 s%@build_cpu@%$build_cpu%g
7387 s%@build_vendor@%$build_vendor%g
7388 s%@build_os@%$build_os%g
7389 s%@SET_MAKE@%$SET_MAKE%g
7390 s%@RANLIB@%$RANLIB%g
7391 s%@ALLOCA@%$ALLOCA%g
7392 s%@USE_NLS@%$USE_NLS%g
7393 s%@MSGFMT@%$MSGFMT%g
7394 s%@GMSGFMT@%$GMSGFMT%g
7395 s%@XGETTEXT@%$XGETTEXT%g
7396 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7397 s%@CATALOGS@%$CATALOGS%g
7398 s%@CATOBJEXT@%$CATOBJEXT%g
7399 s%@DATADIRNAME@%$DATADIRNAME%g
7400 s%@GMOFILES@%$GMOFILES%g
7401 s%@INSTOBJEXT@%$INSTOBJEXT%g
7402 s%@INTLDEPS@%$INTLDEPS%g
7403 s%@INTLLIBS@%$INTLLIBS%g
7404 s%@INTLOBJS@%$INTLOBJS%g
7405 s%@POFILES@%$POFILES%g
7407 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7409 s%@GT_YES@%$GT_YES%g
7410 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7413 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7414 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7415 s%@INSTALL_DATA@%$INSTALL_DATA%g
7418 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
7419 s%@BUILD_TUI@%$BUILD_TUI%g
7420 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
7421 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7422 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
7423 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
7424 s%@MMALLOC@%$MMALLOC%g
7425 s%@DLLTOOL@%$DLLTOOL%g
7426 s%@WINDRES@%$WINDRES%g
7427 s%@TERM_LIB@%$TERM_LIB%g
7428 s%@WIN32LIBS@%$WIN32LIBS%g
7429 s%@LIBGUI@%$LIBGUI%g
7430 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7431 s%@WIN32LDAPP@%$WIN32LDAPP%g
7432 s%@TCL_VERSION@%$TCL_VERSION%g
7433 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7434 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7435 s%@TCL_CC@%$TCL_CC%g
7436 s%@TCL_DEFS@%$TCL_DEFS%g
7437 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7438 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7439 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7440 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7441 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7442 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7443 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7444 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7445 s%@TCL_RANLIB@%$TCL_RANLIB%g
7446 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7447 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7448 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7449 s%@TK_VERSION@%$TK_VERSION%g
7450 s%@TK_DEFS@%$TK_DEFS%g
7451 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7452 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7453 s%@TK_XLIBSW@%$TK_XLIBSW%g
7454 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7455 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7456 s%@TCLHDIR@%$TCLHDIR%g
7457 s%@TKHDIR@%$TKHDIR%g
7458 s%@ITCLHDIR@%$ITCLHDIR%g
7459 s%@ITKHDIR@%$ITKHDIR%g
7460 s%@TIXHDIR@%$TIXHDIR%g
7461 s%@ITCL_VERSION@%$ITCL_VERSION%g
7462 s%@ITCL_DEFS@%$ITCL_DEFS%g
7463 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7464 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7465 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7466 s%@ITK_VERSION@%$ITK_VERSION%g
7467 s%@ITK_DEFS@%$ITK_DEFS%g
7468 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7469 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7470 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7471 s%@TIX_VERSION@%$TIX_VERSION%g
7472 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7473 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
7474 s%@X_CFLAGS@%$X_CFLAGS%g
7475 s%@X_LDFLAGS@%$X_LDFLAGS%g
7476 s%@X_LIBS@%$X_LIBS%g
7477 s%@ITCLLIB@%$ITCLLIB%g
7478 s%@ITCL_DEPS@%$ITCL_DEPS%g
7479 s%@ITKLIB@%$ITKLIB%g
7480 s%@ITK_DEPS@%$ITK_DEPS%g
7481 s%@TIXLIB@%$TIXLIB%g
7482 s%@TIX_DEPS@%$TIX_DEPS%g
7483 s%@GDBTKLIBS@%$GDBTKLIBS%g
7484 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7485 s%@IGNORE_SIM@%$IGNORE_SIM%g
7486 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
7487 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7488 s%@CONFIG_OBS@%$CONFIG_OBS%g
7489 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7490 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7491 s%@CONFIG_INITS@%$CONFIG_INITS%g
7492 s%@HLDFLAGS@%$HLDFLAGS%g
7493 s%@HLDENV@%$HLDENV%g
7494 s%@target_subdir@%$target_subdir%g
7495 /@host_makefile_frag@/r $host_makefile_frag
7496 s%@host_makefile_frag@%%g
7497 /@target_makefile_frag@/r $target_makefile_frag
7498 s%@target_makefile_frag@%%g
7500 s%@SUBDIRS@%$SUBDIRS%g
7502 s%@EXEEXT@%$EXEEXT%g
7503 s%@subdirs@%$subdirs%g
7508 cat >> $CONFIG_STATUS <<\EOF
7510 # Split the substitutions into bite-sized pieces for seds with
7511 # small command number limits, like on Digital OSF/1 and HP-UX.
7512 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7513 ac_file=1 # Number of current file.
7514 ac_beg=1 # First line for current file.
7515 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7518 while $ac_more_lines; do
7519 if test $ac_beg -gt 1; then
7520 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7522 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7524 if test ! -s conftest.s$ac_file; then
7526 rm -f conftest.s$ac_file
7528 if test -z "$ac_sed_cmds"; then
7529 ac_sed_cmds="sed -f conftest.s$ac_file"
7531 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7533 ac_file=`expr $ac_file + 1`
7535 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7538 if test -z "$ac_sed_cmds"; then
7543 cat >> $CONFIG_STATUS <<EOF
7545 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
7547 cat >> $CONFIG_STATUS <<\EOF
7548 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7551 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7552 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7553 *) ac_file_in="${ac_file}.in" ;;
7556 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7558 # Remove last slash and all that follows it. Not all systems have dirname.
7559 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7560 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7561 # The file is in a subdirectory.
7562 test ! -d "$ac_dir" && mkdir "$ac_dir"
7563 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7564 # A "../" for each directory in $ac_dir_suffix.
7565 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7567 ac_dir_suffix= ac_dots=
7570 case "$ac_given_srcdir" in
7572 if test -z "$ac_dots"; then top_srcdir=.
7573 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7574 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7576 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7577 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7580 case "$ac_given_INSTALL" in
7581 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7582 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7585 echo creating "$ac_file"
7587 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7589 *Makefile*) ac_comsub="1i\\
7590 # $configure_input" ;;
7594 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7596 s%@configure_input@%$configure_input%g
7597 s%@srcdir@%$srcdir%g
7598 s%@top_srcdir@%$top_srcdir%g
7599 s%@INSTALL@%$INSTALL%g
7600 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7604 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7605 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7607 # ac_d sets the value in "#define NAME VALUE" lines.
7608 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7609 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7612 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7613 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7614 ac_uB='\([ ]\)%\1#\2define\3'
7617 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7618 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7619 ac_eB='$%\1#\2define\3'
7623 if test "${CONFIG_HEADERS+set}" != set; then
7625 cat >> $CONFIG_STATUS <<EOF
7626 CONFIG_HEADERS="config.h:config.in"
7628 cat >> $CONFIG_STATUS <<\EOF
7630 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7633 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7634 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7635 *) ac_file_in="${ac_file}.in" ;;
7638 echo creating $ac_file
7640 rm -f conftest.frag conftest.in conftest.out
7641 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7642 cat $ac_file_inputs > conftest.in
7646 # Transform confdefs.h into a sed script conftest.vals that substitutes
7647 # the proper values into config.h.in to produce config.h. And first:
7648 # Protect against being on the right side of a sed subst in config.status.
7649 # Protect against being in an unquoted here document in config.status.
7651 cat > conftest.hdr <<\EOF
7654 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7658 sed -n -f conftest.hdr confdefs.h > conftest.vals
7661 # This sed command replaces #undef with comments. This is necessary, for
7662 # example, in the case of _POSIX_SOURCE, which is predefined and required
7663 # on some systems where configure will not decide to define it.
7664 cat >> conftest.vals <<\EOF
7665 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7668 # Break up conftest.vals because some shells have a limit on
7669 # the size of here documents, and old seds have small limits too.
7674 ac_lines=`grep -c . conftest.vals`
7675 # grep -c gives empty output for an empty file on some AIX systems.
7676 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7677 # Write a limited-size here document to conftest.frag.
7678 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7679 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7681 sed -f conftest.frag conftest.in > conftest.out
7683 mv conftest.out conftest.in
7685 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7687 mv conftest.tail conftest.vals
7691 cat >> $CONFIG_STATUS <<\EOF
7692 rm -f conftest.frag conftest.h
7693 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7694 cat conftest.in >> conftest.h
7696 if cmp -s $ac_file conftest.h 2>/dev/null; then
7697 echo "$ac_file is unchanged"
7700 # Remove last slash and all that follows it. Not all systems have dirname.
7701 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7702 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7703 # The file is in a subdirectory.
7704 test ! -d "$ac_dir" && mkdir "$ac_dir"
7707 mv conftest.h $ac_file
7713 cat >> $CONFIG_STATUS <<EOF
7718 cat >> $CONFIG_STATUS <<\EOF
7719 srcdir=$ac_given_srcdir
7720 while test -n "$ac_sources"; do
7721 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7722 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7724 echo "linking $srcdir/$ac_source to $ac_dest"
7726 if test ! -r $srcdir/$ac_source; then
7727 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7731 # Make relative symlinks.
7732 # Remove last slash and all that follows it. Not all systems have dirname.
7733 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7734 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7735 # The dest file is in a subdirectory.
7736 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7737 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7738 # A "../" for each directory in $ac_dest_dir_suffix.
7739 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7741 ac_dest_dir_suffix= ac_dots=
7745 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7746 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7749 # Make a symlink if possible; otherwise try a hard link.
7750 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7751 ln $srcdir/$ac_source $ac_dest; then :
7753 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7757 cat >> $CONFIG_STATUS <<EOF
7759 gdb_host_cpu=$gdb_host_cpu
7760 gdb_target_cpu=$gdb_target_cpu
7761 nativefile=$nativefile
7764 cat >> $CONFIG_STATUS <<\EOF
7766 if test "${nativefile}" = ""; then
7767 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
7768 < Makefile > Makefile.tem
7769 mv -f Makefile.tem Makefile
7772 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
7773 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
7774 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
7775 mv -f Makefile.tmp Makefile
7778 case x$CONFIG_HEADERS in
7779 xconfig.h:config.in)
7785 chmod +x $CONFIG_STATUS
7786 rm -fr confdefs* $ac_clean_files
7787 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7789 if test "$no_recursion" != yes; then
7791 # Remove --cache-file and --srcdir arguments so they do not pile up.
7792 ac_sub_configure_args=
7794 for ac_arg in $ac_configure_args; do
7795 if test -n "$ac_prev"; then
7800 -cache-file | --cache-file | --cache-fil | --cache-fi \
7801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7802 ac_prev=cache_file ;;
7803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7806 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7808 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7810 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7814 for ac_config_dir in $configdirs; do
7816 # Do not complain, so a configure script can configure whichever
7817 # parts of a large source tree are present.
7818 if test ! -d $srcdir/$ac_config_dir; then
7822 echo configuring in $ac_config_dir
7827 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7829 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7837 # A "../" for each directory in /$ac_config_dir.
7838 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7841 .) # No --srcdir option. We are building in place.
7842 ac_sub_srcdir=$srcdir ;;
7843 /*) # Absolute path.
7844 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7846 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7849 # Check for guested configure; otherwise get Cygnus style configure.
7850 if test -f $ac_sub_srcdir/configure; then
7851 ac_sub_configure=$ac_sub_srcdir/configure
7852 elif test -f $ac_sub_srcdir/configure.in; then
7853 ac_sub_configure=$ac_configure
7855 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7859 # The recursion is here.
7860 if test -n "$ac_sub_configure"; then
7862 # Make the cache file name correct relative to the subdirectory.
7863 case "$cache_file" in
7864 /*) ac_sub_cache_file=$cache_file ;;
7866 ac_sub_cache_file="$ac_dots$cache_file" ;;
7868 case "$ac_given_INSTALL" in
7869 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7870 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7873 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7874 # The eval makes quoting arguments work.
7875 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7878 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }