3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
19 --enable-multi-ice Build the multi-ice-gdb-server"
21 --enable-tui Enable full-screen terminal user interface"
23 --enable-netrom Enable NetROM support"
25 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
27 --with-mmalloc Use memory mapped malloc package"
29 --enable-carp Configure alternative readaptive paradigm "
31 --enable-targets Alternative target configurations"
33 --with-cpu=CPU Set the default CPU variant to debug"
35 --enable-gdbtk Enable GDBTK GUI front end"
37 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
39 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
41 --with-tclinclude=DIR Directory where tcl private headers are"
43 --with-tkinclude=DIR Directory where tk private headers are"
45 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
47 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
49 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
51 --with-x use the X Window System"
53 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
55 --with-sim-funit=DIR Use target FP lib under given DIR"
57 --enable-sim Link gdb with simulator"
59 --enable-shared Use shared libraries"
61 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
65 cache_file=./config.cache
74 program_transform_name=s,x,x,
83 bindir='${exec_prefix}/bin'
84 sbindir='${exec_prefix}/sbin'
85 libexecdir='${exec_prefix}/libexec'
86 datadir='${prefix}/share'
87 sysconfdir='${prefix}/etc'
88 sharedstatedir='${prefix}/com'
89 localstatedir='${prefix}/var'
90 libdir='${exec_prefix}/lib'
91 includedir='${prefix}/include'
92 oldincludedir='/usr/include'
93 infodir='${prefix}/info'
94 mandir='${prefix}/man'
96 # Initialize some other variables.
99 SHELL=${CONFIG_SHELL-/bin/sh}
100 # Maximum number of lines to put in a shell here document.
107 # If the previous option needs an argument, assign it.
108 if test -n "$ac_prev"; then
109 eval "$ac_prev=\$ac_option"
115 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 # Accept the important Cygnus configure options, so we can diagnose typos.
123 -bindir | --bindir | --bindi | --bind | --bin | --bi)
125 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
126 bindir="$ac_optarg" ;;
128 -build | --build | --buil | --bui | --bu)
130 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
131 build="$ac_optarg" ;;
133 -cache-file | --cache-file | --cache-fil | --cache-fi \
134 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
135 ac_prev=cache_file ;;
136 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
137 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
138 cache_file="$ac_optarg" ;;
140 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
142 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
144 datadir="$ac_optarg" ;;
146 -disable-* | --disable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}=no" ;;
155 -enable-* | --enable-*)
156 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}='$ac_optarg'" ;;
168 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
169 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
170 | --exec | --exe | --ex)
171 ac_prev=exec_prefix ;;
172 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
173 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
174 | --exec=* | --exe=* | --ex=*)
175 exec_prefix="$ac_optarg" ;;
177 -gas | --gas | --ga | --g)
178 # Obsolete; use --with-gas.
181 -help | --help | --hel | --he)
182 # Omit some internal or obsolete options to make the list less imposing.
183 # This message is too long to be a string in the A/UX 3.1 sh.
185 Usage: configure [options] [host]
186 Options: [defaults in brackets after descriptions]
188 --cache-file=FILE cache test results in FILE
189 --help print this message
190 --no-create do not create output files
191 --quiet, --silent do not print \`checking...' messages
192 --site-file=FILE use FILE as the site file
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
237 -host | --host | --hos | --ho)
239 -host=* | --host=* | --hos=* | --ho=*)
242 -includedir | --includedir | --includedi | --included | --include \
243 | --includ | --inclu | --incl | --inc)
244 ac_prev=includedir ;;
245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
246 | --includ=* | --inclu=* | --incl=* | --inc=*)
247 includedir="$ac_optarg" ;;
249 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
252 infodir="$ac_optarg" ;;
254 -libdir | --libdir | --libdi | --libd)
256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
257 libdir="$ac_optarg" ;;
259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
260 | --libexe | --libex | --libe)
261 ac_prev=libexecdir ;;
262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
263 | --libexe=* | --libex=* | --libe=*)
264 libexecdir="$ac_optarg" ;;
266 -localstatedir | --localstatedir | --localstatedi | --localstated \
267 | --localstate | --localstat | --localsta | --localst \
268 | --locals | --local | --loca | --loc | --lo)
269 ac_prev=localstatedir ;;
270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
271 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
272 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
273 localstatedir="$ac_optarg" ;;
275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
278 mandir="$ac_optarg" ;;
281 # Obsolete; use --without-fp.
284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
294 | --oldin | --oldi | --old | --ol | --o)
295 ac_prev=oldincludedir ;;
296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
299 oldincludedir="$ac_optarg" ;;
301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
304 prefix="$ac_optarg" ;;
306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
307 | --program-pre | --program-pr | --program-p)
308 ac_prev=program_prefix ;;
309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
311 program_prefix="$ac_optarg" ;;
313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
314 | --program-suf | --program-su | --program-s)
315 ac_prev=program_suffix ;;
316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
318 program_suffix="$ac_optarg" ;;
320 -program-transform-name | --program-transform-name \
321 | --program-transform-nam | --program-transform-na \
322 | --program-transform-n | --program-transform- \
323 | --program-transform | --program-transfor \
324 | --program-transfo | --program-transf \
325 | --program-trans | --program-tran \
326 | --progr-tra | --program-tr | --program-t)
327 ac_prev=program_transform_name ;;
328 -program-transform-name=* | --program-transform-name=* \
329 | --program-transform-nam=* | --program-transform-na=* \
330 | --program-transform-n=* | --program-transform-=* \
331 | --program-transform=* | --program-transfor=* \
332 | --program-transfo=* | --program-transf=* \
333 | --program-trans=* | --program-tran=* \
334 | --progr-tra=* | --program-tr=* | --program-t=*)
335 program_transform_name="$ac_optarg" ;;
337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
338 | -silent | --silent | --silen | --sile | --sil)
341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 sbindir="$ac_optarg" ;;
347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349 | --sharedst | --shareds | --shared | --share | --shar \
351 ac_prev=sharedstatedir ;;
352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 sharedstatedir="$ac_optarg" ;;
358 -site | --site | --sit)
360 -site=* | --site=* | --sit=*)
363 -site-file | --site-file | --site-fil | --site-fi | --site-f)
365 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
366 sitefile="$ac_optarg" ;;
368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371 srcdir="$ac_optarg" ;;
373 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374 | --syscon | --sysco | --sysc | --sys | --sy)
375 ac_prev=sysconfdir ;;
376 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378 sysconfdir="$ac_optarg" ;;
380 -target | --target | --targe | --targ | --tar | --ta | --t)
382 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383 target="$ac_optarg" ;;
385 -v | -verbose | --verbose | --verbos | --verbo | --verb)
388 -version | --version | --versio | --versi | --vers)
389 echo "configure generated by autoconf version 2.13"
393 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}='$ac_optarg'" ;;
405 -without-* | --without-*)
406 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}=no" ;;
415 # Obsolete; use --with-x.
418 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
419 | --x-incl | --x-inc | --x-in | --x-i)
420 ac_prev=x_includes ;;
421 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
422 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
423 x_includes="$ac_optarg" ;;
425 -x-libraries | --x-libraries | --x-librarie | --x-librari \
426 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
427 ac_prev=x_libraries ;;
428 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
429 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
430 x_libraries="$ac_optarg" ;;
432 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 if test "x$nonopt" != xNONE; then
440 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448 if test -n "$ac_prev"; then
449 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454 # File descriptor usage:
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c) ;;
482 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
483 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
486 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 # Only set these to C if already set. These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
496 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
498 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
507 ac_unique_file=main.c
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511 ac_srcdir_defaulted=yes
512 # Try the directory containing this script, then its parent.
514 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 if test ! -r $srcdir/$ac_unique_file; then
521 ac_srcdir_defaulted=no
523 if test ! -r $srcdir/$ac_unique_file; then
524 if test "$ac_srcdir_defaulted" = yes; then
525 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$sitefile"; then
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542 CONFIG_SITE="$sitefile"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
577 ac_n= ac_c='\c' ac_t=
583 # Extract the first word of "gcc", so it can be a program name with args.
584 set dummy gcc; ac_word=$2
585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
586 echo "configure:587: checking for $ac_word" >&5
587 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 if test -n "$CC"; then
591 ac_cv_prog_CC="$CC" # Let the user override the test.
593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
595 for ac_dir in $ac_dummy; do
596 test -z "$ac_dir" && ac_dir=.
597 if test -f $ac_dir/$ac_word; then
606 if test -n "$CC"; then
607 echo "$ac_t""$CC" 1>&6
609 echo "$ac_t""no" 1>&6
612 if test -z "$CC"; then
613 # Extract the first word of "cc", so it can be a program name with args.
614 set dummy cc; ac_word=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 if test -n "$CC"; then
621 ac_cv_prog_CC="$CC" # Let the user override the test.
623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
626 for ac_dir in $ac_dummy; do
627 test -z "$ac_dir" && ac_dir=.
628 if test -f $ac_dir/$ac_word; then
629 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
638 if test $ac_prog_rejected = yes; then
639 # We found a bogon in the path, so make sure we never use it.
640 set dummy $ac_cv_prog_CC
642 if test $# -gt 0; then
643 # We chose a different compiler from the bogus one.
644 # However, it has the same basename, so the bogon will be chosen
645 # first if we set CC to just the basename; use the full file name.
647 set dummy "$ac_dir/$ac_word" "$@"
655 if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
658 echo "$ac_t""no" 1>&6
661 if test -z "$CC"; then
664 # Extract the first word of "cl", so it can be a program name with args.
665 set dummy cl; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
676 for ac_dir in $ac_dummy; do
677 test -z "$ac_dir" && ac_dir=.
678 if test -f $ac_dir/$ac_word; then
687 if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
690 echo "$ac_t""no" 1>&6
695 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
698 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
699 echo "configure:700: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
703 ac_cpp='$CPP $CPPFLAGS'
704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
706 cross_compiling=$ac_cv_prog_cc_cross
708 cat > conftest.$ac_ext << EOF
710 #line 711 "configure"
711 #include "confdefs.h"
715 if { (eval echo configure:716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
716 ac_cv_prog_cc_works=yes
717 # If we can't run a trivial program, we are probably using a cross compiler.
718 if (./conftest; exit) 2>/dev/null; then
719 ac_cv_prog_cc_cross=no
721 ac_cv_prog_cc_cross=yes
724 echo "configure: failed program was:" >&5
725 cat conftest.$ac_ext >&5
726 ac_cv_prog_cc_works=no
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp='$CPP $CPPFLAGS'
732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling=$ac_cv_prog_cc_cross
736 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
737 if test $ac_cv_prog_cc_works = no; then
738 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
741 echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
742 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
743 cross_compiling=$ac_cv_prog_cc_cross
745 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
746 echo "configure:747: checking whether we are using GNU C" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 cat > conftest.c <<EOF
755 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
762 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
764 if test $ac_cv_prog_gcc = yes; then
770 ac_test_CFLAGS="${CFLAGS+set}"
771 ac_save_CFLAGS="$CFLAGS"
773 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${CC-cc} accepts -g" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 echo 'void f(){}' > conftest.c
779 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
788 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
789 if test "$ac_test_CFLAGS" = set; then
790 CFLAGS="$ac_save_CFLAGS"
791 elif test $ac_cv_prog_cc_g = yes; then
792 if test "$GCC" = yes; then
798 if test "$GCC" = yes; then
805 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
806 echo "configure:807: checking how to run the C preprocessor" >&5
807 # On Suns, sometimes $CPP names a directory.
808 if test -n "$CPP" && test -d "$CPP"; then
811 if test -z "$CPP"; then
812 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 # This must be in double quotes, not single quotes, because CPP may get
816 # substituted into the Makefile and "${CC-cc}" will confuse make.
818 # On the NeXT, cc -E runs the code through the compiler's parser,
819 # not just through cpp.
820 cat > conftest.$ac_ext <<EOF
821 #line 822 "configure"
822 #include "confdefs.h"
826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
827 { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
829 if test -z "$ac_err"; then
833 echo "configure: failed program was:" >&5
834 cat conftest.$ac_ext >&5
836 CPP="${CC-cc} -E -traditional-cpp"
837 cat > conftest.$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 if test -z "$ac_err"; then
850 echo "configure: failed program was:" >&5
851 cat conftest.$ac_ext >&5
853 CPP="${CC-cc} -nologo -E"
854 cat > conftest.$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
861 { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
863 if test -z "$ac_err"; then
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
877 ac_cv_prog_CPP="$CPP"
879 CPP="$ac_cv_prog_CPP"
881 ac_cv_prog_CPP="$CPP"
883 echo "$ac_t""$CPP" 1>&6
885 echo $ac_n "checking for AIX""... $ac_c" 1>&6
886 echo "configure:887: checking for AIX" >&5
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
896 egrep "yes" >/dev/null 2>&1; then
898 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
899 #define _ALL_SOURCE 1
904 echo "$ac_t""no" 1>&6
909 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
910 echo "configure:911: checking for POSIXized ISC" >&5
911 if test -d /etc/conf/kconfig.d &&
912 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
914 echo "$ac_t""yes" 1>&6
915 ISC=yes # If later tests want to check for ISC.
916 cat >> confdefs.h <<\EOF
917 #define _POSIX_SOURCE 1
920 if test "$GCC" = yes; then
926 echo "$ac_t""no" 1>&6
933 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
934 echo "configure:935: checking for ${CC-cc} option to accept ANSI C" >&5
935 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 am_cv_prog_cc_stdc=no
940 # Don't try gcc -ansi; that turns off useful extensions and
941 # breaks some systems' header files.
943 # Ultrix and OSF/1 -std1
944 # HP-UX -Aa -D_HPUX_SOURCE
945 # SVR4 -Xc -D__EXTENSIONS__
946 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
948 CC="$ac_save_CC $ac_arg"
949 cat > conftest.$ac_ext <<EOF
950 #line 951 "configure"
951 #include "confdefs.h"
954 #include <sys/types.h>
955 #include <sys/stat.h>
956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
957 struct buf { int x; };
958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
959 static char *e (p, i)
965 static char *f (char * (*g) (char **, int), char **p, ...)
970 s = g (p, va_arg (v,int));
974 int test (int i, double x);
975 struct s1 {int (*f) (int a);};
976 struct s2 {int (*f) (double a);};
977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
983 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
987 if { (eval echo configure:988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
989 am_cv_prog_cc_stdc="$ac_arg"; break
991 echo "configure: failed program was:" >&5
992 cat conftest.$ac_ext >&5
1000 if test -z "$am_cv_prog_cc_stdc"; then
1001 echo "$ac_t""none needed" 1>&6
1003 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1005 case "x$am_cv_prog_cc_stdc" in
1007 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1012 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1013 if test -f $ac_dir/install-sh; then
1015 ac_install_sh="$ac_aux_dir/install-sh -c"
1017 elif test -f $ac_dir/install.sh; then
1019 ac_install_sh="$ac_aux_dir/install.sh -c"
1023 if test -z "$ac_aux_dir"; then
1024 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1026 ac_config_guess=$ac_aux_dir/config.guess
1027 ac_config_sub=$ac_aux_dir/config.sub
1028 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1031 # Do some error checking and defaulting for the host and target type.
1033 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1036 # 1. You are not allowed to specify --host, --target, and nonopt at the
1038 # 2. Host defaults to nonopt.
1039 # 3. If nonopt is not specified, then host defaults to the current host,
1040 # as determined by config.guess.
1041 # 4. Target and build default to nonopt.
1042 # 5. If nonopt is not specified, then target and build default to host.
1044 # The aliases save the names the user supplied, while $host etc.
1045 # will get canonicalized.
1046 case $host---$target---$nonopt in
1047 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1048 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1052 # Make sure we can run config.sub.
1053 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1054 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1057 echo $ac_n "checking host system type""... $ac_c" 1>&6
1058 echo "configure:1059: checking host system type" >&5
1061 case "$host_alias" in
1065 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1066 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1068 *) host_alias=$nonopt ;;
1072 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1073 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076 echo "$ac_t""$host" 1>&6
1078 echo $ac_n "checking target system type""... $ac_c" 1>&6
1079 echo "configure:1080: checking target system type" >&5
1081 target_alias=$target
1082 case "$target_alias" in
1085 NONE) target_alias=$host_alias ;;
1086 *) target_alias=$nonopt ;;
1090 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1091 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1092 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1093 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1094 echo "$ac_t""$target" 1>&6
1096 echo $ac_n "checking build system type""... $ac_c" 1>&6
1097 echo "configure:1098: checking build system type" >&5
1100 case "$build_alias" in
1103 NONE) build_alias=$host_alias ;;
1104 *) build_alias=$nonopt ;;
1108 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1109 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1110 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1111 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1112 echo "$ac_t""$build" 1>&6
1114 test "$host_alias" != "$target_alias" &&
1115 test "$program_prefix$program_suffix$program_transform_name" = \
1117 program_prefix=${target_alias}-
1121 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether ${MAKE-make} sets \${MAKE}" >&5
1123 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1124 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 cat > conftestmake <<\EOF
1129 @echo 'ac_maketemp="${MAKE}"'
1131 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1132 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1133 if test -n "$ac_maketemp"; then
1134 eval ac_cv_prog_make_${ac_make}_set=yes
1136 eval ac_cv_prog_make_${ac_make}_set=no
1140 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1141 echo "$ac_t""yes" 1>&6
1144 echo "$ac_t""no" 1>&6
1145 SET_MAKE="MAKE=${MAKE-make}"
1148 # Extract the first word of "ranlib", so it can be a program name with args.
1149 set dummy ranlib; ac_word=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 echo "configure:1152: checking for $ac_word" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 if test -n "$RANLIB"; then
1156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1160 for ac_dir in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir=.
1162 if test -f $ac_dir/$ac_word; then
1163 ac_cv_prog_RANLIB="ranlib"
1168 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1171 RANLIB="$ac_cv_prog_RANLIB"
1172 if test -n "$RANLIB"; then
1173 echo "$ac_t""$RANLIB" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1179 echo "configure:1180: checking for ANSI C header files" >&5
1180 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1192 { (eval echo configure:1193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1194 if test -z "$ac_err"; then
1196 ac_cv_header_stdc=yes
1199 echo "configure: failed program was:" >&5
1200 cat conftest.$ac_ext >&5
1202 ac_cv_header_stdc=no
1206 if test $ac_cv_header_stdc = yes; then
1207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1214 egrep "memchr" >/dev/null 2>&1; then
1218 ac_cv_header_stdc=no
1224 if test $ac_cv_header_stdc = yes; then
1225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1232 egrep "free" >/dev/null 2>&1; then
1236 ac_cv_header_stdc=no
1242 if test $ac_cv_header_stdc = yes; then
1243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1244 if test "$cross_compiling" = yes; then
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1251 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1252 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1254 int main () { int i; for (i = 0; i < 256; i++)
1255 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1259 if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1263 echo "configure: failed program was:" >&5
1264 cat conftest.$ac_ext >&5
1266 ac_cv_header_stdc=no
1274 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1275 if test $ac_cv_header_stdc = yes; then
1276 cat >> confdefs.h <<\EOF
1277 #define STDC_HEADERS 1
1282 echo $ac_n "checking for working const""... $ac_c" 1>&6
1283 echo "configure:1284: checking for working const" >&5
1284 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1293 /* Ultrix mips cc rejects this. */
1294 typedef int charset[2]; const charset x;
1295 /* SunOS 4.1.1 cc rejects this. */
1296 char const *const *ccp;
1298 /* NEC SVR4.0.2 mips cc rejects this. */
1299 struct point {int x, y;};
1300 static struct point const zero = {0,0};
1301 /* AIX XL C 1.02.0.0 rejects this.
1302 It does not let you subtract one const X* pointer from another in an arm
1303 of an if-expression whose if-part is not a constant expression */
1304 const char *g = "string";
1305 ccp = &g + (g ? g-g : 0);
1306 /* HPUX 7.0 cc rejects these. */
1309 ccp = (char const *const *) p;
1310 { /* SCO 3.2v4 cc rejects this. */
1312 char const *s = 0 ? (char *) 0 : (char const *) 0;
1316 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1318 const int *foo = &x[0];
1321 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1322 typedef const int *iptr;
1326 { /* AIX XL C 1.02.0.0 rejects this saying
1327 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1328 struct s { int j; const int *ap[3]; };
1329 struct s *b; b->j = 5;
1331 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1337 if { (eval echo configure:1338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1349 echo "$ac_t""$ac_cv_c_const" 1>&6
1350 if test $ac_cv_c_const = no; then
1351 cat >> confdefs.h <<\EOF
1357 echo $ac_n "checking for inline""... $ac_c" 1>&6
1358 echo "configure:1359: checking for inline" >&5
1359 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1363 for ac_kw in inline __inline__ __inline; do
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1372 if { (eval echo configure:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 ac_cv_c_inline=$ac_kw; break
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1384 echo "$ac_t""$ac_cv_c_inline" 1>&6
1385 case "$ac_cv_c_inline" in
1387 no) cat >> confdefs.h <<\EOF
1391 *) cat >> confdefs.h <<EOF
1392 #define inline $ac_cv_c_inline
1397 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1398 echo "configure:1399: checking for off_t" >&5
1399 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 #include <sys/types.h>
1411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1412 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1414 ac_cv_type_off_t=yes
1422 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1423 if test $ac_cv_type_off_t = no; then
1424 cat >> confdefs.h <<\EOF
1430 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1431 echo "configure:1432: checking for size_t" >&5
1432 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438 #include <sys/types.h>
1444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1445 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1447 ac_cv_type_size_t=yes
1450 ac_cv_type_size_t=no
1455 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1456 if test $ac_cv_type_size_t = no; then
1457 cat >> confdefs.h <<\EOF
1458 #define size_t unsigned
1463 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1464 # for constant arguments. Useless!
1465 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1466 echo "configure:1467: checking for working alloca.h" >&5
1467 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1475 char *p = alloca(2 * sizeof(int));
1478 if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1480 ac_cv_header_alloca_h=yes
1482 echo "configure: failed program was:" >&5
1483 cat conftest.$ac_ext >&5
1485 ac_cv_header_alloca_h=no
1490 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1491 if test $ac_cv_header_alloca_h = yes; then
1492 cat >> confdefs.h <<\EOF
1493 #define HAVE_ALLOCA_H 1
1498 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1499 echo "configure:1500: checking for alloca" >&5
1500 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1508 # define alloca __builtin_alloca
1511 # include <malloc.h>
1512 # define alloca _alloca
1515 # include <alloca.h>
1520 # ifndef alloca /* predefined by HP cc +Olibcalls */
1529 char *p = (char *) alloca(1);
1532 if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1534 ac_cv_func_alloca_works=yes
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1539 ac_cv_func_alloca_works=no
1544 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1545 if test $ac_cv_func_alloca_works = yes; then
1546 cat >> confdefs.h <<\EOF
1547 #define HAVE_ALLOCA 1
1552 if test $ac_cv_func_alloca_works = no; then
1553 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1554 # that cause trouble. Some versions do not even contain alloca or
1555 # contain a buggy version. If you still want to use their alloca,
1556 # use ar to extract alloca.o from them instead of compiling alloca.c.
1557 ALLOCA=alloca.${ac_objext}
1558 cat >> confdefs.h <<\EOF
1563 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1564 echo "configure:1565: checking whether alloca needs Cray hooks" >&5
1565 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571 #if defined(CRAY) && ! defined(CRAY2)
1578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1579 egrep "webecray" >/dev/null 2>&1; then
1590 echo "$ac_t""$ac_cv_os_cray" 1>&6
1591 if test $ac_cv_os_cray = yes; then
1592 for ac_func in _getb67 GETB67 getb67; do
1593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1594 echo "configure:1595: checking for $ac_func" >&5
1595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 cat > conftest.$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1601 /* System header to define __stub macros and hopefully few prototypes,
1602 which can conflict with char $ac_func(); below. */
1604 /* Override any gcc2 internal prototype to avoid an error. */
1605 /* We use char because int might match the return type of a gcc2
1606 builtin and then its argument prototype would still apply. */
1611 /* The GNU C library defines this for functions which it implements
1612 to always fail with ENOSYS. Some functions are actually named
1613 something starting with __ and the normal name is an alias. */
1614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1624 eval "ac_cv_func_$ac_func=yes"
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1629 eval "ac_cv_func_$ac_func=no"
1634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1635 echo "$ac_t""yes" 1>&6
1636 cat >> confdefs.h <<EOF
1637 #define CRAY_STACKSEG_END $ac_func
1642 echo "$ac_t""no" 1>&6
1648 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1649 echo "configure:1650: checking stack direction for C alloca" >&5
1650 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 if test "$cross_compiling" = yes; then
1654 ac_cv_c_stack_direction=0
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 find_stack_direction ()
1661 static char *addr = 0;
1666 return find_stack_direction ();
1669 return (&dummy > addr) ? 1 : -1;
1673 exit (find_stack_direction() < 0);
1676 if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1678 ac_cv_c_stack_direction=1
1680 echo "configure: failed program was:" >&5
1681 cat conftest.$ac_ext >&5
1683 ac_cv_c_stack_direction=-1
1690 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1691 cat >> confdefs.h <<EOF
1692 #define STACK_DIRECTION $ac_cv_c_stack_direction
1697 for ac_hdr in unistd.h
1699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1701 echo "configure:1702: checking for $ac_hdr" >&5
1702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711 { (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1713 if test -z "$ac_err"; then
1715 eval "ac_cv_header_$ac_safe=yes"
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 eval "ac_cv_header_$ac_safe=no"
1725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1726 echo "$ac_t""yes" 1>&6
1727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1728 cat >> confdefs.h <<EOF
1729 #define $ac_tr_hdr 1
1733 echo "$ac_t""no" 1>&6
1737 for ac_func in getpagesize
1739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_func" >&5
1741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 cat > conftest.$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $ac_func(); below. */
1750 /* Override any gcc2 internal prototype to avoid an error. */
1751 /* We use char because int might match the return type of a gcc2
1752 builtin and then its argument prototype would still apply. */
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770 eval "ac_cv_func_$ac_func=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 eval "ac_cv_func_$ac_func=no"
1780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1783 cat >> confdefs.h <<EOF
1784 #define $ac_tr_func 1
1788 echo "$ac_t""no" 1>&6
1792 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1793 echo "configure:1794: checking for working mmap" >&5
1794 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 if test "$cross_compiling" = yes; then
1798 ac_cv_func_mmap_fixed_mapped=no
1800 cat > conftest.$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1804 /* Thanks to Mike Haertel and Jim Avera for this test.
1805 Here is a matrix of mmap possibilities:
1806 mmap private not fixed
1807 mmap private fixed at somewhere currently unmapped
1808 mmap private fixed at somewhere already mapped
1809 mmap shared not fixed
1810 mmap shared fixed at somewhere currently unmapped
1811 mmap shared fixed at somewhere already mapped
1812 For private mappings, we should verify that changes cannot be read()
1813 back from the file, nor mmap's back from the file at a different
1814 address. (There have been systems where private was not correctly
1815 implemented like the infamous i386 svr4.0, and systems where the
1816 VM page cache was not coherent with the filesystem buffer cache
1817 like early versions of FreeBSD and possibly contemporary NetBSD.)
1818 For shared mappings, we should conversely verify that changes get
1819 propogated back to all the places they're supposed to be.
1821 Grep wants private fixed already mapped.
1822 The main things grep needs to know about mmap are:
1823 * does it exist and is it safe to write into the mmap'd area
1824 * how to use it (BSD variants) */
1825 #include <sys/types.h>
1827 #include <sys/mman.h>
1829 /* This mess was copied from the GNU getpagesize.h. */
1830 #ifndef HAVE_GETPAGESIZE
1831 # ifdef HAVE_UNISTD_H
1832 # include <unistd.h>
1835 /* Assume that all systems that can run configure have sys/param.h. */
1836 # ifndef HAVE_SYS_PARAM_H
1837 # define HAVE_SYS_PARAM_H 1
1840 # ifdef _SC_PAGESIZE
1841 # define getpagesize() sysconf(_SC_PAGESIZE)
1842 # else /* no _SC_PAGESIZE */
1843 # ifdef HAVE_SYS_PARAM_H
1844 # include <sys/param.h>
1845 # ifdef EXEC_PAGESIZE
1846 # define getpagesize() EXEC_PAGESIZE
1847 # else /* no EXEC_PAGESIZE */
1849 # define getpagesize() NBPG * CLSIZE
1852 # endif /* no CLSIZE */
1853 # else /* no NBPG */
1855 # define getpagesize() NBPC
1856 # else /* no NBPC */
1858 # define getpagesize() PAGESIZE
1859 # endif /* PAGESIZE */
1860 # endif /* no NBPC */
1861 # endif /* no NBPG */
1862 # endif /* no EXEC_PAGESIZE */
1863 # else /* no HAVE_SYS_PARAM_H */
1864 # define getpagesize() 8192 /* punt totally */
1865 # endif /* no HAVE_SYS_PARAM_H */
1866 # endif /* no _SC_PAGESIZE */
1868 #endif /* no HAVE_GETPAGESIZE */
1871 extern "C" { void *malloc(unsigned); }
1879 char *data, *data2, *data3;
1883 pagesize = getpagesize();
1886 * First, make a file with some known garbage in it.
1888 data = malloc(pagesize);
1891 for (i = 0; i < pagesize; ++i)
1892 *(data + i) = rand();
1894 fd = creat("conftestmmap", 0600);
1897 if (write(fd, data, pagesize) != pagesize)
1902 * Next, try to mmap the file at a fixed address which
1903 * already has something else allocated at it. If we can,
1904 * also make sure that we see the same garbage.
1906 fd = open("conftestmmap", O_RDWR);
1909 data2 = malloc(2 * pagesize);
1912 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1913 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1914 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1916 for (i = 0; i < pagesize; ++i)
1917 if (*(data + i) != *(data2 + i))
1921 * Finally, make sure that changes to the mapped area
1922 * do not percolate back to the file as seen by read().
1923 * (This is a bug on some variants of i386 svr4.0.)
1925 for (i = 0; i < pagesize; ++i)
1926 *(data2 + i) = *(data2 + i) + 1;
1927 data3 = malloc(pagesize);
1930 if (read(fd, data3, pagesize) != pagesize)
1932 for (i = 0; i < pagesize; ++i)
1933 if (*(data + i) != *(data3 + i))
1936 unlink("conftestmmap");
1941 if { (eval echo configure:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1943 ac_cv_func_mmap_fixed_mapped=yes
1945 echo "configure: failed program was:" >&5
1946 cat conftest.$ac_ext >&5
1948 ac_cv_func_mmap_fixed_mapped=no
1955 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1956 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1957 cat >> confdefs.h <<\EOF
1964 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1965 unistd.h values.h sys/param.h
1967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1969 echo "configure:1970: checking for $ac_hdr" >&5
1970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1979 { (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1981 if test -z "$ac_err"; then
1983 eval "ac_cv_header_$ac_safe=yes"
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1989 eval "ac_cv_header_$ac_safe=no"
1993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1996 cat >> confdefs.h <<EOF
1997 #define $ac_tr_hdr 1
2001 echo "$ac_t""no" 1>&6
2005 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2006 __argz_count __argz_stringify __argz_next
2008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_func" >&5
2010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2016 /* System header to define __stub macros and hopefully few prototypes,
2017 which can conflict with char $ac_func(); below. */
2019 /* Override any gcc2 internal prototype to avoid an error. */
2020 /* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2026 /* The GNU C library defines this for functions which it implements
2027 to always fail with ENOSYS. Some functions are actually named
2028 something starting with __ and the normal name is an alias. */
2029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2039 eval "ac_cv_func_$ac_func=yes"
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 eval "ac_cv_func_$ac_func=no"
2049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2052 cat >> confdefs.h <<EOF
2053 #define $ac_tr_func 1
2057 echo "$ac_t""no" 1>&6
2062 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2063 for ac_func in stpcpy
2065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2066 echo "configure:2067: checking for $ac_func" >&5
2067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2070 cat > conftest.$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $ac_func(); below. */
2076 /* Override any gcc2 internal prototype to avoid an error. */
2077 /* We use char because int might match the return type of a gcc2
2078 builtin and then its argument prototype would still apply. */
2083 /* The GNU C library defines this for functions which it implements
2084 to always fail with ENOSYS. Some functions are actually named
2085 something starting with __ and the normal name is an alias. */
2086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2094 if { (eval echo configure:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2096 eval "ac_cv_func_$ac_func=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 eval "ac_cv_func_$ac_func=no"
2106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2109 cat >> confdefs.h <<EOF
2110 #define $ac_tr_func 1
2114 echo "$ac_t""no" 1>&6
2119 if test "${ac_cv_func_stpcpy}" = "yes"; then
2120 cat >> confdefs.h <<\EOF
2121 #define HAVE_STPCPY 1
2126 if test $ac_cv_header_locale_h = yes; then
2127 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2128 echo "configure:2129: checking for LC_MESSAGES" >&5
2129 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2140 if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142 am_cv_val_LC_MESSAGES=yes
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 am_cv_val_LC_MESSAGES=no
2152 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2153 if test $am_cv_val_LC_MESSAGES = yes; then
2154 cat >> confdefs.h <<\EOF
2155 #define HAVE_LC_MESSAGES 1
2160 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2161 echo "configure:2162: checking whether NLS is requested" >&5
2162 # Check whether --enable-nls or --disable-nls was given.
2163 if test "${enable_nls+set}" = set; then
2164 enableval="$enable_nls"
2170 echo "$ac_t""$USE_NLS" 1>&6
2173 USE_INCLUDED_LIBINTL=no
2175 if test "$USE_NLS" = "yes"; then
2176 cat >> confdefs.h <<\EOF
2177 #define ENABLE_NLS 1
2180 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2181 echo "configure:2182: checking whether included gettext is requested" >&5
2182 # Check whether --with-included-gettext or --without-included-gettext was given.
2183 if test "${with_included_gettext+set}" = set; then
2184 withval="$with_included_gettext"
2185 nls_cv_force_use_gnu_gettext=$withval
2187 nls_cv_force_use_gnu_gettext=no
2190 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2192 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2193 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2195 nls_cv_header_libgt=
2198 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2199 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2200 echo "configure:2201: checking for libintl.h" >&5
2201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 #include <libintl.h>
2209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2210 { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2212 if test -z "$ac_err"; then
2214 eval "ac_cv_header_$ac_safe=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 eval "ac_cv_header_$ac_safe=no"
2224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2226 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2227 echo "configure:2228: checking for gettext in libc" >&5
2228 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 #include <libintl.h>
2236 return (int) gettext ("")
2239 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2241 gt_cv_func_gettext_libc=yes
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2246 gt_cv_func_gettext_libc=no
2251 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2253 if test "$gt_cv_func_gettext_libc" != "yes"; then
2254 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2255 echo "configure:2256: checking for bindtextdomain in -lintl" >&5
2256 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 ac_save_LIBS="$LIBS"
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2268 char bindtextdomain();
2274 if { (eval echo configure:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2276 eval "ac_cv_lib_$ac_lib_var=yes"
2278 echo "configure: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2281 eval "ac_cv_lib_$ac_lib_var=no"
2284 LIBS="$ac_save_LIBS"
2287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2290 echo "configure:2291: checking for gettext in libintl" >&5
2291 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2299 return (int) gettext ("")
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2304 gt_cv_func_gettext_libintl=yes
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 gt_cv_func_gettext_libintl=no
2314 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2316 echo "$ac_t""no" 1>&6
2321 if test "$gt_cv_func_gettext_libc" = "yes" \
2322 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2323 cat >> confdefs.h <<\EOF
2324 #define HAVE_GETTEXT 1
2327 # Extract the first word of "msgfmt", so it can be a program name with args.
2328 set dummy msgfmt; ac_word=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2336 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2340 for ac_dir in $PATH; do
2341 test -z "$ac_dir" && ac_dir=.
2342 if test -f $ac_dir/$ac_word; then
2343 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2344 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2350 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2354 MSGFMT="$ac_cv_path_MSGFMT"
2355 if test -n "$MSGFMT"; then
2356 echo "$ac_t""$MSGFMT" 1>&6
2358 echo "$ac_t""no" 1>&6
2360 if test "$MSGFMT" != "no"; then
2361 for ac_func in dcgettext
2363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2364 echo "configure:2365: checking for $ac_func" >&5
2365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char $ac_func(); below. */
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2381 /* The GNU C library defines this for functions which it implements
2382 to always fail with ENOSYS. Some functions are actually named
2383 something starting with __ and the normal name is an alias. */
2384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2394 eval "ac_cv_func_$ac_func=yes"
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2399 eval "ac_cv_func_$ac_func=no"
2404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2407 cat >> confdefs.h <<EOF
2408 #define $ac_tr_func 1
2412 echo "$ac_t""no" 1>&6
2416 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2417 set dummy gmsgfmt; ac_word=$2
2418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_word" >&5
2420 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2425 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2428 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2433 for ac_dir in $ac_dummy; do
2434 test -z "$ac_dir" && ac_dir=.
2435 if test -f $ac_dir/$ac_word; then
2436 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2441 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2445 GMSGFMT="$ac_cv_path_GMSGFMT"
2446 if test -n "$GMSGFMT"; then
2447 echo "$ac_t""$GMSGFMT" 1>&6
2449 echo "$ac_t""no" 1>&6
2452 # Extract the first word of "xgettext", so it can be a program name with args.
2453 set dummy xgettext; ac_word=$2
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_word" >&5
2456 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2461 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2465 for ac_dir in $PATH; do
2466 test -z "$ac_dir" && ac_dir=.
2467 if test -f $ac_dir/$ac_word; then
2468 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2469 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2475 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2479 XGETTEXT="$ac_cv_path_XGETTEXT"
2480 if test -n "$XGETTEXT"; then
2481 echo "$ac_t""$XGETTEXT" 1>&6
2483 echo "$ac_t""no" 1>&6
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2491 extern int _nl_msg_cat_cntr;
2492 return _nl_msg_cat_cntr
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2512 echo "$ac_t""no" 1>&6
2517 if test "$CATOBJEXT" = "NONE"; then
2518 nls_cv_use_gnu_gettext=yes
2522 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2523 INTLOBJS="\$(GETTOBJS)"
2524 # Extract the first word of "msgfmt", so it can be a program name with args.
2525 set dummy msgfmt; ac_word=$2
2526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2527 echo "configure:2528: checking for $ac_word" >&5
2528 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2533 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2537 for ac_dir in $PATH; do
2538 test -z "$ac_dir" && ac_dir=.
2539 if test -f $ac_dir/$ac_word; then
2540 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2541 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2547 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2551 MSGFMT="$ac_cv_path_MSGFMT"
2552 if test -n "$MSGFMT"; then
2553 echo "$ac_t""$MSGFMT" 1>&6
2555 echo "$ac_t""no" 1>&6
2558 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2559 set dummy gmsgfmt; ac_word=$2
2560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_word" >&5
2562 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2567 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2575 for ac_dir in $ac_dummy; do
2576 test -z "$ac_dir" && ac_dir=.
2577 if test -f $ac_dir/$ac_word; then
2578 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2583 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2587 GMSGFMT="$ac_cv_path_GMSGFMT"
2588 if test -n "$GMSGFMT"; then
2589 echo "$ac_t""$GMSGFMT" 1>&6
2591 echo "$ac_t""no" 1>&6
2594 # Extract the first word of "xgettext", so it can be a program name with args.
2595 set dummy xgettext; ac_word=$2
2596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2597 echo "configure:2598: checking for $ac_word" >&5
2598 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2603 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2607 for ac_dir in $PATH; do
2608 test -z "$ac_dir" && ac_dir=.
2609 if test -f $ac_dir/$ac_word; then
2610 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2611 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2617 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2621 XGETTEXT="$ac_cv_path_XGETTEXT"
2622 if test -n "$XGETTEXT"; then
2623 echo "$ac_t""$XGETTEXT" 1>&6
2625 echo "$ac_t""no" 1>&6
2629 USE_INCLUDED_LIBINTL=yes
2633 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2635 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2636 nls_cv_header_intl=libintl.h
2637 nls_cv_header_libgt=libgettext.h
2640 if test "$XGETTEXT" != ":"; then
2641 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2644 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2649 # We need to process the po/ directory.
2653 nls_cv_header_intl=libintl.h
2654 nls_cv_header_libgt=libgettext.h
2657 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2658 # because some of the sources are only built for this goal.
2659 if test "$PACKAGE" = gettext; then
2661 USE_INCLUDED_LIBINTL=yes
2664 for lang in $ALL_LINGUAS; do
2665 GMOFILES="$GMOFILES $lang.gmo"
2666 POFILES="$POFILES $lang.po"
2682 if test "x$CATOBJEXT" != "x"; then
2683 if test "x$ALL_LINGUAS" = "x"; then
2686 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2687 echo "configure:2688: checking for catalogs to be installed" >&5
2689 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2690 case "$ALL_LINGUAS" in
2691 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2694 LINGUAS=$NEW_LINGUAS
2695 echo "$ac_t""$LINGUAS" 1>&6
2698 if test -n "$LINGUAS"; then
2699 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2703 if test $ac_cv_header_locale_h = yes; then
2704 INCLUDE_LOCALE_H="#include <locale.h>"
2707 /* The system does not provide the header <locale.h>. Take care yourself. */"
2711 if test -f $srcdir/po2tbl.sed.in; then
2712 if test "$CATOBJEXT" = ".cat"; then
2713 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2714 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2715 echo "configure:2716: checking for linux/version.h" >&5
2716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 #include <linux/version.h>
2724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725 { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2727 if test -z "$ac_err"; then
2729 eval "ac_cv_header_$ac_safe=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 eval "ac_cv_header_$ac_safe=no"
2739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2740 echo "$ac_t""yes" 1>&6
2743 echo "$ac_t""no" 1>&6
2748 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2750 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2751 $srcdir/po2tbl.sed.in > po2tbl.sed
2754 if test "$PACKAGE" = "gettext"; then
2764 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2770 if test -d $srcdir/po; then
2771 test -d po || mkdir po
2772 if test "x$srcdir" != "x."; then
2773 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2774 posrcprefix="$srcdir/"
2776 posrcprefix="../$srcdir/"
2782 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2783 < $srcdir/po/POTFILES.in > po/POTFILES
2792 configdirs="doc testsuite"
2794 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2795 if test "${enable_multi_ice+set}" = set; then
2796 enableval="$enable_multi_ice"
2797 case "${enableval}" in
2798 yes ) enable_multi_ice="yes" ;;
2799 no) enable_multi_ice="no" ;;
2800 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2806 if test "${enable_multi_ice}" = "yes"; then
2807 configdirs="${configdirs} multi-ice"
2811 . ${srcdir}/configure.host
2813 . ${srcdir}/configure.tgt
2816 for ac_prog in mawk gawk nawk awk
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_word" >&5
2822 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2830 for ac_dir in $ac_dummy; do
2831 test -z "$ac_dir" && ac_dir=.
2832 if test -f $ac_dir/$ac_word; then
2833 ac_cv_prog_AWK="$ac_prog"
2840 AWK="$ac_cv_prog_AWK"
2841 if test -n "$AWK"; then
2842 echo "$ac_t""$AWK" 1>&6
2844 echo "$ac_t""no" 1>&6
2847 test -n "$AWK" && break
2850 # Find a good install program. We prefer a C program (faster),
2851 # so one script is as good as another. But avoid the broken or
2852 # incompatible versions:
2853 # SysV /etc/install, /usr/sbin/install
2854 # SunOS /usr/etc/install
2855 # IRIX /sbin/install
2857 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2858 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2859 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2860 # ./install, which can be erroneously created by make from ./install.sh.
2861 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2862 echo "configure:2863: checking for a BSD compatible install" >&5
2863 if test -z "$INSTALL"; then
2864 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2868 for ac_dir in $PATH; do
2869 # Account for people who put trailing slashes in PATH elements.
2871 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2873 # OSF1 and SCO ODT 3.0 have their own names for install.
2874 # Don't use installbsd from OSF since it installs stuff as root
2876 for ac_prog in ginstall scoinst install; do
2877 if test -f $ac_dir/$ac_prog; then
2878 if test $ac_prog = install &&
2879 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2880 # AIX install. It has an incompatible calling convention.
2883 ac_cv_path_install="$ac_dir/$ac_prog -c"
2894 if test "${ac_cv_path_install+set}" = set; then
2895 INSTALL="$ac_cv_path_install"
2897 # As a last resort, use the slow shell script. We don't cache a
2898 # path for INSTALL within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the path is relative.
2901 INSTALL="$ac_install_sh"
2904 echo "$ac_t""$INSTALL" 1>&6
2906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2907 # It thinks the first close brace ends the variable substitution.
2908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2914 if test $host != $build; then
2915 ac_tool_prefix=${host_alias}-
2920 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}ar; ac_word=$2
2922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_word" >&5
2924 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 if test -n "$AR"; then
2928 ac_cv_prog_AR="$AR" # Let the user override the test.
2930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2932 for ac_dir in $ac_dummy; do
2933 test -z "$ac_dir" && ac_dir=.
2934 if test -f $ac_dir/$ac_word; then
2935 ac_cv_prog_AR="${ac_tool_prefix}ar"
2940 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2944 if test -n "$AR"; then
2945 echo "$ac_t""$AR" 1>&6
2947 echo "$ac_t""no" 1>&6
2952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2955 echo "configure:2956: checking for $ac_word" >&5
2956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 if test -n "$RANLIB"; then
2960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2964 for ac_dir in $ac_dummy; do
2965 test -z "$ac_dir" && ac_dir=.
2966 if test -f $ac_dir/$ac_word; then
2967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2974 RANLIB="$ac_cv_prog_RANLIB"
2975 if test -n "$RANLIB"; then
2976 echo "$ac_t""$RANLIB" 1>&6
2978 echo "$ac_t""no" 1>&6
2982 if test -z "$ac_cv_prog_RANLIB"; then
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "ranlib", so it can be a program name with args.
2985 set dummy ranlib; ac_word=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test -n "$RANLIB"; then
2992 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2996 for ac_dir in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir=.
2998 if test -f $ac_dir/$ac_word; then
2999 ac_cv_prog_RANLIB="ranlib"
3004 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3007 RANLIB="$ac_cv_prog_RANLIB"
3008 if test -n "$RANLIB"; then
3009 echo "$ac_t""$RANLIB" 1>&6
3011 echo "$ac_t""no" 1>&6
3019 for ac_prog in 'bison -y' byacc
3021 # Extract the first word of "$ac_prog", so it can be a program name with args.
3022 set dummy $ac_prog; ac_word=$2
3023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3024 echo "configure:3025: checking for $ac_word" >&5
3025 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 if test -n "$YACC"; then
3029 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3033 for ac_dir in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir=.
3035 if test -f $ac_dir/$ac_word; then
3036 ac_cv_prog_YACC="$ac_prog"
3043 YACC="$ac_cv_prog_YACC"
3044 if test -n "$YACC"; then
3045 echo "$ac_t""$YACC" 1>&6
3047 echo "$ac_t""no" 1>&6
3050 test -n "$YACC" && break
3052 test -n "$YACC" || YACC="yacc"
3055 if test "$program_transform_name" = s,x,x,; then
3056 program_transform_name=
3058 # Double any \ or $. echo might interpret backslashes.
3059 cat <<\EOF_SED > conftestsed
3060 s,\\,\\\\,g; s,\$,$$,g
3062 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
3065 test "$program_prefix" != NONE &&
3066 program_transform_name="s,^,${program_prefix},; $program_transform_name"
3067 # Use a double $ so make ignores it.
3068 test "$program_suffix" != NONE &&
3069 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
3071 # sed with no file args requires a program.
3072 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
3075 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3076 echo "configure:3077: checking return type of signal handlers" >&5
3077 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 cat > conftest.$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3083 #include <sys/types.h>
3089 extern "C" void (*signal (int, void (*)(int)))(int);
3091 void (*signal ()) ();
3098 if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3100 ac_cv_type_signal=void
3102 echo "configure: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3105 ac_cv_type_signal=int
3110 echo "$ac_t""$ac_cv_type_signal" 1>&6
3111 cat >> confdefs.h <<EOF
3112 #define RETSIGTYPE $ac_cv_type_signal
3117 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3118 echo "configure:3119: checking for ANSI C header files" >&5
3119 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3131 { (eval echo configure:3132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3133 if test -z "$ac_err"; then
3135 ac_cv_header_stdc=yes
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3141 ac_cv_header_stdc=no
3145 if test $ac_cv_header_stdc = yes; then
3146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 egrep "memchr" >/dev/null 2>&1; then
3157 ac_cv_header_stdc=no
3163 if test $ac_cv_header_stdc = yes; then
3164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3171 egrep "free" >/dev/null 2>&1; then
3175 ac_cv_header_stdc=no
3181 if test $ac_cv_header_stdc = yes; then
3182 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3183 if test "$cross_compiling" = yes; then
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3190 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3191 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3193 int main () { int i; for (i = 0; i < 256; i++)
3194 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3198 if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3202 echo "configure: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3205 ac_cv_header_stdc=no
3213 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3214 if test $ac_cv_header_stdc = yes; then
3215 cat >> confdefs.h <<\EOF
3216 #define STDC_HEADERS 1
3222 for ac_hdr in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3223 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3224 string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
3225 term.h termio.h termios.h unistd.h wait.h sys/wait.h \
3226 wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
3229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3231 echo "configure:3232: checking for $ac_hdr" >&5
3232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3241 { (eval echo configure:3242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3243 if test -z "$ac_err"; then
3245 eval "ac_cv_header_$ac_safe=yes"
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3251 eval "ac_cv_header_$ac_safe=no"
3255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3256 echo "$ac_t""yes" 1>&6
3257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3258 cat >> confdefs.h <<EOF
3259 #define $ac_tr_hdr 1
3263 echo "$ac_t""no" 1>&6
3267 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3268 echo "configure:3269: checking whether stat file-mode macros are broken" >&5
3269 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3275 #include <sys/types.h>
3276 #include <sys/stat.h>
3278 #if defined(S_ISBLK) && defined(S_IFDIR)
3279 # if S_ISBLK (S_IFDIR)
3284 #if defined(S_ISBLK) && defined(S_IFCHR)
3285 # if S_ISBLK (S_IFCHR)
3290 #if defined(S_ISLNK) && defined(S_IFREG)
3291 # if S_ISLNK (S_IFREG)
3296 #if defined(S_ISSOCK) && defined(S_IFREG)
3297 # if S_ISSOCK (S_IFREG)
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 egrep "You lose" >/dev/null 2>&1; then
3306 ac_cv_header_stat_broken=yes
3309 ac_cv_header_stat_broken=no
3315 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3316 if test $ac_cv_header_stat_broken = yes; then
3317 cat >> confdefs.h <<\EOF
3318 #define STAT_MACROS_BROKEN 1
3324 echo $ac_n "checking for working const""... $ac_c" 1>&6
3325 echo "configure:3326: checking for working const" >&5
3326 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3335 /* Ultrix mips cc rejects this. */
3336 typedef int charset[2]; const charset x;
3337 /* SunOS 4.1.1 cc rejects this. */
3338 char const *const *ccp;
3340 /* NEC SVR4.0.2 mips cc rejects this. */
3341 struct point {int x, y;};
3342 static struct point const zero = {0,0};
3343 /* AIX XL C 1.02.0.0 rejects this.
3344 It does not let you subtract one const X* pointer from another in an arm
3345 of an if-expression whose if-part is not a constant expression */
3346 const char *g = "string";
3347 ccp = &g + (g ? g-g : 0);
3348 /* HPUX 7.0 cc rejects these. */
3351 ccp = (char const *const *) p;
3352 { /* SCO 3.2v4 cc rejects this. */
3354 char const *s = 0 ? (char *) 0 : (char const *) 0;
3358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3360 const int *foo = &x[0];
3363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3364 typedef const int *iptr;
3368 { /* AIX XL C 1.02.0.0 rejects this saying
3369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3370 struct s { int j; const int *ap[3]; };
3371 struct s *b; b->j = 5;
3373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3379 if { (eval echo configure:3380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3391 echo "$ac_t""$ac_cv_c_const" 1>&6
3392 if test $ac_cv_c_const = no; then
3393 cat >> confdefs.h <<\EOF
3400 for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3403 echo "configure:3404: checking for $ac_func" >&5
3404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3410 /* System header to define __stub macros and hopefully few prototypes,
3411 which can conflict with char $ac_func(); below. */
3413 /* Override any gcc2 internal prototype to avoid an error. */
3414 /* We use char because int might match the return type of a gcc2
3415 builtin and then its argument prototype would still apply. */
3420 /* The GNU C library defines this for functions which it implements
3421 to always fail with ENOSYS. Some functions are actually named
3422 something starting with __ and the normal name is an alias. */
3423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3431 if { (eval echo configure:3432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3433 eval "ac_cv_func_$ac_func=yes"
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3438 eval "ac_cv_func_$ac_func=no"
3443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3444 echo "$ac_t""yes" 1>&6
3445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3446 cat >> confdefs.h <<EOF
3447 #define $ac_tr_func 1
3451 echo "$ac_t""no" 1>&6
3455 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3456 # for constant arguments. Useless!
3457 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3458 echo "configure:3459: checking for working alloca.h" >&5
3459 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3467 char *p = alloca(2 * sizeof(int));
3470 if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3472 ac_cv_header_alloca_h=yes
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3477 ac_cv_header_alloca_h=no
3482 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3483 if test $ac_cv_header_alloca_h = yes; then
3484 cat >> confdefs.h <<\EOF
3485 #define HAVE_ALLOCA_H 1
3490 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3491 echo "configure:3492: checking for alloca" >&5
3492 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3500 # define alloca __builtin_alloca
3503 # include <malloc.h>
3504 # define alloca _alloca
3507 # include <alloca.h>
3512 # ifndef alloca /* predefined by HP cc +Olibcalls */
3521 char *p = (char *) alloca(1);
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3526 ac_cv_func_alloca_works=yes
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3531 ac_cv_func_alloca_works=no
3536 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3537 if test $ac_cv_func_alloca_works = yes; then
3538 cat >> confdefs.h <<\EOF
3539 #define HAVE_ALLOCA 1
3544 if test $ac_cv_func_alloca_works = no; then
3545 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3546 # that cause trouble. Some versions do not even contain alloca or
3547 # contain a buggy version. If you still want to use their alloca,
3548 # use ar to extract alloca.o from them instead of compiling alloca.c.
3549 ALLOCA=alloca.${ac_objext}
3550 cat >> confdefs.h <<\EOF
3555 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3556 echo "configure:3557: checking whether alloca needs Cray hooks" >&5
3557 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #if defined(CRAY) && ! defined(CRAY2)
3570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3571 egrep "webecray" >/dev/null 2>&1; then
3582 echo "$ac_t""$ac_cv_os_cray" 1>&6
3583 if test $ac_cv_os_cray = yes; then
3584 for ac_func in _getb67 GETB67 getb67; do
3585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3586 echo "configure:3587: checking for $ac_func" >&5
3587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 /* System header to define __stub macros and hopefully few prototypes,
3594 which can conflict with char $ac_func(); below. */
3596 /* Override any gcc2 internal prototype to avoid an error. */
3597 /* We use char because int might match the return type of a gcc2
3598 builtin and then its argument prototype would still apply. */
3603 /* The GNU C library defines this for functions which it implements
3604 to always fail with ENOSYS. Some functions are actually named
3605 something starting with __ and the normal name is an alias. */
3606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3614 if { (eval echo configure:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3616 eval "ac_cv_func_$ac_func=yes"
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3621 eval "ac_cv_func_$ac_func=no"
3626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
3628 cat >> confdefs.h <<EOF
3629 #define CRAY_STACKSEG_END $ac_func
3634 echo "$ac_t""no" 1>&6
3640 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3641 echo "configure:3642: checking stack direction for C alloca" >&5
3642 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 if test "$cross_compiling" = yes; then
3646 ac_cv_c_stack_direction=0
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 find_stack_direction ()
3653 static char *addr = 0;
3658 return find_stack_direction ();
3661 return (&dummy > addr) ? 1 : -1;
3665 exit (find_stack_direction() < 0);
3668 if { (eval echo configure:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3670 ac_cv_c_stack_direction=1
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 ac_cv_c_stack_direction=-1
3682 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3683 cat >> confdefs.h <<EOF
3684 #define STACK_DIRECTION $ac_cv_c_stack_direction
3690 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3691 echo "configure:3692: checking for PTRACE_GETXFPREGS" >&5
3692 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3698 #include <sys/ptrace.h>
3703 if { (eval echo configure:3704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705 gdb_cv_have_ptrace_getxfpregs=yes
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3710 gdb_cv_have_ptrace_getxfpregs=no
3715 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3716 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3717 cat >> confdefs.h <<\EOF
3718 #define HAVE_PTRACE_GETXFPREGS 1
3723 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3724 echo "configure:3725: checking for socketpair in -lsocket" >&5
3725 ac_lib_var=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 ac_save_LIBS="$LIBS"
3730 LIBS="-lsocket $LIBS"
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 /* Override any gcc2 internal prototype to avoid an error. */
3735 /* We use char because int might match the return type of a gcc2
3736 builtin and then its argument prototype would still apply. */
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745 eval "ac_cv_lib_$ac_lib_var=yes"
3747 echo "configure: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3750 eval "ac_cv_lib_$ac_lib_var=no"
3753 LIBS="$ac_save_LIBS"
3756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3757 echo "$ac_t""yes" 1>&6
3758 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3759 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3760 cat >> confdefs.h <<EOF
3761 #define $ac_tr_lib 1
3764 LIBS="-lsocket $LIBS"
3767 echo "$ac_t""no" 1>&6
3770 for ac_func in socketpair
3772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3773 echo "configure:3774: checking for $ac_func" >&5
3774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 /* System header to define __stub macros and hopefully few prototypes,
3781 which can conflict with char $ac_func(); below. */
3783 /* Override any gcc2 internal prototype to avoid an error. */
3784 /* We use char because int might match the return type of a gcc2
3785 builtin and then its argument prototype would still apply. */
3790 /* The GNU C library defines this for functions which it implements
3791 to always fail with ENOSYS. Some functions are actually named
3792 something starting with __ and the normal name is an alias. */
3793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3801 if { (eval echo configure:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3803 eval "ac_cv_func_$ac_func=yes"
3805 echo "configure: failed program was:" >&5
3806 cat conftest.$ac_ext >&5
3808 eval "ac_cv_func_$ac_func=no"
3813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3814 echo "$ac_t""yes" 1>&6
3815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3816 cat >> confdefs.h <<EOF
3817 #define $ac_tr_func 1
3821 echo "$ac_t""no" 1>&6
3827 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3828 echo "configure:3829: checking whether malloc must be declared" >&5
3829 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3837 #ifdef HAVE_STRING_H
3840 #ifdef HAVE_STRINGS_H
3841 #include <strings.h>
3844 #ifdef HAVE_STDLIB_H
3847 #ifdef HAVE_UNISTD_H
3851 char *(*pfn) = (char *(*)) malloc
3854 if { (eval echo configure:3855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3856 bfd_cv_decl_needed_malloc=no
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3861 bfd_cv_decl_needed_malloc=yes
3866 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3867 if test $bfd_cv_decl_needed_malloc = yes; then
3868 cat >> confdefs.h <<\EOF
3869 #define NEED_DECLARATION_MALLOC 1
3874 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3875 echo "configure:3876: checking whether realloc must be declared" >&5
3876 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+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"
3884 #ifdef HAVE_STRING_H
3887 #ifdef HAVE_STRINGS_H
3888 #include <strings.h>
3891 #ifdef HAVE_STDLIB_H
3894 #ifdef HAVE_UNISTD_H
3898 char *(*pfn) = (char *(*)) realloc
3901 if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3903 bfd_cv_decl_needed_realloc=no
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 bfd_cv_decl_needed_realloc=yes
3913 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3914 if test $bfd_cv_decl_needed_realloc = yes; then
3915 cat >> confdefs.h <<\EOF
3916 #define NEED_DECLARATION_REALLOC 1
3921 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3922 echo "configure:3923: checking whether free must be declared" >&5
3923 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3926 cat > conftest.$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3931 #ifdef HAVE_STRING_H
3934 #ifdef HAVE_STRINGS_H
3935 #include <strings.h>
3938 #ifdef HAVE_STDLIB_H
3941 #ifdef HAVE_UNISTD_H
3945 char *(*pfn) = (char *(*)) free
3948 if { (eval echo configure:3949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3950 bfd_cv_decl_needed_free=no
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3955 bfd_cv_decl_needed_free=yes
3960 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3961 if test $bfd_cv_decl_needed_free = yes; then
3962 cat >> confdefs.h <<\EOF
3963 #define NEED_DECLARATION_FREE 1
3968 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3969 echo "configure:3970: checking whether strerror must be declared" >&5
3970 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3978 #ifdef HAVE_STRING_H
3981 #ifdef HAVE_STRINGS_H
3982 #include <strings.h>
3985 #ifdef HAVE_STDLIB_H
3988 #ifdef HAVE_UNISTD_H
3992 char *(*pfn) = (char *(*)) strerror
3995 if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3997 bfd_cv_decl_needed_strerror=no
3999 echo "configure: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4002 bfd_cv_decl_needed_strerror=yes
4007 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4008 if test $bfd_cv_decl_needed_strerror = yes; then
4009 cat >> confdefs.h <<\EOF
4010 #define NEED_DECLARATION_STRERROR 1
4015 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4016 echo "configure:4017: checking whether strdup must be declared" >&5
4017 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4025 #ifdef HAVE_STRING_H
4028 #ifdef HAVE_STRINGS_H
4029 #include <strings.h>
4032 #ifdef HAVE_STDLIB_H
4035 #ifdef HAVE_UNISTD_H
4039 char *(*pfn) = (char *(*)) strdup
4042 if { (eval echo configure:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4044 bfd_cv_decl_needed_strdup=no
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4049 bfd_cv_decl_needed_strdup=yes
4054 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4055 if test $bfd_cv_decl_needed_strdup = yes; then
4056 cat >> confdefs.h <<\EOF
4057 #define NEED_DECLARATION_STRDUP 1
4062 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4063 echo "configure:4064: checking whether strstr must be declared" >&5
4064 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4072 #ifdef HAVE_STRING_H
4075 #ifdef HAVE_STRINGS_H
4076 #include <strings.h>
4079 #ifdef HAVE_STDLIB_H
4082 #ifdef HAVE_UNISTD_H
4086 char *(*pfn) = (char *(*)) strstr
4089 if { (eval echo configure:4090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4091 bfd_cv_decl_needed_strstr=no
4093 echo "configure: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4096 bfd_cv_decl_needed_strstr=yes
4101 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4102 if test $bfd_cv_decl_needed_strstr = yes; then
4103 cat >> confdefs.h <<\EOF
4104 #define NEED_DECLARATION_STRSTR 1
4111 # The following save_state_t checkery is only necessary for HPUX
4112 # versions earlier than 10.20. When those fade from memory, this
4113 # could be expunged. --jsm 1999-03-22
4115 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4116 echo "configure:4117: checking for HPUX save_state structure" >&5
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 #include <machine/save_state.h>
4122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123 egrep "save_state_t" >/dev/null 2>&1; then
4125 gdb_cv_hpux_savestate=yes
4128 gdb_cv_hpux_savestate=no
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 #include <machine/save_state.h>
4137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4138 egrep "ss_wide" >/dev/null 2>&1; then
4140 gdb_cv_hpux_sswide=yes
4143 gdb_cv_hpux_sswide=no
4147 if test $gdb_cv_hpux_savestate = yes
4149 cat >> confdefs.h <<\EOF
4150 #define HAVE_STRUCT_SAVE_STATE_T 1
4154 if test $gdb_cv_hpux_sswide = yes
4156 cat >> confdefs.h <<\EOF
4157 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4161 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4164 # If we are configured native on GNU/Linux, work around problems with
4166 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4168 if test "${target}" = "${host}"; then
4171 cat >> confdefs.h <<\EOF
4172 #define START_INFERIOR_TRAPS_EXPECTED 2
4175 cat >> confdefs.h <<\EOF
4176 #define sys_quotactl 1
4180 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5*)
4181 cat >> confdefs.h <<\EOF
4182 #define NEW_PROC_API 1
4186 # FIXME: we would like to define NEW_PROC_API for all versions of
4187 # Solaris from 2.6 on... but it isn't quite working yet. Seems
4188 # to work on sparc 2.6, so let's try it out there.
4189 sparc-sun-solaris2.6)
4190 cat >> confdefs.h <<\EOF
4191 #define NEW_PROC_API 1
4198 if test "$ac_cv_header_sys_procfs_h" = yes; then
4199 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4200 echo "configure:4201: checking for pstatus_t in sys/procfs.h" >&5
4201 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4207 #include <sys/procfs.h>
4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4214 bfd_cv_have_sys_procfs_type_pstatus_t=yes
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4219 bfd_cv_have_sys_procfs_type_pstatus_t=no
4225 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4226 cat >> confdefs.h <<\EOF
4227 #define HAVE_PSTATUS_T 1
4231 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4233 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4234 echo "configure:4235: checking for prrun_t in sys/procfs.h" >&5
4235 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241 #include <sys/procfs.h>
4246 if { (eval echo configure:4247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4248 bfd_cv_have_sys_procfs_type_prrun_t=yes
4250 echo "configure: failed program was:" >&5
4251 cat conftest.$ac_ext >&5
4253 bfd_cv_have_sys_procfs_type_prrun_t=no
4259 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4260 cat >> confdefs.h <<\EOF
4261 #define HAVE_PRRUN_T 1
4265 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4267 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4268 echo "configure:4269: checking for gregset_t in sys/procfs.h" >&5
4269 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 #include <sys/procfs.h>
4280 if { (eval echo configure:4281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4282 bfd_cv_have_sys_procfs_type_gregset_t=yes
4284 echo "configure: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4287 bfd_cv_have_sys_procfs_type_gregset_t=no
4293 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4294 cat >> confdefs.h <<\EOF
4295 #define HAVE_GREGSET_T 1
4299 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4301 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4302 echo "configure:4303: checking for fpregset_t in sys/procfs.h" >&5
4303 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 #include <sys/procfs.h>
4314 if { (eval echo configure:4315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4316 bfd_cv_have_sys_procfs_type_fpregset_t=yes
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4321 bfd_cv_have_sys_procfs_type_fpregset_t=no
4327 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4328 cat >> confdefs.h <<\EOF
4329 #define HAVE_FPREGSET_T 1
4333 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4337 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4338 echo "configure:4339: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4339 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4340 echo $ac_n "(cached) $ac_c" 1>&6
4342 cat > conftest.$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4346 #include <sys/types.h>
4347 #include <sys/procfs.h>
4352 dummy = ioctl(0, PIOCSET, &dummy);
4356 if { (eval echo configure:4357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4358 gdb_cv_have_procfs_piocset=yes
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4363 gdb_cv_have_procfs_piocset=no
4368 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4369 if test $gdb_cv_have_procfs_piocset = yes; then
4370 cat >> confdefs.h <<\EOF
4371 #define HAVE_PROCFS_PIOCSET 1
4377 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4378 echo "configure:4379: checking for main in -lm" >&5
4379 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 ac_save_LIBS="$LIBS"
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 eval "ac_cv_lib_$ac_lib_var=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 eval "ac_cv_lib_$ac_lib_var=no"
4403 LIBS="$ac_save_LIBS"
4406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4407 echo "$ac_t""yes" 1>&6
4408 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4409 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4410 cat >> confdefs.h <<EOF
4411 #define $ac_tr_lib 1
4417 echo "$ac_t""no" 1>&6
4421 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4422 echo "configure:4423: checking for wctype in -lc" >&5
4423 ac_lib_var=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 ac_save_LIBS="$LIBS"
4429 cat > conftest.$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4432 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4441 if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4443 eval "ac_cv_lib_$ac_lib_var=yes"
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4448 eval "ac_cv_lib_$ac_lib_var=no"
4451 LIBS="$ac_save_LIBS"
4454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4455 echo "$ac_t""yes" 1>&6
4458 echo "$ac_t""no" 1>&6
4459 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4460 echo "configure:4461: checking for wctype in -lw" >&5
4461 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4465 ac_save_LIBS="$LIBS"
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4470 /* Override any gcc2 internal prototype to avoid an error. */
4471 /* We use char because int might match the return type of a gcc2
4472 builtin and then its argument prototype would still apply. */
4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4481 eval "ac_cv_lib_$ac_lib_var=yes"
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4486 eval "ac_cv_lib_$ac_lib_var=no"
4489 LIBS="$ac_save_LIBS"
4492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4493 echo "$ac_t""yes" 1>&6
4494 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4496 cat >> confdefs.h <<EOF
4497 #define $ac_tr_lib 1
4503 echo "$ac_t""no" 1>&6
4510 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4511 echo "configure:4512: checking for long long support in compiler" >&5
4512 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4521 extern long long foo;
4522 switch (foo & 2) { case 0: return 1; }
4526 if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4528 gdb_cv_c_long_long=yes
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 gdb_cv_c_long_long=no
4538 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4539 if test $gdb_cv_c_long_long = yes; then
4540 cat >> confdefs.h <<\EOF
4541 #define CC_HAS_LONG_LONG 1
4547 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4548 echo "configure:4549: checking for long long support in printf" >&5
4549 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 if test "$cross_compiling" = yes; then
4553 gdb_cv_printf_has_long_long=no
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4562 l = (l << 16) + 0x0123;
4563 l = (l << 16) + 0x4567;
4564 l = (l << 16) + 0x89ab;
4565 l = (l << 16) + 0xcdef;
4566 sprintf (buf, "0x%016llx", l);
4567 return (strcmp ("0x0123456789abcdef", buf));
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4572 gdb_cv_printf_has_long_long=yes
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 gdb_cv_printf_has_long_long=no
4584 if test $gdb_cv_printf_has_long_long = yes; then
4585 cat >> confdefs.h <<\EOF
4586 #define PRINTF_HAS_LONG_LONG 1
4590 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4593 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4594 echo "configure:4595: checking for long double support in compiler" >&5
4595 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4606 if { (eval echo configure:4607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4608 ac_cv_c_long_double=yes
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 ac_cv_c_long_double=no
4618 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4619 if test $ac_cv_c_long_double = yes; then
4620 cat >> confdefs.h <<\EOF
4621 #define HAVE_LONG_DOUBLE 1
4627 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4628 echo "configure:4629: checking for long double support in printf" >&5
4629 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 if test "$cross_compiling" = yes; then
4633 gdb_cv_printf_has_long_double=no
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4641 long double f = 3.141592653;
4642 sprintf (buf, "%Lg", f);
4643 return (strncmp ("3.14159", buf, 7));
4646 if { (eval echo configure:4647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4648 gdb_cv_printf_has_long_double=yes
4650 echo "configure: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4653 gdb_cv_printf_has_long_double=no
4660 if test $gdb_cv_printf_has_long_double = yes; then
4661 cat >> confdefs.h <<\EOF
4662 #define PRINTF_HAS_LONG_DOUBLE 1
4666 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4669 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4670 echo "configure:4671: checking for long double support in scanf" >&5
4671 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 if test "$cross_compiling" = yes; then
4675 gdb_cv_scanf_has_long_double=no
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4682 char *buf = "3.141592653";
4684 sscanf (buf, "%Lg", &f);
4685 return !(f > 3.14159 && f < 3.14160);
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4690 gdb_cv_scanf_has_long_double=yes
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 gdb_cv_scanf_has_long_double=no
4702 if test $gdb_cv_scanf_has_long_double = yes; then
4703 cat >> confdefs.h <<\EOF
4704 #define SCANF_HAS_LONG_DOUBLE 1
4708 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4710 for ac_hdr in unistd.h
4712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_hdr" >&5
4715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4724 { (eval echo configure:4725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4726 if test -z "$ac_err"; then
4728 eval "ac_cv_header_$ac_safe=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_header_$ac_safe=no"
4738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4741 cat >> confdefs.h <<EOF
4742 #define $ac_tr_hdr 1
4746 echo "$ac_t""no" 1>&6
4750 for ac_func in getpagesize
4752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_func" >&5
4754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 /* System header to define __stub macros and hopefully few prototypes,
4761 which can conflict with char $ac_func(); below. */
4763 /* Override any gcc2 internal prototype to avoid an error. */
4764 /* We use char because int might match the return type of a gcc2
4765 builtin and then its argument prototype would still apply. */
4770 /* The GNU C library defines this for functions which it implements
4771 to always fail with ENOSYS. Some functions are actually named
4772 something starting with __ and the normal name is an alias. */
4773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4781 if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 eval "ac_cv_func_$ac_func=yes"
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 eval "ac_cv_func_$ac_func=no"
4793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_func 1
4801 echo "$ac_t""no" 1>&6
4805 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4806 echo "configure:4807: checking for working mmap" >&5
4807 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4810 if test "$cross_compiling" = yes; then
4811 ac_cv_func_mmap_fixed_mapped=no
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4817 /* Thanks to Mike Haertel and Jim Avera for this test.
4818 Here is a matrix of mmap possibilities:
4819 mmap private not fixed
4820 mmap private fixed at somewhere currently unmapped
4821 mmap private fixed at somewhere already mapped
4822 mmap shared not fixed
4823 mmap shared fixed at somewhere currently unmapped
4824 mmap shared fixed at somewhere already mapped
4825 For private mappings, we should verify that changes cannot be read()
4826 back from the file, nor mmap's back from the file at a different
4827 address. (There have been systems where private was not correctly
4828 implemented like the infamous i386 svr4.0, and systems where the
4829 VM page cache was not coherent with the filesystem buffer cache
4830 like early versions of FreeBSD and possibly contemporary NetBSD.)
4831 For shared mappings, we should conversely verify that changes get
4832 propogated back to all the places they're supposed to be.
4834 Grep wants private fixed already mapped.
4835 The main things grep needs to know about mmap are:
4836 * does it exist and is it safe to write into the mmap'd area
4837 * how to use it (BSD variants) */
4838 #include <sys/types.h>
4840 #include <sys/mman.h>
4842 /* This mess was copied from the GNU getpagesize.h. */
4843 #ifndef HAVE_GETPAGESIZE
4844 # ifdef HAVE_UNISTD_H
4845 # include <unistd.h>
4848 /* Assume that all systems that can run configure have sys/param.h. */
4849 # ifndef HAVE_SYS_PARAM_H
4850 # define HAVE_SYS_PARAM_H 1
4853 # ifdef _SC_PAGESIZE
4854 # define getpagesize() sysconf(_SC_PAGESIZE)
4855 # else /* no _SC_PAGESIZE */
4856 # ifdef HAVE_SYS_PARAM_H
4857 # include <sys/param.h>
4858 # ifdef EXEC_PAGESIZE
4859 # define getpagesize() EXEC_PAGESIZE
4860 # else /* no EXEC_PAGESIZE */
4862 # define getpagesize() NBPG * CLSIZE
4865 # endif /* no CLSIZE */
4866 # else /* no NBPG */
4868 # define getpagesize() NBPC
4869 # else /* no NBPC */
4871 # define getpagesize() PAGESIZE
4872 # endif /* PAGESIZE */
4873 # endif /* no NBPC */
4874 # endif /* no NBPG */
4875 # endif /* no EXEC_PAGESIZE */
4876 # else /* no HAVE_SYS_PARAM_H */
4877 # define getpagesize() 8192 /* punt totally */
4878 # endif /* no HAVE_SYS_PARAM_H */
4879 # endif /* no _SC_PAGESIZE */
4881 #endif /* no HAVE_GETPAGESIZE */
4884 extern "C" { void *malloc(unsigned); }
4892 char *data, *data2, *data3;
4896 pagesize = getpagesize();
4899 * First, make a file with some known garbage in it.
4901 data = malloc(pagesize);
4904 for (i = 0; i < pagesize; ++i)
4905 *(data + i) = rand();
4907 fd = creat("conftestmmap", 0600);
4910 if (write(fd, data, pagesize) != pagesize)
4915 * Next, try to mmap the file at a fixed address which
4916 * already has something else allocated at it. If we can,
4917 * also make sure that we see the same garbage.
4919 fd = open("conftestmmap", O_RDWR);
4922 data2 = malloc(2 * pagesize);
4925 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4926 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4927 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4929 for (i = 0; i < pagesize; ++i)
4930 if (*(data + i) != *(data2 + i))
4934 * Finally, make sure that changes to the mapped area
4935 * do not percolate back to the file as seen by read().
4936 * (This is a bug on some variants of i386 svr4.0.)
4938 for (i = 0; i < pagesize; ++i)
4939 *(data2 + i) = *(data2 + i) + 1;
4940 data3 = malloc(pagesize);
4943 if (read(fd, data3, pagesize) != pagesize)
4945 for (i = 0; i < pagesize; ++i)
4946 if (*(data + i) != *(data3 + i))
4949 unlink("conftestmmap");
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4956 ac_cv_func_mmap_fixed_mapped=yes
4958 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4961 ac_cv_func_mmap_fixed_mapped=no
4968 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4969 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4970 cat >> confdefs.h <<\EOF
4979 if test ${build} = ${host} -a ${host} = ${target} ; then
4982 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4983 echo "configure:4984: checking for HPUX/OSF thread support" >&5
4984 if test -f /usr/include/dce/cma_config.h ; then
4985 if test "$GCC" = "yes" ; then
4986 echo "$ac_t""yes" 1>&6
4987 cat >> confdefs.h <<\EOF
4988 #define HAVE_HPUX_THREAD_SUPPORT 1
4991 CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
4992 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
4994 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4997 echo "$ac_t""no" 1>&6
5001 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5002 echo "configure:5003: checking for Solaris thread debugging library" >&5
5003 if test -f /usr/lib/libthread_db.so.1 ; then
5004 echo "$ac_t""yes" 1>&6
5005 cat >> confdefs.h <<\EOF
5006 #define HAVE_THREAD_DB_LIB 1
5009 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
5010 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
5011 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5012 echo "configure:5013: checking for dlopen in -ldl" >&5
5013 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 ac_save_LIBS="$LIBS"
5019 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5022 /* Override any gcc2 internal prototype to avoid an error. */
5023 /* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033 eval "ac_cv_lib_$ac_lib_var=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 eval "ac_cv_lib_$ac_lib_var=no"
5041 LIBS="$ac_save_LIBS"
5044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5046 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5047 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5048 cat >> confdefs.h <<EOF
5049 #define $ac_tr_lib 1
5055 echo "$ac_t""no" 1>&6
5058 if test "$GCC" = "yes" ; then
5059 # The GNU linker requires the -export-dynamic option to make
5060 # all symbols visible in the dynamic symbol table.
5061 hold_ldflags=$LDFLAGS
5062 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5063 echo "configure:5064: checking for the ld -export-dynamic flag" >&5
5064 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
5065 cat > conftest.$ac_ext <<EOF
5066 #line 5067 "configure"
5067 #include "confdefs.h"
5073 if { (eval echo configure:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5083 LDFLAGS=$hold_ldflags
5084 echo "$ac_t""$found" 1>&6
5085 if test $found = yes; then
5086 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5089 # Sun randomly tweaked the prototypes in <proc_service.h>
5091 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5092 echo "configure:5093: checking if <proc_service.h> is old" >&5
5093 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5101 #include <proc_service.h>
5103 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5109 if { (eval echo configure:5110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5111 gdb_cv_proc_service_is_old=no
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 gdb_cv_proc_service_is_old=yes
5122 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5123 if test $gdb_cv_proc_service_is_old = yes; then
5124 cat >> confdefs.h <<\EOF
5125 #define PROC_SERVICE_IS_OLD 1
5130 echo "$ac_t""no" 1>&6
5139 # Check whether --enable-tui or --disable-tui was given.
5140 if test "${enable_tui+set}" = set; then
5141 enableval="$enable_tui"
5143 case "${enable_tui}" in
5145 "") enable_tui=yes ;;
5147 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5153 case ${enable_tui} in
5155 cat >> confdefs.h <<\EOF
5160 TUI_LIBRARY=tui/libtui.a
5170 # Check whether --enable-netrom or --disable-netrom was given.
5171 if test "${enable_netrom+set}" = set; then
5172 enableval="$enable_netrom"
5173 case "${enableval}" in
5174 yes) enable_netrom=yes ;;
5175 no) enable_netrom=no ;;
5176 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5181 if test "${enable_netrom}" = "yes"; then
5182 CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
5183 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
5186 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5187 if test "${enable_build_warnings+set}" = set; then
5188 enableval="$enable_build_warnings"
5189 build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
5190 case "${enableval}" in
5192 no) build_warnings="-w";;
5193 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5194 build_warnings="${build_warnings} ${t}";;
5195 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5196 build_warnings="${t} ${build_warnings}";;
5197 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5199 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5200 echo "Setting warning flags = $build_warnings" 6>&1
5204 if test "x${build_warnings}" != x -a "x$GCC" = xyes
5206 # Separate out the -Werror flag as some files just cannot be
5207 # compiled with it enabled.
5208 for w in ${build_warnings}; do
5210 -Werr*) WERROR_CFLAGS=-Werror ;;
5211 *) WARN_CFLAGS="${WARN_CFLAGS} $w"
5227 # Check whether --with-mmalloc or --without-mmalloc was given.
5228 if test "${with_mmalloc+set}" = set; then
5229 withval="$with_mmalloc"
5230 case "${withval}" in
5231 yes) want_mmalloc=true ;;
5232 no) want_mmalloc=false;;
5233 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5239 if test x$want_mmalloc = xtrue; then
5240 cat >> confdefs.h <<\EOF
5241 #define USE_MMALLOC 1
5244 cat >> confdefs.h <<\EOF
5245 #define MMCHECK_FORCE 1
5248 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
5249 MMALLOC='../mmalloc/libmmalloc.a'
5253 # In the Cygwin environment, we need some additional flags.
5254 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5255 echo "configure:5379: checking for cygwin" >&5
5256 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5384 "configure"
5261 #include "confdefs.h"
5263 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5268 egrep "lose" >/dev/null 2>&1; then
5270 gdb_cv_os_cygwin=yes
5279 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5281 DLLTOOL=${DLLTOOL-dlltool}
5282 WINDRES=${WINDRES-windres}
5286 if test x$gdb_host = xgo32; then
5289 if test x$gdb_cv_os_cygwin = xyes; then
5290 TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5293 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5294 echo "configure:5418: checking for tgetent in -lncurses" >&5
5295 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 ac_save_LIBS="$LIBS"
5300 LIBS="-lncurses $LIBS"
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5426 "configure"
5303 #include "confdefs.h"
5304 /* Override any gcc2 internal prototype to avoid an error. */
5305 /* We use char because int might match the return type of a gcc2
5306 builtin and then its argument prototype would still apply. */
5313 if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5315 eval "ac_cv_lib_$ac_lib_var=yes"
5317 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5320 eval "ac_cv_lib_$ac_lib_var=no"
5323 LIBS="$ac_save_LIBS"
5326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5327 echo "$ac_t""yes" 1>&6
5330 echo "$ac_t""no" 1>&6
5331 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5332 echo "configure:5456: checking for tgetent in -lHcurses" >&5
5333 ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5337 ac_save_LIBS="$LIBS"
5338 LIBS="-lHcurses $LIBS"
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5464 "configure"
5341 #include "confdefs.h"
5342 /* Override any gcc2 internal prototype to avoid an error. */
5343 /* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */
5351 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5353 eval "ac_cv_lib_$ac_lib_var=yes"
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5358 eval "ac_cv_lib_$ac_lib_var=no"
5361 LIBS="$ac_save_LIBS"
5364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5365 echo "$ac_t""yes" 1>&6
5368 echo "$ac_t""no" 1>&6
5369 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5370 echo "configure:5494: checking for tgetent in -ltermlib" >&5
5371 ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5375 ac_save_LIBS="$LIBS"
5376 LIBS="-ltermlib $LIBS"
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5502 "configure"
5379 #include "confdefs.h"
5380 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5389 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 eval "ac_cv_lib_$ac_lib_var=yes"
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 eval "ac_cv_lib_$ac_lib_var=no"
5399 LIBS="$ac_save_LIBS"
5402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5406 echo "$ac_t""no" 1>&6
5407 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5408 echo "configure:5532: checking for tgetent in -ltermcap" >&5
5409 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5413 ac_save_LIBS="$LIBS"
5414 LIBS="-ltermcap $LIBS"
5415 cat > conftest.$ac_ext <<EOF
5416 #line 5540 "configure"
5417 #include "confdefs.h"
5418 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5427 if { (eval echo configure:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5429 eval "ac_cv_lib_$ac_lib_var=yes"
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5434 eval "ac_cv_lib_$ac_lib_var=no"
5437 LIBS="$ac_save_LIBS"
5440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5441 echo "$ac_t""yes" 1>&6
5444 echo "$ac_t""no" 1>&6
5445 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5446 echo "configure:5570: checking for tgetent in -lcurses" >&5
5447 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5451 ac_save_LIBS="$LIBS"
5452 LIBS="-lcurses $LIBS"
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5578 "configure"
5455 #include "confdefs.h"
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5465 if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5467 eval "ac_cv_lib_$ac_lib_var=yes"
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5472 eval "ac_cv_lib_$ac_lib_var=no"
5475 LIBS="$ac_save_LIBS"
5478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5479 echo "$ac_t""yes" 1>&6
5482 echo "$ac_t""no" 1>&6
5483 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5484 echo "configure:5608: checking for tgetent in -lterminfo" >&5
5485 ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5489 ac_save_LIBS="$LIBS"
5490 LIBS="-lterminfo $LIBS"
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5616 "configure"
5493 #include "confdefs.h"
5494 /* Override any gcc2 internal prototype to avoid an error. */
5495 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */
5503 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5505 eval "ac_cv_lib_$ac_lib_var=yes"
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5510 eval "ac_cv_lib_$ac_lib_var=no"
5513 LIBS="$ac_save_LIBS"
5516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5517 echo "$ac_t""yes" 1>&6
5520 echo "$ac_t""no" 1>&6
5534 if test "x$TERM_LIB" = x
5536 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5542 # libreadline needs libuser32.a in a cygwin environment
5544 if test x$gdb_cv_os_cygwin = xyes; then
5545 WIN32LIBS="-luser32"
5547 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
5554 # Check whether --with-cpu or --without-cpu was given.
5555 if test "${with_cpu+set}" = set; then
5558 powerpc-* | powerpcle-* )
5559 ## It would be nice to keep this table in sync with the one in
5561 case "${with_cpu}" in
5562 ppc-uisa | rs6000 | 403 | 403GC | 505 | 860 | 601 | 602 | 603 \
5564 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5566 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1 )
5567 ## These are all RS6000 variants, as far as GDB is concerned.
5577 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5583 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5586 cat >> confdefs.h <<EOF
5587 #define TARGET_CPU_DEFAULT "${with_cpu}"
5596 # If we find X, set shell vars x_includes and x_libraries to the
5597 # paths, otherwise set no_x=yes.
5598 # Uses ac_ vars as temps to allow command line to override cache and checks.
5599 # --without-x overrides everything else, but does not touch the cache.
5600 echo $ac_n "checking for X""... $ac_c" 1>&6
5601 echo "configure:6704: checking for X" >&5
5603 # Check whether --with-x or --without-x was given.
5604 if test "${with_x+set}" = set; then
5609 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5610 if test "x$with_x" = xno; then
5611 # The user explicitly disabled X.
5614 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5615 # Both variables are already set.
5618 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 # One or both of the vars are not set, and there is no cached value.
5622 ac_x_includes=NO ac_x_libraries=NO
5624 if mkdir conftestdir; then
5626 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5627 cat > Imakefile <<'EOF'
5629 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5631 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5633 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5634 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5635 for ac_extension in a so sl; do
5636 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5637 test -f $ac_im_libdir/libX11.$ac_extension; then
5638 ac_im_usrlibdir=$ac_im_libdir; break
5641 # Screen out bogus values from the imake configuration. They are
5642 # bogus both because they are the default anyway, and because
5643 # using them would break gcc on systems where it needs fixed includes.
5644 case "$ac_im_incroot" in
5646 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5648 case "$ac_im_usrlibdir" in
5650 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5657 if test "$ac_x_includes" = NO; then
5658 # Guess where to find include files, by looking for this one X11 .h file.
5659 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5661 # First, try using that file with no special directory specified.
5662 cat > conftest.$ac_ext <<EOF
5663 #line 6766 "configure"
5664 #include "confdefs.h"
5665 #include <$x_direct_test_include>
5667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5668 { (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5670 if test -z "$ac_err"; then
5672 # We can compile using X headers with no special include directory.
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5679 # Look for the header file in a standard set of common directories.
5680 # Check X11 before X11Rn because it is often a symlink to the current release.
5683 /usr/X11R6/include \
5684 /usr/X11R5/include \
5685 /usr/X11R4/include \
5688 /usr/include/X11R6 \
5689 /usr/include/X11R5 \
5690 /usr/include/X11R4 \
5692 /usr/local/X11/include \
5693 /usr/local/X11R6/include \
5694 /usr/local/X11R5/include \
5695 /usr/local/X11R4/include \
5697 /usr/local/include/X11 \
5698 /usr/local/include/X11R6 \
5699 /usr/local/include/X11R5 \
5700 /usr/local/include/X11R4 \
5704 /usr/XFree86/include/X11 \
5707 /usr/local/include \
5708 /usr/unsupported/include \
5709 /usr/athena/include \
5710 /usr/local/x11r5/include \
5711 /usr/lpp/Xamples/include \
5713 /usr/openwin/include \
5714 /usr/openwin/share/include \
5717 if test -r "$ac_dir/$x_direct_test_include"; then
5718 ac_x_includes=$ac_dir
5724 fi # $ac_x_includes = NO
5726 if test "$ac_x_libraries" = NO; then
5727 # Check for the libraries.
5729 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5730 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5732 # See if we find them without any special options.
5733 # Don't add to $LIBS permanently.
5734 ac_save_LIBS="$LIBS"
5735 LIBS="-l$x_direct_test_library $LIBS"
5736 cat > conftest.$ac_ext <<EOF
5737 #line 6840 "configure"
5738 #include "confdefs.h"
5741 ${x_direct_test_function}()
5744 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5746 LIBS="$ac_save_LIBS"
5747 # We can link X programs with no special library path.
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 LIBS="$ac_save_LIBS"
5754 # First see if replacing the include by lib works.
5755 # Check X11 before X11Rn because it is often a symlink to the current release.
5756 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5767 /usr/local/X11/lib \
5768 /usr/local/X11R6/lib \
5769 /usr/local/X11R5/lib \
5770 /usr/local/X11R4/lib \
5772 /usr/local/lib/X11 \
5773 /usr/local/lib/X11R6 \
5774 /usr/local/lib/X11R5 \
5775 /usr/local/lib/X11R4 \
5779 /usr/XFree86/lib/X11 \
5783 /usr/unsupported/lib \
5785 /usr/local/x11r5/lib \
5786 /usr/lpp/Xamples/lib \
5790 /usr/openwin/share/lib \
5793 for ac_extension in a so sl; do
5794 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5795 ac_x_libraries=$ac_dir
5802 fi # $ac_x_libraries = NO
5804 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5805 # Didn't find X anywhere. Cache the known absence of X.
5806 ac_cv_have_x="have_x=no"
5808 # Record where we found X for the cache.
5809 ac_cv_have_x="have_x=yes \
5810 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5814 eval "$ac_cv_have_x"
5817 if test "$have_x" != yes; then
5818 echo "$ac_t""$have_x" 1>&6
5821 # If each of the values was on the command line, it overrides each guess.
5822 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5823 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5824 # Update the cache value to reflect the command line values.
5825 ac_cv_have_x="have_x=yes \
5826 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5827 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5832 # Unlike the sim directory, whether a simulator is linked is controlled by
5833 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
5834 # This code just checks for a few cases where we'd like to ignore those
5835 # definitions, even when they're present in the '.mt' file. These cases
5836 # are when --disable-sim is specified, or if the simulator directory is
5837 # not part of the soruce tree.
5839 # Check whether --enable-sim or --disable-sim was given.
5840 if test "${enable_sim+set}" = set; then
5841 enableval="$enable_sim"
5842 echo "enable_sim = $enable_sim";
5843 echo "enableval = ${enableval}";
5844 case "${enableval}" in
5845 yes) ignore_sim=false ;;
5846 no) ignore_sim=true ;;
5847 *) ignore_sim=false ;;
5854 if test ! -d "${srcdir}/../sim"; then
5858 if test "${ignore_sim}" = "true"; then
5860 IGNORE_SIM_OBS="SIM_OBS="
5864 cat >> confdefs.h <<\EOF
5878 # Begin stuff to support --enable-shared
5879 # Check whether --enable-shared or --disable-shared was given.
5880 if test "${enable_shared+set}" = set; then
5881 enableval="$enable_shared"
5882 case "${enableval}" in
5891 # If we have shared libraries, try to set rpath reasonably.
5892 if test "${shared}" = "true"; then
5895 HLDFLAGS='-Wl,+s,+b,$(libdir)'
5897 *-*-irix5* | *-*-irix6*)
5898 HLDFLAGS='-Wl,-rpath,$(libdir)'
5902 *-*-linux* | *-pc-linux-gnu)
5903 HLDFLAGS='-Wl,-rpath,$(libdir)'
5906 HLDFLAGS='-R $(libdir)'
5909 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;'
5914 # On SunOS, if the linker supports the -rpath option, use it to
5915 # prevent ../bfd and ../opcodes from being included in the run time
5919 echo 'main () { }' > conftest.c
5920 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
5921 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
5923 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
5925 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
5927 elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
5929 elif test "${shared}" = "true"; then
5930 HLDFLAGS='-Wl,-rpath=$(libdir)'
5932 HLDFLAGS='-Wl,-rpath='
5934 rm -f conftest.t conftest.c conftest
5939 # End stuff to support --enable-shared
5941 # target_subdir is used by the testsuite to find the target libraries.
5943 if test "${host}" != "${target}"; then
5944 target_subdir="${target_alias}/"
5949 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5950 if test ! -f ${host_makefile_frag}; then
5951 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
5953 frags="$frags $host_makefile_frag"
5955 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5956 if test ! -f ${target_makefile_frag}; then
5957 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
5959 frags="$frags $target_makefile_frag"
5966 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5967 ' ${host_makefile_frag}`
5969 targetfile=`sed -n '
5970 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5971 ' ${target_makefile_frag}`
5973 # these really aren't orthogonal true/false values of the same condition,
5974 # but shells are slow enough that I like to reuse the test conditions
5976 if test "${target}" = "${host}"; then
5977 nativefile=`sed -n '
5978 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5979 ' ${host_makefile_frag}`
5981 # GDBserver is only useful in a "native" enviroment
5982 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5986 SUBDIRS="doc testsuite nlm"
5987 if test "${enable_multi_ice}" = "yes"; then
5988 SUBDIRS="${SUBDIRS} multi-ice"
5993 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5994 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5995 # corresponding links. But we have to remove the xm.h files and tm.h
5996 # files anyway, e.g. when switching from "configure host" to
6002 if test "${hostfile}" != ""; then
6003 files="${files} config/${gdb_host_cpu}/${hostfile}"
6004 links="${links} xm.h"
6007 if test "${targetfile}" != ""; then
6008 files="${files} config/${gdb_target_cpu}/${targetfile}"
6009 links="${links} tm.h"
6012 if test "${nativefile}" != ""; then
6013 files="${files} config/${gdb_host_cpu}/${nativefile}"
6014 links="${links} nm.h"
6016 # A cross-only configuration.
6017 files="${files} config/nm-empty.h"
6018 links="${links} nm.h"
6023 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
6024 echo "configure:7198: checking for Cygwin environment" >&5
6025 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
6026 echo $ac_n "(cached) $ac_c" 1>&6
6028 cat > conftest.$ac_ext <<EOF
6029 #line 7203 "configure"
6030 #include "confdefs.h"
6035 #define __CYGWIN__ __CYGWIN32__
6040 if { (eval echo configure:7214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6044 echo "configure: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6053 echo "$ac_t""$ac_cv_cygwin" 1>&6
6055 test "$ac_cv_cygwin" = yes && CYGWIN=yes
6056 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
6057 echo "configure:7231: checking for mingw32 environment" >&5
6058 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6061 cat > conftest.$ac_ext <<EOF
6062 #line 7236 "configure"
6063 #include "confdefs.h"
6069 if { (eval echo configure:7243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6073 echo "configure: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6082 echo "$ac_t""$ac_cv_mingw32" 1>&6
6084 test "$ac_cv_mingw32" = yes && MINGW32=yes
6087 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6088 echo "configure:7262: checking for executable suffix" >&5
6089 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6092 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
6096 echo 'int main () { return 0; }' > conftest.$ac_ext
6098 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
6099 for file in conftest.*; do
6101 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
6102 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
6106 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
6109 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
6114 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
6115 echo "$ac_t""${ac_cv_exeext}" 1>&6
6119 subdirs="$configdirs"
6122 cat > confcache <<\EOF
6123 # This file is a shell script that caches the results of configure
6124 # tests run on this system so they can be shared between configure
6125 # scripts and configure runs. It is not useful on other systems.
6126 # If it contains results you don't want to keep, you may remove or edit it.
6128 # By default, configure uses ./config.cache as the cache file,
6129 # creating it if it does not exist already. You can give configure
6130 # the --cache-file=FILE option to use a different cache file; that is
6131 # what configure does when it calls configure scripts in
6132 # subdirectories, so they share the cache.
6133 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6134 # config.status only pays attention to the cache file if you give it the
6135 # --recheck option to rerun configure.
6138 # The following way of writing the cache mishandles newlines in values,
6139 # but we know of no workaround that is simple, portable, and efficient.
6140 # So, don't put newlines in cache variables' values.
6141 # Ultrix sh set writes to stderr and can't be redirected directly,
6142 # and sets the high bit in the cache file unless we assign to the vars.
6144 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6146 # `set' does not quote correctly, so add quotes (double-quote substitution
6147 # turns \\\\ into \\, and sed turns \\ into \).
6149 -e "s/'/'\\\\''/g" \
6150 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6153 # `set' quotes correctly as required by POSIX, so do not add quotes.
6154 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6157 if cmp -s $cache_file confcache; then
6160 if test -w $cache_file; then
6161 echo "updating cache $cache_file"
6162 cat confcache > $cache_file
6164 echo "not updating unwritable cache $cache_file"
6169 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6171 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6172 # Let make expand exec_prefix.
6173 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6175 # Any assignment to VPATH causes Sun make to only execute
6176 # the first set of double-colon rules, so remove it if not needed.
6177 # If there is a colon in the path, we need to keep it.
6178 if test "x$srcdir" = x.; then
6179 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6182 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6184 DEFS=-DHAVE_CONFIG_H
6186 # Without the "./", some shells look in PATH for config.status.
6187 : ${CONFIG_STATUS=./config.status}
6189 echo creating $CONFIG_STATUS
6190 rm -f $CONFIG_STATUS
6191 cat > $CONFIG_STATUS <<EOF
6193 # Generated automatically by configure.
6194 # Run this file to recreate the current configuration.
6195 # This directory was configured as follows,
6196 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6198 # $0 $ac_configure_args
6200 # Compiler output produced by configure, useful for debugging
6201 # configure, is in ./config.log if it exists.
6203 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6206 case "\$ac_option" in
6207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6208 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6209 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6210 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6211 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6213 -help | --help | --hel | --he | --h)
6214 echo "\$ac_cs_usage"; exit 0 ;;
6215 *) echo "\$ac_cs_usage"; exit 1 ;;
6219 ac_given_srcdir=$srcdir
6220 ac_given_INSTALL="$INSTALL"
6222 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6224 cat >> $CONFIG_STATUS <<EOF
6226 # Protect against being on the right side of a sed subst in config.status.
6227 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6228 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6232 s%@CFLAGS@%$CFLAGS%g
6233 s%@CPPFLAGS@%$CPPFLAGS%g
6234 s%@CXXFLAGS@%$CXXFLAGS%g
6235 s%@FFLAGS@%$FFLAGS%g
6237 s%@LDFLAGS@%$LDFLAGS%g
6239 s%@exec_prefix@%$exec_prefix%g
6240 s%@prefix@%$prefix%g
6241 s%@program_transform_name@%$program_transform_name%g
6242 s%@bindir@%$bindir%g
6243 s%@sbindir@%$sbindir%g
6244 s%@libexecdir@%$libexecdir%g
6245 s%@datadir@%$datadir%g
6246 s%@sysconfdir@%$sysconfdir%g
6247 s%@sharedstatedir@%$sharedstatedir%g
6248 s%@localstatedir@%$localstatedir%g
6249 s%@libdir@%$libdir%g
6250 s%@includedir@%$includedir%g
6251 s%@oldincludedir@%$oldincludedir%g
6252 s%@infodir@%$infodir%g
6253 s%@mandir@%$mandir%g
6257 s%@host_alias@%$host_alias%g
6258 s%@host_cpu@%$host_cpu%g
6259 s%@host_vendor@%$host_vendor%g
6260 s%@host_os@%$host_os%g
6261 s%@target@%$target%g
6262 s%@target_alias@%$target_alias%g
6263 s%@target_cpu@%$target_cpu%g
6264 s%@target_vendor@%$target_vendor%g
6265 s%@target_os@%$target_os%g
6267 s%@build_alias@%$build_alias%g
6268 s%@build_cpu@%$build_cpu%g
6269 s%@build_vendor@%$build_vendor%g
6270 s%@build_os@%$build_os%g
6271 s%@SET_MAKE@%$SET_MAKE%g
6272 s%@RANLIB@%$RANLIB%g
6273 s%@ALLOCA@%$ALLOCA%g
6274 s%@USE_NLS@%$USE_NLS%g
6275 s%@MSGFMT@%$MSGFMT%g
6276 s%@GMSGFMT@%$GMSGFMT%g
6277 s%@XGETTEXT@%$XGETTEXT%g
6278 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6279 s%@CATALOGS@%$CATALOGS%g
6280 s%@CATOBJEXT@%$CATOBJEXT%g
6281 s%@DATADIRNAME@%$DATADIRNAME%g
6282 s%@GMOFILES@%$GMOFILES%g
6283 s%@INSTOBJEXT@%$INSTOBJEXT%g
6284 s%@INTLDEPS@%$INTLDEPS%g
6285 s%@INTLLIBS@%$INTLLIBS%g
6286 s%@INTLOBJS@%$INTLOBJS%g
6287 s%@POFILES@%$POFILES%g
6289 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6291 s%@GT_YES@%$GT_YES%g
6292 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6295 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6296 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6297 s%@INSTALL_DATA@%$INSTALL_DATA%g
6300 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6301 s%@BUILD_TUI@%$BUILD_TUI%g
6302 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
6303 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6304 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
6305 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6306 s%@MMALLOC@%$MMALLOC%g
6307 s%@MACHINE_OBS@%$MACHINE_OBS%g
6308 s%@DLLTOOL@%$DLLTOOL%g
6309 s%@WINDRES@%$WINDRES%g
6310 s%@TERM_LIB@%$TERM_LIB%g
6311 s%@WIN32LIBS@%$WIN32LIBS%g
6312 s%@LIBGUI@%$LIBGUI%g
6313 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6314 s%@WIN32LDAPP@%$WIN32LDAPP%g
6315 s%@TCL_VERSION@%$TCL_VERSION%g
6316 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6317 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6318 s%@TCL_CC@%$TCL_CC%g
6319 s%@TCL_DEFS@%$TCL_DEFS%g
6320 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6321 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6322 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6323 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6324 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6325 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6326 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6327 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6328 s%@TCL_RANLIB@%$TCL_RANLIB%g
6329 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6330 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6331 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6332 s%@TK_VERSION@%$TK_VERSION%g
6333 s%@TK_DEFS@%$TK_DEFS%g
6334 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6335 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6336 s%@TK_XLIBSW@%$TK_XLIBSW%g
6337 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6338 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6339 s%@TCLHDIR@%$TCLHDIR%g
6340 s%@TKHDIR@%$TKHDIR%g
6341 s%@ITCLHDIR@%$ITCLHDIR%g
6342 s%@ITKHDIR@%$ITKHDIR%g
6343 s%@TIXHDIR@%$TIXHDIR%g
6344 s%@ITCL_VERSION@%$ITCL_VERSION%g
6345 s%@ITCL_DEFS@%$ITCL_DEFS%g
6346 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
6347 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
6348 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
6349 s%@ITK_VERSION@%$ITK_VERSION%g
6350 s%@ITK_DEFS@%$ITK_DEFS%g
6351 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
6352 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
6353 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
6354 s%@TIX_VERSION@%$TIX_VERSION%g
6355 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
6356 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6357 s%@X_CFLAGS@%$X_CFLAGS%g
6358 s%@X_LDFLAGS@%$X_LDFLAGS%g
6359 s%@X_LIBS@%$X_LIBS%g
6360 s%@ITCLLIB@%$ITCLLIB%g
6361 s%@ITCL_DEPS@%$ITCL_DEPS%g
6362 s%@ITKLIB@%$ITKLIB%g
6363 s%@ITK_DEPS@%$ITK_DEPS%g
6364 s%@TIXLIB@%$TIXLIB%g
6365 s%@TIX_DEPS@%$TIX_DEPS%g
6366 s%@GDBTKLIBS@%$GDBTKLIBS%g
6367 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
6368 s%@IGNORE_SIM@%$IGNORE_SIM%g
6369 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
6370 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6371 s%@CONFIG_OBS@%$CONFIG_OBS%g
6372 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6373 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6374 s%@HLDFLAGS@%$HLDFLAGS%g
6375 s%@HLDENV@%$HLDENV%g
6376 s%@target_subdir@%$target_subdir%g
6377 /@host_makefile_frag@/r $host_makefile_frag
6378 s%@host_makefile_frag@%%g
6379 /@target_makefile_frag@/r $target_makefile_frag
6380 s%@target_makefile_frag@%%g
6382 s%@SUBDIRS@%$SUBDIRS%g
6384 s%@EXEEXT@%$EXEEXT%g
6385 s%@subdirs@%$subdirs%g
6390 cat >> $CONFIG_STATUS <<\EOF
6392 # Split the substitutions into bite-sized pieces for seds with
6393 # small command number limits, like on Digital OSF/1 and HP-UX.
6394 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6395 ac_file=1 # Number of current file.
6396 ac_beg=1 # First line for current file.
6397 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6400 while $ac_more_lines; do
6401 if test $ac_beg -gt 1; then
6402 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6404 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6406 if test ! -s conftest.s$ac_file; then
6408 rm -f conftest.s$ac_file
6410 if test -z "$ac_sed_cmds"; then
6411 ac_sed_cmds="sed -f conftest.s$ac_file"
6413 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6415 ac_file=`expr $ac_file + 1`
6417 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6420 if test -z "$ac_sed_cmds"; then
6425 cat >> $CONFIG_STATUS <<EOF
6427 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
6429 cat >> $CONFIG_STATUS <<\EOF
6430 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6433 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6434 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6435 *) ac_file_in="${ac_file}.in" ;;
6438 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6440 # Remove last slash and all that follows it. Not all systems have dirname.
6441 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6442 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6443 # The file is in a subdirectory.
6444 test ! -d "$ac_dir" && mkdir "$ac_dir"
6445 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6446 # A "../" for each directory in $ac_dir_suffix.
6447 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6449 ac_dir_suffix= ac_dots=
6452 case "$ac_given_srcdir" in
6454 if test -z "$ac_dots"; then top_srcdir=.
6455 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6456 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6458 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6459 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6462 case "$ac_given_INSTALL" in
6463 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6464 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6467 echo creating "$ac_file"
6469 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6471 *Makefile*) ac_comsub="1i\\
6472 # $configure_input" ;;
6476 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6478 s%@configure_input@%$configure_input%g
6479 s%@srcdir@%$srcdir%g
6480 s%@top_srcdir@%$top_srcdir%g
6481 s%@INSTALL@%$INSTALL%g
6482 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6486 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6487 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6489 # ac_d sets the value in "#define NAME VALUE" lines.
6490 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6491 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6494 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6495 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6496 ac_uB='\([ ]\)%\1#\2define\3'
6499 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6500 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6501 ac_eB='$%\1#\2define\3'
6505 if test "${CONFIG_HEADERS+set}" != set; then
6507 cat >> $CONFIG_STATUS <<EOF
6508 CONFIG_HEADERS="config.h:config.in"
6510 cat >> $CONFIG_STATUS <<\EOF
6512 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6513 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6515 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6516 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6517 *) ac_file_in="${ac_file}.in" ;;
6520 echo creating $ac_file
6522 rm -f conftest.frag conftest.in conftest.out
6523 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6524 cat $ac_file_inputs > conftest.in
6528 # Transform confdefs.h into a sed script conftest.vals that substitutes
6529 # the proper values into config.h.in to produce config.h. And first:
6530 # Protect against being on the right side of a sed subst in config.status.
6531 # Protect against being in an unquoted here document in config.status.
6533 cat > conftest.hdr <<\EOF
6536 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6540 sed -n -f conftest.hdr confdefs.h > conftest.vals
6543 # This sed command replaces #undef with comments. This is necessary, for
6544 # example, in the case of _POSIX_SOURCE, which is predefined and required
6545 # on some systems where configure will not decide to define it.
6546 cat >> conftest.vals <<\EOF
6547 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6550 # Break up conftest.vals because some shells have a limit on
6551 # the size of here documents, and old seds have small limits too.
6556 ac_lines=`grep -c . conftest.vals`
6557 # grep -c gives empty output for an empty file on some AIX systems.
6558 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6559 # Write a limited-size here document to conftest.frag.
6560 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6561 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6563 sed -f conftest.frag conftest.in > conftest.out
6565 mv conftest.out conftest.in
6567 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6569 mv conftest.tail conftest.vals
6573 cat >> $CONFIG_STATUS <<\EOF
6574 rm -f conftest.frag conftest.h
6575 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6576 cat conftest.in >> conftest.h
6578 if cmp -s $ac_file conftest.h 2>/dev/null; then
6579 echo "$ac_file is unchanged"
6582 # Remove last slash and all that follows it. Not all systems have dirname.
6583 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6584 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6585 # The file is in a subdirectory.
6586 test ! -d "$ac_dir" && mkdir "$ac_dir"
6589 mv conftest.h $ac_file
6595 cat >> $CONFIG_STATUS <<EOF
6600 cat >> $CONFIG_STATUS <<\EOF
6601 srcdir=$ac_given_srcdir
6602 while test -n "$ac_sources"; do
6603 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6604 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6606 echo "linking $srcdir/$ac_source to $ac_dest"
6608 if test ! -r $srcdir/$ac_source; then
6609 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6613 # Make relative symlinks.
6614 # Remove last slash and all that follows it. Not all systems have dirname.
6615 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6616 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6617 # The dest file is in a subdirectory.
6618 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6619 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6620 # A "../" for each directory in $ac_dest_dir_suffix.
6621 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6623 ac_dest_dir_suffix= ac_dots=
6627 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6628 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6631 # Make a symlink if possible; otherwise try a hard link.
6632 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6633 ln $srcdir/$ac_source $ac_dest; then :
6635 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6639 cat >> $CONFIG_STATUS <<EOF
6641 gdb_host_cpu=$gdb_host_cpu
6642 gdb_target_cpu=$gdb_target_cpu
6643 nativefile=$nativefile
6646 cat >> $CONFIG_STATUS <<\EOF
6648 if test "${nativefile}" = ""; then
6649 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6650 < Makefile > Makefile.tem
6651 mv -f Makefile.tem Makefile
6654 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6655 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6656 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6657 mv -f Makefile.tmp Makefile
6660 case x$CONFIG_HEADERS in
6661 xconfig.h:config.in)
6667 chmod +x $CONFIG_STATUS
6668 rm -fr confdefs* $ac_clean_files
6669 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6671 if test "$no_recursion" != yes; then
6673 # Remove --cache-file and --srcdir arguments so they do not pile up.
6674 ac_sub_configure_args=
6676 for ac_arg in $ac_configure_args; do
6677 if test -n "$ac_prev"; then
6682 -cache-file | --cache-file | --cache-fil | --cache-fi \
6683 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6684 ac_prev=cache_file ;;
6685 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6686 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6688 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6690 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6692 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6696 for ac_config_dir in $configdirs; do
6698 # Do not complain, so a configure script can configure whichever
6699 # parts of a large source tree are present.
6700 if test ! -d $srcdir/$ac_config_dir; then
6704 echo configuring in $ac_config_dir
6709 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6711 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6719 # A "../" for each directory in /$ac_config_dir.
6720 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6723 .) # No --srcdir option. We are building in place.
6724 ac_sub_srcdir=$srcdir ;;
6725 /*) # Absolute path.
6726 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6728 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6731 # Check for guested configure; otherwise get Cygnus style configure.
6732 if test -f $ac_sub_srcdir/configure; then
6733 ac_sub_configure=$ac_sub_srcdir/configure
6734 elif test -f $ac_sub_srcdir/configure.in; then
6735 ac_sub_configure=$ac_configure
6737 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6741 # The recursion is here.
6742 if test -n "$ac_sub_configure"; then
6744 # Make the cache file name correct relative to the subdirectory.
6745 case "$cache_file" in
6746 /*) ac_sub_cache_file=$cache_file ;;
6748 ac_sub_cache_file="$ac_dots$cache_file" ;;
6750 case "$ac_given_INSTALL" in
6751 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6752 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6755 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6756 # The eval makes quoting arguments work.
6757 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6760 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }