3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --enable-gdbmi Enable GDB-MI interface"
26 --enable-tui Enable full-screen terminal user interface"
28 --enable-netrom Enable NetROM support"
30 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
32 --with-mmalloc Use memory mapped malloc package"
34 --with-included-regex Use included regex"
36 --with-cpu=CPU Set the default CPU variant to debug"
38 --enable-gdbtk Enable GDBTK GUI front end"
40 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
42 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
44 --with-tclinclude=DIR Directory where tcl private headers are"
46 --with-tkinclude=DIR Directory where tk private headers are"
48 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
50 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
52 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
54 --with-x use the X Window System"
56 --enable-sim Link gdb with simulator"
58 --enable-shared Use shared libraries"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file=./config.cache
73 program_transform_name=s,x,x,
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
95 # Initialize some other variables.
98 SHELL=${CONFIG_SHELL-/bin/sh}
99 # Maximum number of lines to put in a shell here document.
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
114 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 # Accept the important Cygnus configure options, so we can diagnose typos.
122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125 bindir="$ac_optarg" ;;
127 -build | --build | --buil | --bui | --bu)
129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130 build="$ac_optarg" ;;
132 -cache-file | --cache-file | --cache-fil | --cache-fi \
133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134 ac_prev=cache_file ;;
135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137 cache_file="$ac_optarg" ;;
139 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143 datadir="$ac_optarg" ;;
145 -disable-* | --disable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* | --enable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169 | --exec | --exe | --ex)
170 ac_prev=exec_prefix ;;
171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173 | --exec=* | --exe=* | --ex=*)
174 exec_prefix="$ac_optarg" ;;
176 -gas | --gas | --ga | --g)
177 # Obsolete; use --with-gas.
180 -help | --help | --hel | --he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --site-file=FILE use FILE as the site file
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
236 -host | --host | --hos | --ho)
238 -host=* | --host=* | --hos=* | --ho=*)
241 -includedir | --includedir | --includedi | --included | --include \
242 | --includ | --inclu | --incl | --inc)
243 ac_prev=includedir ;;
244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245 | --includ=* | --inclu=* | --incl=* | --inc=*)
246 includedir="$ac_optarg" ;;
248 -infodir | --infodir | --infodi | --infod | --info | --inf)
250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251 infodir="$ac_optarg" ;;
253 -libdir | --libdir | --libdi | --libd)
255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
256 libdir="$ac_optarg" ;;
258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259 | --libexe | --libex | --libe)
260 ac_prev=libexecdir ;;
261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262 | --libexe=* | --libex=* | --libe=*)
263 libexecdir="$ac_optarg" ;;
265 -localstatedir | --localstatedir | --localstatedi | --localstated \
266 | --localstate | --localstat | --localsta | --localst \
267 | --locals | --local | --loca | --loc | --lo)
268 ac_prev=localstatedir ;;
269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272 localstatedir="$ac_optarg" ;;
274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277 mandir="$ac_optarg" ;;
280 # Obsolete; use --without-fp.
283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293 | --oldin | --oldi | --old | --ol | --o)
294 ac_prev=oldincludedir ;;
295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298 oldincludedir="$ac_optarg" ;;
300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303 prefix="$ac_optarg" ;;
305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
306 | --program-pre | --program-pr | --program-p)
307 ac_prev=program_prefix ;;
308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310 program_prefix="$ac_optarg" ;;
312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
313 | --program-suf | --program-su | --program-s)
314 ac_prev=program_suffix ;;
315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317 program_suffix="$ac_optarg" ;;
319 -program-transform-name | --program-transform-name \
320 | --program-transform-nam | --program-transform-na \
321 | --program-transform-n | --program-transform- \
322 | --program-transform | --program-transfor \
323 | --program-transfo | --program-transf \
324 | --program-trans | --program-tran \
325 | --progr-tra | --program-tr | --program-t)
326 ac_prev=program_transform_name ;;
327 -program-transform-name=* | --program-transform-name=* \
328 | --program-transform-nam=* | --program-transform-na=* \
329 | --program-transform-n=* | --program-transform-=* \
330 | --program-transform=* | --program-transfor=* \
331 | --program-transfo=* | --program-transf=* \
332 | --program-trans=* | --program-tran=* \
333 | --progr-tra=* | --program-tr=* | --program-t=*)
334 program_transform_name="$ac_optarg" ;;
336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337 | -silent | --silent | --silen | --sile | --sil)
340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
344 sbindir="$ac_optarg" ;;
346 -sharedstatedir | --sharedstatedir | --sharedstatedi \
347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348 | --sharedst | --shareds | --shared | --share | --shar \
350 ac_prev=sharedstatedir ;;
351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
355 sharedstatedir="$ac_optarg" ;;
357 -site | --site | --sit)
359 -site=* | --site=* | --sit=*)
362 -site-file | --site-file | --site-fil | --site-fi | --site-f)
364 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
365 sitefile="$ac_optarg" ;;
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.13"
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=main.c
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$sitefile"; then
533 if test -z "$CONFIG_SITE"; then
534 if test "x$prefix" != xNONE; then
535 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 CONFIG_SITE="$sitefile"
543 for ac_site_file in $CONFIG_SITE; do
544 if test -r "$ac_site_file"; then
545 echo "loading site script $ac_site_file"
550 if test -r "$cache_file"; then
551 echo "loading cache $cache_file"
554 echo "creating cache $cache_file"
559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
560 ac_cpp='$CPP $CPPFLAGS'
561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
563 cross_compiling=$ac_cv_prog_cc_cross
567 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='\c' ac_t=
581 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
582 echo "configure:583: checking whether to enable maintainer-specific portions of Makefiles" >&5
583 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
584 if test "${enable_maintainer_mode+set}" = set; then
585 enableval="$enable_maintainer_mode"
586 USE_MAINTAINER_MODE=$enableval
588 USE_MAINTAINER_MODE=no
591 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
594 if test $USE_MAINTAINER_MODE = yes; then
595 MAINTAINER_MODE_TRUE=
596 MAINTAINER_MODE_FALSE='#'
598 MAINTAINER_MODE_TRUE='#'
599 MAINTAINER_MODE_FALSE=
601 MAINT=$MAINTAINER_MODE_TRUE
605 # Extract the first word of "gcc", so it can be a program name with args.
606 set dummy gcc; ac_word=$2
607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
608 echo "configure:609: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
612 if test -n "$CC"; then
613 ac_cv_prog_CC="$CC" # Let the user override the test.
615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
617 for ac_dir in $ac_dummy; do
618 test -z "$ac_dir" && ac_dir=.
619 if test -f $ac_dir/$ac_word; then
628 if test -n "$CC"; then
629 echo "$ac_t""$CC" 1>&6
631 echo "$ac_t""no" 1>&6
634 if test -z "$CC"; then
635 # Extract the first word of "cc", so it can be a program name with args.
636 set dummy cc; ac_word=$2
637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
638 echo "configure:639: checking for $ac_word" >&5
639 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 if test -n "$CC"; then
643 ac_cv_prog_CC="$CC" # Let the user override the test.
645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
648 for ac_dir in $ac_dummy; do
649 test -z "$ac_dir" && ac_dir=.
650 if test -f $ac_dir/$ac_word; then
651 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
660 if test $ac_prog_rejected = yes; then
661 # We found a bogon in the path, so make sure we never use it.
662 set dummy $ac_cv_prog_CC
664 if test $# -gt 0; then
665 # We chose a different compiler from the bogus one.
666 # However, it has the same basename, so the bogon will be chosen
667 # first if we set CC to just the basename; use the full file name.
669 set dummy "$ac_dir/$ac_word" "$@"
677 if test -n "$CC"; then
678 echo "$ac_t""$CC" 1>&6
680 echo "$ac_t""no" 1>&6
683 if test -z "$CC"; then
686 # Extract the first word of "cl", so it can be a program name with args.
687 set dummy cl; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
693 if test -n "$CC"; then
694 ac_cv_prog_CC="$CC" # Let the user override the test.
696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
698 for ac_dir in $ac_dummy; do
699 test -z "$ac_dir" && ac_dir=.
700 if test -f $ac_dir/$ac_word; then
709 if test -n "$CC"; then
710 echo "$ac_t""$CC" 1>&6
712 echo "$ac_t""no" 1>&6
717 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
720 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
721 echo "configure:722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
725 ac_cpp='$CPP $CPPFLAGS'
726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
728 cross_compiling=$ac_cv_prog_cc_cross
730 cat > conftest.$ac_ext << EOF
732 #line 733 "configure"
733 #include "confdefs.h"
737 if { (eval echo configure:738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
738 ac_cv_prog_cc_works=yes
739 # If we can't run a trivial program, we are probably using a cross compiler.
740 if (./conftest; exit) 2>/dev/null; then
741 ac_cv_prog_cc_cross=no
743 ac_cv_prog_cc_cross=yes
746 echo "configure: failed program was:" >&5
747 cat conftest.$ac_ext >&5
748 ac_cv_prog_cc_works=no
752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753 ac_cpp='$CPP $CPPFLAGS'
754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756 cross_compiling=$ac_cv_prog_cc_cross
758 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
759 if test $ac_cv_prog_cc_works = no; then
760 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
763 echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
764 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
765 cross_compiling=$ac_cv_prog_cc_cross
767 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
768 echo "configure:769: checking whether we are using GNU C" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 cat > conftest.c <<EOF
777 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
784 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
786 if test $ac_cv_prog_gcc = yes; then
792 ac_test_CFLAGS="${CFLAGS+set}"
793 ac_save_CFLAGS="$CFLAGS"
795 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
796 echo "configure:797: checking whether ${CC-cc} accepts -g" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 echo 'void f(){}' > conftest.c
801 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
810 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
811 if test "$ac_test_CFLAGS" = set; then
812 CFLAGS="$ac_save_CFLAGS"
813 elif test $ac_cv_prog_cc_g = yes; then
814 if test "$GCC" = yes; then
820 if test "$GCC" = yes; then
827 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
828 echo "configure:829: checking how to run the C preprocessor" >&5
829 # On Suns, sometimes $CPP names a directory.
830 if test -n "$CPP" && test -d "$CPP"; then
833 if test -z "$CPP"; then
834 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 # This must be in double quotes, not single quotes, because CPP may get
838 # substituted into the Makefile and "${CC-cc}" will confuse make.
840 # On the NeXT, cc -E runs the code through the compiler's parser,
841 # not just through cpp.
842 cat > conftest.$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
849 { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
851 if test -z "$ac_err"; then
855 echo "configure: failed program was:" >&5
856 cat conftest.$ac_ext >&5
858 CPP="${CC-cc} -E -traditional-cpp"
859 cat > conftest.$ac_ext <<EOF
860 #line 861 "configure"
861 #include "confdefs.h"
865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
866 { (eval echo configure:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
868 if test -z "$ac_err"; then
872 echo "configure: failed program was:" >&5
873 cat conftest.$ac_ext >&5
875 CPP="${CC-cc} -nologo -E"
876 cat > conftest.$ac_ext <<EOF
877 #line 878 "configure"
878 #include "confdefs.h"
882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
883 { (eval echo configure:884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
885 if test -z "$ac_err"; then
889 echo "configure: failed program was:" >&5
890 cat conftest.$ac_ext >&5
899 ac_cv_prog_CPP="$CPP"
901 CPP="$ac_cv_prog_CPP"
903 ac_cv_prog_CPP="$CPP"
905 echo "$ac_t""$CPP" 1>&6
907 echo $ac_n "checking for AIX""... $ac_c" 1>&6
908 echo "configure:909: checking for AIX" >&5
909 cat > conftest.$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
918 egrep "yes" >/dev/null 2>&1; then
920 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
921 #define _ALL_SOURCE 1
926 echo "$ac_t""no" 1>&6
931 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
932 echo "configure:933: checking for POSIXized ISC" >&5
933 if test -d /etc/conf/kconfig.d &&
934 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
936 echo "$ac_t""yes" 1>&6
937 ISC=yes # If later tests want to check for ISC.
938 cat >> confdefs.h <<\EOF
939 #define _POSIX_SOURCE 1
942 if test "$GCC" = yes; then
948 echo "$ac_t""no" 1>&6
955 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
956 echo "configure:957: checking for ${CC-cc} option to accept ANSI C" >&5
957 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 am_cv_prog_cc_stdc=no
962 # Don't try gcc -ansi; that turns off useful extensions and
963 # breaks some systems' header files.
965 # Ultrix and OSF/1 -std1
966 # HP-UX -Aa -D_HPUX_SOURCE
967 # SVR4 -Xc -D__EXTENSIONS__
968 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
970 CC="$ac_save_CC $ac_arg"
971 cat > conftest.$ac_ext <<EOF
972 #line 973 "configure"
973 #include "confdefs.h"
976 #include <sys/types.h>
977 #include <sys/stat.h>
978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
979 struct buf { int x; };
980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
981 static char *e (p, i)
987 static char *f (char * (*g) (char **, int), char **p, ...)
992 s = g (p, va_arg (v,int));
996 int test (int i, double x);
997 struct s1 {int (*f) (int a);};
998 struct s2 {int (*f) (double a);};
999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1005 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1009 if { (eval echo configure:1010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1011 am_cv_prog_cc_stdc="$ac_arg"; break
1013 echo "configure: failed program was:" >&5
1014 cat conftest.$ac_ext >&5
1022 if test -z "$am_cv_prog_cc_stdc"; then
1023 echo "$ac_t""none needed" 1>&6
1025 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1027 case "x$am_cv_prog_cc_stdc" in
1029 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1034 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1035 if test -f $ac_dir/install-sh; then
1037 ac_install_sh="$ac_aux_dir/install-sh -c"
1039 elif test -f $ac_dir/install.sh; then
1041 ac_install_sh="$ac_aux_dir/install.sh -c"
1045 if test -z "$ac_aux_dir"; then
1046 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1048 ac_config_guess=$ac_aux_dir/config.guess
1049 ac_config_sub=$ac_aux_dir/config.sub
1050 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1053 # Do some error checking and defaulting for the host and target type.
1055 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1058 # 1. You are not allowed to specify --host, --target, and nonopt at the
1060 # 2. Host defaults to nonopt.
1061 # 3. If nonopt is not specified, then host defaults to the current host,
1062 # as determined by config.guess.
1063 # 4. Target and build default to nonopt.
1064 # 5. If nonopt is not specified, then target and build default to host.
1066 # The aliases save the names the user supplied, while $host etc.
1067 # will get canonicalized.
1068 case $host---$target---$nonopt in
1069 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1070 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1074 # Make sure we can run config.sub.
1075 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1076 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1079 echo $ac_n "checking host system type""... $ac_c" 1>&6
1080 echo "configure:1081: checking host system type" >&5
1083 case "$host_alias" in
1087 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1088 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1090 *) host_alias=$nonopt ;;
1094 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1095 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1096 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1097 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1098 echo "$ac_t""$host" 1>&6
1100 echo $ac_n "checking target system type""... $ac_c" 1>&6
1101 echo "configure:1102: checking target system type" >&5
1103 target_alias=$target
1104 case "$target_alias" in
1107 NONE) target_alias=$host_alias ;;
1108 *) target_alias=$nonopt ;;
1112 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1113 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1114 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1115 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1116 echo "$ac_t""$target" 1>&6
1118 echo $ac_n "checking build system type""... $ac_c" 1>&6
1119 echo "configure:1120: checking build system type" >&5
1122 case "$build_alias" in
1125 NONE) build_alias=$host_alias ;;
1126 *) build_alias=$nonopt ;;
1130 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1131 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1132 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1133 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1134 echo "$ac_t""$build" 1>&6
1136 test "$host_alias" != "$target_alias" &&
1137 test "$program_prefix$program_suffix$program_transform_name" = \
1139 program_prefix=${target_alias}-
1143 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${MAKE-make} sets \${MAKE}" >&5
1145 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1146 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 cat > conftestmake <<\EOF
1151 @echo 'ac_maketemp="${MAKE}"'
1153 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1154 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1155 if test -n "$ac_maketemp"; then
1156 eval ac_cv_prog_make_${ac_make}_set=yes
1158 eval ac_cv_prog_make_${ac_make}_set=no
1162 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1163 echo "$ac_t""yes" 1>&6
1166 echo "$ac_t""no" 1>&6
1167 SET_MAKE="MAKE=${MAKE-make}"
1170 # Extract the first word of "ranlib", so it can be a program name with args.
1171 set dummy ranlib; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 if test -n "$RANLIB"; then
1178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_prog_RANLIB="ranlib"
1190 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1193 RANLIB="$ac_cv_prog_RANLIB"
1194 if test -n "$RANLIB"; then
1195 echo "$ac_t""$RANLIB" 1>&6
1197 echo "$ac_t""no" 1>&6
1200 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1201 echo "configure:1202: checking for ANSI C header files" >&5
1202 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 cat > conftest.$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1214 { (eval echo configure:1215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1216 if test -z "$ac_err"; then
1218 ac_cv_header_stdc=yes
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1224 ac_cv_header_stdc=no
1228 if test $ac_cv_header_stdc = yes; then
1229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1230 cat > conftest.$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1236 egrep "memchr" >/dev/null 2>&1; then
1240 ac_cv_header_stdc=no
1246 if test $ac_cv_header_stdc = yes; then
1247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1254 egrep "free" >/dev/null 2>&1; then
1258 ac_cv_header_stdc=no
1264 if test $ac_cv_header_stdc = yes; then
1265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1266 if test "$cross_compiling" = yes; then
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1273 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1274 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1276 int main () { int i; for (i = 0; i < 256; i++)
1277 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1281 if { (eval echo configure:1282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1285 echo "configure: failed program was:" >&5
1286 cat conftest.$ac_ext >&5
1288 ac_cv_header_stdc=no
1296 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1297 if test $ac_cv_header_stdc = yes; then
1298 cat >> confdefs.h <<\EOF
1299 #define STDC_HEADERS 1
1304 echo $ac_n "checking for working const""... $ac_c" 1>&6
1305 echo "configure:1306: checking for working const" >&5
1306 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1315 /* Ultrix mips cc rejects this. */
1316 typedef int charset[2]; const charset x;
1317 /* SunOS 4.1.1 cc rejects this. */
1318 char const *const *ccp;
1320 /* NEC SVR4.0.2 mips cc rejects this. */
1321 struct point {int x, y;};
1322 static struct point const zero = {0,0};
1323 /* AIX XL C 1.02.0.0 rejects this.
1324 It does not let you subtract one const X* pointer from another in an arm
1325 of an if-expression whose if-part is not a constant expression */
1326 const char *g = "string";
1327 ccp = &g + (g ? g-g : 0);
1328 /* HPUX 7.0 cc rejects these. */
1331 ccp = (char const *const *) p;
1332 { /* SCO 3.2v4 cc rejects this. */
1334 char const *s = 0 ? (char *) 0 : (char const *) 0;
1338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1340 const int *foo = &x[0];
1343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1344 typedef const int *iptr;
1348 { /* AIX XL C 1.02.0.0 rejects this saying
1349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1350 struct s { int j; const int *ap[3]; };
1351 struct s *b; b->j = 5;
1353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1359 if { (eval echo configure:1360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1371 echo "$ac_t""$ac_cv_c_const" 1>&6
1372 if test $ac_cv_c_const = no; then
1373 cat >> confdefs.h <<\EOF
1379 echo $ac_n "checking for inline""... $ac_c" 1>&6
1380 echo "configure:1381: checking for inline" >&5
1381 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1385 for ac_kw in inline __inline__ __inline; do
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1394 if { (eval echo configure:1395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1396 ac_cv_c_inline=$ac_kw; break
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1406 echo "$ac_t""$ac_cv_c_inline" 1>&6
1407 case "$ac_cv_c_inline" in
1409 no) cat >> confdefs.h <<\EOF
1413 *) cat >> confdefs.h <<EOF
1414 #define inline $ac_cv_c_inline
1419 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1420 echo "configure:1421: checking for off_t" >&5
1421 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 #include <sys/types.h>
1433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1434 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1436 ac_cv_type_off_t=yes
1444 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1445 if test $ac_cv_type_off_t = no; then
1446 cat >> confdefs.h <<\EOF
1452 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1453 echo "configure:1454: checking for size_t" >&5
1454 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 #include <sys/types.h>
1466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1467 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1469 ac_cv_type_size_t=yes
1472 ac_cv_type_size_t=no
1477 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1478 if test $ac_cv_type_size_t = no; then
1479 cat >> confdefs.h <<\EOF
1480 #define size_t unsigned
1485 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1486 # for constant arguments. Useless!
1487 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1488 echo "configure:1489: checking for working alloca.h" >&5
1489 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 cat > conftest.$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1497 char *p = alloca(2 * sizeof(int));
1500 if { (eval echo configure:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1502 ac_cv_header_alloca_h=yes
1504 echo "configure: failed program was:" >&5
1505 cat conftest.$ac_ext >&5
1507 ac_cv_header_alloca_h=no
1512 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1513 if test $ac_cv_header_alloca_h = yes; then
1514 cat >> confdefs.h <<\EOF
1515 #define HAVE_ALLOCA_H 1
1520 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1521 echo "configure:1522: checking for alloca" >&5
1522 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1530 # define alloca __builtin_alloca
1533 # include <malloc.h>
1534 # define alloca _alloca
1537 # include <alloca.h>
1542 # ifndef alloca /* predefined by HP cc +Olibcalls */
1551 char *p = (char *) alloca(1);
1554 if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1556 ac_cv_func_alloca_works=yes
1558 echo "configure: failed program was:" >&5
1559 cat conftest.$ac_ext >&5
1561 ac_cv_func_alloca_works=no
1566 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1567 if test $ac_cv_func_alloca_works = yes; then
1568 cat >> confdefs.h <<\EOF
1569 #define HAVE_ALLOCA 1
1574 if test $ac_cv_func_alloca_works = no; then
1575 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1576 # that cause trouble. Some versions do not even contain alloca or
1577 # contain a buggy version. If you still want to use their alloca,
1578 # use ar to extract alloca.o from them instead of compiling alloca.c.
1579 ALLOCA=alloca.${ac_objext}
1580 cat >> confdefs.h <<\EOF
1585 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1586 echo "configure:1587: checking whether alloca needs Cray hooks" >&5
1587 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 #if defined(CRAY) && ! defined(CRAY2)
1600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1601 egrep "webecray" >/dev/null 2>&1; then
1612 echo "$ac_t""$ac_cv_os_cray" 1>&6
1613 if test $ac_cv_os_cray = yes; then
1614 for ac_func in _getb67 GETB67 getb67; do
1615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1616 echo "configure:1617: checking for $ac_func" >&5
1617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 /* System header to define __stub macros and hopefully few prototypes,
1624 which can conflict with char $ac_func(); below. */
1626 /* Override any gcc2 internal prototype to avoid an error. */
1627 /* We use char because int might match the return type of a gcc2
1628 builtin and then its argument prototype would still apply. */
1633 /* The GNU C library defines this for functions which it implements
1634 to always fail with ENOSYS. Some functions are actually named
1635 something starting with __ and the normal name is an alias. */
1636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1644 if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1646 eval "ac_cv_func_$ac_func=yes"
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1651 eval "ac_cv_func_$ac_func=no"
1656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1657 echo "$ac_t""yes" 1>&6
1658 cat >> confdefs.h <<EOF
1659 #define CRAY_STACKSEG_END $ac_func
1664 echo "$ac_t""no" 1>&6
1670 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1671 echo "configure:1672: checking stack direction for C alloca" >&5
1672 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 if test "$cross_compiling" = yes; then
1676 ac_cv_c_stack_direction=0
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1681 find_stack_direction ()
1683 static char *addr = 0;
1688 return find_stack_direction ();
1691 return (&dummy > addr) ? 1 : -1;
1695 exit (find_stack_direction() < 0);
1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1700 ac_cv_c_stack_direction=1
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1705 ac_cv_c_stack_direction=-1
1712 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1713 cat >> confdefs.h <<EOF
1714 #define STACK_DIRECTION $ac_cv_c_stack_direction
1719 for ac_hdr in unistd.h
1721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1723 echo "configure:1724: checking for $ac_hdr" >&5
1724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1733 { (eval echo configure:1734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1735 if test -z "$ac_err"; then
1737 eval "ac_cv_header_$ac_safe=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1743 eval "ac_cv_header_$ac_safe=no"
1747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1750 cat >> confdefs.h <<EOF
1751 #define $ac_tr_hdr 1
1755 echo "$ac_t""no" 1>&6
1759 for ac_func in getpagesize
1761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1762 echo "configure:1763: checking for $ac_func" >&5
1763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* System header to define __stub macros and hopefully few prototypes,
1770 which can conflict with char $ac_func(); below. */
1772 /* Override any gcc2 internal prototype to avoid an error. */
1773 /* We use char because int might match the return type of a gcc2
1774 builtin and then its argument prototype would still apply. */
1779 /* The GNU C library defines this for functions which it implements
1780 to always fail with ENOSYS. Some functions are actually named
1781 something starting with __ and the normal name is an alias. */
1782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1792 eval "ac_cv_func_$ac_func=yes"
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 eval "ac_cv_func_$ac_func=no"
1802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1805 cat >> confdefs.h <<EOF
1806 #define $ac_tr_func 1
1810 echo "$ac_t""no" 1>&6
1814 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1815 echo "configure:1816: checking for working mmap" >&5
1816 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 if test "$cross_compiling" = yes; then
1820 ac_cv_func_mmap_fixed_mapped=no
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1826 /* Thanks to Mike Haertel and Jim Avera for this test.
1827 Here is a matrix of mmap possibilities:
1828 mmap private not fixed
1829 mmap private fixed at somewhere currently unmapped
1830 mmap private fixed at somewhere already mapped
1831 mmap shared not fixed
1832 mmap shared fixed at somewhere currently unmapped
1833 mmap shared fixed at somewhere already mapped
1834 For private mappings, we should verify that changes cannot be read()
1835 back from the file, nor mmap's back from the file at a different
1836 address. (There have been systems where private was not correctly
1837 implemented like the infamous i386 svr4.0, and systems where the
1838 VM page cache was not coherent with the filesystem buffer cache
1839 like early versions of FreeBSD and possibly contemporary NetBSD.)
1840 For shared mappings, we should conversely verify that changes get
1841 propogated back to all the places they're supposed to be.
1843 Grep wants private fixed already mapped.
1844 The main things grep needs to know about mmap are:
1845 * does it exist and is it safe to write into the mmap'd area
1846 * how to use it (BSD variants) */
1847 #include <sys/types.h>
1849 #include <sys/mman.h>
1851 /* This mess was copied from the GNU getpagesize.h. */
1852 #ifndef HAVE_GETPAGESIZE
1853 # ifdef HAVE_UNISTD_H
1854 # include <unistd.h>
1857 /* Assume that all systems that can run configure have sys/param.h. */
1858 # ifndef HAVE_SYS_PARAM_H
1859 # define HAVE_SYS_PARAM_H 1
1862 # ifdef _SC_PAGESIZE
1863 # define getpagesize() sysconf(_SC_PAGESIZE)
1864 # else /* no _SC_PAGESIZE */
1865 # ifdef HAVE_SYS_PARAM_H
1866 # include <sys/param.h>
1867 # ifdef EXEC_PAGESIZE
1868 # define getpagesize() EXEC_PAGESIZE
1869 # else /* no EXEC_PAGESIZE */
1871 # define getpagesize() NBPG * CLSIZE
1874 # endif /* no CLSIZE */
1875 # else /* no NBPG */
1877 # define getpagesize() NBPC
1878 # else /* no NBPC */
1880 # define getpagesize() PAGESIZE
1881 # endif /* PAGESIZE */
1882 # endif /* no NBPC */
1883 # endif /* no NBPG */
1884 # endif /* no EXEC_PAGESIZE */
1885 # else /* no HAVE_SYS_PARAM_H */
1886 # define getpagesize() 8192 /* punt totally */
1887 # endif /* no HAVE_SYS_PARAM_H */
1888 # endif /* no _SC_PAGESIZE */
1890 #endif /* no HAVE_GETPAGESIZE */
1893 extern "C" { void *malloc(unsigned); }
1901 char *data, *data2, *data3;
1905 pagesize = getpagesize();
1908 * First, make a file with some known garbage in it.
1910 data = malloc(pagesize);
1913 for (i = 0; i < pagesize; ++i)
1914 *(data + i) = rand();
1916 fd = creat("conftestmmap", 0600);
1919 if (write(fd, data, pagesize) != pagesize)
1924 * Next, try to mmap the file at a fixed address which
1925 * already has something else allocated at it. If we can,
1926 * also make sure that we see the same garbage.
1928 fd = open("conftestmmap", O_RDWR);
1931 data2 = malloc(2 * pagesize);
1934 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1935 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1936 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1938 for (i = 0; i < pagesize; ++i)
1939 if (*(data + i) != *(data2 + i))
1943 * Finally, make sure that changes to the mapped area
1944 * do not percolate back to the file as seen by read().
1945 * (This is a bug on some variants of i386 svr4.0.)
1947 for (i = 0; i < pagesize; ++i)
1948 *(data2 + i) = *(data2 + i) + 1;
1949 data3 = malloc(pagesize);
1952 if (read(fd, data3, pagesize) != pagesize)
1954 for (i = 0; i < pagesize; ++i)
1955 if (*(data + i) != *(data3 + i))
1958 unlink("conftestmmap");
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1965 ac_cv_func_mmap_fixed_mapped=yes
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1970 ac_cv_func_mmap_fixed_mapped=no
1977 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1978 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1979 cat >> confdefs.h <<\EOF
1986 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1987 unistd.h values.h sys/param.h
1989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_hdr" >&5
1992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
2000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2001 { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2003 if test -z "$ac_err"; then
2005 eval "ac_cv_header_$ac_safe=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_header_$ac_safe=no"
2015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2018 cat >> confdefs.h <<EOF
2019 #define $ac_tr_hdr 1
2023 echo "$ac_t""no" 1>&6
2027 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2028 __argz_count __argz_stringify __argz_next
2030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_func" >&5
2032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 /* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char $ac_func(); below. */
2041 /* Override any gcc2 internal prototype to avoid an error. */
2042 /* We use char because int might match the return type of a gcc2
2043 builtin and then its argument prototype would still apply. */
2048 /* The GNU C library defines this for functions which it implements
2049 to always fail with ENOSYS. Some functions are actually named
2050 something starting with __ and the normal name is an alias. */
2051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2059 if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2061 eval "ac_cv_func_$ac_func=yes"
2063 echo "configure: failed program was:" >&5
2064 cat conftest.$ac_ext >&5
2066 eval "ac_cv_func_$ac_func=no"
2071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2072 echo "$ac_t""yes" 1>&6
2073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2074 cat >> confdefs.h <<EOF
2075 #define $ac_tr_func 1
2079 echo "$ac_t""no" 1>&6
2084 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2085 for ac_func in stpcpy
2087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_func" >&5
2089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 cat > conftest.$ac_ext <<EOF
2093 #line 2094 "configure"
2094 #include "confdefs.h"
2095 /* System header to define __stub macros and hopefully few prototypes,
2096 which can conflict with char $ac_func(); below. */
2098 /* Override any gcc2 internal prototype to avoid an error. */
2099 /* We use char because int might match the return type of a gcc2
2100 builtin and then its argument prototype would still apply. */
2105 /* The GNU C library defines this for functions which it implements
2106 to always fail with ENOSYS. Some functions are actually named
2107 something starting with __ and the normal name is an alias. */
2108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2116 if { (eval echo configure:2117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2118 eval "ac_cv_func_$ac_func=yes"
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2123 eval "ac_cv_func_$ac_func=no"
2128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2129 echo "$ac_t""yes" 1>&6
2130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2131 cat >> confdefs.h <<EOF
2132 #define $ac_tr_func 1
2136 echo "$ac_t""no" 1>&6
2141 if test "${ac_cv_func_stpcpy}" = "yes"; then
2142 cat >> confdefs.h <<\EOF
2143 #define HAVE_STPCPY 1
2148 if test $ac_cv_header_locale_h = yes; then
2149 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2150 echo "configure:2151: checking for LC_MESSAGES" >&5
2151 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2164 am_cv_val_LC_MESSAGES=yes
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 am_cv_val_LC_MESSAGES=no
2174 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2175 if test $am_cv_val_LC_MESSAGES = yes; then
2176 cat >> confdefs.h <<\EOF
2177 #define HAVE_LC_MESSAGES 1
2182 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2183 echo "configure:2184: checking whether NLS is requested" >&5
2184 # Check whether --enable-nls or --disable-nls was given.
2185 if test "${enable_nls+set}" = set; then
2186 enableval="$enable_nls"
2192 echo "$ac_t""$USE_NLS" 1>&6
2195 USE_INCLUDED_LIBINTL=no
2197 if test "$USE_NLS" = "yes"; then
2198 cat >> confdefs.h <<\EOF
2199 #define ENABLE_NLS 1
2202 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2203 echo "configure:2204: checking whether included gettext is requested" >&5
2204 # Check whether --with-included-gettext or --without-included-gettext was given.
2205 if test "${with_included_gettext+set}" = set; then
2206 withval="$with_included_gettext"
2207 nls_cv_force_use_gnu_gettext=$withval
2209 nls_cv_force_use_gnu_gettext=no
2212 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2214 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2215 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2217 nls_cv_header_libgt=
2220 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2221 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2222 echo "configure:2223: checking for libintl.h" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <libintl.h>
2231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2232 { (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2234 if test -z "$ac_err"; then
2236 eval "ac_cv_header_$ac_safe=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2242 eval "ac_cv_header_$ac_safe=no"
2246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2249 echo "configure:2250: checking for gettext in libc" >&5
2250 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 #include <libintl.h>
2258 return (int) gettext ("")
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2263 gt_cv_func_gettext_libc=yes
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2268 gt_cv_func_gettext_libc=no
2273 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2275 if test "$gt_cv_func_gettext_libc" != "yes"; then
2276 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2277 echo "configure:2278: checking for bindtextdomain in -lintl" >&5
2278 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 ac_save_LIBS="$LIBS"
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 /* Override any gcc2 internal prototype to avoid an error. */
2288 /* We use char because int might match the return type of a gcc2
2289 builtin and then its argument prototype would still apply. */
2290 char bindtextdomain();
2296 if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2298 eval "ac_cv_lib_$ac_lib_var=yes"
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2303 eval "ac_cv_lib_$ac_lib_var=no"
2306 LIBS="$ac_save_LIBS"
2309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2311 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2312 echo "configure:2313: checking for gettext in libintl" >&5
2313 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2321 return (int) gettext ("")
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2326 gt_cv_func_gettext_libintl=yes
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2331 gt_cv_func_gettext_libintl=no
2336 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2338 echo "$ac_t""no" 1>&6
2343 if test "$gt_cv_func_gettext_libc" = "yes" \
2344 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2345 cat >> confdefs.h <<\EOF
2346 #define HAVE_GETTEXT 1
2349 # Extract the first word of "msgfmt", so it can be a program name with args.
2350 set dummy msgfmt; ac_word=$2
2351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_word" >&5
2353 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2358 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2362 for ac_dir in $PATH; do
2363 test -z "$ac_dir" && ac_dir=.
2364 if test -f $ac_dir/$ac_word; then
2365 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2366 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2372 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2376 MSGFMT="$ac_cv_path_MSGFMT"
2377 if test -n "$MSGFMT"; then
2378 echo "$ac_t""$MSGFMT" 1>&6
2380 echo "$ac_t""no" 1>&6
2382 if test "$MSGFMT" != "no"; then
2383 for ac_func in dcgettext
2385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_func" >&5
2387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 /* System header to define __stub macros and hopefully few prototypes,
2394 which can conflict with char $ac_func(); below. */
2396 /* Override any gcc2 internal prototype to avoid an error. */
2397 /* We use char because int might match the return type of a gcc2
2398 builtin and then its argument prototype would still apply. */
2403 /* The GNU C library defines this for functions which it implements
2404 to always fail with ENOSYS. Some functions are actually named
2405 something starting with __ and the normal name is an alias. */
2406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2416 eval "ac_cv_func_$ac_func=yes"
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 eval "ac_cv_func_$ac_func=no"
2426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2429 cat >> confdefs.h <<EOF
2430 #define $ac_tr_func 1
2434 echo "$ac_t""no" 1>&6
2438 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2439 set dummy gmsgfmt; ac_word=$2
2440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_word" >&5
2442 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2447 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2450 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2455 for ac_dir in $ac_dummy; do
2456 test -z "$ac_dir" && ac_dir=.
2457 if test -f $ac_dir/$ac_word; then
2458 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2463 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2467 GMSGFMT="$ac_cv_path_GMSGFMT"
2468 if test -n "$GMSGFMT"; then
2469 echo "$ac_t""$GMSGFMT" 1>&6
2471 echo "$ac_t""no" 1>&6
2474 # Extract the first word of "xgettext", so it can be a program name with args.
2475 set dummy xgettext; ac_word=$2
2476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_word" >&5
2478 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2483 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2487 for ac_dir in $PATH; do
2488 test -z "$ac_dir" && ac_dir=.
2489 if test -f $ac_dir/$ac_word; then
2490 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2491 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2497 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2501 XGETTEXT="$ac_cv_path_XGETTEXT"
2502 if test -n "$XGETTEXT"; then
2503 echo "$ac_t""$XGETTEXT" 1>&6
2505 echo "$ac_t""no" 1>&6
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 extern int _nl_msg_cat_cntr;
2514 return _nl_msg_cat_cntr
2517 if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2534 echo "$ac_t""no" 1>&6
2539 if test "$CATOBJEXT" = "NONE"; then
2540 nls_cv_use_gnu_gettext=yes
2544 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2545 INTLOBJS="\$(GETTOBJS)"
2546 # Extract the first word of "msgfmt", so it can be a program name with args.
2547 set dummy msgfmt; ac_word=$2
2548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2549 echo "configure:2550: checking for $ac_word" >&5
2550 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2555 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2559 for ac_dir in $PATH; do
2560 test -z "$ac_dir" && ac_dir=.
2561 if test -f $ac_dir/$ac_word; then
2562 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2563 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2569 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2573 MSGFMT="$ac_cv_path_MSGFMT"
2574 if test -n "$MSGFMT"; then
2575 echo "$ac_t""$MSGFMT" 1>&6
2577 echo "$ac_t""no" 1>&6
2580 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2581 set dummy gmsgfmt; ac_word=$2
2582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_word" >&5
2584 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2589 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2592 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2597 for ac_dir in $ac_dummy; do
2598 test -z "$ac_dir" && ac_dir=.
2599 if test -f $ac_dir/$ac_word; then
2600 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2605 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2609 GMSGFMT="$ac_cv_path_GMSGFMT"
2610 if test -n "$GMSGFMT"; then
2611 echo "$ac_t""$GMSGFMT" 1>&6
2613 echo "$ac_t""no" 1>&6
2616 # Extract the first word of "xgettext", so it can be a program name with args.
2617 set dummy xgettext; ac_word=$2
2618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2619 echo "configure:2620: checking for $ac_word" >&5
2620 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2625 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2629 for ac_dir in $PATH; do
2630 test -z "$ac_dir" && ac_dir=.
2631 if test -f $ac_dir/$ac_word; then
2632 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2633 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2639 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2643 XGETTEXT="$ac_cv_path_XGETTEXT"
2644 if test -n "$XGETTEXT"; then
2645 echo "$ac_t""$XGETTEXT" 1>&6
2647 echo "$ac_t""no" 1>&6
2651 USE_INCLUDED_LIBINTL=yes
2655 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2657 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2658 nls_cv_header_intl=libintl.h
2659 nls_cv_header_libgt=libgettext.h
2662 if test "$XGETTEXT" != ":"; then
2663 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2666 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2671 # We need to process the po/ directory.
2675 nls_cv_header_intl=libintl.h
2676 nls_cv_header_libgt=libgettext.h
2679 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2680 # because some of the sources are only built for this goal.
2681 if test "$PACKAGE" = gettext; then
2683 USE_INCLUDED_LIBINTL=yes
2686 for lang in $ALL_LINGUAS; do
2687 GMOFILES="$GMOFILES $lang.gmo"
2688 POFILES="$POFILES $lang.po"
2704 if test "x$CATOBJEXT" != "x"; then
2705 if test "x$ALL_LINGUAS" = "x"; then
2708 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2709 echo "configure:2710: checking for catalogs to be installed" >&5
2711 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2712 case "$ALL_LINGUAS" in
2713 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2716 LINGUAS=$NEW_LINGUAS
2717 echo "$ac_t""$LINGUAS" 1>&6
2720 if test -n "$LINGUAS"; then
2721 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2725 if test $ac_cv_header_locale_h = yes; then
2726 INCLUDE_LOCALE_H="#include <locale.h>"
2729 /* The system does not provide the header <locale.h>. Take care yourself. */"
2733 if test -f $srcdir/po2tbl.sed.in; then
2734 if test "$CATOBJEXT" = ".cat"; then
2735 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2737 echo "configure:2738: checking for linux/version.h" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 #include <linux/version.h>
2746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2751 eval "ac_cv_header_$ac_safe=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 eval "ac_cv_header_$ac_safe=no"
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2765 echo "$ac_t""no" 1>&6
2770 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2772 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2773 $srcdir/po2tbl.sed.in > po2tbl.sed
2776 if test "$PACKAGE" = "gettext"; then
2786 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2792 if test -d $srcdir/po; then
2793 test -d po || mkdir po
2794 if test "x$srcdir" != "x."; then
2795 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2796 posrcprefix="$srcdir/"
2798 posrcprefix="../$srcdir/"
2804 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2805 < $srcdir/po/POTFILES.in > po/POTFILES
2820 configdirs="doc testsuite"
2822 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2823 if test "${enable_multi_ice+set}" = set; then
2824 enableval="$enable_multi_ice"
2825 case "${enableval}" in
2826 yes ) enable_multi_ice="yes" ;;
2827 no) enable_multi_ice="no" ;;
2828 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2834 if test "${enable_multi_ice}" = "yes"; then
2835 configdirs="${configdirs} multi-ice"
2839 . ${srcdir}/configure.host
2841 . ${srcdir}/configure.tgt
2844 for ac_prog in mawk gawk nawk awk
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_word" >&5
2850 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 if test -n "$AWK"; then
2854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2858 for ac_dir in $ac_dummy; do
2859 test -z "$ac_dir" && ac_dir=.
2860 if test -f $ac_dir/$ac_word; then
2861 ac_cv_prog_AWK="$ac_prog"
2868 AWK="$ac_cv_prog_AWK"
2869 if test -n "$AWK"; then
2870 echo "$ac_t""$AWK" 1>&6
2872 echo "$ac_t""no" 1>&6
2875 test -n "$AWK" && break
2878 # Find a good install program. We prefer a C program (faster),
2879 # so one script is as good as another. But avoid the broken or
2880 # incompatible versions:
2881 # SysV /etc/install, /usr/sbin/install
2882 # SunOS /usr/etc/install
2883 # IRIX /sbin/install
2885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2888 # ./install, which can be erroneously created by make from ./install.sh.
2889 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2890 echo "configure:2891: checking for a BSD compatible install" >&5
2891 if test -z "$INSTALL"; then
2892 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2896 for ac_dir in $PATH; do
2897 # Account for people who put trailing slashes in PATH elements.
2899 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2901 # OSF1 and SCO ODT 3.0 have their own names for install.
2902 # Don't use installbsd from OSF since it installs stuff as root
2904 for ac_prog in ginstall scoinst install; do
2905 if test -f $ac_dir/$ac_prog; then
2906 if test $ac_prog = install &&
2907 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2908 # AIX install. It has an incompatible calling convention.
2911 ac_cv_path_install="$ac_dir/$ac_prog -c"
2922 if test "${ac_cv_path_install+set}" = set; then
2923 INSTALL="$ac_cv_path_install"
2925 # As a last resort, use the slow shell script. We don't cache a
2926 # path for INSTALL within a source directory, because that will
2927 # break other packages using the cache if that directory is
2928 # removed, or if the path is relative.
2929 INSTALL="$ac_install_sh"
2932 echo "$ac_t""$INSTALL" 1>&6
2934 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2935 # It thinks the first close brace ends the variable substitution.
2936 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2938 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2940 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2942 if test $host != $build; then
2943 ac_tool_prefix=${host_alias}-
2948 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}ar; ac_word=$2
2950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_word" >&5
2952 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 if test -n "$AR"; then
2956 ac_cv_prog_AR="$AR" # Let the user override the test.
2958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2960 for ac_dir in $ac_dummy; do
2961 test -z "$ac_dir" && ac_dir=.
2962 if test -f $ac_dir/$ac_word; then
2963 ac_cv_prog_AR="${ac_tool_prefix}ar"
2968 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2972 if test -n "$AR"; then
2973 echo "$ac_t""$AR" 1>&6
2975 echo "$ac_t""no" 1>&6
2980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_word" >&5
2984 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 if test -n "$RANLIB"; then
2988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2992 for ac_dir in $ac_dummy; do
2993 test -z "$ac_dir" && ac_dir=.
2994 if test -f $ac_dir/$ac_word; then
2995 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3002 RANLIB="$ac_cv_prog_RANLIB"
3003 if test -n "$RANLIB"; then
3004 echo "$ac_t""$RANLIB" 1>&6
3006 echo "$ac_t""no" 1>&6
3010 if test -z "$ac_cv_prog_RANLIB"; then
3011 if test -n "$ac_tool_prefix"; then
3012 # Extract the first word of "ranlib", so it can be a program name with args.
3013 set dummy ranlib; ac_word=$2
3014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3015 echo "configure:3016: checking for $ac_word" >&5
3016 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 if test -n "$RANLIB"; then
3020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3024 for ac_dir in $ac_dummy; do
3025 test -z "$ac_dir" && ac_dir=.
3026 if test -f $ac_dir/$ac_word; then
3027 ac_cv_prog_RANLIB="ranlib"
3032 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3035 RANLIB="$ac_cv_prog_RANLIB"
3036 if test -n "$RANLIB"; then
3037 echo "$ac_t""$RANLIB" 1>&6
3039 echo "$ac_t""no" 1>&6
3047 for ac_prog in 'bison -y' byacc
3049 # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3052 echo "configure:3053: checking for $ac_word" >&5
3053 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 if test -n "$YACC"; then
3057 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3061 for ac_dir in $ac_dummy; do
3062 test -z "$ac_dir" && ac_dir=.
3063 if test -f $ac_dir/$ac_word; then
3064 ac_cv_prog_YACC="$ac_prog"
3071 YACC="$ac_cv_prog_YACC"
3072 if test -n "$YACC"; then
3073 echo "$ac_t""$YACC" 1>&6
3075 echo "$ac_t""no" 1>&6
3078 test -n "$YACC" && break
3080 test -n "$YACC" || YACC="yacc"
3083 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3084 set dummy ${ac_tool_prefix}mig; ac_word=$2
3085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_word" >&5
3087 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 if test -n "$MIG"; then
3091 ac_cv_prog_MIG="$MIG" # Let the user override the test.
3093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3095 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 ac_cv_prog_MIG="${ac_tool_prefix}mig"
3103 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
3106 MIG="$ac_cv_prog_MIG"
3107 if test -n "$MIG"; then
3108 echo "$ac_t""$MIG" 1>&6
3110 echo "$ac_t""no" 1>&6
3116 if test "$program_transform_name" = s,x,x,; then
3117 program_transform_name=
3119 # Double any \ or $. echo might interpret backslashes.
3120 cat <<\EOF_SED > conftestsed
3121 s,\\,\\\\,g; s,\$,$$,g
3123 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
3126 test "$program_prefix" != NONE &&
3127 program_transform_name="s,^,${program_prefix},; $program_transform_name"
3128 # Use a double $ so make ignores it.
3129 test "$program_suffix" != NONE &&
3130 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
3132 # sed with no file args requires a program.
3133 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
3136 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3137 echo "configure:3138: checking return type of signal handlers" >&5
3138 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 #include <sys/types.h>
3150 extern "C" void (*signal (int, void (*)(int)))(int);
3152 void (*signal ()) ();
3159 if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 ac_cv_type_signal=void
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3166 ac_cv_type_signal=int
3171 echo "$ac_t""$ac_cv_type_signal" 1>&6
3172 cat >> confdefs.h <<EOF
3173 #define RETSIGTYPE $ac_cv_type_signal
3178 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3179 echo "configure:3180: checking for ANSI C header files" >&5
3180 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3192 { (eval echo configure:3193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3194 if test -z "$ac_err"; then
3196 ac_cv_header_stdc=yes
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 ac_cv_header_stdc=no
3206 if test $ac_cv_header_stdc = yes; then
3207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3214 egrep "memchr" >/dev/null 2>&1; then
3218 ac_cv_header_stdc=no
3224 if test $ac_cv_header_stdc = yes; then
3225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3232 egrep "free" >/dev/null 2>&1; then
3236 ac_cv_header_stdc=no
3242 if test $ac_cv_header_stdc = yes; then
3243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3244 if test "$cross_compiling" = yes; then
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3251 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3252 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3254 int main () { int i; for (i = 0; i < 256; i++)
3255 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 ac_cv_header_stdc=no
3274 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3275 if test $ac_cv_header_stdc = yes; then
3276 cat >> confdefs.h <<\EOF
3277 #define STDC_HEADERS 1
3284 case $host_os in solaris2.7) case "$GCC" in yes)
3285 cat >> confdefs.h <<\EOF
3286 #define _MSE_INT_H 1
3291 for ac_hdr in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3292 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3293 string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
3294 term.h termio.h termios.h unistd.h wait.h sys/wait.h \
3295 wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
3298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3300 echo "configure:3301: checking for $ac_hdr" >&5
3301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3310 { (eval echo configure:3311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3312 if test -z "$ac_err"; then
3314 eval "ac_cv_header_$ac_safe=yes"
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3320 eval "ac_cv_header_$ac_safe=no"
3324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3327 cat >> confdefs.h <<EOF
3328 #define $ac_tr_hdr 1
3332 echo "$ac_t""no" 1>&6
3336 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3337 echo "configure:3338: checking whether stat file-mode macros are broken" >&5
3338 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <sys/types.h>
3345 #include <sys/stat.h>
3347 #if defined(S_ISBLK) && defined(S_IFDIR)
3348 # if S_ISBLK (S_IFDIR)
3353 #if defined(S_ISBLK) && defined(S_IFCHR)
3354 # if S_ISBLK (S_IFCHR)
3359 #if defined(S_ISLNK) && defined(S_IFREG)
3360 # if S_ISLNK (S_IFREG)
3365 #if defined(S_ISSOCK) && defined(S_IFREG)
3366 # if S_ISSOCK (S_IFREG)
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "You lose" >/dev/null 2>&1; then
3375 ac_cv_header_stat_broken=yes
3378 ac_cv_header_stat_broken=no
3384 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3385 if test $ac_cv_header_stat_broken = yes; then
3386 cat >> confdefs.h <<\EOF
3387 #define STAT_MACROS_BROKEN 1
3393 echo $ac_n "checking for working const""... $ac_c" 1>&6
3394 echo "configure:3395: checking for working const" >&5
3395 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3404 /* Ultrix mips cc rejects this. */
3405 typedef int charset[2]; const charset x;
3406 /* SunOS 4.1.1 cc rejects this. */
3407 char const *const *ccp;
3409 /* NEC SVR4.0.2 mips cc rejects this. */
3410 struct point {int x, y;};
3411 static struct point const zero = {0,0};
3412 /* AIX XL C 1.02.0.0 rejects this.
3413 It does not let you subtract one const X* pointer from another in an arm
3414 of an if-expression whose if-part is not a constant expression */
3415 const char *g = "string";
3416 ccp = &g + (g ? g-g : 0);
3417 /* HPUX 7.0 cc rejects these. */
3420 ccp = (char const *const *) p;
3421 { /* SCO 3.2v4 cc rejects this. */
3423 char const *s = 0 ? (char *) 0 : (char const *) 0;
3427 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3429 const int *foo = &x[0];
3432 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3433 typedef const int *iptr;
3437 { /* AIX XL C 1.02.0.0 rejects this saying
3438 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3439 struct s { int j; const int *ap[3]; };
3440 struct s *b; b->j = 5;
3442 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3448 if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3452 echo "configure: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3460 echo "$ac_t""$ac_cv_c_const" 1>&6
3461 if test $ac_cv_c_const = no; then
3462 cat >> confdefs.h <<\EOF
3469 for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3472 echo "configure:3473: checking for $ac_func" >&5
3473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 /* System header to define __stub macros and hopefully few prototypes,
3480 which can conflict with char $ac_func(); below. */
3482 /* Override any gcc2 internal prototype to avoid an error. */
3483 /* We use char because int might match the return type of a gcc2
3484 builtin and then its argument prototype would still apply. */
3489 /* The GNU C library defines this for functions which it implements
3490 to always fail with ENOSYS. Some functions are actually named
3491 something starting with __ and the normal name is an alias. */
3492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3502 eval "ac_cv_func_$ac_func=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3507 eval "ac_cv_func_$ac_func=no"
3512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3515 cat >> confdefs.h <<EOF
3516 #define $ac_tr_func 1
3520 echo "$ac_t""no" 1>&6
3524 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3525 # for constant arguments. Useless!
3526 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3527 echo "configure:3528: checking for working alloca.h" >&5
3528 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3536 char *p = alloca(2 * sizeof(int));
3539 if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3541 ac_cv_header_alloca_h=yes
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 ac_cv_header_alloca_h=no
3551 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3552 if test $ac_cv_header_alloca_h = yes; then
3553 cat >> confdefs.h <<\EOF
3554 #define HAVE_ALLOCA_H 1
3559 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3560 echo "configure:3561: checking for alloca" >&5
3561 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3569 # define alloca __builtin_alloca
3572 # include <malloc.h>
3573 # define alloca _alloca
3576 # include <alloca.h>
3581 # ifndef alloca /* predefined by HP cc +Olibcalls */
3590 char *p = (char *) alloca(1);
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595 ac_cv_func_alloca_works=yes
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 ac_cv_func_alloca_works=no
3605 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3606 if test $ac_cv_func_alloca_works = yes; then
3607 cat >> confdefs.h <<\EOF
3608 #define HAVE_ALLOCA 1
3613 if test $ac_cv_func_alloca_works = no; then
3614 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3615 # that cause trouble. Some versions do not even contain alloca or
3616 # contain a buggy version. If you still want to use their alloca,
3617 # use ar to extract alloca.o from them instead of compiling alloca.c.
3618 ALLOCA=alloca.${ac_objext}
3619 cat >> confdefs.h <<\EOF
3624 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3625 echo "configure:3626: checking whether alloca needs Cray hooks" >&5
3626 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #if defined(CRAY) && ! defined(CRAY2)
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "webecray" >/dev/null 2>&1; then
3651 echo "$ac_t""$ac_cv_os_cray" 1>&6
3652 if test $ac_cv_os_cray = yes; then
3653 for ac_func in _getb67 GETB67 getb67; do
3654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3655 echo "configure:3656: checking for $ac_func" >&5
3656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 /* System header to define __stub macros and hopefully few prototypes,
3663 which can conflict with char $ac_func(); below. */
3665 /* Override any gcc2 internal prototype to avoid an error. */
3666 /* We use char because int might match the return type of a gcc2
3667 builtin and then its argument prototype would still apply. */
3672 /* The GNU C library defines this for functions which it implements
3673 to always fail with ENOSYS. Some functions are actually named
3674 something starting with __ and the normal name is an alias. */
3675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3685 eval "ac_cv_func_$ac_func=yes"
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3690 eval "ac_cv_func_$ac_func=no"
3695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3696 echo "$ac_t""yes" 1>&6
3697 cat >> confdefs.h <<EOF
3698 #define CRAY_STACKSEG_END $ac_func
3703 echo "$ac_t""no" 1>&6
3709 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3710 echo "configure:3711: checking stack direction for C alloca" >&5
3711 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3714 if test "$cross_compiling" = yes; then
3715 ac_cv_c_stack_direction=0
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 find_stack_direction ()
3722 static char *addr = 0;
3727 return find_stack_direction ();
3730 return (&dummy > addr) ? 1 : -1;
3734 exit (find_stack_direction() < 0);
3737 if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3739 ac_cv_c_stack_direction=1
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 ac_cv_c_stack_direction=-1
3751 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3752 cat >> confdefs.h <<EOF
3753 #define STACK_DIRECTION $ac_cv_c_stack_direction
3759 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
3760 echo "configure:3761: checking for PTRACE_GETREGS" >&5
3761 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 #include <sys/ptrace.h>
3772 if { (eval echo configure:3773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3774 gdb_cv_have_ptrace_getregs=yes
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3779 gdb_cv_have_ptrace_getregs=no
3784 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
3785 if test $gdb_cv_have_ptrace_getregs = yes; then
3786 cat >> confdefs.h <<\EOF
3787 #define HAVE_PTRACE_GETREGS 1
3792 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3793 echo "configure:3794: checking for PTRACE_GETXFPREGS" >&5
3794 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 cat > conftest.$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 #include <sys/ptrace.h>
3805 if { (eval echo configure:3806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3807 gdb_cv_have_ptrace_getxfpregs=yes
3809 echo "configure: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3812 gdb_cv_have_ptrace_getxfpregs=no
3817 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3818 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3819 cat >> confdefs.h <<\EOF
3820 #define HAVE_PTRACE_GETXFPREGS 1
3825 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3826 echo "configure:3827: checking for socketpair in -lsocket" >&5
3827 ac_lib_var=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 ac_save_LIBS="$LIBS"
3832 LIBS="-lsocket $LIBS"
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 /* Override any gcc2 internal prototype to avoid an error. */
3837 /* We use char because int might match the return type of a gcc2
3838 builtin and then its argument prototype would still apply. */
3845 if { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3847 eval "ac_cv_lib_$ac_lib_var=yes"
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3852 eval "ac_cv_lib_$ac_lib_var=no"
3855 LIBS="$ac_save_LIBS"
3858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3859 echo "$ac_t""yes" 1>&6
3860 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3861 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3862 cat >> confdefs.h <<EOF
3863 #define $ac_tr_lib 1
3866 LIBS="-lsocket $LIBS"
3869 echo "$ac_t""no" 1>&6
3872 for ac_func in socketpair
3874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3875 echo "configure:3876: checking for $ac_func" >&5
3876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3879 cat > conftest.$ac_ext <<EOF
3880 #line 3881 "configure"
3881 #include "confdefs.h"
3882 /* System header to define __stub macros and hopefully few prototypes,
3883 which can conflict with char $ac_func(); below. */
3885 /* Override any gcc2 internal prototype to avoid an error. */
3886 /* We use char because int might match the return type of a gcc2
3887 builtin and then its argument prototype would still apply. */
3892 /* The GNU C library defines this for functions which it implements
3893 to always fail with ENOSYS. Some functions are actually named
3894 something starting with __ and the normal name is an alias. */
3895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3903 if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3905 eval "ac_cv_func_$ac_func=yes"
3907 echo "configure: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3910 eval "ac_cv_func_$ac_func=no"
3915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3916 echo "$ac_t""yes" 1>&6
3917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3918 cat >> confdefs.h <<EOF
3919 #define $ac_tr_func 1
3923 echo "$ac_t""no" 1>&6
3929 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3930 echo "configure:3931: checking whether malloc must be declared" >&5
3931 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3934 cat > conftest.$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3939 #ifdef HAVE_STRING_H
3942 #ifdef HAVE_STRINGS_H
3943 #include <strings.h>
3946 #ifdef HAVE_STDLIB_H
3949 #ifdef HAVE_UNISTD_H
3953 char *(*pfn) = (char *(*)) malloc
3956 if { (eval echo configure:3957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3958 bfd_cv_decl_needed_malloc=no
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3963 bfd_cv_decl_needed_malloc=yes
3968 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3969 if test $bfd_cv_decl_needed_malloc = yes; then
3970 cat >> confdefs.h <<\EOF
3971 #define NEED_DECLARATION_MALLOC 1
3976 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3977 echo "configure:3978: checking whether realloc must be declared" >&5
3978 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3986 #ifdef HAVE_STRING_H
3989 #ifdef HAVE_STRINGS_H
3990 #include <strings.h>
3993 #ifdef HAVE_STDLIB_H
3996 #ifdef HAVE_UNISTD_H
4000 char *(*pfn) = (char *(*)) realloc
4003 if { (eval echo configure:4004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 bfd_cv_decl_needed_realloc=no
4007 echo "configure: failed program was:" >&5
4008 cat conftest.$ac_ext >&5
4010 bfd_cv_decl_needed_realloc=yes
4015 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4016 if test $bfd_cv_decl_needed_realloc = yes; then
4017 cat >> confdefs.h <<\EOF
4018 #define NEED_DECLARATION_REALLOC 1
4023 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4024 echo "configure:4025: checking whether free must be declared" >&5
4025 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4033 #ifdef HAVE_STRING_H
4036 #ifdef HAVE_STRINGS_H
4037 #include <strings.h>
4040 #ifdef HAVE_STDLIB_H
4043 #ifdef HAVE_UNISTD_H
4047 char *(*pfn) = (char *(*)) free
4050 if { (eval echo configure:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4052 bfd_cv_decl_needed_free=no
4054 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4057 bfd_cv_decl_needed_free=yes
4062 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4063 if test $bfd_cv_decl_needed_free = yes; then
4064 cat >> confdefs.h <<\EOF
4065 #define NEED_DECLARATION_FREE 1
4070 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4071 echo "configure:4072: checking whether strerror must be declared" >&5
4072 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4080 #ifdef HAVE_STRING_H
4083 #ifdef HAVE_STRINGS_H
4084 #include <strings.h>
4087 #ifdef HAVE_STDLIB_H
4090 #ifdef HAVE_UNISTD_H
4094 char *(*pfn) = (char *(*)) strerror
4097 if { (eval echo configure:4098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4099 bfd_cv_decl_needed_strerror=no
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4104 bfd_cv_decl_needed_strerror=yes
4109 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4110 if test $bfd_cv_decl_needed_strerror = yes; then
4111 cat >> confdefs.h <<\EOF
4112 #define NEED_DECLARATION_STRERROR 1
4117 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4118 echo "configure:4119: checking whether strdup must be declared" >&5
4119 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4127 #ifdef HAVE_STRING_H
4130 #ifdef HAVE_STRINGS_H
4131 #include <strings.h>
4134 #ifdef HAVE_STDLIB_H
4137 #ifdef HAVE_UNISTD_H
4141 char *(*pfn) = (char *(*)) strdup
4144 if { (eval echo configure:4145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4146 bfd_cv_decl_needed_strdup=no
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 bfd_cv_decl_needed_strdup=yes
4156 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4157 if test $bfd_cv_decl_needed_strdup = yes; then
4158 cat >> confdefs.h <<\EOF
4159 #define NEED_DECLARATION_STRDUP 1
4164 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4165 echo "configure:4166: checking whether strstr must be declared" >&5
4166 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 cat > conftest.$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4174 #ifdef HAVE_STRING_H
4177 #ifdef HAVE_STRINGS_H
4178 #include <strings.h>
4181 #ifdef HAVE_STDLIB_H
4184 #ifdef HAVE_UNISTD_H
4188 char *(*pfn) = (char *(*)) strstr
4191 if { (eval echo configure:4192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4193 bfd_cv_decl_needed_strstr=no
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4198 bfd_cv_decl_needed_strstr=yes
4203 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4204 if test $bfd_cv_decl_needed_strstr = yes; then
4205 cat >> confdefs.h <<\EOF
4206 #define NEED_DECLARATION_STRSTR 1
4213 # The following save_state_t checkery is only necessary for HPUX
4214 # versions earlier than 10.20. When those fade from memory, this
4215 # could be expunged. --jsm 1999-03-22
4217 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4218 echo "configure:4219: checking for HPUX save_state structure" >&5
4219 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4222 #include <machine/save_state.h>
4224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225 egrep "save_state_t" >/dev/null 2>&1; then
4227 gdb_cv_hpux_savestate=yes
4230 gdb_cv_hpux_savestate=no
4234 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4237 #include <machine/save_state.h>
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 egrep "ss_wide" >/dev/null 2>&1; then
4242 gdb_cv_hpux_sswide=yes
4245 gdb_cv_hpux_sswide=no
4249 if test $gdb_cv_hpux_savestate = yes
4251 cat >> confdefs.h <<\EOF
4252 #define HAVE_STRUCT_SAVE_STATE_T 1
4256 if test $gdb_cv_hpux_sswide = yes
4258 cat >> confdefs.h <<\EOF
4259 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4263 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4266 # If we are configured native on GNU/Linux, work around problems with
4268 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4270 if test "${target}" = "${host}"; then
4273 cat >> confdefs.h <<\EOF
4274 #define START_INFERIOR_TRAPS_EXPECTED 2
4277 cat >> confdefs.h <<\EOF
4278 #define sys_quotactl 1
4282 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5*)
4283 cat >> confdefs.h <<\EOF
4284 #define NEW_PROC_API 1
4289 cat >> confdefs.h <<\EOF
4290 #define NEW_PROC_API 1
4297 if test "$ac_cv_header_sys_procfs_h" = yes; then
4298 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4299 echo "configure:4300: checking for pstatus_t in sys/procfs.h" >&5
4300 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 #include <sys/procfs.h>
4311 if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4313 bfd_cv_have_sys_procfs_type_pstatus_t=yes
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4318 bfd_cv_have_sys_procfs_type_pstatus_t=no
4324 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4325 cat >> confdefs.h <<\EOF
4326 #define HAVE_PSTATUS_T 1
4330 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4332 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4333 echo "configure:4334: checking for prrun_t in sys/procfs.h" >&5
4334 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4340 #include <sys/procfs.h>
4345 if { (eval echo configure:4346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4347 bfd_cv_have_sys_procfs_type_prrun_t=yes
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4352 bfd_cv_have_sys_procfs_type_prrun_t=no
4358 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4359 cat >> confdefs.h <<\EOF
4360 #define HAVE_PRRUN_T 1
4364 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4366 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4367 echo "configure:4368: checking for gregset_t in sys/procfs.h" >&5
4368 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 #include <sys/procfs.h>
4379 if { (eval echo configure:4380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4381 bfd_cv_have_sys_procfs_type_gregset_t=yes
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 bfd_cv_have_sys_procfs_type_gregset_t=no
4392 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4393 cat >> confdefs.h <<\EOF
4394 #define HAVE_GREGSET_T 1
4398 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4400 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4401 echo "configure:4402: checking for fpregset_t in sys/procfs.h" >&5
4402 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4408 #include <sys/procfs.h>
4413 if { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4415 bfd_cv_have_sys_procfs_type_fpregset_t=yes
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4420 bfd_cv_have_sys_procfs_type_fpregset_t=no
4426 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4427 cat >> confdefs.h <<\EOF
4428 #define HAVE_FPREGSET_T 1
4432 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4434 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4435 echo "configure:4436: checking for prgregset_t in sys/procfs.h" >&5
4436 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442 #include <sys/procfs.h>
4447 if { (eval echo configure:4448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4449 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4451 echo "configure: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4454 bfd_cv_have_sys_procfs_type_prgregset_t=no
4460 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4461 cat >> confdefs.h <<\EOF
4462 #define HAVE_PRGREGSET_T 1
4466 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4468 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4469 echo "configure:4470: checking for prfpregset_t in sys/procfs.h" >&5
4470 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4476 #include <sys/procfs.h>
4481 if { (eval echo configure:4482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4483 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 bfd_cv_have_sys_procfs_type_prfpregset_t=no
4494 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4495 cat >> confdefs.h <<\EOF
4496 #define HAVE_PRFPREGSET_T 1
4500 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4502 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4503 echo "configure:4504: checking for lwpid_t in sys/procfs.h" >&5
4504 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510 #include <sys/procfs.h>
4515 if { (eval echo configure:4516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4517 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4519 echo "configure: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4522 bfd_cv_have_sys_procfs_type_lwpid_t=no
4528 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4529 cat >> confdefs.h <<\EOF
4530 #define HAVE_LWPID_T 1
4534 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4536 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4537 echo "configure:4538: checking for psaddr_t in sys/procfs.h" >&5
4538 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4539 echo $ac_n "(cached) $ac_c" 1>&6
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544 #include <sys/procfs.h>
4549 if { (eval echo configure:4550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4551 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 bfd_cv_have_sys_procfs_type_psaddr_t=no
4562 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_PSADDR_T 1
4568 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4572 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4573 echo "configure:4574: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4574 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4581 #include <sys/types.h>
4582 #include <sys/procfs.h>
4587 dummy = ioctl(0, PIOCSET, &dummy);
4591 if { (eval echo configure:4592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4593 gdb_cv_have_procfs_piocset=yes
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4598 gdb_cv_have_procfs_piocset=no
4603 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4604 if test $gdb_cv_have_procfs_piocset = yes; then
4605 cat >> confdefs.h <<\EOF
4606 #define HAVE_PROCFS_PIOCSET 1
4612 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4613 echo "configure:4614: checking for main in -lm" >&5
4614 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 ac_save_LIBS="$LIBS"
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4628 if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4630 eval "ac_cv_lib_$ac_lib_var=yes"
4632 echo "configure: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4635 eval "ac_cv_lib_$ac_lib_var=no"
4638 LIBS="$ac_save_LIBS"
4641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4642 echo "$ac_t""yes" 1>&6
4643 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4644 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4645 cat >> confdefs.h <<EOF
4646 #define $ac_tr_lib 1
4652 echo "$ac_t""no" 1>&6
4656 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4657 echo "configure:4658: checking for wctype in -lc" >&5
4658 ac_lib_var=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4659 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 ac_save_LIBS="$LIBS"
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 /* Override any gcc2 internal prototype to avoid an error. */
4668 /* We use char because int might match the return type of a gcc2
4669 builtin and then its argument prototype would still apply. */
4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4678 eval "ac_cv_lib_$ac_lib_var=yes"
4680 echo "configure: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4683 eval "ac_cv_lib_$ac_lib_var=no"
4686 LIBS="$ac_save_LIBS"
4689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4693 echo "$ac_t""no" 1>&6
4694 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4695 echo "configure:4696: checking for wctype in -lw" >&5
4696 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 ac_save_LIBS="$LIBS"
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4716 eval "ac_cv_lib_$ac_lib_var=yes"
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4721 eval "ac_cv_lib_$ac_lib_var=no"
4724 LIBS="$ac_save_LIBS"
4727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4729 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4731 cat >> confdefs.h <<EOF
4732 #define $ac_tr_lib 1
4738 echo "$ac_t""no" 1>&6
4745 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4746 echo "configure:4747: checking for long long support in compiler" >&5
4747 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4756 extern long long foo;
4757 switch (foo & 2) { case 0: return 1; }
4761 if { (eval echo configure:4762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4763 gdb_cv_c_long_long=yes
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4768 gdb_cv_c_long_long=no
4773 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4774 if test $gdb_cv_c_long_long = yes; then
4775 cat >> confdefs.h <<\EOF
4776 #define CC_HAS_LONG_LONG 1
4782 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4783 echo "configure:4784: checking for long long support in printf" >&5
4784 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 if test "$cross_compiling" = yes; then
4788 gdb_cv_printf_has_long_long=no
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4797 l = (l << 16) + 0x0123;
4798 l = (l << 16) + 0x4567;
4799 l = (l << 16) + 0x89ab;
4800 l = (l << 16) + 0xcdef;
4801 sprintf (buf, "0x%016llx", l);
4802 return (strcmp ("0x0123456789abcdef", buf));
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4807 gdb_cv_printf_has_long_long=yes
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4812 gdb_cv_printf_has_long_long=no
4819 if test $gdb_cv_printf_has_long_long = yes; then
4820 cat >> confdefs.h <<\EOF
4821 #define PRINTF_HAS_LONG_LONG 1
4825 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4828 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4829 echo "configure:4830: checking for long double support in compiler" >&5
4830 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4841 if { (eval echo configure:4842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4843 ac_cv_c_long_double=yes
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4848 ac_cv_c_long_double=no
4853 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4854 if test $ac_cv_c_long_double = yes; then
4855 cat >> confdefs.h <<\EOF
4856 #define HAVE_LONG_DOUBLE 1
4862 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4863 echo "configure:4864: checking for long double support in printf" >&5
4864 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 if test "$cross_compiling" = yes; then
4868 gdb_cv_printf_has_long_double=no
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4876 long double f = 3.141592653;
4877 sprintf (buf, "%Lg", f);
4878 return (strncmp ("3.14159", buf, 7));
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4883 gdb_cv_printf_has_long_double=yes
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 gdb_cv_printf_has_long_double=no
4895 if test $gdb_cv_printf_has_long_double = yes; then
4896 cat >> confdefs.h <<\EOF
4897 #define PRINTF_HAS_LONG_DOUBLE 1
4901 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4904 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4905 echo "configure:4906: checking for long double support in scanf" >&5
4906 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 if test "$cross_compiling" = yes; then
4910 gdb_cv_scanf_has_long_double=no
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4917 char *buf = "3.141592653";
4919 sscanf (buf, "%Lg", &f);
4920 return !(f > 3.14159 && f < 3.14160);
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4925 gdb_cv_scanf_has_long_double=yes
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 gdb_cv_scanf_has_long_double=no
4937 if test $gdb_cv_scanf_has_long_double = yes; then
4938 cat >> confdefs.h <<\EOF
4939 #define SCANF_HAS_LONG_DOUBLE 1
4943 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4945 for ac_hdr in unistd.h
4947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_hdr" >&5
4950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4959 { (eval echo configure:4960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4961 if test -z "$ac_err"; then
4963 eval "ac_cv_header_$ac_safe=yes"
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 eval "ac_cv_header_$ac_safe=no"
4973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4976 cat >> confdefs.h <<EOF
4977 #define $ac_tr_hdr 1
4981 echo "$ac_t""no" 1>&6
4985 for ac_func in getpagesize
4987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4988 echo "configure:4989: checking for $ac_func" >&5
4989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4995 /* System header to define __stub macros and hopefully few prototypes,
4996 which can conflict with char $ac_func(); below. */
4998 /* Override any gcc2 internal prototype to avoid an error. */
4999 /* We use char because int might match the return type of a gcc2
5000 builtin and then its argument prototype would still apply. */
5005 /* The GNU C library defines this for functions which it implements
5006 to always fail with ENOSYS. Some functions are actually named
5007 something starting with __ and the normal name is an alias. */
5008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5018 eval "ac_cv_func_$ac_func=yes"
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5023 eval "ac_cv_func_$ac_func=no"
5028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5029 echo "$ac_t""yes" 1>&6
5030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5031 cat >> confdefs.h <<EOF
5032 #define $ac_tr_func 1
5036 echo "$ac_t""no" 1>&6
5040 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5041 echo "configure:5042: checking for working mmap" >&5
5042 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 if test "$cross_compiling" = yes; then
5046 ac_cv_func_mmap_fixed_mapped=no
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5052 /* Thanks to Mike Haertel and Jim Avera for this test.
5053 Here is a matrix of mmap possibilities:
5054 mmap private not fixed
5055 mmap private fixed at somewhere currently unmapped
5056 mmap private fixed at somewhere already mapped
5057 mmap shared not fixed
5058 mmap shared fixed at somewhere currently unmapped
5059 mmap shared fixed at somewhere already mapped
5060 For private mappings, we should verify that changes cannot be read()
5061 back from the file, nor mmap's back from the file at a different
5062 address. (There have been systems where private was not correctly
5063 implemented like the infamous i386 svr4.0, and systems where the
5064 VM page cache was not coherent with the filesystem buffer cache
5065 like early versions of FreeBSD and possibly contemporary NetBSD.)
5066 For shared mappings, we should conversely verify that changes get
5067 propogated back to all the places they're supposed to be.
5069 Grep wants private fixed already mapped.
5070 The main things grep needs to know about mmap are:
5071 * does it exist and is it safe to write into the mmap'd area
5072 * how to use it (BSD variants) */
5073 #include <sys/types.h>
5075 #include <sys/mman.h>
5077 /* This mess was copied from the GNU getpagesize.h. */
5078 #ifndef HAVE_GETPAGESIZE
5079 # ifdef HAVE_UNISTD_H
5080 # include <unistd.h>
5083 /* Assume that all systems that can run configure have sys/param.h. */
5084 # ifndef HAVE_SYS_PARAM_H
5085 # define HAVE_SYS_PARAM_H 1
5088 # ifdef _SC_PAGESIZE
5089 # define getpagesize() sysconf(_SC_PAGESIZE)
5090 # else /* no _SC_PAGESIZE */
5091 # ifdef HAVE_SYS_PARAM_H
5092 # include <sys/param.h>
5093 # ifdef EXEC_PAGESIZE
5094 # define getpagesize() EXEC_PAGESIZE
5095 # else /* no EXEC_PAGESIZE */
5097 # define getpagesize() NBPG * CLSIZE
5100 # endif /* no CLSIZE */
5101 # else /* no NBPG */
5103 # define getpagesize() NBPC
5104 # else /* no NBPC */
5106 # define getpagesize() PAGESIZE
5107 # endif /* PAGESIZE */
5108 # endif /* no NBPC */
5109 # endif /* no NBPG */
5110 # endif /* no EXEC_PAGESIZE */
5111 # else /* no HAVE_SYS_PARAM_H */
5112 # define getpagesize() 8192 /* punt totally */
5113 # endif /* no HAVE_SYS_PARAM_H */
5114 # endif /* no _SC_PAGESIZE */
5116 #endif /* no HAVE_GETPAGESIZE */
5119 extern "C" { void *malloc(unsigned); }
5127 char *data, *data2, *data3;
5131 pagesize = getpagesize();
5134 * First, make a file with some known garbage in it.
5136 data = malloc(pagesize);
5139 for (i = 0; i < pagesize; ++i)
5140 *(data + i) = rand();
5142 fd = creat("conftestmmap", 0600);
5145 if (write(fd, data, pagesize) != pagesize)
5150 * Next, try to mmap the file at a fixed address which
5151 * already has something else allocated at it. If we can,
5152 * also make sure that we see the same garbage.
5154 fd = open("conftestmmap", O_RDWR);
5157 data2 = malloc(2 * pagesize);
5160 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5161 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5162 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5164 for (i = 0; i < pagesize; ++i)
5165 if (*(data + i) != *(data2 + i))
5169 * Finally, make sure that changes to the mapped area
5170 * do not percolate back to the file as seen by read().
5171 * (This is a bug on some variants of i386 svr4.0.)
5173 for (i = 0; i < pagesize; ++i)
5174 *(data2 + i) = *(data2 + i) + 1;
5175 data3 = malloc(pagesize);
5178 if (read(fd, data3, pagesize) != pagesize)
5180 for (i = 0; i < pagesize; ++i)
5181 if (*(data + i) != *(data3 + i))
5184 unlink("conftestmmap");
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5191 ac_cv_func_mmap_fixed_mapped=yes
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5196 ac_cv_func_mmap_fixed_mapped=no
5203 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5204 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5205 cat >> confdefs.h <<\EOF
5214 if test ${build} = ${host} -a ${host} = ${target} ; then
5217 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5218 echo "configure:5219: checking for HPUX/OSF thread support" >&5
5219 if test -f /usr/include/dce/cma_config.h ; then
5220 if test "$GCC" = "yes" ; then
5221 echo "$ac_t""yes" 1>&6
5222 cat >> confdefs.h <<\EOF
5223 #define HAVE_HPUX_THREAD_SUPPORT 1
5226 CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
5227 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
5229 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5232 echo "$ac_t""no" 1>&6
5236 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5237 echo "configure:5238: checking for Solaris thread debugging library" >&5
5238 if test -f /usr/lib/libthread_db.so.1 ; then
5239 echo "$ac_t""yes" 1>&6
5240 cat >> confdefs.h <<\EOF
5241 #define HAVE_THREAD_DB_LIB 1
5244 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
5245 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
5246 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5247 echo "configure:5248: checking for dlopen in -ldl" >&5
5248 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5252 ac_save_LIBS="$LIBS"
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5257 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5268 eval "ac_cv_lib_$ac_lib_var=yes"
5270 echo "configure: failed program was:" >&5
5271 cat conftest.$ac_ext >&5
5273 eval "ac_cv_lib_$ac_lib_var=no"
5276 LIBS="$ac_save_LIBS"
5279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5280 echo "$ac_t""yes" 1>&6
5281 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5283 cat >> confdefs.h <<EOF
5284 #define $ac_tr_lib 1
5290 echo "$ac_t""no" 1>&6
5293 if test "$GCC" = "yes" ; then
5294 # The GNU linker requires the -export-dynamic option to make
5295 # all symbols visible in the dynamic symbol table.
5296 hold_ldflags=$LDFLAGS
5297 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5298 echo "configure:5299: checking for the ld -export-dynamic flag" >&5
5299 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5318 LDFLAGS=$hold_ldflags
5319 echo "$ac_t""$found" 1>&6
5320 if test $found = yes; then
5321 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5324 # Sun randomly tweaked the prototypes in <proc_service.h>
5326 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5327 echo "configure:5328: checking if <proc_service.h> is old" >&5
5328 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5332 cat > conftest.$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5336 #include <proc_service.h>
5338 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5344 if { (eval echo configure:5345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5346 gdb_cv_proc_service_is_old=no
5348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5351 gdb_cv_proc_service_is_old=yes
5357 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5358 if test $gdb_cv_proc_service_is_old = yes; then
5359 cat >> confdefs.h <<\EOF
5360 #define PROC_SERVICE_IS_OLD 1
5365 echo "$ac_t""no" 1>&6
5373 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5374 if test "${enable_gdbmi+set}" = set; then
5375 enableval="$enable_gdbmi"
5377 case "${enable_gdbmi}" in
5379 "") enable_gdbmi=yes ;;
5381 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
5387 case ${enable_gdbmi} in
5389 if test -d "${srcdir}/mi" ; then
5390 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
5391 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
5392 CONFIG_SRCS="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
5393 CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
5394 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
5395 CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
5396 CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
5397 CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
5398 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
5403 # Check whether --enable-tui or --disable-tui was given.
5404 if test "${enable_tui+set}" = set; then
5405 enableval="$enable_tui"
5407 case "${enable_tui}" in
5409 "") enable_tui=yes ;;
5411 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5417 case ${enable_tui} in
5419 cat >> confdefs.h <<\EOF
5424 TUI_LIBRARY=tui/libtui.a
5434 # Check whether --enable-netrom or --disable-netrom was given.
5435 if test "${enable_netrom+set}" = set; then
5436 enableval="$enable_netrom"
5437 case "${enableval}" in
5438 yes) enable_netrom=yes ;;
5439 no) enable_netrom=no ;;
5440 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5445 if test "${enable_netrom}" = "yes"; then
5446 CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
5447 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
5451 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5452 -Wformat -Wparentheses -Wpointer-arith"
5453 # Not yet: -Wall -Wpointer-arith -Wstrict-prototypes
5454 # -Wmissing-prototypes -Wmissing-declarations
5455 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5456 if test "${enable_build_warnings+set}" = set; then
5457 enableval="$enable_build_warnings"
5458 case "${enableval}" in
5460 no) build_warnings="-w";;
5461 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5462 build_warnings="${build_warnings} ${t}";;
5463 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5464 build_warnings="${t} ${build_warnings}";;
5465 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5467 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5468 echo "Setting warning flags = $build_warnings" 6>&1
5473 if test "x${build_warnings}" != x -a "x$GCC" = xyes
5475 # Separate out the -Werror flag as some files just cannot be
5476 # compiled with it enabled.
5477 for w in ${build_warnings}; do
5479 -Werr*) WERROR_CFLAGS=-Werror ;;
5480 *) WARN_CFLAGS="${WARN_CFLAGS} $w"
5492 # Check whether --with-mmalloc or --without-mmalloc was given.
5493 if test "${with_mmalloc+set}" = set; then
5494 withval="$with_mmalloc"
5495 case "${withval}" in
5496 yes) want_mmalloc=true ;;
5497 no) want_mmalloc=false;;
5498 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5504 if test x$want_mmalloc = xtrue; then
5505 cat >> confdefs.h <<\EOF
5506 #define USE_MMALLOC 1
5509 cat >> confdefs.h <<\EOF
5510 #define MMCHECK_FORCE 1
5513 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
5514 MMALLOC='../mmalloc/libmmalloc.a'
5517 # Check whether --with-included-regex or --without-included-regex was given.
5518 if test "${with_included_regex+set}" = set; then
5519 withval="$with_included_regex"
5520 case "${withval}" in
5521 yes) want_included_regex=true ;;
5522 no) want_included_regex=false;;
5523 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
5526 want_included_regex=true
5529 if test $want_included_regex = false; then
5530 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
5531 echo "configure:5532: checking for GNU regex" >&5
5532 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
5533 echo $ac_n "(cached) $ac_c" 1>&6
5535 cat > conftest.$ac_ext <<EOF
5536 #line 5537 "configure"
5537 #include "confdefs.h"
5538 #include <gnu-versions.h>
5539 #include <sys/types.h>
5542 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
5543 #error No valid GNU regex.
5548 if { (eval echo configure:5549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5550 gdb_cv_have_gnu_regex=yes
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 gdb_cv_have_gnu_regex=no
5560 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
5561 if test $gdb_cv_have_gnu_regex = no; then
5562 want_included_regex=true
5566 if test x${want_included_regex} = xtrue; then
5568 cat >> confdefs.h <<\EOF
5569 #define USE_INCLUDED_REGEX 1
5575 # In the Cygwin environment, we need some additional flags.
5576 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5577 echo "configure:5578: checking for cygwin" >&5
5578 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5585 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5590 egrep "lose" >/dev/null 2>&1; then
5592 gdb_cv_os_cygwin=yes
5601 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5603 DLLTOOL=${DLLTOOL-dlltool}
5604 WINDRES=${WINDRES-windres}
5608 if test x$gdb_host = xgo32; then
5611 if test x$gdb_cv_os_cygwin = xyes; then
5612 TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5615 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5616 echo "configure:5617: checking for tgetent in -lncurses" >&5
5617 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 ac_save_LIBS="$LIBS"
5622 LIBS="-lncurses $LIBS"
5623 cat > conftest.$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5626 /* Override any gcc2 internal prototype to avoid an error. */
5627 /* We use char because int might match the return type of a gcc2
5628 builtin and then its argument prototype would still apply. */
5635 if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5637 eval "ac_cv_lib_$ac_lib_var=yes"
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5642 eval "ac_cv_lib_$ac_lib_var=no"
5645 LIBS="$ac_save_LIBS"
5648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5652 echo "$ac_t""no" 1>&6
5653 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5654 echo "configure:5655: checking for tgetent in -lHcurses" >&5
5655 ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5657 echo $ac_n "(cached) $ac_c" 1>&6
5659 ac_save_LIBS="$LIBS"
5660 LIBS="-lHcurses $LIBS"
5661 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5673 if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5675 eval "ac_cv_lib_$ac_lib_var=yes"
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5680 eval "ac_cv_lib_$ac_lib_var=no"
5683 LIBS="$ac_save_LIBS"
5686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5687 echo "$ac_t""yes" 1>&6
5690 echo "$ac_t""no" 1>&6
5691 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5692 echo "configure:5693: checking for tgetent in -ltermlib" >&5
5693 ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5695 echo $ac_n "(cached) $ac_c" 1>&6
5697 ac_save_LIBS="$LIBS"
5698 LIBS="-ltermlib $LIBS"
5699 cat > conftest.$ac_ext <<EOF
5700 #line 5701 "configure"
5701 #include "confdefs.h"
5702 /* Override any gcc2 internal prototype to avoid an error. */
5703 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */
5711 if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5713 eval "ac_cv_lib_$ac_lib_var=yes"
5715 echo "configure: failed program was:" >&5
5716 cat conftest.$ac_ext >&5
5718 eval "ac_cv_lib_$ac_lib_var=no"
5721 LIBS="$ac_save_LIBS"
5724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5725 echo "$ac_t""yes" 1>&6
5728 echo "$ac_t""no" 1>&6
5729 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5730 echo "configure:5731: checking for tgetent in -ltermcap" >&5
5731 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5735 ac_save_LIBS="$LIBS"
5736 LIBS="-ltermcap $LIBS"
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 /* Override any gcc2 internal prototype to avoid an error. */
5741 /* We use char because int might match the return type of a gcc2
5742 builtin and then its argument prototype would still apply. */
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 eval "ac_cv_lib_$ac_lib_var=yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5756 eval "ac_cv_lib_$ac_lib_var=no"
5759 LIBS="$ac_save_LIBS"
5762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5763 echo "$ac_t""yes" 1>&6
5766 echo "$ac_t""no" 1>&6
5767 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5768 echo "configure:5769: checking for tgetent in -lcurses" >&5
5769 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 ac_save_LIBS="$LIBS"
5774 LIBS="-lcurses $LIBS"
5775 cat > conftest.$ac_ext <<EOF
5776 #line 5777 "configure"
5777 #include "confdefs.h"
5778 /* Override any gcc2 internal prototype to avoid an error. */
5779 /* We use char because int might match the return type of a gcc2
5780 builtin and then its argument prototype would still apply. */
5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5789 eval "ac_cv_lib_$ac_lib_var=yes"
5791 echo "configure: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5794 eval "ac_cv_lib_$ac_lib_var=no"
5797 LIBS="$ac_save_LIBS"
5800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5804 echo "$ac_t""no" 1>&6
5805 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5806 echo "configure:5807: checking for tgetent in -lterminfo" >&5
5807 ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5811 ac_save_LIBS="$LIBS"
5812 LIBS="-lterminfo $LIBS"
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5827 eval "ac_cv_lib_$ac_lib_var=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_lib_$ac_lib_var=no"
5835 LIBS="$ac_save_LIBS"
5838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5839 echo "$ac_t""yes" 1>&6
5842 echo "$ac_t""no" 1>&6
5856 if test "x$TERM_LIB" = x
5858 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5864 # libreadline needs libuser32.a in a cygwin environment
5866 if test x$gdb_cv_os_cygwin = xyes; then
5867 WIN32LIBS="-luser32"
5869 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
5875 LIBGUI="../libgui/src/libgui.a"
5876 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
5880 # Check whether --with-cpu or --without-cpu was given.
5881 if test "${with_cpu+set}" = set; then
5884 powerpc-* | powerpcle-* )
5885 ## It would be nice to keep this table in sync with the one in
5887 case "${with_cpu}" in
5888 ppc-uisa | rs6000 | 403 | 403GC | 505 | 860 | 601 | 602 | 603 \
5890 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5892 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1 )
5893 ## These are all RS6000 variants, as far as GDB is concerned.
5903 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5909 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5912 cat >> confdefs.h <<EOF
5913 #define TARGET_CPU_DEFAULT "${with_cpu}"
5921 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5922 if test "${enable_gdbtk+set}" = set; then
5923 enableval="$enable_gdbtk"
5924 case "${enableval}" in
5928 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5931 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5939 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5943 # Default is on for everything but go32 and Cygwin
5948 if test -d "${srcdir}/gdbtk" ; then
5964 if test "${enable_gdbtk}" = "yes"; then
5968 # Ok, lets find the tcl configuration
5969 # First, look for one uninstalled.
5970 # the alternative search directory is invoked by --with-tclconfig
5973 if test x"${no_tcl}" = x ; then
5974 # we reset no_tcl in case something fails here
5976 # Check whether --with-tclconfig or --without-tclconfig was given.
5977 if test "${with_tclconfig+set}" = set; then
5978 withval="$with_tclconfig"
5979 with_tclconfig=${withval}
5982 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5983 echo "configure:5984: checking for Tcl configuration" >&5
5984 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5989 # First check to see if --with-tclconfig was specified.
5990 if test x"${with_tclconfig}" != x ; then
5991 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5992 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
5994 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5998 # then check for a private Tcl installation
5999 if test x"${ac_cv_c_tclconfig}" = x ; then
6002 `ls -dr ../tcl[7-9]* 2>/dev/null` \
6004 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
6006 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
6007 if test -f "$i/${configdir}/tclConfig.sh" ; then
6008 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
6013 # check in a few common install locations
6014 if test x"${ac_cv_c_tclconfig}" = x ; then
6015 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6016 if test -f "$i/tclConfig.sh" ; then
6017 ac_cv_c_tclconfig=`(cd $i; pwd)`
6022 # check in a few other private locations
6023 if test x"${ac_cv_c_tclconfig}" = x ; then
6026 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
6027 if test -f "$i/${configdir}/tclConfig.sh" ; then
6028 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
6036 if test x"${ac_cv_c_tclconfig}" = x ; then
6037 TCLCONFIG="# no Tcl configs found"
6038 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
6041 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
6042 echo "$ac_t""found $TCLCONFIG" 1>&6
6046 if test -z "${no_tcl}"; then
6076 # Ok, lets find the tk configuration
6077 # First, look for one uninstalled.
6078 # the alternative search directory is invoked by --with-tkconfig
6081 if test x"${no_tk}" = x ; then
6082 # we reset no_tk in case something fails here
6084 # Check whether --with-tkconfig or --without-tkconfig was given.
6085 if test "${with_tkconfig+set}" = set; then
6086 withval="$with_tkconfig"
6087 with_tkconfig=${withval}
6090 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
6091 echo "configure:6092: checking for Tk configuration" >&5
6092 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6097 # First check to see if --with-tkconfig was specified.
6098 if test x"${with_tkconfig}" != x ; then
6099 if test -f "${with_tkconfig}/tkConfig.sh" ; then
6100 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
6102 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
6106 # then check for a private Tk library
6107 if test x"${ac_cv_c_tkconfig}" = x ; then
6110 `ls -dr ../tk[4-9]* 2>/dev/null` \
6112 `ls -dr ../../tk[4-9]* 2>/dev/null` \
6114 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
6115 if test -f "$i/${configdir}/tkConfig.sh" ; then
6116 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
6121 # check in a few common install locations
6122 if test x"${ac_cv_c_tkconfig}" = x ; then
6123 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6124 if test -f "$i/tkConfig.sh" ; then
6125 ac_cv_c_tkconfig=`(cd $i; pwd)`
6130 # check in a few other private locations
6131 if test x"${ac_cv_c_tkconfig}" = x ; then
6134 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
6135 if test -f "$i/${configdir}/tkConfig.sh" ; then
6136 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
6144 if test x"${ac_cv_c_tkconfig}" = x ; then
6145 TKCONFIG="# no Tk configs found"
6146 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
6149 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
6150 echo "$ac_t""found $TKCONFIG" 1>&6
6156 # If $no_tk is nonempty, then we can't do Tk, and there is no
6157 # point to doing Tcl.
6158 if test -z "${no_tk}"; then
6160 if test -f "$TKCONFIG" ; then
6178 # Ok, lets find the tcl source trees so we can use the headers
6179 # Warning: transition of version 9 to 10 will break this algorithm
6180 # because 10 sorts before 9. We also look for just tcl. We have to
6181 # be careful that we don't match stuff like tclX by accident.
6182 # the alternative search directory is involked by --with-tclinclude
6186 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6187 echo "configure:6188: checking for Tcl private headers. dir=${configdir}" >&5
6188 # Check whether --with-tclinclude or --without-tclinclude was given.
6189 if test "${with_tclinclude+set}" = set; then
6190 withval="$with_tclinclude"
6191 with_tclinclude=${withval}
6194 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6198 # first check to see if --with-tclinclude was specified
6199 if test x"${with_tclinclude}" != x ; then
6200 if test -f ${with_tclinclude}/tclInt.h ; then
6201 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
6202 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
6203 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
6205 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6209 # next check if it came with Tcl configuration file
6210 if test x"${ac_cv_c_tclconfig}" = x ; then
6211 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
6212 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
6216 # next check in private source directory
6218 # since ls returns lowest version numbers first, reverse its output
6219 if test x"${ac_cv_c_tclh}" = x ; then
6222 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6223 ${srcdir}/../../tcl \
6224 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6225 ${srcdir}/../../../tcl \
6226 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6227 if test -f $i/generic/tclInt.h ; then
6228 ac_cv_c_tclh=`(cd $i/generic; pwd)`
6233 # finally check in a few common install locations
6235 # since ls returns lowest version numbers first, reverse its output
6236 if test x"${ac_cv_c_tclh}" = x ; then
6238 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6239 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6240 /usr/local/src/tcl \
6241 /usr/local/lib/tcl \
6242 ${prefix}/include ; do
6243 if test -f $i/generic/tclInt.h ; then
6244 ac_cv_c_tclh=`(cd $i/generic; pwd)`
6249 # see if one is installed
6250 if test x"${ac_cv_c_tclh}" = x ; then
6251 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6252 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6253 echo "configure:6254: checking for tclInt.h" >&5
6254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6255 echo $ac_n "(cached) $ac_c" 1>&6
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6263 { (eval echo configure:6264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6265 if test -z "$ac_err"; then
6267 eval "ac_cv_header_$ac_safe=yes"
6270 echo "configure: failed program was:" >&5
6271 cat conftest.$ac_ext >&5
6273 eval "ac_cv_header_$ac_safe=no"
6277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6278 echo "$ac_t""yes" 1>&6
6279 ac_cv_c_tclh=installed
6281 echo "$ac_t""no" 1>&6
6289 if test x"${ac_cv_c_tclh}" = x ; then
6290 TCLHDIR="# no Tcl private headers found"
6291 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6293 if test x"${ac_cv_c_tclh}" != x ; then
6295 if test x"${ac_cv_c_tclh}" = x"installed" ; then
6296 echo "$ac_t""is installed" 1>&6
6299 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6300 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6301 TCLHDIR="-I${ac_cv_c_tclh}"
6309 # Ok, lets find the tk source trees so we can use the headers
6310 # If the directory (presumably symlink) named "tk" exists, use that one
6311 # in preference to any others. Same logic is used when choosing library
6312 # and again with Tcl. The search order is the best place to look first, then in
6313 # decreasing significance. The loop breaks if the trigger file is found.
6314 # Note the gross little conversion here of srcdir by cd'ing to the found
6315 # directory. This converts the path from a relative to an absolute, so
6316 # recursive cache variables for the path will work right. We check all
6317 # the possible paths in one loop rather than many seperate loops to speed
6319 # the alternative search directory is involked by --with-tkinclude
6322 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6323 echo "configure:6324: checking for Tk private headers" >&5
6324 # Check whether --with-tkinclude or --without-tkinclude was given.
6325 if test "${with_tkinclude+set}" = set; then
6326 withval="$with_tkinclude"
6327 with_tkinclude=${withval}
6330 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6334 # first check to see if --with-tkinclude was specified
6335 if test x"${with_tkinclude}" != x ; then
6336 if test -f ${with_tkinclude}/tk.h ; then
6337 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
6338 elif test -f ${with_tkinclude}/generic/tk.h ; then
6339 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
6341 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6345 # next check if it came with Tk configuration file
6346 if test x"${ac_cv_c_tkconfig}" = x ; then
6347 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
6348 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
6352 # next check in private source directory
6354 # since ls returns lowest version numbers first, reverse its output
6355 if test x"${ac_cv_c_tkh}" = x ; then
6358 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6359 ${srcdir}/../../tk \
6360 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6361 ${srcdir}/../../../tk \
6362 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6363 if test -f $i/generic/tk.h ; then
6364 ac_cv_c_tkh=`(cd $i/generic; pwd)`
6369 # finally check in a few common install locations
6371 # since ls returns lowest version numbers first, reverse its output
6372 if test x"${ac_cv_c_tkh}" = x ; then
6374 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6375 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6378 ${prefix}/include ; do
6379 if test -f $i/generic/tk.h ; then
6380 ac_cv_c_tkh=`(cd $i/generic; pwd)`
6385 # see if one is installed
6386 if test x"${ac_cv_c_tkh}" = x ; then
6387 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
6388 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6389 echo "configure:6390: checking for tk.h" >&5
6390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6391 echo $ac_n "(cached) $ac_c" 1>&6
6393 cat > conftest.$ac_ext <<EOF
6394 #line 6395 "configure"
6395 #include "confdefs.h"
6398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6399 { (eval echo configure:6400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6401 if test -z "$ac_err"; then
6403 eval "ac_cv_header_$ac_safe=yes"
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 eval "ac_cv_header_$ac_safe=no"
6413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6414 echo "$ac_t""yes" 1>&6
6415 ac_cv_c_tkh=installed
6417 echo "$ac_t""no" 1>&6
6425 if test x"${ac_cv_c_tkh}" != x ; then
6427 if test x"${ac_cv_c_tkh}" = x"installed" ; then
6428 echo "$ac_t""is installed" 1>&6
6431 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6432 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6433 TKHDIR="-I${ac_cv_c_tkh}"
6436 TKHDIR="# no Tk directory found"
6437 echo "configure: warning: Can't find Tk private headers" 1>&2
6444 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6445 echo "configure:6446: checking for Itcl private headers. srcdir=${srcdir}" >&5
6446 if test x"${ac_cv_c_itclh}" = x ; then
6447 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
6448 if test -f $i/generic/itcl.h ; then
6449 ac_cv_c_itclh=`(cd $i/generic; pwd)`
6454 if test x"${ac_cv_c_itclh}" = x ; then
6455 ITCLHDIR="# no Itcl private headers found"
6456 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6458 if test x"${ac_cv_c_itclh}" != x ; then
6459 ITCLHDIR="-I${ac_cv_c_itclh}"
6461 # should always be here
6462 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6467 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6468 echo "configure:6469: checking for Itk private headers. srcdir=${srcdir}" >&5
6469 if test x"${ac_cv_c_itkh}" = x ; then
6470 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
6471 if test -f $i/generic/itk.h ; then
6472 ac_cv_c_itkh=`(cd $i/generic; pwd)`
6477 if test x"${ac_cv_c_itkh}" = x ; then
6478 ITKHDIR="# no Itk private headers found"
6479 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6481 if test x"${ac_cv_c_itkh}" != x ; then
6482 ITKHDIR="-I${ac_cv_c_itkh}"
6484 # should always be here
6485 # ITKLIB="../itcl/itk/unix/libitk.a"
6490 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6491 echo "configure:6492: checking for Tix private headers. srcdir=${srcdir}" >&5
6492 if test x"${ac_cv_c_tixh}" = x ; then
6493 for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
6494 if test -f $i/generic/tix.h ; then
6495 ac_cv_c_tixh=`(cd $i/generic; pwd)`
6500 if test x"${ac_cv_c_tixh}" = x ; then
6501 TIXHDIR="# no Tix private headers found"
6502 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6504 if test x"${ac_cv_c_tixh}" != x ; then
6505 TIXHDIR="-I${ac_cv_c_tixh}"
6510 # now look for Itcl library stuff
6514 # Ok, lets find the itcl configuration
6515 # First, look for one uninstalled.
6516 # the alternative search directory is invoked by --with-itclconfig
6519 if test x"${no_itcl}" = x ; then
6520 # we reset no_itcl in case something fails here
6522 # Check whether --with-itclconfig or --without-itclconfig was given.
6523 if test "${with_itclconfig+set}" = set; then
6524 withval="$with_itclconfig"
6525 with_itclconfig=${withval}
6528 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6529 echo "configure:6530: checking for Itcl configuration" >&5
6530 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6535 # First check to see if --with-itclconfig was specified.
6536 if test x"${with_itclconfig}" != x ; then
6537 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6538 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
6540 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6544 # then check for a private Itcl library
6545 if test x"${ac_cv_c_itclconfig}" = x ; then
6548 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6550 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6552 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6553 if test -f "$i/itclConfig.sh" ; then
6554 ac_cv_c_itclconfig=`(cd $i; pwd)`
6559 # check in a few common install locations
6560 if test x"${ac_cv_c_itclconfig}" = x ; then
6561 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6562 if test -f "$i/itclConfig.sh" ; then
6563 ac_cv_c_itclconfig=`(cd $i; pwd)`
6568 # check in a few other private locations
6569 if test x"${ac_cv_c_itclconfig}" = x ; then
6571 ${srcdir}/../itcl/itcl \
6572 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6573 if test -f "$i/itclConfig.sh" ; then
6574 ac_cv_c_itclconfig=`(cd $i; pwd)`
6582 if test x"${ac_cv_c_itclconfig}" = x ; then
6583 ITCLCONFIG="# no Itcl configs found"
6584 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6587 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
6588 echo "$ac_t""found $ITCLCONFIG" 1>&6
6592 if test -z "${no_itcl}"; then
6594 if test -f "$ITCLCONFIG" ; then
6610 itcldir=../itcl/itcl/win/
6613 itcldir=../itcl/itcl/unix/
6618 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
6619 ITCL_DEPS="${itcldir}${ITCL_LIB_FILE}"
6623 # now look for Itk library stuff
6626 # Ok, lets find the itk configuration
6627 # First, look for one uninstalled.
6628 # the alternative search directory is invoked by --with-itkconfig
6631 if test x"${no_itk}" = x ; then
6632 # we reset no_itk in case something fails here
6634 # Check whether --with-itkconfig or --without-itkconfig was given.
6635 if test "${with_itkconfig+set}" = set; then
6636 withval="$with_itkconfig"
6637 with_itkconfig=${withval}
6640 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6641 echo "configure:6642: checking for Itk configuration" >&5
6642 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6647 # First check to see if --with-itkconfig was specified.
6648 if test x"${with_itkconfig}" != x ; then
6649 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6650 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
6652 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6656 # then check for a private Itk library
6657 if test x"${ac_cv_c_itkconfig}" = x ; then
6660 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6662 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6664 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6665 if test -f "$i/itkConfig.sh" ; then
6666 ac_cv_c_itkconfig=`(cd $i; pwd)`
6671 # check in a few common install locations
6672 if test x"${ac_cv_c_itkconfig}" = x ; then
6673 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6674 if test -f "$i/itkConfig.sh" ; then
6675 ac_cv_c_itkconfig=`(cd $i; pwd)`
6680 # check in a few other private locations
6681 if test x"${ac_cv_c_itkconfig}" = x ; then
6683 ${srcdir}/../itcl/itk \
6684 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6685 if test -f "$i/itkConfig.sh" ; then
6686 ac_cv_c_itkconfig=`(cd $i; pwd)`
6694 if test x"${ac_cv_c_itkconfig}" = x ; then
6695 ITKCONFIG="# no Itk configs found"
6696 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6699 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
6700 echo "$ac_t""found $ITKCONFIG" 1>&6
6705 if test -z "${no_itcl}"; then
6707 if test -f "$ITKCONFIG" ; then
6724 itkdir=../itcl/itk/win/
6727 itkdir=../itcl/itk/unix/
6731 ITKLIB="${ITK_BUILD_LIB_SPEC}"
6732 ITK_DEPS="${itkdir}${ITK_LIB_FILE}"
6735 # now look for Tix library stuff
6738 # Ok, lets find the tix configuration
6739 # First, look for one uninstalled.
6740 # the alternative search directory is invoked by --with-itkconfig
6743 if test x"${no_tix}" = x ; then
6744 # we reset no_tix in case something fails here
6746 # Check whether --with-tixconfig or --without-tixconfig was given.
6747 if test "${with_tixconfig+set}" = set; then
6748 withval="$with_tixconfig"
6749 with_tixconfig=${withval}
6752 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6753 echo "configure:6754: checking for Tix configuration" >&5
6754 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6759 # First check to see if --with-tixconfig was specified.
6760 if test x"${with_tixconfig}" != x ; then
6761 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6762 ac_cv_c_tixconfig=`(cd ${with_tixconfig}; pwd)`
6764 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6768 # then check for a private Tix library
6769 if test x"${ac_cv_c_tixconfig}" = x ; then
6772 `ls -dr ../tix 2>/dev/null` \
6774 `ls -dr ../../tix 2>/dev/null` \
6776 `ls -dr ../../../tix 2>/dev/null` ; do
6777 echo "**** Looking at $i - with ${configdir}"
6778 if test -f "$i/tixConfig.sh" ; then
6779 ac_cv_c_tixconfig=`(cd $i; pwd)`
6784 # check in a few common install locations
6785 if test x"${ac_cv_c_tixconfig}" = x ; then
6786 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6787 echo "**** Looking at $i"
6788 if test -f "$i/tixConfig.sh" ; then
6789 ac_cv_c_tixconfig=`(cd $i; pwd)`
6794 # check in a few other private locations
6795 echo "**** Other private locations"
6796 if test x"${ac_cv_c_tixconfig}" = x ; then
6799 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6800 echo "**** Looking at $i - with ${configdir}"
6801 if test -f "$i/${configdir}/tixConfig.sh" ; then
6802 ac_cv_c_tixconfig=`(cd $i/${configdir}; pwd)`
6810 if test x"${ac_cv_c_tixconfig}" = x ; then
6811 TIXCONFIG="# no Tix configs found"
6812 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6815 TIXCONFIG=${ac_cv_c_tixconfig}/tixConfig.sh
6816 echo "$ac_t""found $TIXCONFIG" 1>&6
6821 if test -z "${no_tix}"; then
6823 if test -f "$TIXCONFIG" ; then
6834 TIXLIB="${TIX_BUILD_LIB_SPEC}"
6835 TIX_DEPS="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
6838 ENABLE_CFLAGS="$ENABLE_CFLAGS -DGDBTK"
6839 # Tcl/Tk 8.1 require -fwritable strings. I don't
6840 # know whether 8.2 will or not, but I bet it will.
6841 # I don't have to worry about 7.x since we don't support it.
6843 if test "$GCC" = "yes"; then
6844 if test "$TCL_VERSION" != "8.0" ; then
6845 GDBTK_CFLAGS="-fwritable-strings"
6849 # Include some libraries that Tcl and Tk want.
6850 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6851 CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6852 # Yes, the ordering seems wrong here. But it isn't.
6853 # TK_LIBS is the list of libraries that need to be linked
6854 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6855 # were in LIBS then any link tests after this point would
6856 # try to include things like `$(LIBGUI)', which wouldn't work.
6857 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
6858 CONFIG_SRCS="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
6859 CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
6860 CONFIG_INITS="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
6861 CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
6862 CONFIG_CLEAN="${CONFIG_ALL} \$(SUBDIR_GDBTK_CLEAN)"
6863 CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
6864 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
6866 if test x$gdb_cv_os_cygwin = xyes; then
6867 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
6868 WIN32LDAPP="-Wl,--subsystem,console"
6869 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
6887 # If we find X, set shell vars x_includes and x_libraries to the
6888 # paths, otherwise set no_x=yes.
6889 # Uses ac_ vars as temps to allow command line to override cache and checks.
6890 # --without-x overrides everything else, but does not touch the cache.
6891 echo $ac_n "checking for X""... $ac_c" 1>&6
6892 echo "configure:6893: checking for X" >&5
6894 # Check whether --with-x or --without-x was given.
6895 if test "${with_x+set}" = set; then
6900 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6901 if test "x$with_x" = xno; then
6902 # The user explicitly disabled X.
6905 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6906 # Both variables are already set.
6909 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6912 # One or both of the vars are not set, and there is no cached value.
6913 ac_x_includes=NO ac_x_libraries=NO
6915 if mkdir conftestdir; then
6917 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6918 cat > Imakefile <<'EOF'
6920 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6922 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6924 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6925 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6926 for ac_extension in a so sl; do
6927 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6928 test -f $ac_im_libdir/libX11.$ac_extension; then
6929 ac_im_usrlibdir=$ac_im_libdir; break
6932 # Screen out bogus values from the imake configuration. They are
6933 # bogus both because they are the default anyway, and because
6934 # using them would break gcc on systems where it needs fixed includes.
6935 case "$ac_im_incroot" in
6937 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6939 case "$ac_im_usrlibdir" in
6941 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6948 if test "$ac_x_includes" = NO; then
6949 # Guess where to find include files, by looking for this one X11 .h file.
6950 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6952 # First, try using that file with no special directory specified.
6953 cat > conftest.$ac_ext <<EOF
6954 #line 6955 "configure"
6955 #include "confdefs.h"
6956 #include <$x_direct_test_include>
6958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6959 { (eval echo configure:6960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6961 if test -z "$ac_err"; then
6963 # We can compile using X headers with no special include directory.
6967 echo "configure: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6970 # Look for the header file in a standard set of common directories.
6971 # Check X11 before X11Rn because it is often a symlink to the current release.
6974 /usr/X11R6/include \
6975 /usr/X11R5/include \
6976 /usr/X11R4/include \
6979 /usr/include/X11R6 \
6980 /usr/include/X11R5 \
6981 /usr/include/X11R4 \
6983 /usr/local/X11/include \
6984 /usr/local/X11R6/include \
6985 /usr/local/X11R5/include \
6986 /usr/local/X11R4/include \
6988 /usr/local/include/X11 \
6989 /usr/local/include/X11R6 \
6990 /usr/local/include/X11R5 \
6991 /usr/local/include/X11R4 \
6995 /usr/XFree86/include/X11 \
6998 /usr/local/include \
6999 /usr/unsupported/include \
7000 /usr/athena/include \
7001 /usr/local/x11r5/include \
7002 /usr/lpp/Xamples/include \
7004 /usr/openwin/include \
7005 /usr/openwin/share/include \
7008 if test -r "$ac_dir/$x_direct_test_include"; then
7009 ac_x_includes=$ac_dir
7015 fi # $ac_x_includes = NO
7017 if test "$ac_x_libraries" = NO; then
7018 # Check for the libraries.
7020 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7021 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7023 # See if we find them without any special options.
7024 # Don't add to $LIBS permanently.
7025 ac_save_LIBS="$LIBS"
7026 LIBS="-l$x_direct_test_library $LIBS"
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7032 ${x_direct_test_function}()
7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7037 LIBS="$ac_save_LIBS"
7038 # We can link X programs with no special library path.
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7044 LIBS="$ac_save_LIBS"
7045 # First see if replacing the include by lib works.
7046 # Check X11 before X11Rn because it is often a symlink to the current release.
7047 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7058 /usr/local/X11/lib \
7059 /usr/local/X11R6/lib \
7060 /usr/local/X11R5/lib \
7061 /usr/local/X11R4/lib \
7063 /usr/local/lib/X11 \
7064 /usr/local/lib/X11R6 \
7065 /usr/local/lib/X11R5 \
7066 /usr/local/lib/X11R4 \
7070 /usr/XFree86/lib/X11 \
7074 /usr/unsupported/lib \
7076 /usr/local/x11r5/lib \
7077 /usr/lpp/Xamples/lib \
7081 /usr/openwin/share/lib \
7084 for ac_extension in a so sl; do
7085 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7086 ac_x_libraries=$ac_dir
7093 fi # $ac_x_libraries = NO
7095 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7096 # Didn't find X anywhere. Cache the known absence of X.
7097 ac_cv_have_x="have_x=no"
7099 # Record where we found X for the cache.
7100 ac_cv_have_x="have_x=yes \
7101 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7105 eval "$ac_cv_have_x"
7108 if test "$have_x" != yes; then
7109 echo "$ac_t""$have_x" 1>&6
7112 # If each of the values was on the command line, it overrides each guess.
7113 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7114 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7115 # Update the cache value to reflect the command line values.
7116 ac_cv_have_x="have_x=yes \
7117 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7118 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7123 # Unlike the sim directory, whether a simulator is linked is controlled by
7124 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7125 # This code just checks for a few cases where we'd like to ignore those
7126 # definitions, even when they're present in the '.mt' file. These cases
7127 # are when --disable-sim is specified, or if the simulator directory is
7128 # not part of the soruce tree.
7130 # Check whether --enable-sim or --disable-sim was given.
7131 if test "${enable_sim+set}" = set; then
7132 enableval="$enable_sim"
7133 echo "enable_sim = $enable_sim";
7134 echo "enableval = ${enableval}";
7135 case "${enableval}" in
7136 yes) ignore_sim=false ;;
7137 no) ignore_sim=true ;;
7138 *) ignore_sim=false ;;
7145 if test ! -d "${srcdir}/../sim"; then
7149 if test "${ignore_sim}" = "true"; then
7151 IGNORE_SIM_OBS="SIM_OBS="
7155 cat >> confdefs.h <<\EOF
7174 # Begin stuff to support --enable-shared
7175 # Check whether --enable-shared or --disable-shared was given.
7176 if test "${enable_shared+set}" = set; then
7177 enableval="$enable_shared"
7178 case "${enableval}" in
7187 # If we have shared libraries, try to set rpath reasonably.
7188 if test "${shared}" = "true"; then
7191 HLDFLAGS='-Wl,+s,+b,$(libdir)'
7193 *-*-irix5* | *-*-irix6*)
7194 HLDFLAGS='-Wl,-rpath,$(libdir)'
7198 *-*-linux* | *-pc-linux-gnu*)
7199 HLDFLAGS='-Wl,-rpath,$(libdir)'
7202 HLDFLAGS='-R $(libdir)'
7205 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;'
7210 # On SunOS, if the linker supports the -rpath option, use it to
7211 # prevent ../bfd and ../opcodes from being included in the run time
7215 echo 'main () { }' > conftest.c
7216 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
7217 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
7219 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
7221 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
7223 elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
7225 elif test "${shared}" = "true"; then
7226 HLDFLAGS='-Wl,-rpath=$(libdir)'
7228 HLDFLAGS='-Wl,-rpath='
7230 rm -f conftest.t conftest.c conftest
7235 # End stuff to support --enable-shared
7237 # target_subdir is used by the testsuite to find the target libraries.
7239 if test "${host}" != "${target}"; then
7240 target_subdir="${target_alias}/"
7245 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7246 if test ! -f ${host_makefile_frag}; then
7247 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
7249 frags="$frags $host_makefile_frag"
7251 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7252 if test ! -f ${target_makefile_frag}; then
7253 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
7255 frags="$frags $target_makefile_frag"
7262 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7263 ' ${host_makefile_frag}`
7265 targetfile=`sed -n '
7266 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7267 ' ${target_makefile_frag}`
7269 # these really aren't orthogonal true/false values of the same condition,
7270 # but shells are slow enough that I like to reuse the test conditions
7272 if test "${target}" = "${host}"; then
7273 nativefile=`sed -n '
7274 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7275 ' ${host_makefile_frag}`
7277 # GDBserver is only useful in a "native" enviroment
7278 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7282 SUBDIRS="doc testsuite nlm"
7283 if test "${enable_multi_ice}" = "yes"; then
7284 SUBDIRS="${SUBDIRS} multi-ice"
7289 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7290 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
7291 # corresponding links. But we have to remove the xm.h files and tm.h
7292 # files anyway, e.g. when switching from "configure host" to
7298 if test "${hostfile}" != ""; then
7299 files="${files} config/${gdb_host_cpu}/${hostfile}"
7300 links="${links} xm.h"
7303 if test "${targetfile}" != ""; then
7304 files="${files} config/${gdb_target_cpu}/${targetfile}"
7305 links="${links} tm.h"
7308 if test "${nativefile}" != ""; then
7309 files="${files} config/${gdb_host_cpu}/${nativefile}"
7310 links="${links} nm.h"
7312 # A cross-only configuration.
7313 files="${files} config/nm-empty.h"
7314 links="${links} nm.h"
7316 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7317 echo "configure:7318: checking whether ln -s works" >&5
7318 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7319 echo $ac_n "(cached) $ac_c" 1>&6
7322 if ln -s X conftestdata 2>/dev/null
7325 ac_cv_prog_LN_S="ln -s"
7330 LN_S="$ac_cv_prog_LN_S"
7331 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7332 echo "$ac_t""yes" 1>&6
7334 echo "$ac_t""no" 1>&6
7340 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7341 echo "configure:7342: checking for Cygwin environment" >&5
7342 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7343 echo $ac_n "(cached) $ac_c" 1>&6
7345 cat > conftest.$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7352 #define __CYGWIN__ __CYGWIN32__
7357 if { (eval echo configure:7358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7361 echo "configure: failed program was:" >&5
7362 cat conftest.$ac_ext >&5
7370 echo "$ac_t""$ac_cv_cygwin" 1>&6
7372 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7373 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7374 echo "configure:7375: checking for mingw32 environment" >&5
7375 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7376 echo $ac_n "(cached) $ac_c" 1>&6
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7386 if { (eval echo configure:7387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7399 echo "$ac_t""$ac_cv_mingw32" 1>&6
7401 test "$ac_cv_mingw32" = yes && MINGW32=yes
7404 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7405 echo "configure:7406: checking for executable suffix" >&5
7406 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7407 echo $ac_n "(cached) $ac_c" 1>&6
7409 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
7413 echo 'int main () { return 0; }' > conftest.$ac_ext
7415 if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7416 for file in conftest.*; do
7418 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7419 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7423 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7426 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7431 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7432 echo "$ac_t""${ac_cv_exeext}" 1>&6
7436 subdirs="$configdirs"
7439 cat > confcache <<\EOF
7440 # This file is a shell script that caches the results of configure
7441 # tests run on this system so they can be shared between configure
7442 # scripts and configure runs. It is not useful on other systems.
7443 # If it contains results you don't want to keep, you may remove or edit it.
7445 # By default, configure uses ./config.cache as the cache file,
7446 # creating it if it does not exist already. You can give configure
7447 # the --cache-file=FILE option to use a different cache file; that is
7448 # what configure does when it calls configure scripts in
7449 # subdirectories, so they share the cache.
7450 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7451 # config.status only pays attention to the cache file if you give it the
7452 # --recheck option to rerun configure.
7455 # The following way of writing the cache mishandles newlines in values,
7456 # but we know of no workaround that is simple, portable, and efficient.
7457 # So, don't put newlines in cache variables' values.
7458 # Ultrix sh set writes to stderr and can't be redirected directly,
7459 # and sets the high bit in the cache file unless we assign to the vars.
7461 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7463 # `set' does not quote correctly, so add quotes (double-quote substitution
7464 # turns \\\\ into \\, and sed turns \\ into \).
7466 -e "s/'/'\\\\''/g" \
7467 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7470 # `set' quotes correctly as required by POSIX, so do not add quotes.
7471 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7474 if cmp -s $cache_file confcache; then
7477 if test -w $cache_file; then
7478 echo "updating cache $cache_file"
7479 cat confcache > $cache_file
7481 echo "not updating unwritable cache $cache_file"
7486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7489 # Let make expand exec_prefix.
7490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7492 # Any assignment to VPATH causes Sun make to only execute
7493 # the first set of double-colon rules, so remove it if not needed.
7494 # If there is a colon in the path, we need to keep it.
7495 if test "x$srcdir" = x.; then
7496 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7499 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7501 DEFS=-DHAVE_CONFIG_H
7503 # Without the "./", some shells look in PATH for config.status.
7504 : ${CONFIG_STATUS=./config.status}
7506 echo creating $CONFIG_STATUS
7507 rm -f $CONFIG_STATUS
7508 cat > $CONFIG_STATUS <<EOF
7510 # Generated automatically by configure.
7511 # Run this file to recreate the current configuration.
7512 # This directory was configured as follows,
7513 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7515 # $0 $ac_configure_args
7517 # Compiler output produced by configure, useful for debugging
7518 # configure, is in ./config.log if it exists.
7520 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7523 case "\$ac_option" in
7524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7525 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7526 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7527 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7528 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7530 -help | --help | --hel | --he | --h)
7531 echo "\$ac_cs_usage"; exit 0 ;;
7532 *) echo "\$ac_cs_usage"; exit 1 ;;
7536 ac_given_srcdir=$srcdir
7537 ac_given_INSTALL="$INSTALL"
7539 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7541 cat >> $CONFIG_STATUS <<EOF
7543 # Protect against being on the right side of a sed subst in config.status.
7544 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7545 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7549 s%@CFLAGS@%$CFLAGS%g
7550 s%@CPPFLAGS@%$CPPFLAGS%g
7551 s%@CXXFLAGS@%$CXXFLAGS%g
7552 s%@FFLAGS@%$FFLAGS%g
7554 s%@LDFLAGS@%$LDFLAGS%g
7556 s%@exec_prefix@%$exec_prefix%g
7557 s%@prefix@%$prefix%g
7558 s%@program_transform_name@%$program_transform_name%g
7559 s%@bindir@%$bindir%g
7560 s%@sbindir@%$sbindir%g
7561 s%@libexecdir@%$libexecdir%g
7562 s%@datadir@%$datadir%g
7563 s%@sysconfdir@%$sysconfdir%g
7564 s%@sharedstatedir@%$sharedstatedir%g
7565 s%@localstatedir@%$localstatedir%g
7566 s%@libdir@%$libdir%g
7567 s%@includedir@%$includedir%g
7568 s%@oldincludedir@%$oldincludedir%g
7569 s%@infodir@%$infodir%g
7570 s%@mandir@%$mandir%g
7571 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7572 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7577 s%@host_alias@%$host_alias%g
7578 s%@host_cpu@%$host_cpu%g
7579 s%@host_vendor@%$host_vendor%g
7580 s%@host_os@%$host_os%g
7581 s%@target@%$target%g
7582 s%@target_alias@%$target_alias%g
7583 s%@target_cpu@%$target_cpu%g
7584 s%@target_vendor@%$target_vendor%g
7585 s%@target_os@%$target_os%g
7587 s%@build_alias@%$build_alias%g
7588 s%@build_cpu@%$build_cpu%g
7589 s%@build_vendor@%$build_vendor%g
7590 s%@build_os@%$build_os%g
7591 s%@SET_MAKE@%$SET_MAKE%g
7592 s%@RANLIB@%$RANLIB%g
7593 s%@ALLOCA@%$ALLOCA%g
7594 s%@USE_NLS@%$USE_NLS%g
7595 s%@MSGFMT@%$MSGFMT%g
7596 s%@GMSGFMT@%$GMSGFMT%g
7597 s%@XGETTEXT@%$XGETTEXT%g
7598 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7599 s%@CATALOGS@%$CATALOGS%g
7600 s%@CATOBJEXT@%$CATOBJEXT%g
7601 s%@DATADIRNAME@%$DATADIRNAME%g
7602 s%@GMOFILES@%$GMOFILES%g
7603 s%@INSTOBJEXT@%$INSTOBJEXT%g
7604 s%@INTLDEPS@%$INTLDEPS%g
7605 s%@INTLLIBS@%$INTLLIBS%g
7606 s%@INTLOBJS@%$INTLOBJS%g
7607 s%@POFILES@%$POFILES%g
7609 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7611 s%@GT_YES@%$GT_YES%g
7612 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7615 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7616 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7617 s%@INSTALL_DATA@%$INSTALL_DATA%g
7621 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
7622 s%@BUILD_TUI@%$BUILD_TUI%g
7623 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
7624 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7625 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
7626 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
7627 s%@MMALLOC@%$MMALLOC%g
7629 s%@DLLTOOL@%$DLLTOOL%g
7630 s%@WINDRES@%$WINDRES%g
7631 s%@TERM_LIB@%$TERM_LIB%g
7632 s%@WIN32LIBS@%$WIN32LIBS%g
7633 s%@LIBGUI@%$LIBGUI%g
7634 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7635 s%@WIN32LDAPP@%$WIN32LDAPP%g
7636 s%@TCL_VERSION@%$TCL_VERSION%g
7637 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7638 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7639 s%@TCL_CC@%$TCL_CC%g
7640 s%@TCL_DEFS@%$TCL_DEFS%g
7641 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7642 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7643 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7644 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7645 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7646 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7647 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7648 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7649 s%@TCL_RANLIB@%$TCL_RANLIB%g
7650 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7651 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7652 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7653 s%@TK_VERSION@%$TK_VERSION%g
7654 s%@TK_DEFS@%$TK_DEFS%g
7655 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7656 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7657 s%@TK_XLIBSW@%$TK_XLIBSW%g
7658 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7659 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7660 s%@TCLHDIR@%$TCLHDIR%g
7661 s%@TKHDIR@%$TKHDIR%g
7662 s%@ITCLHDIR@%$ITCLHDIR%g
7663 s%@ITKHDIR@%$ITKHDIR%g
7664 s%@TIXHDIR@%$TIXHDIR%g
7665 s%@ITCL_VERSION@%$ITCL_VERSION%g
7666 s%@ITCL_DEFS@%$ITCL_DEFS%g
7667 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7668 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7669 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7670 s%@ITK_VERSION@%$ITK_VERSION%g
7671 s%@ITK_DEFS@%$ITK_DEFS%g
7672 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7673 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7674 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7675 s%@TIX_VERSION@%$TIX_VERSION%g
7676 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7677 s%@X_CFLAGS@%$X_CFLAGS%g
7678 s%@X_LDFLAGS@%$X_LDFLAGS%g
7679 s%@X_LIBS@%$X_LIBS%g
7680 s%@ITCLLIB@%$ITCLLIB%g
7681 s%@ITCL_DEPS@%$ITCL_DEPS%g
7682 s%@ITKLIB@%$ITKLIB%g
7683 s%@ITK_DEPS@%$ITK_DEPS%g
7684 s%@TIXLIB@%$TIXLIB%g
7685 s%@TIX_DEPS@%$TIX_DEPS%g
7686 s%@GDBTKLIBS@%$GDBTKLIBS%g
7687 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7688 s%@IGNORE_SIM@%$IGNORE_SIM%g
7689 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
7690 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7691 s%@CONFIG_OBS@%$CONFIG_OBS%g
7692 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7693 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7694 s%@CONFIG_INITS@%$CONFIG_INITS%g
7695 s%@CONFIG_ALL@%$CONFIG_ALL%g
7696 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
7697 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
7698 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
7699 s%@HLDFLAGS@%$HLDFLAGS%g
7700 s%@HLDENV@%$HLDENV%g
7701 s%@target_subdir@%$target_subdir%g
7702 /@host_makefile_frag@/r $host_makefile_frag
7703 s%@host_makefile_frag@%%g
7704 /@target_makefile_frag@/r $target_makefile_frag
7705 s%@target_makefile_frag@%%g
7707 s%@SUBDIRS@%$SUBDIRS%g
7709 s%@EXEEXT@%$EXEEXT%g
7710 s%@subdirs@%$subdirs%g
7715 cat >> $CONFIG_STATUS <<\EOF
7717 # Split the substitutions into bite-sized pieces for seds with
7718 # small command number limits, like on Digital OSF/1 and HP-UX.
7719 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7720 ac_file=1 # Number of current file.
7721 ac_beg=1 # First line for current file.
7722 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7725 while $ac_more_lines; do
7726 if test $ac_beg -gt 1; then
7727 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7729 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7731 if test ! -s conftest.s$ac_file; then
7733 rm -f conftest.s$ac_file
7735 if test -z "$ac_sed_cmds"; then
7736 ac_sed_cmds="sed -f conftest.s$ac_file"
7738 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7740 ac_file=`expr $ac_file + 1`
7742 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7745 if test -z "$ac_sed_cmds"; then
7750 cat >> $CONFIG_STATUS <<EOF
7752 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
7754 cat >> $CONFIG_STATUS <<\EOF
7755 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7758 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7759 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7760 *) ac_file_in="${ac_file}.in" ;;
7763 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7765 # Remove last slash and all that follows it. Not all systems have dirname.
7766 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7767 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7768 # The file is in a subdirectory.
7769 test ! -d "$ac_dir" && mkdir "$ac_dir"
7770 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7771 # A "../" for each directory in $ac_dir_suffix.
7772 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7774 ac_dir_suffix= ac_dots=
7777 case "$ac_given_srcdir" in
7779 if test -z "$ac_dots"; then top_srcdir=.
7780 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7781 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7783 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7784 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7787 case "$ac_given_INSTALL" in
7788 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7789 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7792 echo creating "$ac_file"
7794 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7796 *Makefile*) ac_comsub="1i\\
7797 # $configure_input" ;;
7801 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7803 s%@configure_input@%$configure_input%g
7804 s%@srcdir@%$srcdir%g
7805 s%@top_srcdir@%$top_srcdir%g
7806 s%@INSTALL@%$INSTALL%g
7807 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7811 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7812 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7814 # ac_d sets the value in "#define NAME VALUE" lines.
7815 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7816 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7819 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7820 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7821 ac_uB='\([ ]\)%\1#\2define\3'
7824 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7825 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7826 ac_eB='$%\1#\2define\3'
7830 if test "${CONFIG_HEADERS+set}" != set; then
7832 cat >> $CONFIG_STATUS <<EOF
7833 CONFIG_HEADERS="config.h:config.in"
7835 cat >> $CONFIG_STATUS <<\EOF
7837 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7840 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7841 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7842 *) ac_file_in="${ac_file}.in" ;;
7845 echo creating $ac_file
7847 rm -f conftest.frag conftest.in conftest.out
7848 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7849 cat $ac_file_inputs > conftest.in
7853 # Transform confdefs.h into a sed script conftest.vals that substitutes
7854 # the proper values into config.h.in to produce config.h. And first:
7855 # Protect against being on the right side of a sed subst in config.status.
7856 # Protect against being in an unquoted here document in config.status.
7858 cat > conftest.hdr <<\EOF
7861 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7865 sed -n -f conftest.hdr confdefs.h > conftest.vals
7868 # This sed command replaces #undef with comments. This is necessary, for
7869 # example, in the case of _POSIX_SOURCE, which is predefined and required
7870 # on some systems where configure will not decide to define it.
7871 cat >> conftest.vals <<\EOF
7872 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7875 # Break up conftest.vals because some shells have a limit on
7876 # the size of here documents, and old seds have small limits too.
7881 ac_lines=`grep -c . conftest.vals`
7882 # grep -c gives empty output for an empty file on some AIX systems.
7883 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7884 # Write a limited-size here document to conftest.frag.
7885 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7886 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7888 sed -f conftest.frag conftest.in > conftest.out
7890 mv conftest.out conftest.in
7892 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7894 mv conftest.tail conftest.vals
7898 cat >> $CONFIG_STATUS <<\EOF
7899 rm -f conftest.frag conftest.h
7900 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7901 cat conftest.in >> conftest.h
7903 if cmp -s $ac_file conftest.h 2>/dev/null; then
7904 echo "$ac_file is unchanged"
7907 # Remove last slash and all that follows it. Not all systems have dirname.
7908 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7909 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7910 # The file is in a subdirectory.
7911 test ! -d "$ac_dir" && mkdir "$ac_dir"
7914 mv conftest.h $ac_file
7920 cat >> $CONFIG_STATUS <<EOF
7925 cat >> $CONFIG_STATUS <<\EOF
7926 srcdir=$ac_given_srcdir
7927 while test -n "$ac_sources"; do
7928 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7929 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7931 echo "linking $srcdir/$ac_source to $ac_dest"
7933 if test ! -r $srcdir/$ac_source; then
7934 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7938 # Make relative symlinks.
7939 # Remove last slash and all that follows it. Not all systems have dirname.
7940 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7941 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7942 # The dest file is in a subdirectory.
7943 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7944 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7945 # A "../" for each directory in $ac_dest_dir_suffix.
7946 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7948 ac_dest_dir_suffix= ac_dots=
7952 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7953 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7956 # Make a symlink if possible; otherwise try a hard link.
7957 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7958 ln $srcdir/$ac_source $ac_dest; then :
7960 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7964 cat >> $CONFIG_STATUS <<EOF
7966 gdb_host_cpu=$gdb_host_cpu
7967 gdb_target_cpu=$gdb_target_cpu
7968 nativefile=$nativefile
7971 cat >> $CONFIG_STATUS <<\EOF
7973 if test "${nativefile}" = ""; then
7974 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
7975 < Makefile > Makefile.tem
7976 mv -f Makefile.tem Makefile
7979 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
7980 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
7981 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
7982 mv -f Makefile.tmp Makefile
7985 case x$CONFIG_HEADERS in
7986 xconfig.h:config.in)
7992 chmod +x $CONFIG_STATUS
7993 rm -fr confdefs* $ac_clean_files
7994 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7996 if test "$no_recursion" != yes; then
7998 # Remove --cache-file and --srcdir arguments so they do not pile up.
7999 ac_sub_configure_args=
8001 for ac_arg in $ac_configure_args; do
8002 if test -n "$ac_prev"; then
8007 -cache-file | --cache-file | --cache-fil | --cache-fi \
8008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8009 ac_prev=cache_file ;;
8010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8017 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8021 for ac_config_dir in $configdirs; do
8023 # Do not complain, so a configure script can configure whichever
8024 # parts of a large source tree are present.
8025 if test ! -d $srcdir/$ac_config_dir; then
8029 echo configuring in $ac_config_dir
8034 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8036 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8044 # A "../" for each directory in /$ac_config_dir.
8045 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8048 .) # No --srcdir option. We are building in place.
8049 ac_sub_srcdir=$srcdir ;;
8050 /*) # Absolute path.
8051 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8053 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8056 # Check for guested configure; otherwise get Cygnus style configure.
8057 if test -f $ac_sub_srcdir/configure; then
8058 ac_sub_configure=$ac_sub_srcdir/configure
8059 elif test -f $ac_sub_srcdir/configure.in; then
8060 ac_sub_configure=$ac_configure
8062 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8066 # The recursion is here.
8067 if test -n "$ac_sub_configure"; then
8069 # Make the cache file name correct relative to the subdirectory.
8070 case "$cache_file" in
8071 /*) ac_sub_cache_file=$cache_file ;;
8073 ac_sub_cache_file="$ac_dots$cache_file" ;;
8075 case "$ac_given_INSTALL" in
8076 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8077 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8080 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8081 # The eval makes quoting arguments work.
8082 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8085 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }