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 --enable-ide Enable IDE support"
35 --with-foundry-libs=DIR Use the Foundry SDK in DIR"
37 --with-cpu=CPU Set the default CPU variant to debug"
39 --enable-gdbtk Enable GDBTK GUI front end"
41 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
43 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
45 --with-tclinclude=DIR Directory where tcl private headers are"
47 --with-tkinclude=DIR Directory where tk private headers are"
49 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
51 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
53 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
55 --with-x use the X Window System"
57 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
59 --with-sim-funit=DIR Use target FP lib under given DIR"
61 --enable-sim Link gdb with simulator"
63 --enable-shared Use shared libraries"
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file
=.
/config.cache
78 program_transform_name
=s
,x
,x
,
86 bindir
='${exec_prefix}/bin'
87 sbindir
='${exec_prefix}/sbin'
88 libexecdir
='${exec_prefix}/libexec'
89 datadir
='${prefix}/share'
90 sysconfdir
='${prefix}/etc'
91 sharedstatedir
='${prefix}/com'
92 localstatedir
='${prefix}/var'
93 libdir
='${exec_prefix}/lib'
94 includedir
='${prefix}/include'
95 oldincludedir
='/usr/include'
96 infodir
='${prefix}/info'
97 mandir
='${prefix}/man'
99 # Initialize some other variables.
102 SHELL
=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
118 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 # Accept the important Cygnus configure options, so we can diagnose typos.
126 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
128 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
129 bindir
="$ac_optarg" ;;
131 -build |
--build |
--buil |
--bui |
--bu)
133 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
134 build
="$ac_optarg" ;;
136 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
137 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
138 ac_prev
=cache_file
;;
139 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
140 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
141 cache_file
="$ac_optarg" ;;
143 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
145 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
147 datadir
="$ac_optarg" ;;
149 -disable-* |
--disable-*)
150 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* |
--enable-*)
159 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
172 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
173 |
--exec |
--exe |
--ex)
174 ac_prev
=exec_prefix
;;
175 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
176 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
177 |
--exec=* |
--exe=* |
--ex=*)
178 exec_prefix
="$ac_optarg" ;;
180 -gas |
--gas |
--ga |
--g)
181 # Obsolete; use --with-gas.
184 -help |
--help |
--hel |
--he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --version print the version of autoconf that created configure
196 Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226 Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
239 -host |
--host |
--hos |
--ho)
241 -host=* |
--host=* |
--hos=* |
--ho=*)
244 -includedir |
--includedir |
--includedi |
--included |
--include \
245 |
--includ |
--inclu |
--incl |
--inc)
246 ac_prev
=includedir
;;
247 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
248 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
249 includedir
="$ac_optarg" ;;
251 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
253 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
254 infodir
="$ac_optarg" ;;
256 -libdir |
--libdir |
--libdi |
--libd)
258 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
259 libdir
="$ac_optarg" ;;
261 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
262 |
--libexe |
--libex |
--libe)
263 ac_prev
=libexecdir
;;
264 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
265 |
--libexe=* |
--libex=* |
--libe=*)
266 libexecdir
="$ac_optarg" ;;
268 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
269 |
--localstate |
--localstat |
--localsta |
--localst \
270 |
--locals |
--local |
--loca |
--loc |
--lo)
271 ac_prev
=localstatedir
;;
272 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
273 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
274 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
275 localstatedir
="$ac_optarg" ;;
277 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
279 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
280 mandir
="$ac_optarg" ;;
283 # Obsolete; use --without-fp.
286 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
290 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
291 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
294 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
295 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
296 |
--oldin |
--oldi |
--old |
--ol |
--o)
297 ac_prev
=oldincludedir
;;
298 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
299 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
300 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
301 oldincludedir
="$ac_optarg" ;;
303 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
305 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
306 prefix
="$ac_optarg" ;;
308 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
309 |
--program-pre |
--program-pr |
--program-p)
310 ac_prev
=program_prefix
;;
311 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
312 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
313 program_prefix
="$ac_optarg" ;;
315 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
316 |
--program-suf |
--program-su |
--program-s)
317 ac_prev
=program_suffix
;;
318 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
319 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
320 program_suffix
="$ac_optarg" ;;
322 -program-transform-name |
--program-transform-name \
323 |
--program-transform-nam |
--program-transform-na \
324 |
--program-transform-n |
--program-transform- \
325 |
--program-transform |
--program-transfor \
326 |
--program-transfo |
--program-transf \
327 |
--program-trans |
--program-tran \
328 |
--progr-tra |
--program-tr |
--program-t)
329 ac_prev
=program_transform_name
;;
330 -program-transform-name=* |
--program-transform-name=* \
331 |
--program-transform-nam=* |
--program-transform-na=* \
332 |
--program-transform-n=* |
--program-transform-=* \
333 |
--program-transform=* |
--program-transfor=* \
334 |
--program-transfo=* |
--program-transf=* \
335 |
--program-trans=* |
--program-tran=* \
336 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
337 program_transform_name
="$ac_optarg" ;;
339 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
340 |
-silent |
--silent |
--silen |
--sile |
--sil)
343 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
345 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
347 sbindir
="$ac_optarg" ;;
349 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
350 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
351 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
353 ac_prev
=sharedstatedir
;;
354 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
355 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
356 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
358 sharedstatedir
="$ac_optarg" ;;
360 -site |
--site |
--sit)
362 -site=* |
--site=* |
--sit=*)
365 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
367 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
368 srcdir
="$ac_optarg" ;;
370 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
371 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
372 ac_prev
=sysconfdir
;;
373 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
374 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
375 sysconfdir
="$ac_optarg" ;;
377 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
379 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
380 target
="$ac_optarg" ;;
382 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
385 -version |
--version |
--versio |
--versi |
--vers)
386 echo "configure generated by autoconf version 2.13"
390 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package
=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* |
--without-*)
403 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package
=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
412 # Obsolete; use --with-x.
415 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
416 |
--x-incl |
--x-inc |
--x-in |
--x-i)
417 ac_prev
=x_includes
;;
418 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
419 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
420 x_includes
="$ac_optarg" ;;
422 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
423 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
424 ac_prev
=x_libraries
;;
425 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
426 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
427 x_libraries
="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE
; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
477 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
478 |
--no-cr |
--no-c) ;;
479 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
480 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
481 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest
* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file
=main.c
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted
=yes
509 # Try the directory containing this script, then its parent.
511 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
514 if test ! -r $srcdir/$ac_unique_file; then
518 ac_srcdir_defaulted
=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE
; then
532 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
534 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 for ac_site_file
in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
548 echo "creating cache $cache_file"
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp
='$CPP $CPPFLAGS'
555 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling
=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
570 ac_n
= ac_c
='\c' ac_t
=
576 # Extract the first word of "gcc", so it can be a program name with args.
577 set dummy gcc
; ac_word
=$2
578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
579 echo "configure:580: checking for $ac_word" >&5
580 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
583 if test -n "$CC"; then
584 ac_cv_prog_CC
="$CC" # Let the user override the test.
586 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
588 for ac_dir
in $ac_dummy; do
589 test -z "$ac_dir" && ac_dir
=.
590 if test -f $ac_dir/$ac_word; then
599 if test -n "$CC"; then
600 echo "$ac_t""$CC" 1>&6
602 echo "$ac_t""no" 1>&6
605 if test -z "$CC"; then
606 # Extract the first word of "cc", so it can be a program name with args.
607 set dummy cc
; ac_word
=$2
608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
609 echo "configure:610: checking for $ac_word" >&5
610 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
611 echo $ac_n "(cached) $ac_c" 1>&6
613 if test -n "$CC"; then
614 ac_cv_prog_CC
="$CC" # Let the user override the test.
616 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
619 for ac_dir
in $ac_dummy; do
620 test -z "$ac_dir" && ac_dir
=.
621 if test -f $ac_dir/$ac_word; then
622 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
631 if test $ac_prog_rejected = yes; then
632 # We found a bogon in the path, so make sure we never use it.
633 set dummy
$ac_cv_prog_CC
635 if test $# -gt 0; then
636 # We chose a different compiler from the bogus one.
637 # However, it has the same basename, so the bogon will be chosen
638 # first if we set CC to just the basename; use the full file name.
640 set dummy
"$ac_dir/$ac_word" "$@"
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
651 echo "$ac_t""no" 1>&6
654 if test -z "$CC"; then
657 # Extract the first word of "cl", so it can be a program name with args.
658 set dummy cl
; ac_word
=$2
659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
660 echo "configure:661: checking for $ac_word" >&5
661 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
662 echo $ac_n "(cached) $ac_c" 1>&6
664 if test -n "$CC"; then
665 ac_cv_prog_CC
="$CC" # Let the user override the test.
667 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
669 for ac_dir
in $ac_dummy; do
670 test -z "$ac_dir" && ac_dir
=.
671 if test -f $ac_dir/$ac_word; then
680 if test -n "$CC"; then
681 echo "$ac_t""$CC" 1>&6
683 echo "$ac_t""no" 1>&6
688 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
691 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
692 echo "configure:693: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
696 ac_cpp
='$CPP $CPPFLAGS'
697 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
698 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
699 cross_compiling
=$ac_cv_prog_cc_cross
701 cat > conftest.
$ac_ext << EOF
703 #line 704 "configure"
704 #include "confdefs.h"
708 if { (eval echo configure
:709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
709 ac_cv_prog_cc_works
=yes
710 # If we can't run a trivial program, we are probably using a cross compiler.
711 if (.
/conftest
; exit) 2>/dev
/null
; then
712 ac_cv_prog_cc_cross
=no
714 ac_cv_prog_cc_cross
=yes
717 echo "configure: failed program was:" >&5
718 cat conftest.
$ac_ext >&5
719 ac_cv_prog_cc_works
=no
723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
724 ac_cpp
='$CPP $CPPFLAGS'
725 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
726 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
727 cross_compiling
=$ac_cv_prog_cc_cross
729 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
730 if test $ac_cv_prog_cc_works = no
; then
731 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
734 echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
735 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
736 cross_compiling
=$ac_cv_prog_cc_cross
738 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
739 echo "configure:740: checking whether we are using GNU C" >&5
740 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 cat > conftest.c
<<EOF
748 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
755 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
757 if test $ac_cv_prog_gcc = yes; then
763 ac_test_CFLAGS
="${CFLAGS+set}"
764 ac_save_CFLAGS
="$CFLAGS"
766 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
767 echo "configure:768: checking whether ${CC-cc} accepts -g" >&5
768 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
771 echo 'void f(){}' > conftest.c
772 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
781 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
782 if test "$ac_test_CFLAGS" = set; then
783 CFLAGS
="$ac_save_CFLAGS"
784 elif test $ac_cv_prog_cc_g = yes; then
785 if test "$GCC" = yes; then
791 if test "$GCC" = yes; then
798 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
799 echo "configure:800: checking how to run the C preprocessor" >&5
800 # On Suns, sometimes $CPP names a directory.
801 if test -n "$CPP" && test -d "$CPP"; then
804 if test -z "$CPP"; then
805 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 # This must be in double quotes, not single quotes, because CPP may get
809 # substituted into the Makefile and "${CC-cc}" will confuse make.
811 # On the NeXT, cc -E runs the code through the compiler's parser,
812 # not just through cpp.
813 cat > conftest.
$ac_ext <<EOF
814 #line 815 "configure"
815 #include "confdefs.h"
819 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
820 { (eval echo configure
:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
821 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
822 if test -z "$ac_err"; then
826 echo "configure: failed program was:" >&5
827 cat conftest.
$ac_ext >&5
829 CPP
="${CC-cc} -E -traditional-cpp"
830 cat > conftest.
$ac_ext <<EOF
831 #line 832 "configure"
832 #include "confdefs.h"
836 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
837 { (eval echo configure
:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
838 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
839 if test -z "$ac_err"; then
843 echo "configure: failed program was:" >&5
844 cat conftest.
$ac_ext >&5
846 CPP
="${CC-cc} -nologo -E"
847 cat > conftest.
$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
854 { (eval echo configure
:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
856 if test -z "$ac_err"; then
860 echo "configure: failed program was:" >&5
861 cat conftest.
$ac_ext >&5
870 ac_cv_prog_CPP
="$CPP"
872 CPP
="$ac_cv_prog_CPP"
874 ac_cv_prog_CPP
="$CPP"
876 echo "$ac_t""$CPP" 1>&6
878 echo $ac_n "checking for AIX""... $ac_c" 1>&6
879 echo "configure:880: checking for AIX" >&5
880 cat > conftest.
$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
889 egrep "yes" >/dev
/null
2>&1; then
891 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
892 #define _ALL_SOURCE 1
897 echo "$ac_t""no" 1>&6
902 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
903 echo "configure:904: checking for POSIXized ISC" >&5
904 if test -d /etc
/conf
/kconfig.d
&&
905 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
907 echo "$ac_t""yes" 1>&6
908 ISC
=yes # If later tests want to check for ISC.
909 cat >> confdefs.h
<<\EOF
910 #define _POSIX_SOURCE 1
913 if test "$GCC" = yes; then
919 echo "$ac_t""no" 1>&6
926 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
927 echo "configure:928: checking for ${CC-cc} option to accept ANSI C" >&5
928 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 am_cv_prog_cc_stdc
=no
933 # Don't try gcc -ansi; that turns off useful extensions and
934 # breaks some systems' header files.
936 # Ultrix and OSF/1 -std1
937 # HP-UX -Aa -D_HPUX_SOURCE
938 # SVR4 -Xc -D__EXTENSIONS__
939 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
941 CC
="$ac_save_CC $ac_arg"
942 cat > conftest.
$ac_ext <<EOF
943 #line 944 "configure"
944 #include "confdefs.h"
947 #include <sys/types.h>
948 #include <sys/stat.h>
949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
950 struct buf { int x; };
951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
952 static char *e (p, i)
958 static char *f (char * (*g) (char **, int), char **p, ...)
963 s = g (p, va_arg (v,int));
967 int test (int i, double x);
968 struct s1 {int (*f) (int a);};
969 struct s2 {int (*f) (double a);};
970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
980 if { (eval echo configure
:981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
982 am_cv_prog_cc_stdc
="$ac_arg"; break
984 echo "configure: failed program was:" >&5
985 cat conftest.
$ac_ext >&5
993 if test -z "$am_cv_prog_cc_stdc"; then
994 echo "$ac_t""none needed" 1>&6
996 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
998 case "x$am_cv_prog_cc_stdc" in
1000 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1005 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1006 if test -f $ac_dir/install-sh
; then
1008 ac_install_sh
="$ac_aux_dir/install-sh -c"
1010 elif test -f $ac_dir/install.sh
; then
1012 ac_install_sh
="$ac_aux_dir/install.sh -c"
1016 if test -z "$ac_aux_dir"; then
1017 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1019 ac_config_guess
=$ac_aux_dir/config.guess
1020 ac_config_sub
=$ac_aux_dir/config.sub
1021 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1024 # Do some error checking and defaulting for the host and target type.
1026 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1029 # 1. You are not allowed to specify --host, --target, and nonopt at the
1031 # 2. Host defaults to nonopt.
1032 # 3. If nonopt is not specified, then host defaults to the current host,
1033 # as determined by config.guess.
1034 # 4. Target and build default to nonopt.
1035 # 5. If nonopt is not specified, then target and build default to host.
1037 # The aliases save the names the user supplied, while $host etc.
1038 # will get canonicalized.
1039 case $host---$target---$nonopt in
1040 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1041 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1045 # Make sure we can run config.sub.
1046 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1047 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1050 echo $ac_n "checking host system type""... $ac_c" 1>&6
1051 echo "configure:1052: checking host system type" >&5
1054 case "$host_alias" in
1058 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1059 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1061 *) host_alias
=$nonopt ;;
1065 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1066 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1067 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1068 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1069 echo "$ac_t""$host" 1>&6
1071 echo $ac_n "checking target system type""... $ac_c" 1>&6
1072 echo "configure:1073: checking target system type" >&5
1074 target_alias
=$target
1075 case "$target_alias" in
1078 NONE
) target_alias
=$host_alias ;;
1079 *) target_alias
=$nonopt ;;
1083 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1084 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1085 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1086 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1087 echo "$ac_t""$target" 1>&6
1089 echo $ac_n "checking build system type""... $ac_c" 1>&6
1090 echo "configure:1091: checking build system type" >&5
1093 case "$build_alias" in
1096 NONE
) build_alias
=$host_alias ;;
1097 *) build_alias
=$nonopt ;;
1101 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1102 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1103 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1104 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1105 echo "$ac_t""$build" 1>&6
1107 test "$host_alias" != "$target_alias" &&
1108 test "$program_prefix$program_suffix$program_transform_name" = \
1110 program_prefix
=${target_alias}-
1114 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1115 echo "configure:1116: checking whether ${MAKE-make} sets \${MAKE}" >&5
1116 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1117 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 cat > conftestmake
<<\EOF
1122 @
echo 'ac_maketemp="${MAKE}"'
1124 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1125 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1126 if test -n "$ac_maketemp"; then
1127 eval ac_cv_prog_make_
${ac_make}_set
=yes
1129 eval ac_cv_prog_make_
${ac_make}_set
=no
1133 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1134 echo "$ac_t""yes" 1>&6
1137 echo "$ac_t""no" 1>&6
1138 SET_MAKE
="MAKE=${MAKE-make}"
1141 # Extract the first word of "ranlib", so it can be a program name with args.
1142 set dummy ranlib
; ac_word
=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$RANLIB"; then
1149 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1153 for ac_dir
in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir
=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_RANLIB
="ranlib"
1161 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1164 RANLIB
="$ac_cv_prog_RANLIB"
1165 if test -n "$RANLIB"; then
1166 echo "$ac_t""$RANLIB" 1>&6
1168 echo "$ac_t""no" 1>&6
1171 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1172 echo "configure:1173: checking for ANSI C header files" >&5
1173 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 cat > conftest.
$ac_ext <<EOF
1177 #line 1178 "configure"
1178 #include "confdefs.h"
1184 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1185 { (eval echo configure
:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1186 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1187 if test -z "$ac_err"; then
1189 ac_cv_header_stdc
=yes
1192 echo "configure: failed program was:" >&5
1193 cat conftest.
$ac_ext >&5
1195 ac_cv_header_stdc
=no
1199 if test $ac_cv_header_stdc = yes; then
1200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1201 cat > conftest.
$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1207 egrep "memchr" >/dev
/null
2>&1; then
1211 ac_cv_header_stdc
=no
1217 if test $ac_cv_header_stdc = yes; then
1218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1219 cat > conftest.
$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1225 egrep "free" >/dev
/null
2>&1; then
1229 ac_cv_header_stdc
=no
1235 if test $ac_cv_header_stdc = yes; then
1236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1237 if test "$cross_compiling" = yes; then
1240 cat > conftest.
$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1244 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1245 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1247 int main () { int i; for (i = 0; i < 256; i++)
1248 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1252 if { (eval echo configure
:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1256 echo "configure: failed program was:" >&5
1257 cat conftest.
$ac_ext >&5
1259 ac_cv_header_stdc
=no
1267 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1268 if test $ac_cv_header_stdc = yes; then
1269 cat >> confdefs.h
<<\EOF
1270 #define STDC_HEADERS 1
1275 echo $ac_n "checking for working const""... $ac_c" 1>&6
1276 echo "configure:1277: checking for working const" >&5
1277 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 cat > conftest.
$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1286 /* Ultrix mips cc rejects this. */
1287 typedef int charset[2]; const charset x;
1288 /* SunOS 4.1.1 cc rejects this. */
1289 char const *const *ccp;
1291 /* NEC SVR4.0.2 mips cc rejects this. */
1292 struct point {int x, y;};
1293 static struct point const zero = {0,0};
1294 /* AIX XL C 1.02.0.0 rejects this.
1295 It does not let you subtract one const X* pointer from another in an arm
1296 of an if-expression whose if-part is not a constant expression */
1297 const char *g = "string";
1298 ccp = &g + (g ? g-g : 0);
1299 /* HPUX 7.0 cc rejects these. */
1302 ccp = (char const *const *) p;
1303 { /* SCO 3.2v4 cc rejects this. */
1305 char const *s = 0 ? (char *) 0 : (char const *) 0;
1309 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1311 const int *foo = &x[0];
1314 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1315 typedef const int *iptr;
1319 { /* AIX XL C 1.02.0.0 rejects this saying
1320 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1321 struct s { int j; const int *ap[3]; };
1322 struct s *b; b->j = 5;
1324 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1330 if { (eval echo configure
:1331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1334 echo "configure: failed program was:" >&5
1335 cat conftest.
$ac_ext >&5
1342 echo "$ac_t""$ac_cv_c_const" 1>&6
1343 if test $ac_cv_c_const = no
; then
1344 cat >> confdefs.h
<<\EOF
1350 echo $ac_n "checking for inline""... $ac_c" 1>&6
1351 echo "configure:1352: checking for inline" >&5
1352 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1356 for ac_kw
in inline __inline__ __inline
; do
1357 cat > conftest.
$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1365 if { (eval echo configure
:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1367 ac_cv_c_inline
=$ac_kw; break
1369 echo "configure: failed program was:" >&5
1370 cat conftest.
$ac_ext >&5
1377 echo "$ac_t""$ac_cv_c_inline" 1>&6
1378 case "$ac_cv_c_inline" in
1380 no
) cat >> confdefs.h
<<\EOF
1384 *) cat >> confdefs.h
<<EOF
1385 #define inline $ac_cv_c_inline
1390 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1391 echo "configure:1392: checking for off_t" >&5
1392 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 cat > conftest.
$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398 #include <sys/types.h>
1404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1405 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1407 ac_cv_type_off_t
=yes
1415 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1416 if test $ac_cv_type_off_t = no
; then
1417 cat >> confdefs.h
<<\EOF
1423 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1424 echo "configure:1425: checking for size_t" >&5
1425 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 cat > conftest.
$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 #include <sys/types.h>
1437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1438 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1440 ac_cv_type_size_t
=yes
1443 ac_cv_type_size_t
=no
1448 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1449 if test $ac_cv_type_size_t = no
; then
1450 cat >> confdefs.h
<<\EOF
1451 #define size_t unsigned
1456 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1457 # for constant arguments. Useless!
1458 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1459 echo "configure:1460: checking for working alloca.h" >&5
1460 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 cat > conftest.
$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1468 char *p = alloca(2 * sizeof(int));
1471 if { (eval echo configure
:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1473 ac_cv_header_alloca_h
=yes
1475 echo "configure: failed program was:" >&5
1476 cat conftest.
$ac_ext >&5
1478 ac_cv_header_alloca_h
=no
1483 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1484 if test $ac_cv_header_alloca_h = yes; then
1485 cat >> confdefs.h
<<\EOF
1486 #define HAVE_ALLOCA_H 1
1491 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1492 echo "configure:1493: checking for alloca" >&5
1493 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 cat > conftest.
$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1501 # define alloca __builtin_alloca
1504 # include <malloc.h>
1505 # define alloca _alloca
1508 # include <alloca.h>
1513 # ifndef alloca /* predefined by HP cc +Olibcalls */
1522 char *p = (char *) alloca(1);
1525 if { (eval echo configure
:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1527 ac_cv_func_alloca_works
=yes
1529 echo "configure: failed program was:" >&5
1530 cat conftest.
$ac_ext >&5
1532 ac_cv_func_alloca_works
=no
1537 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1538 if test $ac_cv_func_alloca_works = yes; then
1539 cat >> confdefs.h
<<\EOF
1540 #define HAVE_ALLOCA 1
1545 if test $ac_cv_func_alloca_works = no
; then
1546 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1547 # that cause trouble. Some versions do not even contain alloca or
1548 # contain a buggy version. If you still want to use their alloca,
1549 # use ar to extract alloca.o from them instead of compiling alloca.c.
1550 ALLOCA
=alloca.
${ac_objext}
1551 cat >> confdefs.h
<<\EOF
1556 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1557 echo "configure:1558: checking whether alloca needs Cray hooks" >&5
1558 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 cat > conftest.
$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 #if defined(CRAY) && ! defined(CRAY2)
1571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1572 egrep "webecray" >/dev
/null
2>&1; then
1583 echo "$ac_t""$ac_cv_os_cray" 1>&6
1584 if test $ac_cv_os_cray = yes; then
1585 for ac_func
in _getb67 GETB67 getb67
; do
1586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_func" >&5
1588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 cat > conftest.
$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1594 /* System header to define __stub macros and hopefully few prototypes,
1595 which can conflict with char $ac_func(); below. */
1597 /* Override any gcc2 internal prototype to avoid an error. */
1598 /* We use char because int might match the return type of a gcc2
1599 builtin and then its argument prototype would still apply. */
1604 /* The GNU C library defines this for functions which it implements
1605 to always fail with ENOSYS. Some functions are actually named
1606 something starting with __ and the normal name is an alias. */
1607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1615 if { (eval echo configure
:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1617 eval "ac_cv_func_$ac_func=yes"
1619 echo "configure: failed program was:" >&5
1620 cat conftest.
$ac_ext >&5
1622 eval "ac_cv_func_$ac_func=no"
1627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1628 echo "$ac_t""yes" 1>&6
1629 cat >> confdefs.h
<<EOF
1630 #define CRAY_STACKSEG_END $ac_func
1635 echo "$ac_t""no" 1>&6
1641 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1642 echo "configure:1643: checking stack direction for C alloca" >&5
1643 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 if test "$cross_compiling" = yes; then
1647 ac_cv_c_stack_direction
=0
1649 cat > conftest.
$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1652 find_stack_direction ()
1654 static char *addr = 0;
1659 return find_stack_direction ();
1662 return (&dummy > addr) ? 1 : -1;
1666 exit (find_stack_direction() < 0);
1669 if { (eval echo configure
:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1671 ac_cv_c_stack_direction
=1
1673 echo "configure: failed program was:" >&5
1674 cat conftest.
$ac_ext >&5
1676 ac_cv_c_stack_direction
=-1
1683 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1684 cat >> confdefs.h
<<EOF
1685 #define STACK_DIRECTION $ac_cv_c_stack_direction
1690 for ac_hdr
in unistd.h
1692 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1694 echo "configure:1695: checking for $ac_hdr" >&5
1695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1703 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704 { (eval echo configure
:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1706 if test -z "$ac_err"; then
1708 eval "ac_cv_header_$ac_safe=yes"
1711 echo "configure: failed program was:" >&5
1712 cat conftest.
$ac_ext >&5
1714 eval "ac_cv_header_$ac_safe=no"
1718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1721 cat >> confdefs.h
<<EOF
1722 #define $ac_tr_hdr 1
1726 echo "$ac_t""no" 1>&6
1730 for ac_func
in getpagesize
1732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_func" >&5
1734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.
$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1740 /* System header to define __stub macros and hopefully few prototypes,
1741 which can conflict with char $ac_func(); below. */
1743 /* Override any gcc2 internal prototype to avoid an error. */
1744 /* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1750 /* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1761 if { (eval echo configure
:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1763 eval "ac_cv_func_$ac_func=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.
$ac_ext >&5
1768 eval "ac_cv_func_$ac_func=no"
1773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1774 echo "$ac_t""yes" 1>&6
1775 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1776 cat >> confdefs.h
<<EOF
1777 #define $ac_tr_func 1
1781 echo "$ac_t""no" 1>&6
1785 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1786 echo "configure:1787: checking for working mmap" >&5
1787 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 if test "$cross_compiling" = yes; then
1791 ac_cv_func_mmap_fixed_mapped
=no
1793 cat > conftest.
$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1797 /* Thanks to Mike Haertel and Jim Avera for this test.
1798 Here is a matrix of mmap possibilities:
1799 mmap private not fixed
1800 mmap private fixed at somewhere currently unmapped
1801 mmap private fixed at somewhere already mapped
1802 mmap shared not fixed
1803 mmap shared fixed at somewhere currently unmapped
1804 mmap shared fixed at somewhere already mapped
1805 For private mappings, we should verify that changes cannot be read()
1806 back from the file, nor mmap's back from the file at a different
1807 address. (There have been systems where private was not correctly
1808 implemented like the infamous i386 svr4.0, and systems where the
1809 VM page cache was not coherent with the filesystem buffer cache
1810 like early versions of FreeBSD and possibly contemporary NetBSD.)
1811 For shared mappings, we should conversely verify that changes get
1812 propogated back to all the places they're supposed to be.
1814 Grep wants private fixed already mapped.
1815 The main things grep needs to know about mmap are:
1816 * does it exist and is it safe to write into the mmap'd area
1817 * how to use it (BSD variants) */
1818 #include <sys/types.h>
1820 #include <sys/mman.h>
1822 /* This mess was copied from the GNU getpagesize.h. */
1823 #ifndef HAVE_GETPAGESIZE
1824 # ifdef HAVE_UNISTD_H
1825 # include <unistd.h>
1828 /* Assume that all systems that can run configure have sys/param.h. */
1829 # ifndef HAVE_SYS_PARAM_H
1830 # define HAVE_SYS_PARAM_H 1
1833 # ifdef _SC_PAGESIZE
1834 # define getpagesize() sysconf(_SC_PAGESIZE)
1835 # else /* no _SC_PAGESIZE */
1836 # ifdef HAVE_SYS_PARAM_H
1837 # include <sys/param.h>
1838 # ifdef EXEC_PAGESIZE
1839 # define getpagesize() EXEC_PAGESIZE
1840 # else /* no EXEC_PAGESIZE */
1842 # define getpagesize() NBPG * CLSIZE
1845 # endif /* no CLSIZE */
1846 # else /* no NBPG */
1848 # define getpagesize() NBPC
1849 # else /* no NBPC */
1851 # define getpagesize() PAGESIZE
1852 # endif /* PAGESIZE */
1853 # endif /* no NBPC */
1854 # endif /* no NBPG */
1855 # endif /* no EXEC_PAGESIZE */
1856 # else /* no HAVE_SYS_PARAM_H */
1857 # define getpagesize() 8192 /* punt totally */
1858 # endif /* no HAVE_SYS_PARAM_H */
1859 # endif /* no _SC_PAGESIZE */
1861 #endif /* no HAVE_GETPAGESIZE */
1864 extern "C" { void *malloc(unsigned); }
1872 char *data, *data2, *data3;
1876 pagesize = getpagesize();
1879 * First, make a file with some known garbage in it.
1881 data = malloc(pagesize);
1884 for (i = 0; i < pagesize; ++i)
1885 *(data + i) = rand();
1887 fd = creat("conftestmmap", 0600);
1890 if (write(fd, data, pagesize) != pagesize)
1895 * Next, try to mmap the file at a fixed address which
1896 * already has something else allocated at it. If we can,
1897 * also make sure that we see the same garbage.
1899 fd = open("conftestmmap", O_RDWR);
1902 data2 = malloc(2 * pagesize);
1905 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1906 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1907 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1909 for (i = 0; i < pagesize; ++i)
1910 if (*(data + i) != *(data2 + i))
1914 * Finally, make sure that changes to the mapped area
1915 * do not percolate back to the file as seen by read().
1916 * (This is a bug on some variants of i386 svr4.0.)
1918 for (i = 0; i < pagesize; ++i)
1919 *(data2 + i) = *(data2 + i) + 1;
1920 data3 = malloc(pagesize);
1923 if (read(fd, data3, pagesize) != pagesize)
1925 for (i = 0; i < pagesize; ++i)
1926 if (*(data + i) != *(data3 + i))
1929 unlink("conftestmmap");
1934 if { (eval echo configure
:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1936 ac_cv_func_mmap_fixed_mapped
=yes
1938 echo "configure: failed program was:" >&5
1939 cat conftest.
$ac_ext >&5
1941 ac_cv_func_mmap_fixed_mapped
=no
1948 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1949 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1950 cat >> confdefs.h
<<\EOF
1957 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1958 unistd.h values.h sys
/param.h
1960 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_hdr" >&5
1963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 cat > conftest.
$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1971 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1972 { (eval echo configure
:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1973 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1974 if test -z "$ac_err"; then
1976 eval "ac_cv_header_$ac_safe=yes"
1979 echo "configure: failed program was:" >&5
1980 cat conftest.
$ac_ext >&5
1982 eval "ac_cv_header_$ac_safe=no"
1986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1989 cat >> confdefs.h
<<EOF
1990 #define $ac_tr_hdr 1
1994 echo "$ac_t""no" 1>&6
1998 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1999 __argz_count __argz_stringify __argz_next
2001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2002 echo "configure:2003: checking for $ac_func" >&5
2003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 cat > conftest.
$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2009 /* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $ac_func(); below. */
2012 /* Override any gcc2 internal prototype to avoid an error. */
2013 /* We use char because int might match the return type of a gcc2
2014 builtin and then its argument prototype would still apply. */
2019 /* The GNU C library defines this for functions which it implements
2020 to always fail with ENOSYS. Some functions are actually named
2021 something starting with __ and the normal name is an alias. */
2022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2030 if { (eval echo configure
:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2032 eval "ac_cv_func_$ac_func=yes"
2034 echo "configure: failed program was:" >&5
2035 cat conftest.
$ac_ext >&5
2037 eval "ac_cv_func_$ac_func=no"
2042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2043 echo "$ac_t""yes" 1>&6
2044 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2045 cat >> confdefs.h
<<EOF
2046 #define $ac_tr_func 1
2050 echo "$ac_t""no" 1>&6
2055 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2056 for ac_func
in stpcpy
2058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_func" >&5
2060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $ac_func(); below. */
2069 /* Override any gcc2 internal prototype to avoid an error. */
2070 /* We use char because int might match the return type of a gcc2
2071 builtin and then its argument prototype would still apply. */
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2087 if { (eval echo configure
:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2089 eval "ac_cv_func_$ac_func=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2094 eval "ac_cv_func_$ac_func=no"
2099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2100 echo "$ac_t""yes" 1>&6
2101 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2102 cat >> confdefs.h
<<EOF
2103 #define $ac_tr_func 1
2107 echo "$ac_t""no" 1>&6
2112 if test "${ac_cv_func_stpcpy}" = "yes"; then
2113 cat >> confdefs.h
<<\EOF
2114 #define HAVE_STPCPY 1
2119 if test $ac_cv_header_locale_h = yes; then
2120 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2121 echo "configure:2122: checking for LC_MESSAGES" >&5
2122 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.
$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2133 if { (eval echo configure
:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2135 am_cv_val_LC_MESSAGES
=yes
2137 echo "configure: failed program was:" >&5
2138 cat conftest.
$ac_ext >&5
2140 am_cv_val_LC_MESSAGES
=no
2145 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2146 if test $am_cv_val_LC_MESSAGES = yes; then
2147 cat >> confdefs.h
<<\EOF
2148 #define HAVE_LC_MESSAGES 1
2153 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2154 echo "configure:2155: checking whether NLS is requested" >&5
2155 # Check whether --enable-nls or --disable-nls was given.
2156 if test "${enable_nls+set}" = set; then
2157 enableval
="$enable_nls"
2163 echo "$ac_t""$USE_NLS" 1>&6
2166 USE_INCLUDED_LIBINTL
=no
2168 if test "$USE_NLS" = "yes"; then
2169 cat >> confdefs.h
<<\EOF
2170 #define ENABLE_NLS 1
2173 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2174 echo "configure:2175: checking whether included gettext is requested" >&5
2175 # Check whether --with-included-gettext or --without-included-gettext was given.
2176 if test "${with_included_gettext+set}" = set; then
2177 withval
="$with_included_gettext"
2178 nls_cv_force_use_gnu_gettext
=$withval
2180 nls_cv_force_use_gnu_gettext
=no
2183 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2185 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2186 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2188 nls_cv_header_libgt
=
2191 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2192 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2193 echo "configure:2194: checking for libintl.h" >&5
2194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat > conftest.
$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 #include <libintl.h>
2202 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2203 { (eval echo configure
:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2204 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2205 if test -z "$ac_err"; then
2207 eval "ac_cv_header_$ac_safe=yes"
2210 echo "configure: failed program was:" >&5
2211 cat conftest.
$ac_ext >&5
2213 eval "ac_cv_header_$ac_safe=no"
2217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2218 echo "$ac_t""yes" 1>&6
2219 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2220 echo "configure:2221: checking for gettext in libc" >&5
2221 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 #include <libintl.h>
2229 return (int) gettext ("")
2232 if { (eval echo configure
:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2234 gt_cv_func_gettext_libc
=yes
2236 echo "configure: failed program was:" >&5
2237 cat conftest.
$ac_ext >&5
2239 gt_cv_func_gettext_libc
=no
2244 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2246 if test "$gt_cv_func_gettext_libc" != "yes"; then
2247 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2248 echo "configure:2249: checking for bindtextdomain in -lintl" >&5
2249 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 ac_save_LIBS
="$LIBS"
2255 cat > conftest.
$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 /* Override any gcc2 internal prototype to avoid an error. */
2259 /* We use char because int might match the return type of a gcc2
2260 builtin and then its argument prototype would still apply. */
2261 char bindtextdomain();
2267 if { (eval echo configure
:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2269 eval "ac_cv_lib_$ac_lib_var=yes"
2271 echo "configure: failed program was:" >&5
2272 cat conftest.
$ac_ext >&5
2274 eval "ac_cv_lib_$ac_lib_var=no"
2277 LIBS
="$ac_save_LIBS"
2280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2283 echo "configure:2284: checking for gettext in libintl" >&5
2284 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 cat > conftest.
$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2292 return (int) gettext ("")
2295 if { (eval echo configure
:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2297 gt_cv_func_gettext_libintl
=yes
2299 echo "configure: failed program was:" >&5
2300 cat conftest.
$ac_ext >&5
2302 gt_cv_func_gettext_libintl
=no
2307 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2309 echo "$ac_t""no" 1>&6
2314 if test "$gt_cv_func_gettext_libc" = "yes" \
2315 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2316 cat >> confdefs.h
<<\EOF
2317 #define HAVE_GETTEXT 1
2320 # Extract the first word of "msgfmt", so it can be a program name with args.
2321 set dummy msgfmt
; ac_word
=$2
2322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2323 echo "configure:2324: checking for $ac_word" >&5
2324 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2329 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2332 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2333 for ac_dir
in $PATH; do
2334 test -z "$ac_dir" && ac_dir
=.
2335 if test -f $ac_dir/$ac_word; then
2336 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2337 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2343 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2347 MSGFMT
="$ac_cv_path_MSGFMT"
2348 if test -n "$MSGFMT"; then
2349 echo "$ac_t""$MSGFMT" 1>&6
2351 echo "$ac_t""no" 1>&6
2353 if test "$MSGFMT" != "no"; then
2354 for ac_func
in dcgettext
2356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2357 echo "configure:2358: checking for $ac_func" >&5
2358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 /* System header to define __stub macros and hopefully few prototypes,
2365 which can conflict with char $ac_func(); below. */
2367 /* Override any gcc2 internal prototype to avoid an error. */
2368 /* We use char because int might match the return type of a gcc2
2369 builtin and then its argument prototype would still apply. */
2374 /* The GNU C library defines this for functions which it implements
2375 to always fail with ENOSYS. Some functions are actually named
2376 something starting with __ and the normal name is an alias. */
2377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2385 if { (eval echo configure
:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2387 eval "ac_cv_func_$ac_func=yes"
2389 echo "configure: failed program was:" >&5
2390 cat conftest.
$ac_ext >&5
2392 eval "ac_cv_func_$ac_func=no"
2397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2398 echo "$ac_t""yes" 1>&6
2399 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2400 cat >> confdefs.h
<<EOF
2401 #define $ac_tr_func 1
2405 echo "$ac_t""no" 1>&6
2409 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2410 set dummy gmsgfmt
; ac_word
=$2
2411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_word" >&5
2413 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2418 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2421 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2424 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2426 for ac_dir
in $ac_dummy; do
2427 test -z "$ac_dir" && ac_dir
=.
2428 if test -f $ac_dir/$ac_word; then
2429 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2434 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2438 GMSGFMT
="$ac_cv_path_GMSGFMT"
2439 if test -n "$GMSGFMT"; then
2440 echo "$ac_t""$GMSGFMT" 1>&6
2442 echo "$ac_t""no" 1>&6
2445 # Extract the first word of "xgettext", so it can be a program name with args.
2446 set dummy xgettext
; ac_word
=$2
2447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2448 echo "configure:2449: checking for $ac_word" >&5
2449 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2454 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2457 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2458 for ac_dir
in $PATH; do
2459 test -z "$ac_dir" && ac_dir
=.
2460 if test -f $ac_dir/$ac_word; then
2461 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2462 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2468 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2472 XGETTEXT
="$ac_cv_path_XGETTEXT"
2473 if test -n "$XGETTEXT"; then
2474 echo "$ac_t""$XGETTEXT" 1>&6
2476 echo "$ac_t""no" 1>&6
2479 cat > conftest.
$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2484 extern int _nl_msg_cat_cntr;
2485 return _nl_msg_cat_cntr
2488 if { (eval echo configure
:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2505 echo "$ac_t""no" 1>&6
2510 if test "$CATOBJEXT" = "NONE"; then
2511 nls_cv_use_gnu_gettext
=yes
2515 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2516 INTLOBJS
="\$(GETTOBJS)"
2517 # Extract the first word of "msgfmt", so it can be a program name with args.
2518 set dummy msgfmt
; ac_word
=$2
2519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_word" >&5
2521 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2526 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2529 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2530 for ac_dir
in $PATH; do
2531 test -z "$ac_dir" && ac_dir
=.
2532 if test -f $ac_dir/$ac_word; then
2533 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2534 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2540 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2544 MSGFMT
="$ac_cv_path_MSGFMT"
2545 if test -n "$MSGFMT"; then
2546 echo "$ac_t""$MSGFMT" 1>&6
2548 echo "$ac_t""no" 1>&6
2551 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2552 set dummy gmsgfmt
; ac_word
=$2
2553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2554 echo "configure:2555: checking for $ac_word" >&5
2555 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2560 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2563 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2566 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2568 for ac_dir
in $ac_dummy; do
2569 test -z "$ac_dir" && ac_dir
=.
2570 if test -f $ac_dir/$ac_word; then
2571 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2576 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2580 GMSGFMT
="$ac_cv_path_GMSGFMT"
2581 if test -n "$GMSGFMT"; then
2582 echo "$ac_t""$GMSGFMT" 1>&6
2584 echo "$ac_t""no" 1>&6
2587 # Extract the first word of "xgettext", so it can be a program name with args.
2588 set dummy xgettext
; ac_word
=$2
2589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_word" >&5
2591 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2596 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2600 for ac_dir
in $PATH; do
2601 test -z "$ac_dir" && ac_dir
=.
2602 if test -f $ac_dir/$ac_word; then
2603 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2604 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2610 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2614 XGETTEXT
="$ac_cv_path_XGETTEXT"
2615 if test -n "$XGETTEXT"; then
2616 echo "$ac_t""$XGETTEXT" 1>&6
2618 echo "$ac_t""no" 1>&6
2622 USE_INCLUDED_LIBINTL
=yes
2626 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2628 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2629 nls_cv_header_intl
=libintl.h
2630 nls_cv_header_libgt
=libgettext.h
2633 if test "$XGETTEXT" != ":"; then
2634 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2637 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2642 # We need to process the po/ directory.
2646 nls_cv_header_intl
=libintl.h
2647 nls_cv_header_libgt
=libgettext.h
2650 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2651 # because some of the sources are only built for this goal.
2652 if test "$PACKAGE" = gettext; then
2654 USE_INCLUDED_LIBINTL
=yes
2657 for lang
in $ALL_LINGUAS; do
2658 GMOFILES
="$GMOFILES $lang.gmo"
2659 POFILES
="$POFILES $lang.po"
2675 if test "x$CATOBJEXT" != "x"; then
2676 if test "x$ALL_LINGUAS" = "x"; then
2679 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2680 echo "configure:2681: checking for catalogs to be installed" >&5
2682 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2683 case "$ALL_LINGUAS" in
2684 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2687 LINGUAS
=$NEW_LINGUAS
2688 echo "$ac_t""$LINGUAS" 1>&6
2691 if test -n "$LINGUAS"; then
2692 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2696 if test $ac_cv_header_locale_h = yes; then
2697 INCLUDE_LOCALE_H
="#include <locale.h>"
2700 /* The system does not provide the header <locale.h>. Take care yourself. */"
2704 if test -f $srcdir/po2tbl.
sed.
in; then
2705 if test "$CATOBJEXT" = ".cat"; then
2706 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2707 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2708 echo "configure:2709: checking for linux/version.h" >&5
2709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 cat > conftest.
$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <linux/version.h>
2717 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2718 { (eval echo configure
:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2719 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2720 if test -z "$ac_err"; then
2722 eval "ac_cv_header_$ac_safe=yes"
2725 echo "configure: failed program was:" >&5
2726 cat conftest.
$ac_ext >&5
2728 eval "ac_cv_header_$ac_safe=no"
2732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2733 echo "$ac_t""yes" 1>&6
2736 echo "$ac_t""no" 1>&6
2741 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2743 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2744 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2747 if test "$PACKAGE" = "gettext"; then
2757 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2763 if test -d $srcdir/po
; then
2764 test -d po || mkdir po
2765 if test "x$srcdir" != "x."; then
2766 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2767 posrcprefix
="$srcdir/"
2769 posrcprefix
="../$srcdir/"
2775 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2776 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2785 configdirs
="doc testsuite"
2787 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2788 if test "${enable_multi_ice+set}" = set; then
2789 enableval
="$enable_multi_ice"
2790 case "${enableval}" in
2791 yes ) enable_multi_ice
="yes" ;;
2792 no
) enable_multi_ice
="no" ;;
2793 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2799 if test "${enable_multi_ice}" = "yes"; then
2800 configdirs
="${configdirs} multi-ice"
2804 .
${srcdir}/configure.
host
2806 .
${srcdir}/configure.tgt
2809 for ac_prog
in gawk mawk nawk
awk
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy
$ac_prog; ac_word
=$2
2813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_word" >&5
2815 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 if test -n "$AWK"; then
2819 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2821 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2823 for ac_dir
in $ac_dummy; do
2824 test -z "$ac_dir" && ac_dir
=.
2825 if test -f $ac_dir/$ac_word; then
2826 ac_cv_prog_AWK
="$ac_prog"
2833 AWK
="$ac_cv_prog_AWK"
2834 if test -n "$AWK"; then
2835 echo "$ac_t""$AWK" 1>&6
2837 echo "$ac_t""no" 1>&6
2840 test -n "$AWK" && break
2843 # Find a good install program. We prefer a C program (faster),
2844 # so one script is as good as another. But avoid the broken or
2845 # incompatible versions:
2846 # SysV /etc/install, /usr/sbin/install
2847 # SunOS /usr/etc/install
2848 # IRIX /sbin/install
2850 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2853 # ./install, which can be erroneously created by make from ./install.sh.
2854 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2855 echo "configure:2856: checking for a BSD compatible install" >&5
2856 if test -z "$INSTALL"; then
2857 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2860 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2861 for ac_dir
in $PATH; do
2862 # Account for people who put trailing slashes in PATH elements.
2864 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2866 # OSF1 and SCO ODT 3.0 have their own names for install.
2867 # Don't use installbsd from OSF since it installs stuff as root
2869 for ac_prog
in ginstall scoinst
install; do
2870 if test -f $ac_dir/$ac_prog; then
2871 if test $ac_prog = install &&
2872 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2873 # AIX install. It has an incompatible calling convention.
2876 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2887 if test "${ac_cv_path_install+set}" = set; then
2888 INSTALL
="$ac_cv_path_install"
2890 # As a last resort, use the slow shell script. We don't cache a
2891 # path for INSTALL within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the path is relative.
2894 INSTALL
="$ac_install_sh"
2897 echo "$ac_t""$INSTALL" 1>&6
2899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2900 # It thinks the first close brace ends the variable substitution.
2901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2905 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2907 if test $host != $build; then
2908 ac_tool_prefix
=${host_alias}-
2913 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2914 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_word" >&5
2917 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 if test -n "$AR"; then
2921 ac_cv_prog_AR
="$AR" # Let the user override the test.
2923 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2925 for ac_dir
in $ac_dummy; do
2926 test -z "$ac_dir" && ac_dir
=.
2927 if test -f $ac_dir/$ac_word; then
2928 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2933 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2937 if test -n "$AR"; then
2938 echo "$ac_t""$AR" 1>&6
2940 echo "$ac_t""no" 1>&6
2945 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2946 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2948 echo "configure:2949: checking for $ac_word" >&5
2949 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 if test -n "$RANLIB"; then
2953 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2955 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2957 for ac_dir
in $ac_dummy; do
2958 test -z "$ac_dir" && ac_dir
=.
2959 if test -f $ac_dir/$ac_word; then
2960 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2967 RANLIB
="$ac_cv_prog_RANLIB"
2968 if test -n "$RANLIB"; then
2969 echo "$ac_t""$RANLIB" 1>&6
2971 echo "$ac_t""no" 1>&6
2975 if test -z "$ac_cv_prog_RANLIB"; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "ranlib", so it can be a program name with args.
2978 set dummy ranlib
; ac_word
=$2
2979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2980 echo "configure:2981: checking for $ac_word" >&5
2981 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 if test -n "$RANLIB"; then
2985 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2987 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2989 for ac_dir
in $ac_dummy; do
2990 test -z "$ac_dir" && ac_dir
=.
2991 if test -f $ac_dir/$ac_word; then
2992 ac_cv_prog_RANLIB
="ranlib"
2997 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3000 RANLIB
="$ac_cv_prog_RANLIB"
3001 if test -n "$RANLIB"; then
3002 echo "$ac_t""$RANLIB" 1>&6
3004 echo "$ac_t""no" 1>&6
3012 for ac_prog
in 'bison -y' byacc
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy
$ac_prog; ac_word
=$2
3016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3017 echo "configure:3018: checking for $ac_word" >&5
3018 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 if test -n "$YACC"; then
3022 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3024 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3026 for ac_dir
in $ac_dummy; do
3027 test -z "$ac_dir" && ac_dir
=.
3028 if test -f $ac_dir/$ac_word; then
3029 ac_cv_prog_YACC
="$ac_prog"
3036 YACC
="$ac_cv_prog_YACC"
3037 if test -n "$YACC"; then
3038 echo "$ac_t""$YACC" 1>&6
3040 echo "$ac_t""no" 1>&6
3043 test -n "$YACC" && break
3045 test -n "$YACC" || YACC
="yacc"
3048 if test "$program_transform_name" = s
,x
,x
,; then
3049 program_transform_name
=
3051 # Double any \ or $. echo might interpret backslashes.
3052 cat <<\EOF_SED
> conftestsed
3053 s
,\\,\\\\,g
; s
,\$
,$$
,g
3055 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3058 test "$program_prefix" != NONE
&&
3059 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3060 # Use a double $ so make ignores it.
3061 test "$program_suffix" != NONE
&&
3062 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3064 # sed with no file args requires a program.
3065 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3068 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3069 echo "configure:3070: checking return type of signal handlers" >&5
3070 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.
$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 #include <sys/types.h>
3082 extern "C" void (*signal (int, void (*)(int)))(int);
3084 void (*signal ()) ();
3091 if { (eval echo configure
:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3093 ac_cv_type_signal
=void
3095 echo "configure: failed program was:" >&5
3096 cat conftest.
$ac_ext >&5
3098 ac_cv_type_signal
=int
3103 echo "$ac_t""$ac_cv_type_signal" 1>&6
3104 cat >> confdefs.h
<<EOF
3105 #define RETSIGTYPE $ac_cv_type_signal
3110 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3111 echo "configure:3112: checking for ANSI C header files" >&5
3112 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.
$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3123 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3124 { (eval echo configure
:3125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3125 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3126 if test -z "$ac_err"; then
3128 ac_cv_header_stdc
=yes
3131 echo "configure: failed program was:" >&5
3132 cat conftest.
$ac_ext >&5
3134 ac_cv_header_stdc
=no
3138 if test $ac_cv_header_stdc = yes; then
3139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3140 cat > conftest.
$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3146 egrep "memchr" >/dev
/null
2>&1; then
3150 ac_cv_header_stdc
=no
3156 if test $ac_cv_header_stdc = yes; then
3157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3158 cat > conftest.
$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3164 egrep "free" >/dev
/null
2>&1; then
3168 ac_cv_header_stdc
=no
3174 if test $ac_cv_header_stdc = yes; then
3175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3176 if test "$cross_compiling" = yes; then
3179 cat > conftest.
$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3183 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3184 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3186 int main () { int i; for (i = 0; i < 256; i++)
3187 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3191 if { (eval echo configure
:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3195 echo "configure: failed program was:" >&5
3196 cat conftest.
$ac_ext >&5
3198 ac_cv_header_stdc
=no
3206 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3207 if test $ac_cv_header_stdc = yes; then
3208 cat >> confdefs.h
<<\EOF
3209 #define STDC_HEADERS 1
3215 for ac_hdr
in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3216 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3217 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3218 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3219 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3222 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $ac_hdr" >&5
3225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3233 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3234 { (eval echo configure
:3235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3235 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3236 if test -z "$ac_err"; then
3238 eval "ac_cv_header_$ac_safe=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.
$ac_ext >&5
3244 eval "ac_cv_header_$ac_safe=no"
3248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3249 echo "$ac_t""yes" 1>&6
3250 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3251 cat >> confdefs.h
<<EOF
3252 #define $ac_tr_hdr 1
3256 echo "$ac_t""no" 1>&6
3260 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3261 echo "configure:3262: checking whether stat file-mode macros are broken" >&5
3262 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 cat > conftest.
$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3271 #if defined(S_ISBLK) && defined(S_IFDIR)
3272 # if S_ISBLK (S_IFDIR)
3277 #if defined(S_ISBLK) && defined(S_IFCHR)
3278 # if S_ISBLK (S_IFCHR)
3283 #if defined(S_ISLNK) && defined(S_IFREG)
3284 # if S_ISLNK (S_IFREG)
3289 #if defined(S_ISSOCK) && defined(S_IFREG)
3290 # if S_ISSOCK (S_IFREG)
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 egrep "You lose" >/dev
/null
2>&1; then
3299 ac_cv_header_stat_broken
=yes
3302 ac_cv_header_stat_broken
=no
3308 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3309 if test $ac_cv_header_stat_broken = yes; then
3310 cat >> confdefs.h
<<\EOF
3311 #define STAT_MACROS_BROKEN 1
3317 echo $ac_n "checking for working const""... $ac_c" 1>&6
3318 echo "configure:3319: checking for working const" >&5
3319 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 cat > conftest.
$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3328 /* Ultrix mips cc rejects this. */
3329 typedef int charset[2]; const charset x;
3330 /* SunOS 4.1.1 cc rejects this. */
3331 char const *const *ccp;
3333 /* NEC SVR4.0.2 mips cc rejects this. */
3334 struct point {int x, y;};
3335 static struct point const zero = {0,0};
3336 /* AIX XL C 1.02.0.0 rejects this.
3337 It does not let you subtract one const X* pointer from another in an arm
3338 of an if-expression whose if-part is not a constant expression */
3339 const char *g = "string";
3340 ccp = &g + (g ? g-g : 0);
3341 /* HPUX 7.0 cc rejects these. */
3344 ccp = (char const *const *) p;
3345 { /* SCO 3.2v4 cc rejects this. */
3347 char const *s = 0 ? (char *) 0 : (char const *) 0;
3351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3353 const int *foo = &x[0];
3356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3357 typedef const int *iptr;
3361 { /* AIX XL C 1.02.0.0 rejects this saying
3362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3363 struct s { int j; const int *ap[3]; };
3364 struct s *b; b->j = 5;
3366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3372 if { (eval echo configure
:3373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3376 echo "configure: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3384 echo "$ac_t""$ac_cv_c_const" 1>&6
3385 if test $ac_cv_c_const = no
; then
3386 cat >> confdefs.h
<<\EOF
3393 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3396 echo "configure:3397: checking for $ac_func" >&5
3397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* System header to define __stub macros and hopefully few prototypes,
3404 which can conflict with char $ac_func(); below. */
3406 /* Override any gcc2 internal prototype to avoid an error. */
3407 /* We use char because int might match the return type of a gcc2
3408 builtin and then its argument prototype would still apply. */
3413 /* The GNU C library defines this for functions which it implements
3414 to always fail with ENOSYS. Some functions are actually named
3415 something starting with __ and the normal name is an alias. */
3416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3424 if { (eval echo configure
:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3426 eval "ac_cv_func_$ac_func=yes"
3428 echo "configure: failed program was:" >&5
3429 cat conftest.
$ac_ext >&5
3431 eval "ac_cv_func_$ac_func=no"
3436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3438 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3439 cat >> confdefs.h
<<EOF
3440 #define $ac_tr_func 1
3444 echo "$ac_t""no" 1>&6
3448 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3449 # for constant arguments. Useless!
3450 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3451 echo "configure:3452: checking for working alloca.h" >&5
3452 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.
$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3460 char *p = alloca(2 * sizeof(int));
3463 if { (eval echo configure
:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3465 ac_cv_header_alloca_h
=yes
3467 echo "configure: failed program was:" >&5
3468 cat conftest.
$ac_ext >&5
3470 ac_cv_header_alloca_h
=no
3475 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3476 if test $ac_cv_header_alloca_h = yes; then
3477 cat >> confdefs.h
<<\EOF
3478 #define HAVE_ALLOCA_H 1
3483 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3484 echo "configure:3485: checking for alloca" >&5
3485 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3488 cat > conftest.
$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3493 # define alloca __builtin_alloca
3496 # include <malloc.h>
3497 # define alloca _alloca
3500 # include <alloca.h>
3505 # ifndef alloca /* predefined by HP cc +Olibcalls */
3514 char *p = (char *) alloca(1);
3517 if { (eval echo configure
:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3519 ac_cv_func_alloca_works
=yes
3521 echo "configure: failed program was:" >&5
3522 cat conftest.
$ac_ext >&5
3524 ac_cv_func_alloca_works
=no
3529 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3530 if test $ac_cv_func_alloca_works = yes; then
3531 cat >> confdefs.h
<<\EOF
3532 #define HAVE_ALLOCA 1
3537 if test $ac_cv_func_alloca_works = no
; then
3538 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3539 # that cause trouble. Some versions do not even contain alloca or
3540 # contain a buggy version. If you still want to use their alloca,
3541 # use ar to extract alloca.o from them instead of compiling alloca.c.
3542 ALLOCA
=alloca.
${ac_objext}
3543 cat >> confdefs.h
<<\EOF
3548 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3549 echo "configure:3550: checking whether alloca needs Cray hooks" >&5
3550 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 cat > conftest.
$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3556 #if defined(CRAY) && ! defined(CRAY2)
3563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3564 egrep "webecray" >/dev
/null
2>&1; then
3575 echo "$ac_t""$ac_cv_os_cray" 1>&6
3576 if test $ac_cv_os_cray = yes; then
3577 for ac_func
in _getb67 GETB67 getb67
; do
3578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3579 echo "configure:3580: checking for $ac_func" >&5
3580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 cat > conftest.
$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 /* System header to define __stub macros and hopefully few prototypes,
3587 which can conflict with char $ac_func(); below. */
3589 /* Override any gcc2 internal prototype to avoid an error. */
3590 /* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3596 /* The GNU C library defines this for functions which it implements
3597 to always fail with ENOSYS. Some functions are actually named
3598 something starting with __ and the normal name is an alias. */
3599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3607 if { (eval echo configure
:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3609 eval "ac_cv_func_$ac_func=yes"
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3614 eval "ac_cv_func_$ac_func=no"
3619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3620 echo "$ac_t""yes" 1>&6
3621 cat >> confdefs.h
<<EOF
3622 #define CRAY_STACKSEG_END $ac_func
3627 echo "$ac_t""no" 1>&6
3633 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3634 echo "configure:3635: checking stack direction for C alloca" >&5
3635 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 if test "$cross_compiling" = yes; then
3639 ac_cv_c_stack_direction
=0
3641 cat > conftest.
$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 find_stack_direction ()
3646 static char *addr = 0;
3651 return find_stack_direction ();
3654 return (&dummy > addr) ? 1 : -1;
3658 exit (find_stack_direction() < 0);
3661 if { (eval echo configure
:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3663 ac_cv_c_stack_direction
=1
3665 echo "configure: failed program was:" >&5
3666 cat conftest.
$ac_ext >&5
3668 ac_cv_c_stack_direction
=-1
3675 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3676 cat >> confdefs.h
<<EOF
3677 #define STACK_DIRECTION $ac_cv_c_stack_direction
3683 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3684 echo "configure:3685: checking for PTRACE_GETXFPREGS" >&5
3685 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3688 cat > conftest.
$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 #include <sys/ptrace.h>
3696 if { (eval echo configure
:3697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3698 gdb_cv_have_ptrace_getxfpregs
=yes
3700 echo "configure: failed program was:" >&5
3701 cat conftest.
$ac_ext >&5
3703 gdb_cv_have_ptrace_getxfpregs
=no
3708 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3709 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3710 cat >> confdefs.h
<<\EOF
3711 #define HAVE_PTRACE_GETXFPREGS 1
3716 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3717 echo "configure:3718: checking for socketpair in -lsocket" >&5
3718 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3722 ac_save_LIBS
="$LIBS"
3723 LIBS
="-lsocket $LIBS"
3724 cat > conftest.
$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 /* Override any gcc2 internal prototype to avoid an error. */
3728 /* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
3736 if { (eval echo configure
:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3738 eval "ac_cv_lib_$ac_lib_var=yes"
3740 echo "configure: failed program was:" >&5
3741 cat conftest.
$ac_ext >&5
3743 eval "ac_cv_lib_$ac_lib_var=no"
3746 LIBS
="$ac_save_LIBS"
3749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3750 echo "$ac_t""yes" 1>&6
3751 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3752 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3753 cat >> confdefs.h
<<EOF
3754 #define $ac_tr_lib 1
3757 LIBS
="-lsocket $LIBS"
3760 echo "$ac_t""no" 1>&6
3763 for ac_func
in socketpair
3765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3766 echo "configure:3767: checking for $ac_func" >&5
3767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 cat > conftest.
$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 /* System header to define __stub macros and hopefully few prototypes,
3774 which can conflict with char $ac_func(); below. */
3776 /* Override any gcc2 internal prototype to avoid an error. */
3777 /* We use char because int might match the return type of a gcc2
3778 builtin and then its argument prototype would still apply. */
3783 /* The GNU C library defines this for functions which it implements
3784 to always fail with ENOSYS. Some functions are actually named
3785 something starting with __ and the normal name is an alias. */
3786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3794 if { (eval echo configure
:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3796 eval "ac_cv_func_$ac_func=yes"
3798 echo "configure: failed program was:" >&5
3799 cat conftest.
$ac_ext >&5
3801 eval "ac_cv_func_$ac_func=no"
3806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3807 echo "$ac_t""yes" 1>&6
3808 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3809 cat >> confdefs.h
<<EOF
3810 #define $ac_tr_func 1
3814 echo "$ac_t""no" 1>&6
3820 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3821 echo "configure:3822: checking whether malloc must be declared" >&5
3822 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 cat > conftest.
$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3830 #ifdef HAVE_STRING_H
3833 #ifdef HAVE_STRINGS_H
3834 #include <strings.h>
3837 #ifdef HAVE_STDLIB_H
3840 #ifdef HAVE_UNISTD_H
3844 char *(*pfn) = (char *(*)) malloc
3847 if { (eval echo configure
:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3849 bfd_cv_decl_needed_malloc
=no
3851 echo "configure: failed program was:" >&5
3852 cat conftest.
$ac_ext >&5
3854 bfd_cv_decl_needed_malloc
=yes
3859 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3860 if test $bfd_cv_decl_needed_malloc = yes; then
3861 cat >> confdefs.h
<<\EOF
3862 #define NEED_DECLARATION_MALLOC 1
3867 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3868 echo "configure:3869: checking whether realloc must be declared" >&5
3869 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 cat > conftest.
$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3877 #ifdef HAVE_STRING_H
3880 #ifdef HAVE_STRINGS_H
3881 #include <strings.h>
3884 #ifdef HAVE_STDLIB_H
3887 #ifdef HAVE_UNISTD_H
3891 char *(*pfn) = (char *(*)) realloc
3894 if { (eval echo configure
:3895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3896 bfd_cv_decl_needed_realloc
=no
3898 echo "configure: failed program was:" >&5
3899 cat conftest.
$ac_ext >&5
3901 bfd_cv_decl_needed_realloc
=yes
3906 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3907 if test $bfd_cv_decl_needed_realloc = yes; then
3908 cat >> confdefs.h
<<\EOF
3909 #define NEED_DECLARATION_REALLOC 1
3914 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3915 echo "configure:3916: checking whether free must be declared" >&5
3916 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 cat > conftest.
$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3924 #ifdef HAVE_STRING_H
3927 #ifdef HAVE_STRINGS_H
3928 #include <strings.h>
3931 #ifdef HAVE_STDLIB_H
3934 #ifdef HAVE_UNISTD_H
3938 char *(*pfn) = (char *(*)) free
3941 if { (eval echo configure
:3942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3943 bfd_cv_decl_needed_free
=no
3945 echo "configure: failed program was:" >&5
3946 cat conftest.
$ac_ext >&5
3948 bfd_cv_decl_needed_free
=yes
3953 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3954 if test $bfd_cv_decl_needed_free = yes; then
3955 cat >> confdefs.h
<<\EOF
3956 #define NEED_DECLARATION_FREE 1
3961 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3962 echo "configure:3963: checking whether strerror must be declared" >&5
3963 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 cat > conftest.
$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3971 #ifdef HAVE_STRING_H
3974 #ifdef HAVE_STRINGS_H
3975 #include <strings.h>
3978 #ifdef HAVE_STDLIB_H
3981 #ifdef HAVE_UNISTD_H
3985 char *(*pfn) = (char *(*)) strerror
3988 if { (eval echo configure
:3989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3990 bfd_cv_decl_needed_strerror
=no
3992 echo "configure: failed program was:" >&5
3993 cat conftest.
$ac_ext >&5
3995 bfd_cv_decl_needed_strerror
=yes
4000 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4001 if test $bfd_cv_decl_needed_strerror = yes; then
4002 cat >> confdefs.h
<<\EOF
4003 #define NEED_DECLARATION_STRERROR 1
4008 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4009 echo "configure:4010: checking whether strdup must be declared" >&5
4010 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4013 cat > conftest.
$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4018 #ifdef HAVE_STRING_H
4021 #ifdef HAVE_STRINGS_H
4022 #include <strings.h>
4025 #ifdef HAVE_STDLIB_H
4028 #ifdef HAVE_UNISTD_H
4032 char *(*pfn) = (char *(*)) strdup
4035 if { (eval echo configure
:4036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4037 bfd_cv_decl_needed_strdup
=no
4039 echo "configure: failed program was:" >&5
4040 cat conftest.
$ac_ext >&5
4042 bfd_cv_decl_needed_strdup
=yes
4047 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4048 if test $bfd_cv_decl_needed_strdup = yes; then
4049 cat >> confdefs.h
<<\EOF
4050 #define NEED_DECLARATION_STRDUP 1
4055 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4056 echo "configure:4057: checking whether strstr must be declared" >&5
4057 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 cat > conftest.
$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4065 #ifdef HAVE_STRING_H
4068 #ifdef HAVE_STRINGS_H
4069 #include <strings.h>
4072 #ifdef HAVE_STDLIB_H
4075 #ifdef HAVE_UNISTD_H
4079 char *(*pfn) = (char *(*)) strstr
4082 if { (eval echo configure
:4083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4084 bfd_cv_decl_needed_strstr
=no
4086 echo "configure: failed program was:" >&5
4087 cat conftest.
$ac_ext >&5
4089 bfd_cv_decl_needed_strstr
=yes
4094 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4095 if test $bfd_cv_decl_needed_strstr = yes; then
4096 cat >> confdefs.h
<<\EOF
4097 #define NEED_DECLARATION_STRSTR 1
4104 # The following save_state_t checkery is only necessary for HPUX
4105 # versions earlier than 10.20. When those fade from memory, this
4106 # could be expunged. --jsm 1999-03-22
4108 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4109 echo "configure:4110: checking for HPUX save_state structure" >&5
4110 cat > conftest.
$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 #include <machine/save_state.h>
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 egrep "save_state_t" >/dev
/null
2>&1; then
4118 gdb_cv_hpux_savestate
=yes
4121 gdb_cv_hpux_savestate
=no
4125 cat > conftest.
$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4128 #include <machine/save_state.h>
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131 egrep "ss_wide" >/dev
/null
2>&1; then
4133 gdb_cv_hpux_sswide
=yes
4136 gdb_cv_hpux_sswide
=no
4140 if test $gdb_cv_hpux_savestate = yes
4142 cat >> confdefs.h
<<\EOF
4143 #define HAVE_STRUCT_SAVE_STATE_T 1
4147 if test $gdb_cv_hpux_sswide = yes
4149 cat >> confdefs.h
<<\EOF
4150 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4154 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4157 # If we are configured native on GNU/Linux, work around problems with
4159 # Also detect which type of /proc is in use, such as for Unixware.
4161 if test "${target}" = "${host}"; then
4162 gdb_cv_hostos_is_solaris
=no
4165 cat >> confdefs.h
<<\EOF
4166 #define START_INFERIOR_TRAPS_EXPECTED 2
4169 cat >> confdefs.h
<<\EOF
4170 #define sys_quotactl 1
4175 gdb_cv_hostos_is_solaris
=yes ;;
4177 echo $ac_n "checking for directory proc entries""... $ac_c" 1>&6
4178 echo "configure:4179: checking for directory proc entries" >&5
4179 # The [gdb_host != sun4sol2] hack is because Solaris does provide the
4180 # multiple procfs files as of Solaris 2.6, but GDB can't use it right now.
4181 if test "$ac_cv_header_sys_procfs_h" = yes -a \
4182 "$gdb_cv_hostos_is_solaris" = no \
4184 -a -f /proc
/$$
/ctl \
4186 -a -f /proc
/$$
/map \
4187 -a -f /proc
/$$
/status
; then
4188 echo "$ac_t""yes" 1>&6
4189 cat >> confdefs.h
<<\EOF
4190 #define HAVE_MULTIPLE_PROC_FDS 1
4194 echo "$ac_t""no" 1>&6
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"
5550 # If we find X, set shell vars x_includes and x_libraries to the
5551 # paths, otherwise set no_x=yes.
5552 # Uses ac_ vars as temps to allow command line to override cache and checks.
5553 # --without-x overrides everything else, but does not touch the cache.
5554 echo $ac_n "checking for X""... $ac_c" 1>&6
5555 echo "configure:6763: checking for X" >&5
5557 # Check whether --with-x or --without-x was given.
5558 if test "${with_x+set}" = set; then
5563 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5564 if test "x$with_x" = xno
; then
5565 # The user explicitly disabled X.
5568 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5569 # Both variables are already set.
5572 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5575 # One or both of the vars are not set, and there is no cached value.
5576 ac_x_includes
=NO ac_x_libraries
=NO
5578 if mkdir conftestdir
; then
5580 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5581 cat > Imakefile
<<'EOF'
5583 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5585 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5586 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5587 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5588 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5589 for ac_extension
in a so sl
; do
5590 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5591 test -f $ac_im_libdir/libX11.
$ac_extension; then
5592 ac_im_usrlibdir
=$ac_im_libdir; break
5595 # Screen out bogus values from the imake configuration. They are
5596 # bogus both because they are the default anyway, and because
5597 # using them would break gcc on systems where it needs fixed includes.
5598 case "$ac_im_incroot" in
5600 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5602 case "$ac_im_usrlibdir" in
5604 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5611 if test "$ac_x_includes" = NO
; then
5612 # Guess where to find include files, by looking for this one X11 .h file.
5613 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5615 # First, try using that file with no special directory specified.
5616 cat > conftest.
$ac_ext <<EOF
5617 #line 6825 "configure"
5618 #include "confdefs.h"
5619 #include <$x_direct_test_include>
5621 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5622 { (eval echo configure
:6830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5623 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5624 if test -z "$ac_err"; then
5626 # We can compile using X headers with no special include directory.
5630 echo "configure: failed program was:" >&5
5631 cat conftest.
$ac_ext >&5
5633 # Look for the header file in a standard set of common directories.
5634 # Check X11 before X11Rn because it is often a symlink to the current release.
5637 /usr
/X11R
6/include \
5638 /usr
/X11R
5/include \
5639 /usr
/X11R
4/include \
5642 /usr
/include
/X11R6 \
5643 /usr
/include
/X11R5 \
5644 /usr
/include
/X11R4 \
5646 /usr
/local
/X11
/include \
5647 /usr
/local
/X11R
6/include \
5648 /usr
/local
/X11R
5/include \
5649 /usr
/local
/X11R
4/include \
5651 /usr
/local
/include
/X11 \
5652 /usr
/local
/include
/X11R6 \
5653 /usr
/local
/include
/X11R5 \
5654 /usr
/local
/include
/X11R4 \
5658 /usr
/XFree86
/include
/X11 \
5661 /usr
/local
/include \
5662 /usr
/unsupported
/include \
5663 /usr
/athena
/include \
5664 /usr
/local
/x11r
5/include \
5665 /usr
/lpp
/Xamples
/include \
5667 /usr
/openwin
/include \
5668 /usr
/openwin
/share
/include \
5671 if test -r "$ac_dir/$x_direct_test_include"; then
5672 ac_x_includes
=$ac_dir
5678 fi # $ac_x_includes = NO
5680 if test "$ac_x_libraries" = NO
; then
5681 # Check for the libraries.
5683 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
5684 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
5686 # See if we find them without any special options.
5687 # Don't add to $LIBS permanently.
5688 ac_save_LIBS
="$LIBS"
5689 LIBS
="-l$x_direct_test_library $LIBS"
5690 cat > conftest.
$ac_ext <<EOF
5691 #line 6899 "configure"
5692 #include "confdefs.h"
5695 ${x_direct_test_function}()
5698 if { (eval echo configure
:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5700 LIBS
="$ac_save_LIBS"
5701 # We can link X programs with no special library path.
5704 echo "configure: failed program was:" >&5
5705 cat conftest.
$ac_ext >&5
5707 LIBS
="$ac_save_LIBS"
5708 # First see if replacing the include by lib works.
5709 # Check X11 before X11Rn because it is often a symlink to the current release.
5710 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
5721 /usr
/local
/X11
/lib \
5722 /usr
/local
/X11R
6/lib \
5723 /usr
/local
/X11R
5/lib \
5724 /usr
/local
/X11R
4/lib \
5726 /usr
/local
/lib
/X11 \
5727 /usr
/local
/lib
/X11R6 \
5728 /usr
/local
/lib
/X11R5 \
5729 /usr
/local
/lib
/X11R4 \
5733 /usr
/XFree86
/lib
/X11 \
5737 /usr
/unsupported
/lib \
5739 /usr
/local
/x11r
5/lib \
5740 /usr
/lpp
/Xamples
/lib \
5744 /usr
/openwin
/share
/lib \
5747 for ac_extension
in a so sl
; do
5748 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
5749 ac_x_libraries
=$ac_dir
5756 fi # $ac_x_libraries = NO
5758 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
5759 # Didn't find X anywhere. Cache the known absence of X.
5760 ac_cv_have_x
="have_x=no"
5762 # Record where we found X for the cache.
5763 ac_cv_have_x
="have_x=yes \
5764 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5768 eval "$ac_cv_have_x"
5771 if test "$have_x" != yes; then
5772 echo "$ac_t""$have_x" 1>&6
5775 # If each of the values was on the command line, it overrides each guess.
5776 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5777 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5778 # Update the cache value to reflect the command line values.
5779 ac_cv_have_x
="have_x=yes \
5780 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5781 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5786 # Unlike the sim directory, whether a simulator is linked is controlled by
5787 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
5788 # This code just checks for a few cases where we'd like to ignore those
5789 # definitions, even when they're present in the '.mt' file. These cases
5790 # are when --disable-sim is specified, or if the simulator directory is
5791 # not part of the soruce tree.
5793 # Check whether --enable-sim or --disable-sim was given.
5794 if test "${enable_sim+set}" = set; then
5795 enableval
="$enable_sim"
5796 echo "enable_sim = $enable_sim";
5797 echo "enableval = ${enableval}";
5798 case "${enableval}" in
5799 yes) ignore_sim
=false
;;
5800 no
) ignore_sim
=true
;;
5801 *) ignore_sim
=false
;;
5808 if test ! -d "${srcdir}/../sim"; then
5812 if test "${ignore_sim}" = "true"; then
5814 IGNORE_SIM_OBS
="SIM_OBS="
5818 cat >> confdefs.h
<<\EOF
5832 # Begin stuff to support --enable-shared
5833 # Check whether --enable-shared or --disable-shared was given.
5834 if test "${enable_shared+set}" = set; then
5835 enableval
="$enable_shared"
5836 case "${enableval}" in
5845 # If we have shared libraries, try to set rpath reasonably.
5846 if test "${shared}" = "true"; then
5849 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
5851 *-*-irix5* |
*-*-irix6*)
5852 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5856 *-*-linux* |
*-pc-linux-gnu)
5857 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5860 HLDFLAGS
='-R $(libdir)'
5863 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;'
5868 # On SunOS, if the linker supports the -rpath option, use it to
5869 # prevent ../bfd and ../opcodes from being included in the run time
5873 echo 'main () { }' > conftest.c
5874 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
5875 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
5877 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
5879 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
5881 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
5883 elif test "${shared}" = "true"; then
5884 HLDFLAGS
='-Wl,-rpath=$(libdir)'
5886 HLDFLAGS
='-Wl,-rpath='
5888 rm -f conftest.t conftest.c conftest
5893 # End stuff to support --enable-shared
5895 # target_subdir is used by the testsuite to find the target libraries.
5897 if test "${host}" != "${target}"; then
5898 target_subdir
="${target_alias}/"
5903 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5904 if test ! -f ${host_makefile_frag}; then
5905 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
5907 frags
="$frags $host_makefile_frag"
5909 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5910 if test ! -f ${target_makefile_frag}; then
5911 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
5913 frags
="$frags $target_makefile_frag"
5920 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5921 ' ${host_makefile_frag}`
5923 targetfile
=`sed -n '
5924 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5925 ' ${target_makefile_frag}`
5927 # these really aren't orthogonal true/false values of the same condition,
5928 # but shells are slow enough that I like to reuse the test conditions
5930 if test "${target}" = "${host}"; then
5931 nativefile
=`sed -n '
5932 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5933 ' ${host_makefile_frag}`
5935 # GDBserver is only useful in a "native" enviroment
5936 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5940 SUBDIRS
="doc testsuite nlm"
5941 if test "${enable_multi_ice}" = "yes"; then
5942 SUBDIRS
="${SUBDIRS} multi-ice"
5947 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5948 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5949 # corresponding links. But we have to remove the xm.h files and tm.h
5950 # files anyway, e.g. when switching from "configure host" to
5956 if test "${hostfile}" != ""; then
5957 files
="${files} config/${gdb_host_cpu}/${hostfile}"
5958 links
="${links} xm.h"
5961 if test "${targetfile}" != ""; then
5962 files
="${files} config/${gdb_target_cpu}/${targetfile}"
5963 links
="${links} tm.h"
5966 if test "${nativefile}" != ""; then
5967 files
="${files} config/${gdb_host_cpu}/${nativefile}"
5968 links
="${links} nm.h"
5970 # A cross-only configuration.
5971 files
="${files} config/nm-empty.h"
5972 links
="${links} nm.h"
5977 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
5978 echo "configure:7257: checking for Cygwin environment" >&5
5979 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
5980 echo $ac_n "(cached) $ac_c" 1>&6
5982 cat > conftest.
$ac_ext <<EOF
5983 #line 7262 "configure"
5984 #include "confdefs.h"
5989 #define __CYGWIN__ __CYGWIN32__
5994 if { (eval echo configure
:7273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5998 echo "configure: failed program was:" >&5
5999 cat conftest.
$ac_ext >&5
6007 echo "$ac_t""$ac_cv_cygwin" 1>&6
6009 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
6010 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
6011 echo "configure:7290: checking for mingw32 environment" >&5
6012 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
6013 echo $ac_n "(cached) $ac_c" 1>&6
6015 cat > conftest.
$ac_ext <<EOF
6016 #line 7295 "configure"
6017 #include "confdefs.h"
6023 if { (eval echo configure
:7302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6027 echo "configure: failed program was:" >&5
6028 cat conftest.
$ac_ext >&5
6036 echo "$ac_t""$ac_cv_mingw32" 1>&6
6038 test "$ac_cv_mingw32" = yes && MINGW32
=yes
6041 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6042 echo "configure:7321: checking for executable suffix" >&5
6043 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
6050 echo 'int main () { return 0; }' > conftest.
$ac_ext
6052 if { (eval echo configure
:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
6053 for file in conftest.
*; do
6055 *.c |
*.o |
*.obj
) ;;
6056 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
6060 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
6063 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
6068 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
6069 echo "$ac_t""${ac_cv_exeext}" 1>&6
6073 subdirs
="$configdirs"
6076 cat > confcache
<<\EOF
6077 # This file is a shell script that caches the results of configure
6078 # tests run on this system so they can be shared between configure
6079 # scripts and configure runs. It is not useful on other systems.
6080 # If it contains results you don't want to keep, you may remove or edit it.
6082 # By default, configure uses ./config.cache as the cache file,
6083 # creating it if it does not exist already. You can give configure
6084 # the --cache-file=FILE option to use a different cache file; that is
6085 # what configure does when it calls configure scripts in
6086 # subdirectories, so they share the cache.
6087 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6088 # config.status only pays attention to the cache file if you give it the
6089 # --recheck option to rerun configure.
6092 # The following way of writing the cache mishandles newlines in values,
6093 # but we know of no workaround that is simple, portable, and efficient.
6094 # So, don't put newlines in cache variables' values.
6095 # Ultrix sh set writes to stderr and can't be redirected directly,
6096 # and sets the high bit in the cache file unless we assign to the vars.
6098 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6100 # `set' does not quote correctly, so add quotes (double-quote substitution
6101 # turns \\\\ into \\, and sed turns \\ into \).
6103 -e "s/'/'\\\\''/g" \
6104 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6107 # `set' quotes correctly as required by POSIX, so do not add quotes.
6108 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6111 if cmp -s $cache_file confcache
; then
6114 if test -w $cache_file; then
6115 echo "updating cache $cache_file"
6116 cat confcache
> $cache_file
6118 echo "not updating unwritable cache $cache_file"
6123 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6125 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6126 # Let make expand exec_prefix.
6127 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6129 # Any assignment to VPATH causes Sun make to only execute
6130 # the first set of double-colon rules, so remove it if not needed.
6131 # If there is a colon in the path, we need to keep it.
6132 if test "x$srcdir" = x.
; then
6133 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6136 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6138 DEFS
=-DHAVE_CONFIG_H
6140 # Without the "./", some shells look in PATH for config.status.
6141 : ${CONFIG_STATUS=./config.status}
6143 echo creating
$CONFIG_STATUS
6144 rm -f $CONFIG_STATUS
6145 cat > $CONFIG_STATUS <<EOF
6147 # Generated automatically by configure.
6148 # Run this file to recreate the current configuration.
6149 # This directory was configured as follows,
6150 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6152 # $0 $ac_configure_args
6154 # Compiler output produced by configure, useful for debugging
6155 # configure, is in ./config.log if it exists.
6157 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6160 case "\$ac_option" in
6161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6162 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6163 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6164 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6165 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6167 -help | --help | --hel | --he | --h)
6168 echo "\$ac_cs_usage"; exit 0 ;;
6169 *) echo "\$ac_cs_usage"; exit 1 ;;
6173 ac_given_srcdir=$srcdir
6174 ac_given_INSTALL="$INSTALL"
6176 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6178 cat >> $CONFIG_STATUS <<EOF
6180 # Protect against being on the right side of a sed subst in config.status.
6181 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6182 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6186 s%@CFLAGS@%$CFLAGS%g
6187 s%@CPPFLAGS@%$CPPFLAGS%g
6188 s%@CXXFLAGS@%$CXXFLAGS%g
6189 s%@FFLAGS@%$FFLAGS%g
6191 s%@LDFLAGS@%$LDFLAGS%g
6193 s%@exec_prefix@%$exec_prefix%g
6194 s%@prefix@%$prefix%g
6195 s%@program_transform_name@%$program_transform_name%g
6196 s%@bindir@%$bindir%g
6197 s%@sbindir@%$sbindir%g
6198 s%@libexecdir@%$libexecdir%g
6199 s%@datadir@%$datadir%g
6200 s%@sysconfdir@%$sysconfdir%g
6201 s%@sharedstatedir@%$sharedstatedir%g
6202 s%@localstatedir@%$localstatedir%g
6203 s%@libdir@%$libdir%g
6204 s%@includedir@%$includedir%g
6205 s%@oldincludedir@%$oldincludedir%g
6206 s%@infodir@%$infodir%g
6207 s%@mandir@%$mandir%g
6211 s%@host_alias@%$host_alias%g
6212 s%@host_cpu@%$host_cpu%g
6213 s%@host_vendor@%$host_vendor%g
6214 s%@host_os@%$host_os%g
6215 s%@target@%$target%g
6216 s%@target_alias@%$target_alias%g
6217 s%@target_cpu@%$target_cpu%g
6218 s%@target_vendor@%$target_vendor%g
6219 s%@target_os@%$target_os%g
6221 s%@build_alias@%$build_alias%g
6222 s%@build_cpu@%$build_cpu%g
6223 s%@build_vendor@%$build_vendor%g
6224 s%@build_os@%$build_os%g
6225 s%@SET_MAKE@%$SET_MAKE%g
6226 s%@RANLIB@%$RANLIB%g
6227 s%@ALLOCA@%$ALLOCA%g
6228 s%@USE_NLS@%$USE_NLS%g
6229 s%@MSGFMT@%$MSGFMT%g
6230 s%@GMSGFMT@%$GMSGFMT%g
6231 s%@XGETTEXT@%$XGETTEXT%g
6232 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6233 s%@CATALOGS@%$CATALOGS%g
6234 s%@CATOBJEXT@%$CATOBJEXT%g
6235 s%@DATADIRNAME@%$DATADIRNAME%g
6236 s%@GMOFILES@%$GMOFILES%g
6237 s%@INSTOBJEXT@%$INSTOBJEXT%g
6238 s%@INTLDEPS@%$INTLDEPS%g
6239 s%@INTLLIBS@%$INTLLIBS%g
6240 s%@INTLOBJS@%$INTLOBJS%g
6241 s%@POFILES@%$POFILES%g
6243 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6245 s%@GT_YES@%$GT_YES%g
6246 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6249 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6250 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6251 s%@INSTALL_DATA@%$INSTALL_DATA%g
6254 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6255 s%@BUILD_TUI@%$BUILD_TUI%g
6256 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
6257 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6258 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
6259 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6260 s%@MMALLOC@%$MMALLOC%g
6261 s%@MACHINE_OBS@%$MACHINE_OBS%g
6262 s%@DLLTOOL@%$DLLTOOL%g
6263 s%@WINDRES@%$WINDRES%g
6264 s%@TERM_LIB@%$TERM_LIB%g
6265 s%@WIN32LIBS@%$WIN32LIBS%g
6266 s%@ENABLE_IDE@%$ENABLE_IDE%g
6267 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6268 s%@LIBGUI@%$LIBGUI%g
6269 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6270 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6272 s%@LIBIDETCL@%$LIBIDETCL%g
6273 s%@LIBIDE@%$LIBIDE%g
6274 s%@IDE_DEPS@%$IDE_DEPS%g
6275 s%@WIN32LDAPP@%$WIN32LDAPP%g
6276 s%@TCL_VERSION@%$TCL_VERSION%g
6277 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6278 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6279 s%@TCL_CC@%$TCL_CC%g
6280 s%@TCL_DEFS@%$TCL_DEFS%g
6281 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6282 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6283 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6284 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6285 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6286 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6287 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6288 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6289 s%@TCL_RANLIB@%$TCL_RANLIB%g
6290 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6291 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6292 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6293 s%@TK_VERSION@%$TK_VERSION%g
6294 s%@TK_DEFS@%$TK_DEFS%g
6295 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6296 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6297 s%@TK_XLIBSW@%$TK_XLIBSW%g
6298 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6299 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6300 s%@TCLHDIR@%$TCLHDIR%g
6301 s%@TKHDIR@%$TKHDIR%g
6302 s%@ITCLHDIR@%$ITCLHDIR%g
6303 s%@ITKHDIR@%$ITKHDIR%g
6304 s%@TIXHDIR@%$TIXHDIR%g
6305 s%@ITCL_VERSION@%$ITCL_VERSION%g
6306 s%@ITCL_DEFS@%$ITCL_DEFS%g
6307 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
6308 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
6309 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
6310 s%@ITK_VERSION@%$ITK_VERSION%g
6311 s%@ITK_DEFS@%$ITK_DEFS%g
6312 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
6313 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
6314 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
6315 s%@TIX_VERSION@%$TIX_VERSION%g
6316 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
6317 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6318 s%@X_CFLAGS@%$X_CFLAGS%g
6319 s%@X_LDFLAGS@%$X_LDFLAGS%g
6320 s%@X_LIBS@%$X_LIBS%g
6321 s%@ITCLLIB@%$ITCLLIB%g
6322 s%@ITCL_DEPS@%$ITCL_DEPS%g
6323 s%@ITKLIB@%$ITKLIB%g
6324 s%@ITK_DEPS@%$ITK_DEPS%g
6325 s%@TIXLIB@%$TIXLIB%g
6326 s%@TIX_DEPS@%$TIX_DEPS%g
6327 s%@GDBTKLIBS@%$GDBTKLIBS%g
6328 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
6329 s%@IGNORE_SIM@%$IGNORE_SIM%g
6330 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
6331 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6332 s%@CONFIG_OBS@%$CONFIG_OBS%g
6333 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6334 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6335 s%@HLDFLAGS@%$HLDFLAGS%g
6336 s%@HLDENV@%$HLDENV%g
6337 s%@target_subdir@%$target_subdir%g
6338 /@host_makefile_frag@/r $host_makefile_frag
6339 s%@host_makefile_frag@%%g
6340 /@target_makefile_frag@/r $target_makefile_frag
6341 s%@target_makefile_frag@%%g
6343 s%@SUBDIRS@%$SUBDIRS%g
6345 s%@EXEEXT@%$EXEEXT%g
6346 s%@subdirs@%$subdirs%g
6351 cat >> $CONFIG_STATUS <<\EOF
6353 # Split the substitutions into bite-sized pieces for seds with
6354 # small command number limits, like on Digital OSF/1 and HP-UX.
6355 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6356 ac_file
=1 # Number of current file.
6357 ac_beg
=1 # First line for current file.
6358 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6361 while $ac_more_lines; do
6362 if test $ac_beg -gt 1; then
6363 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6365 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6367 if test ! -s conftest.s
$ac_file; then
6369 rm -f conftest.s
$ac_file
6371 if test -z "$ac_sed_cmds"; then
6372 ac_sed_cmds
="sed -f conftest.s$ac_file"
6374 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6376 ac_file
=`expr $ac_file + 1`
6378 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6381 if test -z "$ac_sed_cmds"; then
6386 cat >> $CONFIG_STATUS <<EOF
6388 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
6390 cat >> $CONFIG_STATUS <<\EOF
6391 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6394 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6395 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6396 *) ac_file_in
="${ac_file}.in" ;;
6399 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6401 # Remove last slash and all that follows it. Not all systems have dirname.
6402 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6403 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6404 # The file is in a subdirectory.
6405 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6406 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6407 # A "../" for each directory in $ac_dir_suffix.
6408 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6410 ac_dir_suffix
= ac_dots
=
6413 case "$ac_given_srcdir" in
6415 if test -z "$ac_dots"; then top_srcdir
=.
6416 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6417 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6419 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6420 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6423 case "$ac_given_INSTALL" in
6424 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6425 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6428 echo creating
"$ac_file"
6430 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6432 *Makefile
*) ac_comsub
="1i\\
6433 # $configure_input" ;;
6437 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6439 s%@configure_input@%$configure_input%g
6440 s%@srcdir@%$srcdir%g
6441 s%@top_srcdir@%$top_srcdir%g
6442 s%@INSTALL@%$INSTALL%g
6443 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6447 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6448 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6450 # ac_d sets the value in "#define NAME VALUE" lines.
6451 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6452 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6455 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6456 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6457 ac_uB
='\([ ]\)%\1#\2define\3'
6460 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6461 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6462 ac_eB
='$%\1#\2define\3'
6466 if test "${CONFIG_HEADERS+set}" != set; then
6468 cat >> $CONFIG_STATUS <<EOF
6469 CONFIG_HEADERS="config.h:config.in"
6471 cat >> $CONFIG_STATUS <<\EOF
6473 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6474 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6476 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6477 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6478 *) ac_file_in
="${ac_file}.in" ;;
6481 echo creating
$ac_file
6483 rm -f conftest.frag conftest.
in conftest.out
6484 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6485 cat $ac_file_inputs > conftest.
in
6489 # Transform confdefs.h into a sed script conftest.vals that substitutes
6490 # the proper values into config.h.in to produce config.h. And first:
6491 # Protect against being on the right side of a sed subst in config.status.
6492 # Protect against being in an unquoted here document in config.status.
6494 cat > conftest.hdr
<<\EOF
6497 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6501 sed -n -f conftest.hdr confdefs.h > conftest.vals
6504 # This sed command replaces #undef with comments. This is necessary, for
6505 # example, in the case of _POSIX_SOURCE, which is predefined and required
6506 # on some systems where configure will not decide to define it.
6507 cat >> conftest.vals <<\EOF
6508 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6511 # Break up conftest.vals because some shells have a limit on
6512 # the size of here documents, and old seds have small limits too.
6517 ac_lines=`grep -c . conftest.vals
`
6518 # grep -c gives empty output for an empty file on some AIX systems.
6519 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6520 # Write a limited-size here document to conftest.frag.
6521 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6522 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6524 sed -f conftest.frag conftest.in > conftest.out
6526 mv conftest.out conftest.in
6528 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6530 mv conftest.tail conftest.vals
6534 cat >> $CONFIG_STATUS <<\EOF
6535 rm -f conftest.frag conftest.h
6536 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6537 cat conftest.in >> conftest.h
6539 if cmp -s $ac_file conftest.h 2>/dev/null; then
6540 echo "$ac_file is unchanged"
6543 # Remove last slash and all that follows it. Not all systems have dirname.
6544 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6545 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6546 # The file is in a subdirectory.
6547 test ! -d "$ac_dir" && mkdir "$ac_dir"
6550 mv conftest.h $ac_file
6556 cat >> $CONFIG_STATUS <<EOF
6561 cat >> $CONFIG_STATUS <<\EOF
6562 srcdir=$ac_given_srcdir
6563 while test -n "$ac_sources"; do
6564 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6565 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6567 echo "linking $srcdir/$ac_source to $ac_dest"
6569 if test ! -r $srcdir/$ac_source; then
6570 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6574 # Make relative symlinks.
6575 # Remove last slash and all that follows it. Not all systems have dirname.
6576 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
6577 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6578 # The dest file is in a subdirectory.
6579 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6580 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
6581 # A "../" for each directory in $ac_dest_dir_suffix.
6582 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
6584 ac_dest_dir_suffix= ac_dots=
6588 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6589 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6592 # Make a symlink if possible; otherwise try a hard link.
6593 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6594 ln $srcdir/$ac_source $ac_dest; then :
6596 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6600 cat >> $CONFIG_STATUS <<EOF
6602 gdb_host_cpu=$gdb_host_cpu
6603 gdb_target_cpu=$gdb_target_cpu
6604 nativefile=$nativefile
6607 cat >> $CONFIG_STATUS <<\EOF
6609 if test "${nativefile}" = ""; then
6610 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6611 < Makefile > Makefile.tem
6612 mv -f Makefile.tem Makefile
6615 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6616 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6617 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6618 mv -f Makefile.tmp Makefile
6621 case x$CONFIG_HEADERS in
6622 xconfig.h:config.in)
6628 chmod +x $CONFIG_STATUS
6629 rm -fr confdefs* $ac_clean_files
6630 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6632 if test "$no_recursion" != yes; then
6634 # Remove --cache-file and --srcdir arguments so they do not pile up.
6635 ac_sub_configure_args=
6637 for ac_arg in $ac_configure_args; do
6638 if test -n "$ac_prev"; then
6643 -cache-file | --cache-file | --cache-fil | --cache-fi \
6644 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6645 ac_prev=cache_file ;;
6646 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6647 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6649 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6651 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6653 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6657 for ac_config_dir in $configdirs; do
6659 # Do not complain, so a configure script can configure whichever
6660 # parts of a large source tree are present.
6661 if test ! -d $srcdir/$ac_config_dir; then
6665 echo configuring in $ac_config_dir
6670 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6672 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6680 # A "../" for each directory in /$ac_config_dir.
6681 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6684 .) # No --srcdir option. We are building in place.
6685 ac_sub_srcdir=$srcdir ;;
6686 /*) # Absolute path.
6687 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6689 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6692 # Check for guested configure; otherwise get Cygnus style configure.
6693 if test -f $ac_sub_srcdir/configure; then
6694 ac_sub_configure=$ac_sub_srcdir/configure
6695 elif test -f $ac_sub_srcdir/configure.in; then
6696 ac_sub_configure=$ac_configure
6698 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6702 # The recursion is here.
6703 if test -n "$ac_sub_configure"; then
6705 # Make the cache file name correct relative to the subdirectory.
6706 case "$cache_file" in
6707 /*) ac_sub_cache_file=$cache_file ;;
6709 ac_sub_cache_file="$ac_dots$cache_file" ;;
6711 case "$ac_given_INSTALL" in
6712 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6713 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6716 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6717 # The eval makes quoting arguments work.
6718 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6721 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }