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-tui Enable full-screen terminal user interface"
21 --enable-netrom Enable NetROM support"
23 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
25 --with-mmalloc Use memory mapped malloc package"
27 --enable-carp Configure alternative readaptive paradigm "
29 --enable-targets Alternative target configurations"
31 --enable-ide Enable IDE support"
33 --with-foundry-libs=DIR Use the Foundry SDK in DIR"
35 --with-cpu=CPU Set the default CPU variant to debug"
37 --enable-gdbtk Enable GDBTK GUI front end"
39 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
41 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
43 --with-tclinclude=DIR Directory where tcl private headers are"
45 --with-tkinclude=DIR Directory where tk private headers are"
47 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
49 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
51 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
53 --with-x use the X Window System"
55 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
57 --with-sim-funit=DIR Use target FP lib under given DIR"
59 --enable-sim Link gdb with simulator"
61 --enable-shared Use shared libraries"
63 # Initialize some variables set by options.
64 # The variables have the same names as the options, with
65 # dashes changed to underlines.
67 cache_file
=.
/config.cache
76 program_transform_name
=s
,x
,x
,
85 bindir
='${exec_prefix}/bin'
86 sbindir
='${exec_prefix}/sbin'
87 libexecdir
='${exec_prefix}/libexec'
88 datadir
='${prefix}/share'
89 sysconfdir
='${prefix}/etc'
90 sharedstatedir
='${prefix}/com'
91 localstatedir
='${prefix}/var'
92 libdir
='${exec_prefix}/lib'
93 includedir
='${prefix}/include'
94 oldincludedir
='/usr/include'
95 infodir
='${prefix}/info'
96 mandir
='${prefix}/man'
98 # Initialize some other variables.
101 SHELL
=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
117 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 # Accept the important Cygnus configure options, so we can diagnose typos.
125 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
127 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
128 bindir
="$ac_optarg" ;;
130 -build |
--build |
--buil |
--bui |
--bu)
132 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
133 build
="$ac_optarg" ;;
135 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
136 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
137 ac_prev
=cache_file
;;
138 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
139 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
140 cache_file
="$ac_optarg" ;;
142 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
144 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
146 datadir
="$ac_optarg" ;;
148 -disable-* |
--disable-*)
149 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* |
--enable-*)
158 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
171 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
172 |
--exec |
--exe |
--ex)
173 ac_prev
=exec_prefix
;;
174 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
175 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
176 |
--exec=* |
--exe=* |
--ex=*)
177 exec_prefix
="$ac_optarg" ;;
179 -gas |
--gas |
--ga |
--g)
180 # Obsolete; use --with-gas.
183 -help |
--help |
--hel |
--he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --site-file=FILE use FILE as the site file
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 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
367 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
368 sitefile
="$ac_optarg" ;;
370 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
372 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
373 srcdir
="$ac_optarg" ;;
375 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
376 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
377 ac_prev
=sysconfdir
;;
378 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
379 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
380 sysconfdir
="$ac_optarg" ;;
382 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
384 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
385 target
="$ac_optarg" ;;
387 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
390 -version |
--version |
--versio |
--versi |
--vers)
391 echo "configure generated by autoconf version 2.13"
395 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package
=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}='$ac_optarg'" ;;
407 -without-* |
--without-*)
408 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package
=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}=no" ;;
417 # Obsolete; use --with-x.
420 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
421 |
--x-incl |
--x-inc |
--x-in |
--x-i)
422 ac_prev
=x_includes
;;
423 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
424 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
425 x_includes
="$ac_optarg" ;;
427 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
428 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
429 ac_prev
=x_libraries
;;
430 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
431 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
432 x_libraries
="$ac_optarg" ;;
434 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
438 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
439 echo "configure: warning: $ac_option: invalid host type" 1>&2
441 if test "x$nonopt" != xNONE
; then
442 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 if test -n "$ac_prev"; then
451 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456 # File descriptor usage:
459 # 2 errors and warnings
460 # 3 some systems may open it to /dev/tty
461 # 4 used on the Kubota Titan
462 # 6 checking for... messages and results
463 # 5 compiler messages saved in config.log
464 if test "$silent" = yes; then
472 This file contains any messages produced by compilers while
473 running configure, to aid debugging if configure makes a mistake.
476 # Strip out --no-create and --no-recursion so they do not pile up.
477 # Also quote any args containing shell metacharacters.
482 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
483 |
--no-cr |
--no-c) ;;
484 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
485 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
486 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
487 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
488 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
493 # Only set these to C if already set. These must not be set unconditionally
494 # because not all systems understand e.g. LANG=C (notably SCO).
495 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
496 # Non-C LC_CTYPE values break the ctype check.
497 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
498 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
499 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
500 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
503 rm -rf conftest
* confdefs.h
504 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 # A filename unique to this package, relative to the directory that
508 # configure is in, which we can look for to find out if srcdir is correct.
509 ac_unique_file
=main.c
511 # Find the source files, if location was not specified.
512 if test -z "$srcdir"; then
513 ac_srcdir_defaulted
=yes
514 # Try the directory containing this script, then its parent.
516 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
517 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
519 if test ! -r $srcdir/$ac_unique_file; then
523 ac_srcdir_defaulted
=no
525 if test ! -r $srcdir/$ac_unique_file; then
526 if test "$ac_srcdir_defaulted" = yes; then
527 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534 # Prefer explicitly selected file to automatically selected ones.
535 if test -z "$sitefile"; then
536 if test -z "$CONFIG_SITE"; then
537 if test "x$prefix" != xNONE
; then
538 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
540 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 CONFIG_SITE
="$sitefile"
546 for ac_site_file
in $CONFIG_SITE; do
547 if test -r "$ac_site_file"; then
548 echo "loading site script $ac_site_file"
553 if test -r "$cache_file"; then
554 echo "loading cache $cache_file"
557 echo "creating cache $cache_file"
562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563 ac_cpp
='$CPP $CPPFLAGS'
564 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566 cross_compiling
=$ac_cv_prog_cc_cross
570 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
571 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
579 ac_n
= ac_c
='\c' ac_t
=
585 # Extract the first word of "gcc", so it can be a program name with args.
586 set dummy gcc
; ac_word
=$2
587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
588 echo "configure:589: checking for $ac_word" >&5
589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 if test -n "$CC"; then
593 ac_cv_prog_CC
="$CC" # Let the user override the test.
595 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
597 for ac_dir
in $ac_dummy; do
598 test -z "$ac_dir" && ac_dir
=.
599 if test -f $ac_dir/$ac_word; then
608 if test -n "$CC"; then
609 echo "$ac_t""$CC" 1>&6
611 echo "$ac_t""no" 1>&6
614 if test -z "$CC"; then
615 # Extract the first word of "cc", so it can be a program name with args.
616 set dummy cc
; ac_word
=$2
617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
618 echo "configure:619: checking for $ac_word" >&5
619 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620 echo $ac_n "(cached) $ac_c" 1>&6
622 if test -n "$CC"; then
623 ac_cv_prog_CC
="$CC" # Let the user override the test.
625 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
628 for ac_dir
in $ac_dummy; do
629 test -z "$ac_dir" && ac_dir
=.
630 if test -f $ac_dir/$ac_word; then
631 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
640 if test $ac_prog_rejected = yes; then
641 # We found a bogon in the path, so make sure we never use it.
642 set dummy
$ac_cv_prog_CC
644 if test $# -gt 0; then
645 # We chose a different compiler from the bogus one.
646 # However, it has the same basename, so the bogon will be chosen
647 # first if we set CC to just the basename; use the full file name.
649 set dummy
"$ac_dir/$ac_word" "$@"
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
660 echo "$ac_t""no" 1>&6
663 if test -z "$CC"; then
666 # Extract the first word of "cl", so it can be a program name with args.
667 set dummy cl
; ac_word
=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$CC"; then
674 ac_cv_prog_CC
="$CC" # Let the user override the test.
676 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
678 for ac_dir
in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir
=.
680 if test -f $ac_dir/$ac_word; then
689 if test -n "$CC"; then
690 echo "$ac_t""$CC" 1>&6
692 echo "$ac_t""no" 1>&6
697 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
700 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
701 echo "configure:702: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
705 ac_cpp
='$CPP $CPPFLAGS'
706 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
707 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
708 cross_compiling
=$ac_cv_prog_cc_cross
710 cat > conftest.
$ac_ext << EOF
712 #line 713 "configure"
713 #include "confdefs.h"
717 if { (eval echo configure
:718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
718 ac_cv_prog_cc_works
=yes
719 # If we can't run a trivial program, we are probably using a cross compiler.
720 if (.
/conftest
; exit) 2>/dev
/null
; then
721 ac_cv_prog_cc_cross
=no
723 ac_cv_prog_cc_cross
=yes
726 echo "configure: failed program was:" >&5
727 cat conftest.
$ac_ext >&5
728 ac_cv_prog_cc_works
=no
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp
='$CPP $CPPFLAGS'
734 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling
=$ac_cv_prog_cc_cross
738 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
739 if test $ac_cv_prog_cc_works = no
; then
740 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
744 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
745 cross_compiling
=$ac_cv_prog_cc_cross
747 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
748 echo "configure:749: checking whether we are using GNU C" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 cat > conftest.c
<<EOF
757 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
764 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
766 if test $ac_cv_prog_gcc = yes; then
772 ac_test_CFLAGS
="${CFLAGS+set}"
773 ac_save_CFLAGS
="$CFLAGS"
775 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
776 echo "configure:777: checking whether ${CC-cc} accepts -g" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 echo 'void f(){}' > conftest.c
781 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
790 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
791 if test "$ac_test_CFLAGS" = set; then
792 CFLAGS
="$ac_save_CFLAGS"
793 elif test $ac_cv_prog_cc_g = yes; then
794 if test "$GCC" = yes; then
800 if test "$GCC" = yes; then
807 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
808 echo "configure:809: checking how to run the C preprocessor" >&5
809 # On Suns, sometimes $CPP names a directory.
810 if test -n "$CPP" && test -d "$CPP"; then
813 if test -z "$CPP"; then
814 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 # This must be in double quotes, not single quotes, because CPP may get
818 # substituted into the Makefile and "${CC-cc}" will confuse make.
820 # On the NeXT, cc -E runs the code through the compiler's parser,
821 # not just through cpp.
822 cat > conftest.
$ac_ext <<EOF
823 #line 824 "configure"
824 #include "confdefs.h"
828 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
829 { (eval echo configure
:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
830 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
831 if test -z "$ac_err"; then
835 echo "configure: failed program was:" >&5
836 cat conftest.
$ac_ext >&5
838 CPP
="${CC-cc} -E -traditional-cpp"
839 cat > conftest.
$ac_ext <<EOF
840 #line 841 "configure"
841 #include "confdefs.h"
845 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
846 { (eval echo configure
:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
847 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
848 if test -z "$ac_err"; then
852 echo "configure: failed program was:" >&5
853 cat conftest.
$ac_ext >&5
855 CPP
="${CC-cc} -nologo -E"
856 cat > conftest.
$ac_ext <<EOF
857 #line 858 "configure"
858 #include "confdefs.h"
862 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
863 { (eval echo configure
:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
864 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
865 if test -z "$ac_err"; then
869 echo "configure: failed program was:" >&5
870 cat conftest.
$ac_ext >&5
879 ac_cv_prog_CPP
="$CPP"
881 CPP
="$ac_cv_prog_CPP"
883 ac_cv_prog_CPP
="$CPP"
885 echo "$ac_t""$CPP" 1>&6
887 echo $ac_n "checking for AIX""... $ac_c" 1>&6
888 echo "configure:889: checking for AIX" >&5
889 cat > conftest.
$ac_ext <<EOF
890 #line 891 "configure"
891 #include "confdefs.h"
897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
898 egrep "yes" >/dev
/null
2>&1; then
900 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
901 #define _ALL_SOURCE 1
906 echo "$ac_t""no" 1>&6
911 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
912 echo "configure:913: checking for POSIXized ISC" >&5
913 if test -d /etc
/conf
/kconfig.d
&&
914 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
916 echo "$ac_t""yes" 1>&6
917 ISC
=yes # If later tests want to check for ISC.
918 cat >> confdefs.h
<<\EOF
919 #define _POSIX_SOURCE 1
922 if test "$GCC" = yes; then
928 echo "$ac_t""no" 1>&6
935 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
936 echo "configure:937: checking for ${CC-cc} option to accept ANSI C" >&5
937 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 am_cv_prog_cc_stdc
=no
942 # Don't try gcc -ansi; that turns off useful extensions and
943 # breaks some systems' header files.
945 # Ultrix and OSF/1 -std1
946 # HP-UX -Aa -D_HPUX_SOURCE
947 # SVR4 -Xc -D__EXTENSIONS__
948 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
950 CC
="$ac_save_CC $ac_arg"
951 cat > conftest.
$ac_ext <<EOF
952 #line 953 "configure"
953 #include "confdefs.h"
956 #include <sys/types.h>
957 #include <sys/stat.h>
958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
959 struct buf { int x; };
960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
961 static char *e (p, i)
967 static char *f (char * (*g) (char **, int), char **p, ...)
972 s = g (p, va_arg (v,int));
976 int test (int i, double x);
977 struct s1 {int (*f) (int a);};
978 struct s2 {int (*f) (double a);};
979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
985 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
989 if { (eval echo configure
:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
991 am_cv_prog_cc_stdc
="$ac_arg"; break
993 echo "configure: failed program was:" >&5
994 cat conftest.
$ac_ext >&5
1002 if test -z "$am_cv_prog_cc_stdc"; then
1003 echo "$ac_t""none needed" 1>&6
1005 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1007 case "x$am_cv_prog_cc_stdc" in
1009 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1014 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1015 if test -f $ac_dir/install-sh
; then
1017 ac_install_sh
="$ac_aux_dir/install-sh -c"
1019 elif test -f $ac_dir/install.sh
; then
1021 ac_install_sh
="$ac_aux_dir/install.sh -c"
1025 if test -z "$ac_aux_dir"; then
1026 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1028 ac_config_guess
=$ac_aux_dir/config.guess
1029 ac_config_sub
=$ac_aux_dir/config.sub
1030 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1033 # Do some error checking and defaulting for the host and target type.
1035 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1038 # 1. You are not allowed to specify --host, --target, and nonopt at the
1040 # 2. Host defaults to nonopt.
1041 # 3. If nonopt is not specified, then host defaults to the current host,
1042 # as determined by config.guess.
1043 # 4. Target and build default to nonopt.
1044 # 5. If nonopt is not specified, then target and build default to host.
1046 # The aliases save the names the user supplied, while $host etc.
1047 # will get canonicalized.
1048 case $host---$target---$nonopt in
1049 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1050 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1054 # Make sure we can run config.sub.
1055 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1056 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1059 echo $ac_n "checking host system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking host system type" >&5
1063 case "$host_alias" in
1067 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1068 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1070 *) host_alias
=$nonopt ;;
1074 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1075 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1078 echo "$ac_t""$host" 1>&6
1080 echo $ac_n "checking target system type""... $ac_c" 1>&6
1081 echo "configure:1082: checking target system type" >&5
1083 target_alias
=$target
1084 case "$target_alias" in
1087 NONE
) target_alias
=$host_alias ;;
1088 *) target_alias
=$nonopt ;;
1092 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1093 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1094 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1095 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1096 echo "$ac_t""$target" 1>&6
1098 echo $ac_n "checking build system type""... $ac_c" 1>&6
1099 echo "configure:1100: checking build system type" >&5
1102 case "$build_alias" in
1105 NONE
) build_alias
=$host_alias ;;
1106 *) build_alias
=$nonopt ;;
1110 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1111 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1112 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1113 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1114 echo "$ac_t""$build" 1>&6
1116 test "$host_alias" != "$target_alias" &&
1117 test "$program_prefix$program_suffix$program_transform_name" = \
1119 program_prefix
=${target_alias}-
1123 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1124 echo "configure:1125: checking whether ${MAKE-make} sets \${MAKE}" >&5
1125 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1126 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 cat > conftestmake
<<\EOF
1131 @
echo 'ac_maketemp="${MAKE}"'
1133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1134 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1135 if test -n "$ac_maketemp"; then
1136 eval ac_cv_prog_make_
${ac_make}_set
=yes
1138 eval ac_cv_prog_make_
${ac_make}_set
=no
1142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1143 echo "$ac_t""yes" 1>&6
1146 echo "$ac_t""no" 1>&6
1147 SET_MAKE
="MAKE=${MAKE-make}"
1150 # Extract the first word of "ranlib", so it can be a program name with args.
1151 set dummy ranlib
; ac_word
=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test -n "$RANLIB"; then
1158 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1162 for ac_dir
in $ac_dummy; do
1163 test -z "$ac_dir" && ac_dir
=.
1164 if test -f $ac_dir/$ac_word; then
1165 ac_cv_prog_RANLIB
="ranlib"
1170 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1173 RANLIB
="$ac_cv_prog_RANLIB"
1174 if test -n "$RANLIB"; then
1175 echo "$ac_t""$RANLIB" 1>&6
1177 echo "$ac_t""no" 1>&6
1180 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1181 echo "configure:1182: checking for ANSI C header files" >&5
1182 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 cat > conftest.
$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1193 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure
:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1196 if test -z "$ac_err"; then
1198 ac_cv_header_stdc
=yes
1201 echo "configure: failed program was:" >&5
1202 cat conftest.
$ac_ext >&5
1204 ac_cv_header_stdc
=no
1208 if test $ac_cv_header_stdc = yes; then
1209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1210 cat > conftest.
$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1216 egrep "memchr" >/dev
/null
2>&1; then
1220 ac_cv_header_stdc
=no
1226 if test $ac_cv_header_stdc = yes; then
1227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1228 cat > conftest.
$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1234 egrep "free" >/dev
/null
2>&1; then
1238 ac_cv_header_stdc
=no
1244 if test $ac_cv_header_stdc = yes; then
1245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1246 if test "$cross_compiling" = yes; then
1249 cat > conftest.
$ac_ext <<EOF
1250 #line 1251 "configure"
1251 #include "confdefs.h"
1253 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1254 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1256 int main () { int i; for (i = 0; i < 256; i++)
1257 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1261 if { (eval echo configure
:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1265 echo "configure: failed program was:" >&5
1266 cat conftest.
$ac_ext >&5
1268 ac_cv_header_stdc
=no
1276 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1277 if test $ac_cv_header_stdc = yes; then
1278 cat >> confdefs.h
<<\EOF
1279 #define STDC_HEADERS 1
1284 echo $ac_n "checking for working const""... $ac_c" 1>&6
1285 echo "configure:1286: checking for working const" >&5
1286 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 cat > conftest.
$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1295 /* Ultrix mips cc rejects this. */
1296 typedef int charset[2]; const charset x;
1297 /* SunOS 4.1.1 cc rejects this. */
1298 char const *const *ccp;
1300 /* NEC SVR4.0.2 mips cc rejects this. */
1301 struct point {int x, y;};
1302 static struct point const zero = {0,0};
1303 /* AIX XL C 1.02.0.0 rejects this.
1304 It does not let you subtract one const X* pointer from another in an arm
1305 of an if-expression whose if-part is not a constant expression */
1306 const char *g = "string";
1307 ccp = &g + (g ? g-g : 0);
1308 /* HPUX 7.0 cc rejects these. */
1311 ccp = (char const *const *) p;
1312 { /* SCO 3.2v4 cc rejects this. */
1314 char const *s = 0 ? (char *) 0 : (char const *) 0;
1318 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1320 const int *foo = &x[0];
1323 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1324 typedef const int *iptr;
1328 { /* AIX XL C 1.02.0.0 rejects this saying
1329 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1330 struct s { int j; const int *ap[3]; };
1331 struct s *b; b->j = 5;
1333 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1339 if { (eval echo configure
:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1343 echo "configure: failed program was:" >&5
1344 cat conftest.
$ac_ext >&5
1351 echo "$ac_t""$ac_cv_c_const" 1>&6
1352 if test $ac_cv_c_const = no
; then
1353 cat >> confdefs.h
<<\EOF
1359 echo $ac_n "checking for inline""... $ac_c" 1>&6
1360 echo "configure:1361: checking for inline" >&5
1361 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1365 for ac_kw
in inline __inline__ __inline
; do
1366 cat > conftest.
$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1374 if { (eval echo configure
:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1376 ac_cv_c_inline
=$ac_kw; break
1378 echo "configure: failed program was:" >&5
1379 cat conftest.
$ac_ext >&5
1386 echo "$ac_t""$ac_cv_c_inline" 1>&6
1387 case "$ac_cv_c_inline" in
1389 no
) cat >> confdefs.h
<<\EOF
1393 *) cat >> confdefs.h
<<EOF
1394 #define inline $ac_cv_c_inline
1399 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1400 echo "configure:1401: checking for off_t" >&5
1401 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 #include <sys/types.h>
1413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1414 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1416 ac_cv_type_off_t
=yes
1424 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1425 if test $ac_cv_type_off_t = no
; then
1426 cat >> confdefs.h
<<\EOF
1432 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1433 echo "configure:1434: checking for size_t" >&5
1434 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 cat > conftest.
$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1440 #include <sys/types.h>
1446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1447 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1449 ac_cv_type_size_t
=yes
1452 ac_cv_type_size_t
=no
1457 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1458 if test $ac_cv_type_size_t = no
; then
1459 cat >> confdefs.h
<<\EOF
1460 #define size_t unsigned
1465 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1466 # for constant arguments. Useless!
1467 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1468 echo "configure:1469: checking for working alloca.h" >&5
1469 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 cat > conftest.
$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1477 char *p = alloca(2 * sizeof(int));
1480 if { (eval echo configure
:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1482 ac_cv_header_alloca_h
=yes
1484 echo "configure: failed program was:" >&5
1485 cat conftest.
$ac_ext >&5
1487 ac_cv_header_alloca_h
=no
1492 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1493 if test $ac_cv_header_alloca_h = yes; then
1494 cat >> confdefs.h
<<\EOF
1495 #define HAVE_ALLOCA_H 1
1500 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1501 echo "configure:1502: checking for alloca" >&5
1502 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.
$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1510 # define alloca __builtin_alloca
1513 # include <malloc.h>
1514 # define alloca _alloca
1517 # include <alloca.h>
1522 # ifndef alloca /* predefined by HP cc +Olibcalls */
1531 char *p = (char *) alloca(1);
1534 if { (eval echo configure
:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1536 ac_cv_func_alloca_works
=yes
1538 echo "configure: failed program was:" >&5
1539 cat conftest.
$ac_ext >&5
1541 ac_cv_func_alloca_works
=no
1546 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1547 if test $ac_cv_func_alloca_works = yes; then
1548 cat >> confdefs.h
<<\EOF
1549 #define HAVE_ALLOCA 1
1554 if test $ac_cv_func_alloca_works = no
; then
1555 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1556 # that cause trouble. Some versions do not even contain alloca or
1557 # contain a buggy version. If you still want to use their alloca,
1558 # use ar to extract alloca.o from them instead of compiling alloca.c.
1559 ALLOCA
=alloca.
${ac_objext}
1560 cat >> confdefs.h
<<\EOF
1565 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1566 echo "configure:1567: checking whether alloca needs Cray hooks" >&5
1567 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.
$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 #if defined(CRAY) && ! defined(CRAY2)
1580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1581 egrep "webecray" >/dev
/null
2>&1; then
1592 echo "$ac_t""$ac_cv_os_cray" 1>&6
1593 if test $ac_cv_os_cray = yes; then
1594 for ac_func
in _getb67 GETB67 getb67
; do
1595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1596 echo "configure:1597: checking for $ac_func" >&5
1597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 cat > conftest.
$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1603 /* System header to define __stub macros and hopefully few prototypes,
1604 which can conflict with char $ac_func(); below. */
1606 /* Override any gcc2 internal prototype to avoid an error. */
1607 /* We use char because int might match the return type of a gcc2
1608 builtin and then its argument prototype would still apply. */
1613 /* The GNU C library defines this for functions which it implements
1614 to always fail with ENOSYS. Some functions are actually named
1615 something starting with __ and the normal name is an alias. */
1616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1624 if { (eval echo configure
:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1626 eval "ac_cv_func_$ac_func=yes"
1628 echo "configure: failed program was:" >&5
1629 cat conftest.
$ac_ext >&5
1631 eval "ac_cv_func_$ac_func=no"
1636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1637 echo "$ac_t""yes" 1>&6
1638 cat >> confdefs.h
<<EOF
1639 #define CRAY_STACKSEG_END $ac_func
1644 echo "$ac_t""no" 1>&6
1650 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1651 echo "configure:1652: checking stack direction for C alloca" >&5
1652 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 if test "$cross_compiling" = yes; then
1656 ac_cv_c_stack_direction
=0
1658 cat > conftest.
$ac_ext <<EOF
1659 #line 1660 "configure"
1660 #include "confdefs.h"
1661 find_stack_direction ()
1663 static char *addr = 0;
1668 return find_stack_direction ();
1671 return (&dummy > addr) ? 1 : -1;
1675 exit (find_stack_direction() < 0);
1678 if { (eval echo configure
:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1680 ac_cv_c_stack_direction
=1
1682 echo "configure: failed program was:" >&5
1683 cat conftest.
$ac_ext >&5
1685 ac_cv_c_stack_direction
=-1
1692 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1693 cat >> confdefs.h
<<EOF
1694 #define STACK_DIRECTION $ac_cv_c_stack_direction
1699 for ac_hdr
in unistd.h
1701 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1703 echo "configure:1704: checking for $ac_hdr" >&5
1704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1712 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1713 { (eval echo configure
:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1714 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1715 if test -z "$ac_err"; then
1717 eval "ac_cv_header_$ac_safe=yes"
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1723 eval "ac_cv_header_$ac_safe=no"
1727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1730 cat >> confdefs.h
<<EOF
1731 #define $ac_tr_hdr 1
1735 echo "$ac_t""no" 1>&6
1739 for ac_func
in getpagesize
1741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_func" >&5
1743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 cat > conftest.
$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $ac_func(); below. */
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1770 if { (eval echo configure
:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1772 eval "ac_cv_func_$ac_func=yes"
1774 echo "configure: failed program was:" >&5
1775 cat conftest.
$ac_ext >&5
1777 eval "ac_cv_func_$ac_func=no"
1782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1784 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1785 cat >> confdefs.h
<<EOF
1786 #define $ac_tr_func 1
1790 echo "$ac_t""no" 1>&6
1794 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1795 echo "configure:1796: checking for working mmap" >&5
1796 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 if test "$cross_compiling" = yes; then
1800 ac_cv_func_mmap_fixed_mapped
=no
1802 cat > conftest.
$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1806 /* Thanks to Mike Haertel and Jim Avera for this test.
1807 Here is a matrix of mmap possibilities:
1808 mmap private not fixed
1809 mmap private fixed at somewhere currently unmapped
1810 mmap private fixed at somewhere already mapped
1811 mmap shared not fixed
1812 mmap shared fixed at somewhere currently unmapped
1813 mmap shared fixed at somewhere already mapped
1814 For private mappings, we should verify that changes cannot be read()
1815 back from the file, nor mmap's back from the file at a different
1816 address. (There have been systems where private was not correctly
1817 implemented like the infamous i386 svr4.0, and systems where the
1818 VM page cache was not coherent with the filesystem buffer cache
1819 like early versions of FreeBSD and possibly contemporary NetBSD.)
1820 For shared mappings, we should conversely verify that changes get
1821 propogated back to all the places they're supposed to be.
1823 Grep wants private fixed already mapped.
1824 The main things grep needs to know about mmap are:
1825 * does it exist and is it safe to write into the mmap'd area
1826 * how to use it (BSD variants) */
1827 #include <sys/types.h>
1829 #include <sys/mman.h>
1831 /* This mess was copied from the GNU getpagesize.h. */
1832 #ifndef HAVE_GETPAGESIZE
1833 # ifdef HAVE_UNISTD_H
1834 # include <unistd.h>
1837 /* Assume that all systems that can run configure have sys/param.h. */
1838 # ifndef HAVE_SYS_PARAM_H
1839 # define HAVE_SYS_PARAM_H 1
1842 # ifdef _SC_PAGESIZE
1843 # define getpagesize() sysconf(_SC_PAGESIZE)
1844 # else /* no _SC_PAGESIZE */
1845 # ifdef HAVE_SYS_PARAM_H
1846 # include <sys/param.h>
1847 # ifdef EXEC_PAGESIZE
1848 # define getpagesize() EXEC_PAGESIZE
1849 # else /* no EXEC_PAGESIZE */
1851 # define getpagesize() NBPG * CLSIZE
1854 # endif /* no CLSIZE */
1855 # else /* no NBPG */
1857 # define getpagesize() NBPC
1858 # else /* no NBPC */
1860 # define getpagesize() PAGESIZE
1861 # endif /* PAGESIZE */
1862 # endif /* no NBPC */
1863 # endif /* no NBPG */
1864 # endif /* no EXEC_PAGESIZE */
1865 # else /* no HAVE_SYS_PARAM_H */
1866 # define getpagesize() 8192 /* punt totally */
1867 # endif /* no HAVE_SYS_PARAM_H */
1868 # endif /* no _SC_PAGESIZE */
1870 #endif /* no HAVE_GETPAGESIZE */
1873 extern "C" { void *malloc(unsigned); }
1881 char *data, *data2, *data3;
1885 pagesize = getpagesize();
1888 * First, make a file with some known garbage in it.
1890 data = malloc(pagesize);
1893 for (i = 0; i < pagesize; ++i)
1894 *(data + i) = rand();
1896 fd = creat("conftestmmap", 0600);
1899 if (write(fd, data, pagesize) != pagesize)
1904 * Next, try to mmap the file at a fixed address which
1905 * already has something else allocated at it. If we can,
1906 * also make sure that we see the same garbage.
1908 fd = open("conftestmmap", O_RDWR);
1911 data2 = malloc(2 * pagesize);
1914 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1915 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1916 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1918 for (i = 0; i < pagesize; ++i)
1919 if (*(data + i) != *(data2 + i))
1923 * Finally, make sure that changes to the mapped area
1924 * do not percolate back to the file as seen by read().
1925 * (This is a bug on some variants of i386 svr4.0.)
1927 for (i = 0; i < pagesize; ++i)
1928 *(data2 + i) = *(data2 + i) + 1;
1929 data3 = malloc(pagesize);
1932 if (read(fd, data3, pagesize) != pagesize)
1934 for (i = 0; i < pagesize; ++i)
1935 if (*(data + i) != *(data3 + i))
1938 unlink("conftestmmap");
1943 if { (eval echo configure
:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1945 ac_cv_func_mmap_fixed_mapped
=yes
1947 echo "configure: failed program was:" >&5
1948 cat conftest.
$ac_ext >&5
1950 ac_cv_func_mmap_fixed_mapped
=no
1957 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1958 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1959 cat >> confdefs.h
<<\EOF
1966 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1967 unistd.h values.h sys
/param.h
1969 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1971 echo "configure:1972: checking for $ac_hdr" >&5
1972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 cat > conftest.
$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1980 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1981 { (eval echo configure
:1982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1982 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1983 if test -z "$ac_err"; then
1985 eval "ac_cv_header_$ac_safe=yes"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.
$ac_ext >&5
1991 eval "ac_cv_header_$ac_safe=no"
1995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1998 cat >> confdefs.h
<<EOF
1999 #define $ac_tr_hdr 1
2003 echo "$ac_t""no" 1>&6
2007 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2008 __argz_count __argz_stringify __argz_next
2010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2011 echo "configure:2012: checking for $ac_func" >&5
2012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2015 cat > conftest.
$ac_ext <<EOF
2016 #line 2017 "configure"
2017 #include "confdefs.h"
2018 /* System header to define __stub macros and hopefully few prototypes,
2019 which can conflict with char $ac_func(); below. */
2021 /* Override any gcc2 internal prototype to avoid an error. */
2022 /* We use char because int might match the return type of a gcc2
2023 builtin and then its argument prototype would still apply. */
2028 /* The GNU C library defines this for functions which it implements
2029 to always fail with ENOSYS. Some functions are actually named
2030 something starting with __ and the normal name is an alias. */
2031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2039 if { (eval echo configure
:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2041 eval "ac_cv_func_$ac_func=yes"
2043 echo "configure: failed program was:" >&5
2044 cat conftest.
$ac_ext >&5
2046 eval "ac_cv_func_$ac_func=no"
2051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2052 echo "$ac_t""yes" 1>&6
2053 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2054 cat >> confdefs.h
<<EOF
2055 #define $ac_tr_func 1
2059 echo "$ac_t""no" 1>&6
2064 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2065 for ac_func
in stpcpy
2067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2068 echo "configure:2069: checking for $ac_func" >&5
2069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.
$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $ac_func(); below. */
2078 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2085 /* The GNU C library defines this for functions which it implements
2086 to always fail with ENOSYS. Some functions are actually named
2087 something starting with __ and the normal name is an alias. */
2088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2096 if { (eval echo configure
:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2098 eval "ac_cv_func_$ac_func=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 eval "ac_cv_func_$ac_func=no"
2108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2111 cat >> confdefs.h
<<EOF
2112 #define $ac_tr_func 1
2116 echo "$ac_t""no" 1>&6
2121 if test "${ac_cv_func_stpcpy}" = "yes"; then
2122 cat >> confdefs.h
<<\EOF
2123 #define HAVE_STPCPY 1
2128 if test $ac_cv_header_locale_h = yes; then
2129 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2130 echo "configure:2131: checking for LC_MESSAGES" >&5
2131 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 cat > conftest.
$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2142 if { (eval echo configure
:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2144 am_cv_val_LC_MESSAGES
=yes
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 am_cv_val_LC_MESSAGES
=no
2154 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2155 if test $am_cv_val_LC_MESSAGES = yes; then
2156 cat >> confdefs.h
<<\EOF
2157 #define HAVE_LC_MESSAGES 1
2162 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2163 echo "configure:2164: checking whether NLS is requested" >&5
2164 # Check whether --enable-nls or --disable-nls was given.
2165 if test "${enable_nls+set}" = set; then
2166 enableval
="$enable_nls"
2172 echo "$ac_t""$USE_NLS" 1>&6
2175 USE_INCLUDED_LIBINTL
=no
2177 if test "$USE_NLS" = "yes"; then
2178 cat >> confdefs.h
<<\EOF
2179 #define ENABLE_NLS 1
2182 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2183 echo "configure:2184: checking whether included gettext is requested" >&5
2184 # Check whether --with-included-gettext or --without-included-gettext was given.
2185 if test "${with_included_gettext+set}" = set; then
2186 withval
="$with_included_gettext"
2187 nls_cv_force_use_gnu_gettext
=$withval
2189 nls_cv_force_use_gnu_gettext
=no
2192 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2194 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2195 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2197 nls_cv_header_libgt
=
2200 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2201 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2202 echo "configure:2203: checking for libintl.h" >&5
2203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 cat > conftest.
$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 #include <libintl.h>
2211 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2212 { (eval echo configure
:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2213 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2214 if test -z "$ac_err"; then
2216 eval "ac_cv_header_$ac_safe=yes"
2219 echo "configure: failed program was:" >&5
2220 cat conftest.
$ac_ext >&5
2222 eval "ac_cv_header_$ac_safe=no"
2226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2229 echo "configure:2230: checking for gettext in libc" >&5
2230 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.
$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 #include <libintl.h>
2238 return (int) gettext ("")
2241 if { (eval echo configure
:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2243 gt_cv_func_gettext_libc
=yes
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 gt_cv_func_gettext_libc
=no
2253 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2255 if test "$gt_cv_func_gettext_libc" != "yes"; then
2256 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2257 echo "configure:2258: checking for bindtextdomain in -lintl" >&5
2258 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 ac_save_LIBS
="$LIBS"
2264 cat > conftest.
$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2267 /* Override any gcc2 internal prototype to avoid an error. */
2268 /* We use char because int might match the return type of a gcc2
2269 builtin and then its argument prototype would still apply. */
2270 char bindtextdomain();
2276 if { (eval echo configure
:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2278 eval "ac_cv_lib_$ac_lib_var=yes"
2280 echo "configure: failed program was:" >&5
2281 cat conftest.
$ac_ext >&5
2283 eval "ac_cv_lib_$ac_lib_var=no"
2286 LIBS
="$ac_save_LIBS"
2289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2290 echo "$ac_t""yes" 1>&6
2291 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2292 echo "configure:2293: checking for gettext in libintl" >&5
2293 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 cat > conftest.
$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2301 return (int) gettext ("")
2304 if { (eval echo configure
:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2306 gt_cv_func_gettext_libintl
=yes
2308 echo "configure: failed program was:" >&5
2309 cat conftest.
$ac_ext >&5
2311 gt_cv_func_gettext_libintl
=no
2316 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2318 echo "$ac_t""no" 1>&6
2323 if test "$gt_cv_func_gettext_libc" = "yes" \
2324 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2325 cat >> confdefs.h
<<\EOF
2326 #define HAVE_GETTEXT 1
2329 # Extract the first word of "msgfmt", so it can be a program name with args.
2330 set dummy msgfmt
; ac_word
=$2
2331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_word" >&5
2333 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2338 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2341 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2342 for ac_dir
in $PATH; do
2343 test -z "$ac_dir" && ac_dir
=.
2344 if test -f $ac_dir/$ac_word; then
2345 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2346 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2352 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2356 MSGFMT
="$ac_cv_path_MSGFMT"
2357 if test -n "$MSGFMT"; then
2358 echo "$ac_t""$MSGFMT" 1>&6
2360 echo "$ac_t""no" 1>&6
2362 if test "$MSGFMT" != "no"; then
2363 for ac_func
in dcgettext
2365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_func" >&5
2367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 cat > conftest.
$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 /* System header to define __stub macros and hopefully few prototypes,
2374 which can conflict with char $ac_func(); below. */
2376 /* Override any gcc2 internal prototype to avoid an error. */
2377 /* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2383 /* The GNU C library defines this for functions which it implements
2384 to always fail with ENOSYS. Some functions are actually named
2385 something starting with __ and the normal name is an alias. */
2386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2394 if { (eval echo configure
:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2396 eval "ac_cv_func_$ac_func=yes"
2398 echo "configure: failed program was:" >&5
2399 cat conftest.
$ac_ext >&5
2401 eval "ac_cv_func_$ac_func=no"
2406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2409 cat >> confdefs.h
<<EOF
2410 #define $ac_tr_func 1
2414 echo "$ac_t""no" 1>&6
2418 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2419 set dummy gmsgfmt
; ac_word
=$2
2420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2421 echo "configure:2422: checking for $ac_word" >&5
2422 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2427 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2430 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2433 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2435 for ac_dir
in $ac_dummy; do
2436 test -z "$ac_dir" && ac_dir
=.
2437 if test -f $ac_dir/$ac_word; then
2438 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2443 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2447 GMSGFMT
="$ac_cv_path_GMSGFMT"
2448 if test -n "$GMSGFMT"; then
2449 echo "$ac_t""$GMSGFMT" 1>&6
2451 echo "$ac_t""no" 1>&6
2454 # Extract the first word of "xgettext", so it can be a program name with args.
2455 set dummy xgettext
; ac_word
=$2
2456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2457 echo "configure:2458: checking for $ac_word" >&5
2458 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2463 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2466 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2467 for ac_dir
in $PATH; do
2468 test -z "$ac_dir" && ac_dir
=.
2469 if test -f $ac_dir/$ac_word; then
2470 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2471 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2477 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2481 XGETTEXT
="$ac_cv_path_XGETTEXT"
2482 if test -n "$XGETTEXT"; then
2483 echo "$ac_t""$XGETTEXT" 1>&6
2485 echo "$ac_t""no" 1>&6
2488 cat > conftest.
$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2493 extern int _nl_msg_cat_cntr;
2494 return _nl_msg_cat_cntr
2497 if { (eval echo configure
:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2502 echo "configure: failed program was:" >&5
2503 cat conftest.
$ac_ext >&5
2514 echo "$ac_t""no" 1>&6
2519 if test "$CATOBJEXT" = "NONE"; then
2520 nls_cv_use_gnu_gettext
=yes
2524 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2525 INTLOBJS
="\$(GETTOBJS)"
2526 # Extract the first word of "msgfmt", so it can be a program name with args.
2527 set dummy msgfmt
; ac_word
=$2
2528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2529 echo "configure:2530: checking for $ac_word" >&5
2530 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2535 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2538 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2539 for ac_dir
in $PATH; do
2540 test -z "$ac_dir" && ac_dir
=.
2541 if test -f $ac_dir/$ac_word; then
2542 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2543 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2549 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2553 MSGFMT
="$ac_cv_path_MSGFMT"
2554 if test -n "$MSGFMT"; then
2555 echo "$ac_t""$MSGFMT" 1>&6
2557 echo "$ac_t""no" 1>&6
2560 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2561 set dummy gmsgfmt
; ac_word
=$2
2562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2563 echo "configure:2564: checking for $ac_word" >&5
2564 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2569 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2572 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2575 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2577 for ac_dir
in $ac_dummy; do
2578 test -z "$ac_dir" && ac_dir
=.
2579 if test -f $ac_dir/$ac_word; then
2580 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2585 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2589 GMSGFMT
="$ac_cv_path_GMSGFMT"
2590 if test -n "$GMSGFMT"; then
2591 echo "$ac_t""$GMSGFMT" 1>&6
2593 echo "$ac_t""no" 1>&6
2596 # Extract the first word of "xgettext", so it can be a program name with args.
2597 set dummy xgettext
; ac_word
=$2
2598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2599 echo "configure:2600: checking for $ac_word" >&5
2600 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2605 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2608 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2609 for ac_dir
in $PATH; do
2610 test -z "$ac_dir" && ac_dir
=.
2611 if test -f $ac_dir/$ac_word; then
2612 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2613 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2619 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2623 XGETTEXT
="$ac_cv_path_XGETTEXT"
2624 if test -n "$XGETTEXT"; then
2625 echo "$ac_t""$XGETTEXT" 1>&6
2627 echo "$ac_t""no" 1>&6
2631 USE_INCLUDED_LIBINTL
=yes
2635 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2637 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2638 nls_cv_header_intl
=libintl.h
2639 nls_cv_header_libgt
=libgettext.h
2642 if test "$XGETTEXT" != ":"; then
2643 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2646 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2651 # We need to process the po/ directory.
2655 nls_cv_header_intl
=libintl.h
2656 nls_cv_header_libgt
=libgettext.h
2659 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2660 # because some of the sources are only built for this goal.
2661 if test "$PACKAGE" = gettext; then
2663 USE_INCLUDED_LIBINTL
=yes
2666 for lang
in $ALL_LINGUAS; do
2667 GMOFILES
="$GMOFILES $lang.gmo"
2668 POFILES
="$POFILES $lang.po"
2684 if test "x$CATOBJEXT" != "x"; then
2685 if test "x$ALL_LINGUAS" = "x"; then
2688 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2689 echo "configure:2690: checking for catalogs to be installed" >&5
2691 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2692 case "$ALL_LINGUAS" in
2693 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2696 LINGUAS
=$NEW_LINGUAS
2697 echo "$ac_t""$LINGUAS" 1>&6
2700 if test -n "$LINGUAS"; then
2701 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2705 if test $ac_cv_header_locale_h = yes; then
2706 INCLUDE_LOCALE_H
="#include <locale.h>"
2709 /* The system does not provide the header <locale.h>. Take care yourself. */"
2713 if test -f $srcdir/po2tbl.
sed.
in; then
2714 if test "$CATOBJEXT" = ".cat"; then
2715 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2716 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2717 echo "configure:2718: checking for linux/version.h" >&5
2718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.
$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2724 #include <linux/version.h>
2726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2727 { (eval echo configure
:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2729 if test -z "$ac_err"; then
2731 eval "ac_cv_header_$ac_safe=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2737 eval "ac_cv_header_$ac_safe=no"
2741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2742 echo "$ac_t""yes" 1>&6
2745 echo "$ac_t""no" 1>&6
2750 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2752 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2753 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2756 if test "$PACKAGE" = "gettext"; then
2766 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2772 if test -d $srcdir/po
; then
2773 test -d po || mkdir po
2774 if test "x$srcdir" != "x."; then
2775 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2776 posrcprefix
="$srcdir/"
2778 posrcprefix
="../$srcdir/"
2784 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2785 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2794 configdirs
="doc testsuite"
2797 .
${srcdir}/configure.
host
2799 .
${srcdir}/configure.tgt
2802 for ac_prog
in mawk gawk nawk
awk
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy
$ac_prog; ac_word
=$2
2806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2807 echo "configure:2808: checking for $ac_word" >&5
2808 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 if test -n "$AWK"; then
2812 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2814 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2816 for ac_dir
in $ac_dummy; do
2817 test -z "$ac_dir" && ac_dir
=.
2818 if test -f $ac_dir/$ac_word; then
2819 ac_cv_prog_AWK
="$ac_prog"
2826 AWK
="$ac_cv_prog_AWK"
2827 if test -n "$AWK"; then
2828 echo "$ac_t""$AWK" 1>&6
2830 echo "$ac_t""no" 1>&6
2833 test -n "$AWK" && break
2836 # Find a good install program. We prefer a C program (faster),
2837 # so one script is as good as another. But avoid the broken or
2838 # incompatible versions:
2839 # SysV /etc/install, /usr/sbin/install
2840 # SunOS /usr/etc/install
2841 # IRIX /sbin/install
2843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2846 # ./install, which can be erroneously created by make from ./install.sh.
2847 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2848 echo "configure:2849: checking for a BSD compatible install" >&5
2849 if test -z "$INSTALL"; then
2850 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2854 for ac_dir
in $PATH; do
2855 # Account for people who put trailing slashes in PATH elements.
2857 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2859 # OSF1 and SCO ODT 3.0 have their own names for install.
2860 # Don't use installbsd from OSF since it installs stuff as root
2862 for ac_prog
in ginstall scoinst
install; do
2863 if test -f $ac_dir/$ac_prog; then
2864 if test $ac_prog = install &&
2865 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2866 # AIX install. It has an incompatible calling convention.
2869 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2880 if test "${ac_cv_path_install+set}" = set; then
2881 INSTALL
="$ac_cv_path_install"
2883 # As a last resort, use the slow shell script. We don't cache a
2884 # path for INSTALL within a source directory, because that will
2885 # break other packages using the cache if that directory is
2886 # removed, or if the path is relative.
2887 INSTALL
="$ac_install_sh"
2890 echo "$ac_t""$INSTALL" 1>&6
2892 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2893 # It thinks the first close brace ends the variable substitution.
2894 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2896 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2898 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2900 if test $host != $build; then
2901 ac_tool_prefix
=${host_alias}-
2906 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2907 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2909 echo "configure:2910: checking for $ac_word" >&5
2910 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 if test -n "$AR"; then
2914 ac_cv_prog_AR
="$AR" # Let the user override the test.
2916 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2918 for ac_dir
in $ac_dummy; do
2919 test -z "$ac_dir" && ac_dir
=.
2920 if test -f $ac_dir/$ac_word; then
2921 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2926 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2930 if test -n "$AR"; then
2931 echo "$ac_t""$AR" 1>&6
2933 echo "$ac_t""no" 1>&6
2938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2939 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2941 echo "configure:2942: checking for $ac_word" >&5
2942 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 if test -n "$RANLIB"; then
2946 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2950 for ac_dir
in $ac_dummy; do
2951 test -z "$ac_dir" && ac_dir
=.
2952 if test -f $ac_dir/$ac_word; then
2953 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2960 RANLIB
="$ac_cv_prog_RANLIB"
2961 if test -n "$RANLIB"; then
2962 echo "$ac_t""$RANLIB" 1>&6
2964 echo "$ac_t""no" 1>&6
2968 if test -z "$ac_cv_prog_RANLIB"; then
2969 if test -n "$ac_tool_prefix"; then
2970 # Extract the first word of "ranlib", so it can be a program name with args.
2971 set dummy ranlib
; ac_word
=$2
2972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2973 echo "configure:2974: checking for $ac_word" >&5
2974 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 if test -n "$RANLIB"; then
2978 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2980 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2982 for ac_dir
in $ac_dummy; do
2983 test -z "$ac_dir" && ac_dir
=.
2984 if test -f $ac_dir/$ac_word; then
2985 ac_cv_prog_RANLIB
="ranlib"
2990 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2993 RANLIB
="$ac_cv_prog_RANLIB"
2994 if test -n "$RANLIB"; then
2995 echo "$ac_t""$RANLIB" 1>&6
2997 echo "$ac_t""no" 1>&6
3005 for ac_prog
in 'bison -y' byacc
3007 # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy
$ac_prog; ac_word
=$2
3009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3010 echo "configure:3011: checking for $ac_word" >&5
3011 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3014 if test -n "$YACC"; then
3015 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3017 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3019 for ac_dir
in $ac_dummy; do
3020 test -z "$ac_dir" && ac_dir
=.
3021 if test -f $ac_dir/$ac_word; then
3022 ac_cv_prog_YACC
="$ac_prog"
3029 YACC
="$ac_cv_prog_YACC"
3030 if test -n "$YACC"; then
3031 echo "$ac_t""$YACC" 1>&6
3033 echo "$ac_t""no" 1>&6
3036 test -n "$YACC" && break
3038 test -n "$YACC" || YACC
="yacc"
3041 if test "$program_transform_name" = s
,x
,x
,; then
3042 program_transform_name
=
3044 # Double any \ or $. echo might interpret backslashes.
3045 cat <<\EOF_SED
> conftestsed
3046 s
,\\,\\\\,g
; s
,\$
,$$
,g
3048 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3051 test "$program_prefix" != NONE
&&
3052 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3053 # Use a double $ so make ignores it.
3054 test "$program_suffix" != NONE
&&
3055 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3057 # sed with no file args requires a program.
3058 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3061 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3062 echo "configure:3063: checking return type of signal handlers" >&5
3063 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.
$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 #include <sys/types.h>
3075 extern "C" void (*signal (int, void (*)(int)))(int);
3077 void (*signal ()) ();
3084 if { (eval echo configure
:3085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086 ac_cv_type_signal
=void
3088 echo "configure: failed program was:" >&5
3089 cat conftest.
$ac_ext >&5
3091 ac_cv_type_signal
=int
3096 echo "$ac_t""$ac_cv_type_signal" 1>&6
3097 cat >> confdefs.h
<<EOF
3098 #define RETSIGTYPE $ac_cv_type_signal
3103 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3104 echo "configure:3105: checking for ANSI C header files" >&5
3105 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3116 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3117 { (eval echo configure
:3118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3118 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3119 if test -z "$ac_err"; then
3121 ac_cv_header_stdc
=yes
3124 echo "configure: failed program was:" >&5
3125 cat conftest.
$ac_ext >&5
3127 ac_cv_header_stdc
=no
3131 if test $ac_cv_header_stdc = yes; then
3132 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3133 cat > conftest.
$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 egrep "memchr" >/dev
/null
2>&1; then
3143 ac_cv_header_stdc
=no
3149 if test $ac_cv_header_stdc = yes; then
3150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3151 cat > conftest.
$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3157 egrep "free" >/dev
/null
2>&1; then
3161 ac_cv_header_stdc
=no
3167 if test $ac_cv_header_stdc = yes; then
3168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3169 if test "$cross_compiling" = yes; then
3172 cat > conftest.
$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3176 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3177 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3179 int main () { int i; for (i = 0; i < 256; i++)
3180 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3184 if { (eval echo configure
:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3188 echo "configure: failed program was:" >&5
3189 cat conftest.
$ac_ext >&5
3191 ac_cv_header_stdc
=no
3199 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3200 if test $ac_cv_header_stdc = yes; then
3201 cat >> confdefs.h
<<\EOF
3202 #define STDC_HEADERS 1
3208 for ac_hdr
in ctype.h curses.h endian.h link.h \
3209 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3210 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h \
3211 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3212 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h
3214 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3215 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3216 echo "configure:3217: checking for $ac_hdr" >&5
3217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 cat > conftest.
$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3225 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3226 { (eval echo configure
:3227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3227 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3228 if test -z "$ac_err"; then
3230 eval "ac_cv_header_$ac_safe=yes"
3233 echo "configure: failed program was:" >&5
3234 cat conftest.
$ac_ext >&5
3236 eval "ac_cv_header_$ac_safe=no"
3240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3241 echo "$ac_t""yes" 1>&6
3242 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3243 cat >> confdefs.h
<<EOF
3244 #define $ac_tr_hdr 1
3248 echo "$ac_t""no" 1>&6
3252 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3253 echo "configure:3254: checking whether stat file-mode macros are broken" >&5
3254 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 cat > conftest.
$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include <sys/types.h>
3261 #include <sys/stat.h>
3263 #if defined(S_ISBLK) && defined(S_IFDIR)
3264 # if S_ISBLK (S_IFDIR)
3269 #if defined(S_ISBLK) && defined(S_IFCHR)
3270 # if S_ISBLK (S_IFCHR)
3275 #if defined(S_ISLNK) && defined(S_IFREG)
3276 # if S_ISLNK (S_IFREG)
3281 #if defined(S_ISSOCK) && defined(S_IFREG)
3282 # if S_ISSOCK (S_IFREG)
3288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3289 egrep "You lose" >/dev
/null
2>&1; then
3291 ac_cv_header_stat_broken
=yes
3294 ac_cv_header_stat_broken
=no
3300 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3301 if test $ac_cv_header_stat_broken = yes; then
3302 cat >> confdefs.h
<<\EOF
3303 #define STAT_MACROS_BROKEN 1
3309 echo $ac_n "checking for working const""... $ac_c" 1>&6
3310 echo "configure:3311: checking for working const" >&5
3311 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 cat > conftest.
$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3320 /* Ultrix mips cc rejects this. */
3321 typedef int charset[2]; const charset x;
3322 /* SunOS 4.1.1 cc rejects this. */
3323 char const *const *ccp;
3325 /* NEC SVR4.0.2 mips cc rejects this. */
3326 struct point {int x, y;};
3327 static struct point const zero = {0,0};
3328 /* AIX XL C 1.02.0.0 rejects this.
3329 It does not let you subtract one const X* pointer from another in an arm
3330 of an if-expression whose if-part is not a constant expression */
3331 const char *g = "string";
3332 ccp = &g + (g ? g-g : 0);
3333 /* HPUX 7.0 cc rejects these. */
3336 ccp = (char const *const *) p;
3337 { /* SCO 3.2v4 cc rejects this. */
3339 char const *s = 0 ? (char *) 0 : (char const *) 0;
3343 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3345 const int *foo = &x[0];
3348 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3349 typedef const int *iptr;
3353 { /* AIX XL C 1.02.0.0 rejects this saying
3354 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3355 struct s { int j; const int *ap[3]; };
3356 struct s *b; b->j = 5;
3358 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3364 if { (eval echo configure
:3365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3368 echo "configure: failed program was:" >&5
3369 cat conftest.
$ac_ext >&5
3376 echo "$ac_t""$ac_cv_c_const" 1>&6
3377 if test $ac_cv_c_const = no
; then
3378 cat >> confdefs.h
<<\EOF
3385 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll
3387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3388 echo "configure:3389: checking for $ac_func" >&5
3389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3392 cat > conftest.
$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3395 /* System header to define __stub macros and hopefully few prototypes,
3396 which can conflict with char $ac_func(); below. */
3398 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3405 /* The GNU C library defines this for functions which it implements
3406 to always fail with ENOSYS. Some functions are actually named
3407 something starting with __ and the normal name is an alias. */
3408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3416 if { (eval echo configure
:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3418 eval "ac_cv_func_$ac_func=yes"
3420 echo "configure: failed program was:" >&5
3421 cat conftest.
$ac_ext >&5
3423 eval "ac_cv_func_$ac_func=no"
3428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3429 echo "$ac_t""yes" 1>&6
3430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3431 cat >> confdefs.h
<<EOF
3432 #define $ac_tr_func 1
3436 echo "$ac_t""no" 1>&6
3440 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3441 # for constant arguments. Useless!
3442 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3443 echo "configure:3444: checking for working alloca.h" >&5
3444 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 cat > conftest.
$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3452 char *p = alloca(2 * sizeof(int));
3455 if { (eval echo configure
:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3457 ac_cv_header_alloca_h
=yes
3459 echo "configure: failed program was:" >&5
3460 cat conftest.
$ac_ext >&5
3462 ac_cv_header_alloca_h
=no
3467 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3468 if test $ac_cv_header_alloca_h = yes; then
3469 cat >> confdefs.h
<<\EOF
3470 #define HAVE_ALLOCA_H 1
3475 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3476 echo "configure:3477: checking for alloca" >&5
3477 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 cat > conftest.
$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3485 # define alloca __builtin_alloca
3488 # include <malloc.h>
3489 # define alloca _alloca
3492 # include <alloca.h>
3497 # ifndef alloca /* predefined by HP cc +Olibcalls */
3506 char *p = (char *) alloca(1);
3509 if { (eval echo configure
:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3511 ac_cv_func_alloca_works
=yes
3513 echo "configure: failed program was:" >&5
3514 cat conftest.
$ac_ext >&5
3516 ac_cv_func_alloca_works
=no
3521 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3522 if test $ac_cv_func_alloca_works = yes; then
3523 cat >> confdefs.h
<<\EOF
3524 #define HAVE_ALLOCA 1
3529 if test $ac_cv_func_alloca_works = no
; then
3530 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3531 # that cause trouble. Some versions do not even contain alloca or
3532 # contain a buggy version. If you still want to use their alloca,
3533 # use ar to extract alloca.o from them instead of compiling alloca.c.
3534 ALLOCA
=alloca.
${ac_objext}
3535 cat >> confdefs.h
<<\EOF
3540 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3541 echo "configure:3542: checking whether alloca needs Cray hooks" >&5
3542 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3545 cat > conftest.
$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 #if defined(CRAY) && ! defined(CRAY2)
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 egrep "webecray" >/dev
/null
2>&1; then
3567 echo "$ac_t""$ac_cv_os_cray" 1>&6
3568 if test $ac_cv_os_cray = yes; then
3569 for ac_func
in _getb67 GETB67 getb67
; do
3570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3571 echo "configure:3572: checking for $ac_func" >&5
3572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.
$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* System header to define __stub macros and hopefully few prototypes,
3579 which can conflict with char $ac_func(); below. */
3581 /* Override any gcc2 internal prototype to avoid an error. */
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3588 /* The GNU C library defines this for functions which it implements
3589 to always fail with ENOSYS. Some functions are actually named
3590 something starting with __ and the normal name is an alias. */
3591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 if { (eval echo configure
:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3601 eval "ac_cv_func_$ac_func=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.
$ac_ext >&5
3606 eval "ac_cv_func_$ac_func=no"
3611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 cat >> confdefs.h
<<EOF
3614 #define CRAY_STACKSEG_END $ac_func
3619 echo "$ac_t""no" 1>&6
3625 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3626 echo "configure:3627: checking stack direction for C alloca" >&5
3627 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 if test "$cross_compiling" = yes; then
3631 ac_cv_c_stack_direction
=0
3633 cat > conftest.
$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 find_stack_direction ()
3638 static char *addr = 0;
3643 return find_stack_direction ();
3646 return (&dummy > addr) ? 1 : -1;
3650 exit (find_stack_direction() < 0);
3653 if { (eval echo configure
:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3655 ac_cv_c_stack_direction
=1
3657 echo "configure: failed program was:" >&5
3658 cat conftest.
$ac_ext >&5
3660 ac_cv_c_stack_direction
=-1
3667 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3668 cat >> confdefs.h
<<EOF
3669 #define STACK_DIRECTION $ac_cv_c_stack_direction
3675 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3676 echo "configure:3677: checking whether malloc must be declared" >&5
3677 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3685 #ifdef HAVE_STRING_H
3688 #ifdef HAVE_STRINGS_H
3689 #include <strings.h>
3692 #ifdef HAVE_STDLIB_H
3695 #ifdef HAVE_UNISTD_H
3699 char *(*pfn) = (char *(*)) malloc
3702 if { (eval echo configure
:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3704 bfd_cv_decl_needed_malloc
=no
3706 echo "configure: failed program was:" >&5
3707 cat conftest.
$ac_ext >&5
3709 bfd_cv_decl_needed_malloc
=yes
3714 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3715 if test $bfd_cv_decl_needed_malloc = yes; then
3716 cat >> confdefs.h
<<\EOF
3717 #define NEED_DECLARATION_MALLOC 1
3722 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3723 echo "configure:3724: checking whether realloc must be declared" >&5
3724 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 cat > conftest.
$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3732 #ifdef HAVE_STRING_H
3735 #ifdef HAVE_STRINGS_H
3736 #include <strings.h>
3739 #ifdef HAVE_STDLIB_H
3742 #ifdef HAVE_UNISTD_H
3746 char *(*pfn) = (char *(*)) realloc
3749 if { (eval echo configure
:3750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751 bfd_cv_decl_needed_realloc
=no
3753 echo "configure: failed program was:" >&5
3754 cat conftest.
$ac_ext >&5
3756 bfd_cv_decl_needed_realloc
=yes
3761 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3762 if test $bfd_cv_decl_needed_realloc = yes; then
3763 cat >> confdefs.h
<<\EOF
3764 #define NEED_DECLARATION_REALLOC 1
3769 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3770 echo "configure:3771: checking whether free must be declared" >&5
3771 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 cat > conftest.
$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3779 #ifdef HAVE_STRING_H
3782 #ifdef HAVE_STRINGS_H
3783 #include <strings.h>
3786 #ifdef HAVE_STDLIB_H
3789 #ifdef HAVE_UNISTD_H
3793 char *(*pfn) = (char *(*)) free
3796 if { (eval echo configure
:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3798 bfd_cv_decl_needed_free
=no
3800 echo "configure: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 bfd_cv_decl_needed_free
=yes
3808 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3809 if test $bfd_cv_decl_needed_free = yes; then
3810 cat >> confdefs.h
<<\EOF
3811 #define NEED_DECLARATION_FREE 1
3816 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3817 echo "configure:3818: checking whether strerror must be declared" >&5
3818 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 cat > conftest.
$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3826 #ifdef HAVE_STRING_H
3829 #ifdef HAVE_STRINGS_H
3830 #include <strings.h>
3833 #ifdef HAVE_STDLIB_H
3836 #ifdef HAVE_UNISTD_H
3840 char *(*pfn) = (char *(*)) strerror
3843 if { (eval echo configure
:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3845 bfd_cv_decl_needed_strerror
=no
3847 echo "configure: failed program was:" >&5
3848 cat conftest.
$ac_ext >&5
3850 bfd_cv_decl_needed_strerror
=yes
3855 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
3856 if test $bfd_cv_decl_needed_strerror = yes; then
3857 cat >> confdefs.h
<<\EOF
3858 #define NEED_DECLARATION_STRERROR 1
3863 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
3864 echo "configure:3865: checking whether strdup must be declared" >&5
3865 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3873 #ifdef HAVE_STRING_H
3876 #ifdef HAVE_STRINGS_H
3877 #include <strings.h>
3880 #ifdef HAVE_STDLIB_H
3883 #ifdef HAVE_UNISTD_H
3887 char *(*pfn) = (char *(*)) strdup
3890 if { (eval echo configure
:3891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3892 bfd_cv_decl_needed_strdup
=no
3894 echo "configure: failed program was:" >&5
3895 cat conftest.
$ac_ext >&5
3897 bfd_cv_decl_needed_strdup
=yes
3902 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
3903 if test $bfd_cv_decl_needed_strdup = yes; then
3904 cat >> confdefs.h
<<\EOF
3905 #define NEED_DECLARATION_STRDUP 1
3910 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
3911 echo "configure:3912: checking whether strstr must be declared" >&5
3912 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.
$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3920 #ifdef HAVE_STRING_H
3923 #ifdef HAVE_STRINGS_H
3924 #include <strings.h>
3927 #ifdef HAVE_STDLIB_H
3930 #ifdef HAVE_UNISTD_H
3934 char *(*pfn) = (char *(*)) strstr
3937 if { (eval echo configure
:3938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3939 bfd_cv_decl_needed_strstr
=no
3941 echo "configure: failed program was:" >&5
3942 cat conftest.
$ac_ext >&5
3944 bfd_cv_decl_needed_strstr
=yes
3949 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
3950 if test $bfd_cv_decl_needed_strstr = yes; then
3951 cat >> confdefs.h
<<\EOF
3952 #define NEED_DECLARATION_STRSTR 1
3959 # The following save_state_t checkery is only necessary for HPUX
3960 # versions earlier than 10.20. When those fade from memory, this
3961 # could be expunged. --jsm 1999-03-22
3963 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
3964 echo "configure:3965: checking for HPUX save_state structure" >&5
3965 cat > conftest.
$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 #include <machine/save_state.h>
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971 egrep "save_state_t" >/dev
/null
2>&1; then
3973 gdb_cv_hpux_savestate
=yes
3976 gdb_cv_hpux_savestate
=no
3980 cat > conftest.
$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 #include <machine/save_state.h>
3985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3986 egrep "ss_wide" >/dev
/null
2>&1; then
3988 gdb_cv_hpux_sswide
=yes
3991 gdb_cv_hpux_sswide
=no
3995 if test $gdb_cv_hpux_savestate = yes
3997 cat >> confdefs.h
<<\EOF
3998 #define HAVE_STRUCT_SAVE_STATE_T 1
4002 if test $gdb_cv_hpux_sswide = yes
4004 cat >> confdefs.h
<<\EOF
4005 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4009 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4012 # If we are configured native on GNU/Linux, work around problems with
4014 # Also detect which type of /proc is in use, such as for Unixware.
4016 if test "${target}" = "${host}"; then
4017 gdb_cv_hostos_is_solaris
=no
4020 cat >> confdefs.h
<<\EOF
4021 #define START_INFERIOR_TRAPS_EXPECTED 2
4024 cat >> confdefs.h
<<\EOF
4025 #define sys_quotactl 1
4030 gdb_cv_hostos_is_solaris
=yes ;;
4032 echo $ac_n "checking for directory proc entries""... $ac_c" 1>&6
4033 echo "configure:4034: checking for directory proc entries" >&5
4034 # The [gdb_host != sun4sol2] hack is because Solaris does provide the
4035 # multiple procfs files as of Solaris 2.6, but GDB can't use it right now.
4036 if test "$ac_cv_header_sys_procfs_h" = yes -a \
4037 "$gdb_cv_hostos_is_solaris" = no \
4039 -a -f /proc
/$$
/ctl \
4041 -a -f /proc
/$$
/map \
4042 -a -f /proc
/$$
/status
; then
4043 echo "$ac_t""yes" 1>&6
4044 cat >> confdefs.h
<<\EOF
4045 #define HAVE_MULTIPLE_PROC_FDS 1
4049 echo "$ac_t""no" 1>&6
4053 if test "$ac_cv_header_sys_procfs_h" = yes; then
4054 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4055 echo "configure:4056: checking for pstatus_t in sys/procfs.h" >&5
4056 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.
$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 #include <sys/procfs.h>
4067 if { (eval echo configure
:4068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4069 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4071 echo "configure: failed program was:" >&5
4072 cat conftest.
$ac_ext >&5
4074 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4080 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4081 cat >> confdefs.h
<<\EOF
4082 #define HAVE_PSTATUS_T 1
4086 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4088 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4089 echo "configure:4090: checking for prrun_t in sys/procfs.h" >&5
4090 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 cat > conftest.
$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 #include <sys/procfs.h>
4101 if { (eval echo configure
:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4103 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4105 echo "configure: failed program was:" >&5
4106 cat conftest.
$ac_ext >&5
4108 bfd_cv_have_sys_procfs_type_prrun_t
=no
4114 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4115 cat >> confdefs.h
<<\EOF
4116 #define HAVE_PRRUN_T 1
4120 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4122 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4123 echo "configure:4124: checking for gregset_t in sys/procfs.h" >&5
4124 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4127 cat > conftest.
$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4130 #include <sys/procfs.h>
4135 if { (eval echo configure
:4136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4137 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4139 echo "configure: failed program was:" >&5
4140 cat conftest.
$ac_ext >&5
4142 bfd_cv_have_sys_procfs_type_gregset_t
=no
4148 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4149 cat >> confdefs.h
<<\EOF
4150 #define HAVE_GREGSET_T 1
4154 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4156 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4157 echo "configure:4158: checking for fpregset_t in sys/procfs.h" >&5
4158 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4161 cat > conftest.
$ac_ext <<EOF
4162 #line 4163 "configure"
4163 #include "confdefs.h"
4164 #include <sys/procfs.h>
4169 if { (eval echo configure
:4170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4171 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4173 echo "configure: failed program was:" >&5
4174 cat conftest.
$ac_ext >&5
4176 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4182 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4183 cat >> confdefs.h
<<\EOF
4184 #define HAVE_FPREGSET_T 1
4188 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4192 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4193 echo "configure:4194: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4194 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 cat > conftest.
$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4201 #include <sys/types.h>
4202 #include <sys/procfs.h>
4207 dummy = ioctl(0, PIOCSET, &dummy);
4211 if { (eval echo configure
:4212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4213 gdb_cv_have_procfs_piocset
=yes
4215 echo "configure: failed program was:" >&5
4216 cat conftest.
$ac_ext >&5
4218 gdb_cv_have_procfs_piocset
=no
4223 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4224 if test $gdb_cv_have_procfs_piocset = yes; then
4225 cat >> confdefs.h
<<\EOF
4226 #define HAVE_PROCFS_PIOCSET 1
4232 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4233 echo "configure:4234: checking for main in -lm" >&5
4234 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 ac_save_LIBS
="$LIBS"
4240 cat > conftest.
$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4248 if { (eval echo configure
:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4250 eval "ac_cv_lib_$ac_lib_var=yes"
4252 echo "configure: failed program was:" >&5
4253 cat conftest.
$ac_ext >&5
4255 eval "ac_cv_lib_$ac_lib_var=no"
4258 LIBS
="$ac_save_LIBS"
4261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4263 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4264 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4265 cat >> confdefs.h
<<EOF
4266 #define $ac_tr_lib 1
4272 echo "$ac_t""no" 1>&6
4276 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4277 echo "configure:4278: checking for wctype in -lc" >&5
4278 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4282 ac_save_LIBS
="$LIBS"
4284 cat > conftest.
$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 /* Override any gcc2 internal prototype to avoid an error. */
4288 /* We use char because int might match the return type of a gcc2
4289 builtin and then its argument prototype would still apply. */
4296 if { (eval echo configure
:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4298 eval "ac_cv_lib_$ac_lib_var=yes"
4300 echo "configure: failed program was:" >&5
4301 cat conftest.
$ac_ext >&5
4303 eval "ac_cv_lib_$ac_lib_var=no"
4306 LIBS
="$ac_save_LIBS"
4309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4313 echo "$ac_t""no" 1>&6
4314 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4315 echo "configure:4316: checking for wctype in -lw" >&5
4316 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 ac_save_LIBS
="$LIBS"
4322 cat > conftest.
$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 /* Override any gcc2 internal prototype to avoid an error. */
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4334 if { (eval echo configure
:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4336 eval "ac_cv_lib_$ac_lib_var=yes"
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 eval "ac_cv_lib_$ac_lib_var=no"
4344 LIBS
="$ac_save_LIBS"
4347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4349 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4351 cat >> confdefs.h
<<EOF
4352 #define $ac_tr_lib 1
4358 echo "$ac_t""no" 1>&6
4365 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4366 echo "configure:4367: checking for long long support in compiler" >&5
4367 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 cat > conftest.
$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4376 extern long long foo;
4377 switch (foo & 2) { case 0: return 1; }
4381 if { (eval echo configure
:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4383 gdb_cv_c_long_long
=yes
4385 echo "configure: failed program was:" >&5
4386 cat conftest.
$ac_ext >&5
4388 gdb_cv_c_long_long
=no
4393 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4394 if test $gdb_cv_c_long_long = yes; then
4395 cat >> confdefs.h
<<\EOF
4396 #define CC_HAS_LONG_LONG 1
4402 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4403 echo "configure:4404: checking for long long support in printf" >&5
4404 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 if test "$cross_compiling" = yes; then
4408 gdb_cv_printf_has_long_long
=no
4410 cat > conftest.
$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4417 l = (l << 16) + 0x0123;
4418 l = (l << 16) + 0x4567;
4419 l = (l << 16) + 0x89ab;
4420 l = (l << 16) + 0xcdef;
4421 sprintf (buf, "0x%016llx", l);
4422 return (strcmp ("0x0123456789abcdef", buf));
4425 if { (eval echo configure
:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4427 gdb_cv_printf_has_long_long
=yes
4429 echo "configure: failed program was:" >&5
4430 cat conftest.
$ac_ext >&5
4432 gdb_cv_printf_has_long_long
=no
4439 if test $gdb_cv_printf_has_long_long = yes; then
4440 cat >> confdefs.h
<<\EOF
4441 #define PRINTF_HAS_LONG_LONG 1
4445 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4448 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4449 echo "configure:4450: checking for long double support in compiler" >&5
4450 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 cat > conftest.
$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4461 if { (eval echo configure
:4462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4463 ac_cv_c_long_double
=yes
4465 echo "configure: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4468 ac_cv_c_long_double
=no
4473 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4474 if test $ac_cv_c_long_double = yes; then
4475 cat >> confdefs.h
<<\EOF
4476 #define HAVE_LONG_DOUBLE 1
4482 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4483 echo "configure:4484: checking for long double support in printf" >&5
4484 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 if test "$cross_compiling" = yes; then
4488 gdb_cv_printf_has_long_double
=no
4490 cat > conftest.
$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4496 long double f = 3.141592653;
4497 sprintf (buf, "%Lg", f);
4498 return (strncmp ("3.14159", buf, 7));
4501 if { (eval echo configure
:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4503 gdb_cv_printf_has_long_double
=yes
4505 echo "configure: failed program was:" >&5
4506 cat conftest.
$ac_ext >&5
4508 gdb_cv_printf_has_long_double
=no
4515 if test $gdb_cv_printf_has_long_double = yes; then
4516 cat >> confdefs.h
<<\EOF
4517 #define PRINTF_HAS_LONG_DOUBLE 1
4521 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4524 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4525 echo "configure:4526: checking for long double support in scanf" >&5
4526 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 if test "$cross_compiling" = yes; then
4530 gdb_cv_scanf_has_long_double
=no
4532 cat > conftest.
$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4537 char *buf = "3.141592653";
4539 sscanf (buf, "%Lg", &f);
4540 return !(f > 3.14159 && f < 3.14160);
4543 if { (eval echo configure
:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4545 gdb_cv_scanf_has_long_double
=yes
4547 echo "configure: failed program was:" >&5
4548 cat conftest.
$ac_ext >&5
4550 gdb_cv_scanf_has_long_double
=no
4557 if test $gdb_cv_scanf_has_long_double = yes; then
4558 cat >> confdefs.h
<<\EOF
4559 #define SCANF_HAS_LONG_DOUBLE 1
4563 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4565 for ac_hdr
in unistd.h
4567 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4569 echo "configure:4570: checking for $ac_hdr" >&5
4570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4571 echo $ac_n "(cached) $ac_c" 1>&6
4573 cat > conftest.
$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4578 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4579 { (eval echo configure
:4580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4580 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4581 if test -z "$ac_err"; then
4583 eval "ac_cv_header_$ac_safe=yes"
4586 echo "configure: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4589 eval "ac_cv_header_$ac_safe=no"
4593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4594 echo "$ac_t""yes" 1>&6
4595 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4596 cat >> confdefs.h
<<EOF
4597 #define $ac_tr_hdr 1
4601 echo "$ac_t""no" 1>&6
4605 for ac_func
in getpagesize
4607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4608 echo "configure:4609: checking for $ac_func" >&5
4609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 cat > conftest.
$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 /* System header to define __stub macros and hopefully few prototypes,
4616 which can conflict with char $ac_func(); below. */
4618 /* Override any gcc2 internal prototype to avoid an error. */
4619 /* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4625 /* The GNU C library defines this for functions which it implements
4626 to always fail with ENOSYS. Some functions are actually named
4627 something starting with __ and the normal name is an alias. */
4628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4636 if { (eval echo configure
:4637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4638 eval "ac_cv_func_$ac_func=yes"
4640 echo "configure: failed program was:" >&5
4641 cat conftest.
$ac_ext >&5
4643 eval "ac_cv_func_$ac_func=no"
4648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4649 echo "$ac_t""yes" 1>&6
4650 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4651 cat >> confdefs.h
<<EOF
4652 #define $ac_tr_func 1
4656 echo "$ac_t""no" 1>&6
4660 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4661 echo "configure:4662: checking for working mmap" >&5
4662 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 if test "$cross_compiling" = yes; then
4666 ac_cv_func_mmap_fixed_mapped
=no
4668 cat > conftest.
$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4672 /* Thanks to Mike Haertel and Jim Avera for this test.
4673 Here is a matrix of mmap possibilities:
4674 mmap private not fixed
4675 mmap private fixed at somewhere currently unmapped
4676 mmap private fixed at somewhere already mapped
4677 mmap shared not fixed
4678 mmap shared fixed at somewhere currently unmapped
4679 mmap shared fixed at somewhere already mapped
4680 For private mappings, we should verify that changes cannot be read()
4681 back from the file, nor mmap's back from the file at a different
4682 address. (There have been systems where private was not correctly
4683 implemented like the infamous i386 svr4.0, and systems where the
4684 VM page cache was not coherent with the filesystem buffer cache
4685 like early versions of FreeBSD and possibly contemporary NetBSD.)
4686 For shared mappings, we should conversely verify that changes get
4687 propogated back to all the places they're supposed to be.
4689 Grep wants private fixed already mapped.
4690 The main things grep needs to know about mmap are:
4691 * does it exist and is it safe to write into the mmap'd area
4692 * how to use it (BSD variants) */
4693 #include <sys/types.h>
4695 #include <sys/mman.h>
4697 /* This mess was copied from the GNU getpagesize.h. */
4698 #ifndef HAVE_GETPAGESIZE
4699 # ifdef HAVE_UNISTD_H
4700 # include <unistd.h>
4703 /* Assume that all systems that can run configure have sys/param.h. */
4704 # ifndef HAVE_SYS_PARAM_H
4705 # define HAVE_SYS_PARAM_H 1
4708 # ifdef _SC_PAGESIZE
4709 # define getpagesize() sysconf(_SC_PAGESIZE)
4710 # else /* no _SC_PAGESIZE */
4711 # ifdef HAVE_SYS_PARAM_H
4712 # include <sys/param.h>
4713 # ifdef EXEC_PAGESIZE
4714 # define getpagesize() EXEC_PAGESIZE
4715 # else /* no EXEC_PAGESIZE */
4717 # define getpagesize() NBPG * CLSIZE
4720 # endif /* no CLSIZE */
4721 # else /* no NBPG */
4723 # define getpagesize() NBPC
4724 # else /* no NBPC */
4726 # define getpagesize() PAGESIZE
4727 # endif /* PAGESIZE */
4728 # endif /* no NBPC */
4729 # endif /* no NBPG */
4730 # endif /* no EXEC_PAGESIZE */
4731 # else /* no HAVE_SYS_PARAM_H */
4732 # define getpagesize() 8192 /* punt totally */
4733 # endif /* no HAVE_SYS_PARAM_H */
4734 # endif /* no _SC_PAGESIZE */
4736 #endif /* no HAVE_GETPAGESIZE */
4739 extern "C" { void *malloc(unsigned); }
4747 char *data, *data2, *data3;
4751 pagesize = getpagesize();
4754 * First, make a file with some known garbage in it.
4756 data = malloc(pagesize);
4759 for (i = 0; i < pagesize; ++i)
4760 *(data + i) = rand();
4762 fd = creat("conftestmmap", 0600);
4765 if (write(fd, data, pagesize) != pagesize)
4770 * Next, try to mmap the file at a fixed address which
4771 * already has something else allocated at it. If we can,
4772 * also make sure that we see the same garbage.
4774 fd = open("conftestmmap", O_RDWR);
4777 data2 = malloc(2 * pagesize);
4780 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4781 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4782 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4784 for (i = 0; i < pagesize; ++i)
4785 if (*(data + i) != *(data2 + i))
4789 * Finally, make sure that changes to the mapped area
4790 * do not percolate back to the file as seen by read().
4791 * (This is a bug on some variants of i386 svr4.0.)
4793 for (i = 0; i < pagesize; ++i)
4794 *(data2 + i) = *(data2 + i) + 1;
4795 data3 = malloc(pagesize);
4798 if (read(fd, data3, pagesize) != pagesize)
4800 for (i = 0; i < pagesize; ++i)
4801 if (*(data + i) != *(data3 + i))
4804 unlink("conftestmmap");
4809 if { (eval echo configure
:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4811 ac_cv_func_mmap_fixed_mapped
=yes
4813 echo "configure: failed program was:" >&5
4814 cat conftest.
$ac_ext >&5
4816 ac_cv_func_mmap_fixed_mapped
=no
4823 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4824 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4825 cat >> confdefs.h
<<\EOF
4834 if test ${build} = ${host} -a ${host} = ${target} ; then
4837 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4838 echo "configure:4839: checking for HPUX/OSF thread support" >&5
4839 if test -f /usr
/include
/dce
/cma_config.h
; then
4840 if test "$GCC" = "yes" ; then
4841 echo "$ac_t""yes" 1>&6
4842 cat >> confdefs.h
<<\EOF
4843 #define HAVE_HPUX_THREAD_SUPPORT 1
4846 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
4847 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
4849 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4852 echo "$ac_t""no" 1>&6
4856 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4857 echo "configure:4858: checking for Solaris thread debugging library" >&5
4858 if test -f /usr
/lib
/libthread_db.so
.1 ; then
4859 echo "$ac_t""yes" 1>&6
4860 cat >> confdefs.h
<<\EOF
4861 #define HAVE_THREAD_DB_LIB 1
4864 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
4865 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
4866 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4867 echo "configure:4868: checking for dlopen in -ldl" >&5
4868 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 ac_save_LIBS
="$LIBS"
4874 cat > conftest.
$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 /* Override any gcc2 internal prototype to avoid an error. */
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4886 if { (eval echo configure
:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4888 eval "ac_cv_lib_$ac_lib_var=yes"
4890 echo "configure: failed program was:" >&5
4891 cat conftest.
$ac_ext >&5
4893 eval "ac_cv_lib_$ac_lib_var=no"
4896 LIBS
="$ac_save_LIBS"
4899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4901 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4903 cat >> confdefs.h
<<EOF
4904 #define $ac_tr_lib 1
4910 echo "$ac_t""no" 1>&6
4913 if test "$GCC" = "yes" ; then
4914 # The GNU linker requires the -export-dynamic option to make
4915 # all symbols visible in the dynamic symbol table.
4916 hold_ldflags
=$LDFLAGS
4917 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4918 echo "configure:4919: checking for the ld -export-dynamic flag" >&5
4919 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
4920 cat > conftest.
$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4928 if { (eval echo configure
:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4932 echo "configure: failed program was:" >&5
4933 cat conftest.
$ac_ext >&5
4938 LDFLAGS
=$hold_ldflags
4939 echo "$ac_t""$found" 1>&6
4940 if test $found = yes; then
4941 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4944 # Sun randomly tweaked the prototypes in <proc_service.h>
4946 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
4947 echo "configure:4948: checking if <proc_service.h> is old" >&5
4948 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4952 cat > conftest.
$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4956 #include <proc_service.h>
4958 (struct ps_prochandle*, psaddr_t, const void*, size_t);
4964 if { (eval echo configure
:4965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4966 gdb_cv_proc_service_is_old
=no
4968 echo "configure: failed program was:" >&5
4969 cat conftest.
$ac_ext >&5
4971 gdb_cv_proc_service_is_old
=yes
4977 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
4978 if test $gdb_cv_proc_service_is_old = yes; then
4979 cat >> confdefs.h
<<\EOF
4980 #define PROC_SERVICE_IS_OLD 1
4985 echo "$ac_t""no" 1>&6
4994 # Check whether --enable-tui or --disable-tui was given.
4995 if test "${enable_tui+set}" = set; then
4996 enableval
="$enable_tui"
4998 case "${enable_tui}" in
5000 "") enable_tui
=yes ;;
5002 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5008 case ${enable_tui} in
5010 cat >> confdefs.h
<<\EOF
5015 TUI_LIBRARY
=tui
/libtui.a
5025 # Check whether --enable-netrom or --disable-netrom was given.
5026 if test "${enable_netrom+set}" = set; then
5027 enableval
="$enable_netrom"
5028 case "${enableval}" in
5029 yes) enable_netrom
=yes ;;
5030 no
) enable_netrom
=no
;;
5031 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5036 if test "${enable_netrom}" = "yes"; then
5037 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5038 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5041 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5042 if test "${enable_build_warnings+set}" = set; then
5043 enableval
="$enable_build_warnings"
5044 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
5045 case "${enableval}" in
5047 no
) build_warnings
="-w";;
5048 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5049 build_warnings
="${build_warnings} ${t}";;
5050 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5051 build_warnings
="${t} ${build_warnings}";;
5052 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5058 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5060 WARN_CFLAGS
="${build_warnings}"
5071 # Check whether --with-mmalloc or --without-mmalloc was given.
5072 if test "${with_mmalloc+set}" = set; then
5073 withval
="$with_mmalloc"
5074 case "${withval}" in
5075 yes) want_mmalloc
=true
;;
5076 no
) want_mmalloc
=false
;;
5077 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5083 if test x
$want_mmalloc = xtrue
; then
5084 cat >> confdefs.h
<<\EOF
5085 #define USE_MMALLOC 1
5088 cat >> confdefs.h
<<\EOF
5089 #define MMCHECK_FORCE 1
5092 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5093 MMALLOC
='../mmalloc/libmmalloc.a'
5097 # In the Cygwin environment, we need some additional flags.
5098 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5099 echo "configure:5223: checking for cygwin" >&5
5100 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5103 cat > conftest.
$ac_ext <<EOF
5104 #line 5228 "configure"
5105 #include "confdefs.h"
5107 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5112 egrep "lose" >/dev
/null
2>&1; then
5114 gdb_cv_os_cygwin
=yes
5123 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5125 DLLTOOL
=${DLLTOOL-dlltool}
5126 WINDRES
=${WINDRES-windres}
5130 if test x
$gdb_host = xgo32
; then
5133 if test x
$gdb_cv_os_cygwin = xyes
; then
5134 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5137 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5138 echo "configure:5262: checking for tgetent in -lncurses" >&5
5139 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5143 ac_save_LIBS
="$LIBS"
5144 LIBS
="-lncurses $LIBS"
5145 cat > conftest.
$ac_ext <<EOF
5146 #line 5270 "configure"
5147 #include "confdefs.h"
5148 /* Override any gcc2 internal prototype to avoid an error. */
5149 /* We use char because int might match the return type of a gcc2
5150 builtin and then its argument prototype would still apply. */
5157 if { (eval echo configure
:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5159 eval "ac_cv_lib_$ac_lib_var=yes"
5161 echo "configure: failed program was:" >&5
5162 cat conftest.
$ac_ext >&5
5164 eval "ac_cv_lib_$ac_lib_var=no"
5167 LIBS
="$ac_save_LIBS"
5170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5171 echo "$ac_t""yes" 1>&6
5174 echo "$ac_t""no" 1>&6
5175 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5176 echo "configure:5300: checking for tgetent in -lHcurses" >&5
5177 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 ac_save_LIBS
="$LIBS"
5182 LIBS
="-lHcurses $LIBS"
5183 cat > conftest.
$ac_ext <<EOF
5184 #line 5308 "configure"
5185 #include "confdefs.h"
5186 /* Override any gcc2 internal prototype to avoid an error. */
5187 /* We use char because int might match the return type of a gcc2
5188 builtin and then its argument prototype would still apply. */
5195 if { (eval echo configure
:5319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5197 eval "ac_cv_lib_$ac_lib_var=yes"
5199 echo "configure: failed program was:" >&5
5200 cat conftest.
$ac_ext >&5
5202 eval "ac_cv_lib_$ac_lib_var=no"
5205 LIBS
="$ac_save_LIBS"
5208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5209 echo "$ac_t""yes" 1>&6
5212 echo "$ac_t""no" 1>&6
5213 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5214 echo "configure:5338: checking for tgetent in -ltermlib" >&5
5215 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5217 echo $ac_n "(cached) $ac_c" 1>&6
5219 ac_save_LIBS
="$LIBS"
5220 LIBS
="-ltermlib $LIBS"
5221 cat > conftest.
$ac_ext <<EOF
5222 #line 5346 "configure"
5223 #include "confdefs.h"
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5233 if { (eval echo configure
:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5235 eval "ac_cv_lib_$ac_lib_var=yes"
5237 echo "configure: failed program was:" >&5
5238 cat conftest.
$ac_ext >&5
5240 eval "ac_cv_lib_$ac_lib_var=no"
5243 LIBS
="$ac_save_LIBS"
5246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5247 echo "$ac_t""yes" 1>&6
5250 echo "$ac_t""no" 1>&6
5251 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5252 echo "configure:5376: checking for tgetent in -ltermcap" >&5
5253 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5257 ac_save_LIBS
="$LIBS"
5258 LIBS
="-ltermcap $LIBS"
5259 cat > conftest.
$ac_ext <<EOF
5260 #line 5384 "configure"
5261 #include "confdefs.h"
5262 /* Override any gcc2 internal prototype to avoid an error. */
5263 /* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5271 if { (eval echo configure
:5395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5273 eval "ac_cv_lib_$ac_lib_var=yes"
5275 echo "configure: failed program was:" >&5
5276 cat conftest.
$ac_ext >&5
5278 eval "ac_cv_lib_$ac_lib_var=no"
5281 LIBS
="$ac_save_LIBS"
5284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5288 echo "$ac_t""no" 1>&6
5289 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5290 echo "configure:5414: checking for tgetent in -lcurses" >&5
5291 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5295 ac_save_LIBS
="$LIBS"
5296 LIBS
="-lcurses $LIBS"
5297 cat > conftest.
$ac_ext <<EOF
5298 #line 5422 "configure"
5299 #include "confdefs.h"
5300 /* Override any gcc2 internal prototype to avoid an error. */
5301 /* We use char because int might match the return type of a gcc2
5302 builtin and then its argument prototype would still apply. */
5309 if { (eval echo configure
:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5311 eval "ac_cv_lib_$ac_lib_var=yes"
5313 echo "configure: failed program was:" >&5
5314 cat conftest.
$ac_ext >&5
5316 eval "ac_cv_lib_$ac_lib_var=no"
5319 LIBS
="$ac_save_LIBS"
5322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5323 echo "$ac_t""yes" 1>&6
5326 echo "$ac_t""no" 1>&6
5327 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5328 echo "configure:5452: checking for tgetent in -lterminfo" >&5
5329 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5333 ac_save_LIBS
="$LIBS"
5334 LIBS
="-lterminfo $LIBS"
5335 cat > conftest.
$ac_ext <<EOF
5336 #line 5460 "configure"
5337 #include "confdefs.h"
5338 /* Override any gcc2 internal prototype to avoid an error. */
5339 /* We use char because int might match the return type of a gcc2
5340 builtin and then its argument prototype would still apply. */
5347 if { (eval echo configure
:5471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5349 eval "ac_cv_lib_$ac_lib_var=yes"
5351 echo "configure: failed program was:" >&5
5352 cat conftest.
$ac_ext >&5
5354 eval "ac_cv_lib_$ac_lib_var=no"
5357 LIBS
="$ac_save_LIBS"
5360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5364 echo "$ac_t""no" 1>&6
5378 if test "x$TERM_LIB" = x
5380 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5386 # libreadline needs libuser32.a in a cygwin environment
5388 if test x
$gdb_cv_os_cygwin = xyes
; then
5389 WIN32LIBS
="-luser32"
5394 # If we find X, set shell vars x_includes and x_libraries to the
5395 # paths, otherwise set no_x=yes.
5396 # Uses ac_ vars as temps to allow command line to override cache and checks.
5397 # --without-x overrides everything else, but does not touch the cache.
5398 echo $ac_n "checking for X""... $ac_c" 1>&6
5399 echo "configure:6607: checking for X" >&5
5401 # Check whether --with-x or --without-x was given.
5402 if test "${with_x+set}" = set; then
5407 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5408 if test "x$with_x" = xno
; then
5409 # The user explicitly disabled X.
5412 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5413 # Both variables are already set.
5416 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 # One or both of the vars are not set, and there is no cached value.
5420 ac_x_includes
=NO ac_x_libraries
=NO
5422 if mkdir conftestdir
; then
5424 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5425 cat > Imakefile
<<'EOF'
5427 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5429 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5430 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5431 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5432 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5433 for ac_extension
in a so sl
; do
5434 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5435 test -f $ac_im_libdir/libX11.
$ac_extension; then
5436 ac_im_usrlibdir
=$ac_im_libdir; break
5439 # Screen out bogus values from the imake configuration. They are
5440 # bogus both because they are the default anyway, and because
5441 # using them would break gcc on systems where it needs fixed includes.
5442 case "$ac_im_incroot" in
5444 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5446 case "$ac_im_usrlibdir" in
5448 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5455 if test "$ac_x_includes" = NO
; then
5456 # Guess where to find include files, by looking for this one X11 .h file.
5457 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5459 # First, try using that file with no special directory specified.
5460 cat > conftest.
$ac_ext <<EOF
5461 #line 6669 "configure"
5462 #include "confdefs.h"
5463 #include <$x_direct_test_include>
5465 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5466 { (eval echo configure
:6674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5467 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5468 if test -z "$ac_err"; then
5470 # We can compile using X headers with no special include directory.
5474 echo "configure: failed program was:" >&5
5475 cat conftest.
$ac_ext >&5
5477 # Look for the header file in a standard set of common directories.
5478 # Check X11 before X11Rn because it is often a symlink to the current release.
5481 /usr
/X11R
6/include \
5482 /usr
/X11R
5/include \
5483 /usr
/X11R
4/include \
5486 /usr
/include
/X11R6 \
5487 /usr
/include
/X11R5 \
5488 /usr
/include
/X11R4 \
5490 /usr
/local
/X11
/include \
5491 /usr
/local
/X11R
6/include \
5492 /usr
/local
/X11R
5/include \
5493 /usr
/local
/X11R
4/include \
5495 /usr
/local
/include
/X11 \
5496 /usr
/local
/include
/X11R6 \
5497 /usr
/local
/include
/X11R5 \
5498 /usr
/local
/include
/X11R4 \
5502 /usr
/XFree86
/include
/X11 \
5505 /usr
/local
/include \
5506 /usr
/unsupported
/include \
5507 /usr
/athena
/include \
5508 /usr
/local
/x11r
5/include \
5509 /usr
/lpp
/Xamples
/include \
5511 /usr
/openwin
/include \
5512 /usr
/openwin
/share
/include \
5515 if test -r "$ac_dir/$x_direct_test_include"; then
5516 ac_x_includes
=$ac_dir
5522 fi # $ac_x_includes = NO
5524 if test "$ac_x_libraries" = NO
; then
5525 # Check for the libraries.
5527 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
5528 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
5530 # See if we find them without any special options.
5531 # Don't add to $LIBS permanently.
5532 ac_save_LIBS
="$LIBS"
5533 LIBS
="-l$x_direct_test_library $LIBS"
5534 cat > conftest.
$ac_ext <<EOF
5535 #line 6743 "configure"
5536 #include "confdefs.h"
5539 ${x_direct_test_function}()
5542 if { (eval echo configure
:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5544 LIBS
="$ac_save_LIBS"
5545 # We can link X programs with no special library path.
5548 echo "configure: failed program was:" >&5
5549 cat conftest.
$ac_ext >&5
5551 LIBS
="$ac_save_LIBS"
5552 # First see if replacing the include by lib works.
5553 # Check X11 before X11Rn because it is often a symlink to the current release.
5554 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
5565 /usr
/local
/X11
/lib \
5566 /usr
/local
/X11R
6/lib \
5567 /usr
/local
/X11R
5/lib \
5568 /usr
/local
/X11R
4/lib \
5570 /usr
/local
/lib
/X11 \
5571 /usr
/local
/lib
/X11R6 \
5572 /usr
/local
/lib
/X11R5 \
5573 /usr
/local
/lib
/X11R4 \
5577 /usr
/XFree86
/lib
/X11 \
5581 /usr
/unsupported
/lib \
5583 /usr
/local
/x11r
5/lib \
5584 /usr
/lpp
/Xamples
/lib \
5588 /usr
/openwin
/share
/lib \
5591 for ac_extension
in a so sl
; do
5592 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
5593 ac_x_libraries
=$ac_dir
5600 fi # $ac_x_libraries = NO
5602 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
5603 # Didn't find X anywhere. Cache the known absence of X.
5604 ac_cv_have_x
="have_x=no"
5606 # Record where we found X for the cache.
5607 ac_cv_have_x
="have_x=yes \
5608 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5612 eval "$ac_cv_have_x"
5615 if test "$have_x" != yes; then
5616 echo "$ac_t""$have_x" 1>&6
5619 # If each of the values was on the command line, it overrides each guess.
5620 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5621 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5622 # Update the cache value to reflect the command line values.
5623 ac_cv_have_x
="have_x=yes \
5624 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5625 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5630 # Unlike the sim directory, whether a simulator is linked is controlled by
5631 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
5632 # This code just checks for a few cases where we'd like to ignore those
5633 # definitions, even when they're present in the '.mt' file. These cases
5634 # are when --disable-sim is specified, or if the simulator directory is
5635 # not part of the soruce tree.
5637 # Check whether --enable-sim or --disable-sim was given.
5638 if test "${enable_sim+set}" = set; then
5639 enableval
="$enable_sim"
5640 echo "enable_sim = $enable_sim";
5641 echo "enableval = ${enableval}";
5642 case "${enableval}" in
5643 yes) ignore_sim
=false
;;
5644 no
) ignore_sim
=true
;;
5645 *) ignore_sim
=false
;;
5652 if test ! -d "${srcdir}/../sim"; then
5656 if test "${ignore_sim}" = "true"; then
5658 IGNORE_SIM_OBS
="SIM_OBS="
5662 cat >> confdefs.h
<<\EOF
5676 # Begin stuff to support --enable-shared
5677 # Check whether --enable-shared or --disable-shared was given.
5678 if test "${enable_shared+set}" = set; then
5679 enableval
="$enable_shared"
5680 case "${enableval}" in
5689 # If we have shared libraries, try to set rpath reasonably.
5690 if test "${shared}" = "true"; then
5693 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
5695 *-*-irix5* |
*-*-irix6*)
5696 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5700 *-*-linux* |
*-pc-linux-gnu)
5701 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5704 HLDFLAGS
='-R $(libdir)'
5707 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;'
5712 # On SunOS, if the linker supports the -rpath option, use it to
5713 # prevent ../bfd and ../opcodes from being included in the run time
5717 echo 'main () { }' > conftest.c
5718 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
5719 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
5721 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
5723 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
5725 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
5727 elif test "${shared}" = "true"; then
5728 HLDFLAGS
='-Wl,-rpath=$(libdir)'
5730 HLDFLAGS
='-Wl,-rpath='
5732 rm -f conftest.t conftest.c conftest
5737 # End stuff to support --enable-shared
5739 # target_subdir is used by the testsuite to find the target libraries.
5741 if test "${host}" != "${target}"; then
5742 target_subdir
="${target_alias}/"
5747 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5748 if test ! -f ${host_makefile_frag}; then
5749 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
5751 frags
="$frags $host_makefile_frag"
5753 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5754 if test ! -f ${target_makefile_frag}; then
5755 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
5757 frags
="$frags $target_makefile_frag"
5764 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5765 ' ${host_makefile_frag}`
5767 targetfile
=`sed -n '
5768 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5769 ' ${target_makefile_frag}`
5771 # these really aren't orthogonal true/false values of the same condition,
5772 # but shells are slow enough that I like to reuse the test conditions
5774 if test "${target}" = "${host}"; then
5775 nativefile
=`sed -n '
5776 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5777 ' ${host_makefile_frag}`
5779 # GDBserver is only useful in a "native" enviroment
5780 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5784 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5785 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5786 # corresponding links. But we have to remove the xm.h files and tm.h
5787 # files anyway, e.g. when switching from "configure host" to
5793 if test "${hostfile}" != ""; then
5794 files
="${files} config/${gdb_host_cpu}/${hostfile}"
5795 links
="${links} xm.h"
5798 if test "${targetfile}" != ""; then
5799 files
="${files} config/${gdb_target_cpu}/${targetfile}"
5800 links
="${links} tm.h"
5803 if test "${nativefile}" != ""; then
5804 files
="${files} config/${gdb_host_cpu}/${nativefile}"
5805 links
="${links} nm.h"
5807 # A cross-only configuration.
5808 files
="${files} config/nm-empty.h"
5809 links
="${links} nm.h"
5814 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
5815 echo "configure:7094: checking for Cygwin environment" >&5
5816 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
5817 echo $ac_n "(cached) $ac_c" 1>&6
5819 cat > conftest.
$ac_ext <<EOF
5820 #line 7099 "configure"
5821 #include "confdefs.h"
5826 #define __CYGWIN__ __CYGWIN32__
5831 if { (eval echo configure
:7110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5835 echo "configure: failed program was:" >&5
5836 cat conftest.
$ac_ext >&5
5844 echo "$ac_t""$ac_cv_cygwin" 1>&6
5846 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
5847 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
5848 echo "configure:7127: checking for mingw32 environment" >&5
5849 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5852 cat > conftest.
$ac_ext <<EOF
5853 #line 7132 "configure"
5854 #include "confdefs.h"
5860 if { (eval echo configure
:7139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5864 echo "configure: failed program was:" >&5
5865 cat conftest.
$ac_ext >&5
5873 echo "$ac_t""$ac_cv_mingw32" 1>&6
5875 test "$ac_cv_mingw32" = yes && MINGW32
=yes
5878 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5879 echo "configure:7158: checking for executable suffix" >&5
5880 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5883 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
5887 echo 'int main () { return 0; }' > conftest.
$ac_ext
5889 if { (eval echo configure
:7168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5890 for file in conftest.
*; do
5892 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
5893 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
5897 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5900 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
5905 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
5906 echo "$ac_t""${ac_cv_exeext}" 1>&6
5910 subdirs
="$configdirs"
5913 cat > confcache
<<\EOF
5914 # This file is a shell script that caches the results of configure
5915 # tests run on this system so they can be shared between configure
5916 # scripts and configure runs. It is not useful on other systems.
5917 # If it contains results you don't want to keep, you may remove or edit it.
5919 # By default, configure uses ./config.cache as the cache file,
5920 # creating it if it does not exist already. You can give configure
5921 # the --cache-file=FILE option to use a different cache file; that is
5922 # what configure does when it calls configure scripts in
5923 # subdirectories, so they share the cache.
5924 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5925 # config.status only pays attention to the cache file if you give it the
5926 # --recheck option to rerun configure.
5929 # The following way of writing the cache mishandles newlines in values,
5930 # but we know of no workaround that is simple, portable, and efficient.
5931 # So, don't put newlines in cache variables' values.
5932 # Ultrix sh set writes to stderr and can't be redirected directly,
5933 # and sets the high bit in the cache file unless we assign to the vars.
5935 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5937 # `set' does not quote correctly, so add quotes (double-quote substitution
5938 # turns \\\\ into \\, and sed turns \\ into \).
5940 -e "s/'/'\\\\''/g" \
5941 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5944 # `set' quotes correctly as required by POSIX, so do not add quotes.
5945 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5948 if cmp -s $cache_file confcache
; then
5951 if test -w $cache_file; then
5952 echo "updating cache $cache_file"
5953 cat confcache
> $cache_file
5955 echo "not updating unwritable cache $cache_file"
5960 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5962 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5963 # Let make expand exec_prefix.
5964 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5966 # Any assignment to VPATH causes Sun make to only execute
5967 # the first set of double-colon rules, so remove it if not needed.
5968 # If there is a colon in the path, we need to keep it.
5969 if test "x$srcdir" = x.
; then
5970 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5973 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5975 DEFS
=-DHAVE_CONFIG_H
5977 # Without the "./", some shells look in PATH for config.status.
5978 : ${CONFIG_STATUS=./config.status}
5980 echo creating
$CONFIG_STATUS
5981 rm -f $CONFIG_STATUS
5982 cat > $CONFIG_STATUS <<EOF
5984 # Generated automatically by configure.
5985 # Run this file to recreate the current configuration.
5986 # This directory was configured as follows,
5987 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5989 # $0 $ac_configure_args
5991 # Compiler output produced by configure, useful for debugging
5992 # configure, is in ./config.log if it exists.
5994 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5997 case "\$ac_option" in
5998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5999 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6000 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6001 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6002 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6004 -help | --help | --hel | --he | --h)
6005 echo "\$ac_cs_usage"; exit 0 ;;
6006 *) echo "\$ac_cs_usage"; exit 1 ;;
6010 ac_given_srcdir=$srcdir
6011 ac_given_INSTALL="$INSTALL"
6013 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6015 cat >> $CONFIG_STATUS <<EOF
6017 # Protect against being on the right side of a sed subst in config.status.
6018 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6019 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6023 s%@CFLAGS@%$CFLAGS%g
6024 s%@CPPFLAGS@%$CPPFLAGS%g
6025 s%@CXXFLAGS@%$CXXFLAGS%g
6026 s%@FFLAGS@%$FFLAGS%g
6028 s%@LDFLAGS@%$LDFLAGS%g
6030 s%@exec_prefix@%$exec_prefix%g
6031 s%@prefix@%$prefix%g
6032 s%@program_transform_name@%$program_transform_name%g
6033 s%@bindir@%$bindir%g
6034 s%@sbindir@%$sbindir%g
6035 s%@libexecdir@%$libexecdir%g
6036 s%@datadir@%$datadir%g
6037 s%@sysconfdir@%$sysconfdir%g
6038 s%@sharedstatedir@%$sharedstatedir%g
6039 s%@localstatedir@%$localstatedir%g
6040 s%@libdir@%$libdir%g
6041 s%@includedir@%$includedir%g
6042 s%@oldincludedir@%$oldincludedir%g
6043 s%@infodir@%$infodir%g
6044 s%@mandir@%$mandir%g
6048 s%@host_alias@%$host_alias%g
6049 s%@host_cpu@%$host_cpu%g
6050 s%@host_vendor@%$host_vendor%g
6051 s%@host_os@%$host_os%g
6052 s%@target@%$target%g
6053 s%@target_alias@%$target_alias%g
6054 s%@target_cpu@%$target_cpu%g
6055 s%@target_vendor@%$target_vendor%g
6056 s%@target_os@%$target_os%g
6058 s%@build_alias@%$build_alias%g
6059 s%@build_cpu@%$build_cpu%g
6060 s%@build_vendor@%$build_vendor%g
6061 s%@build_os@%$build_os%g
6062 s%@SET_MAKE@%$SET_MAKE%g
6063 s%@RANLIB@%$RANLIB%g
6064 s%@ALLOCA@%$ALLOCA%g
6065 s%@USE_NLS@%$USE_NLS%g
6066 s%@MSGFMT@%$MSGFMT%g
6067 s%@GMSGFMT@%$GMSGFMT%g
6068 s%@XGETTEXT@%$XGETTEXT%g
6069 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6070 s%@CATALOGS@%$CATALOGS%g
6071 s%@CATOBJEXT@%$CATOBJEXT%g
6072 s%@DATADIRNAME@%$DATADIRNAME%g
6073 s%@GMOFILES@%$GMOFILES%g
6074 s%@INSTOBJEXT@%$INSTOBJEXT%g
6075 s%@INTLDEPS@%$INTLDEPS%g
6076 s%@INTLLIBS@%$INTLLIBS%g
6077 s%@INTLOBJS@%$INTLOBJS%g
6078 s%@POFILES@%$POFILES%g
6080 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6082 s%@GT_YES@%$GT_YES%g
6083 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6086 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6087 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6088 s%@INSTALL_DATA@%$INSTALL_DATA%g
6091 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6092 s%@BUILD_TUI@%$BUILD_TUI%g
6093 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
6094 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6095 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6096 s%@MMALLOC@%$MMALLOC%g
6097 s%@MACHINE_OBS@%$MACHINE_OBS%g
6098 s%@DLLTOOL@%$DLLTOOL%g
6099 s%@WINDRES@%$WINDRES%g
6100 s%@TERM_LIB@%$TERM_LIB%g
6101 s%@WIN32LIBS@%$WIN32LIBS%g
6102 s%@ENABLE_IDE@%$ENABLE_IDE%g
6103 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6104 s%@LIBGUI@%$LIBGUI%g
6105 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6106 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6108 s%@LIBIDETCL@%$LIBIDETCL%g
6109 s%@LIBIDE@%$LIBIDE%g
6110 s%@IDE_DEPS@%$IDE_DEPS%g
6111 s%@WIN32LDAPP@%$WIN32LDAPP%g
6112 s%@TCL_VERSION@%$TCL_VERSION%g
6113 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6114 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6115 s%@TCL_CC@%$TCL_CC%g
6116 s%@TCL_DEFS@%$TCL_DEFS%g
6117 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6118 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6119 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6120 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6121 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6122 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6123 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6124 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6125 s%@TCL_RANLIB@%$TCL_RANLIB%g
6126 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6127 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6128 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6129 s%@TK_VERSION@%$TK_VERSION%g
6130 s%@TK_DEFS@%$TK_DEFS%g
6131 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6132 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6133 s%@TK_XLIBSW@%$TK_XLIBSW%g
6134 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6135 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6136 s%@TCLHDIR@%$TCLHDIR%g
6137 s%@TKHDIR@%$TKHDIR%g
6138 s%@ITCLHDIR@%$ITCLHDIR%g
6139 s%@ITKHDIR@%$ITKHDIR%g
6140 s%@TIXHDIR@%$TIXHDIR%g
6141 s%@ITCL_VERSION@%$ITCL_VERSION%g
6142 s%@ITCL_DEFS@%$ITCL_DEFS%g
6143 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
6144 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
6145 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
6146 s%@ITK_VERSION@%$ITK_VERSION%g
6147 s%@ITK_DEFS@%$ITK_DEFS%g
6148 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
6149 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
6150 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
6151 s%@TIX_VERSION@%$TIX_VERSION%g
6152 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
6153 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6154 s%@X_CFLAGS@%$X_CFLAGS%g
6155 s%@X_LDFLAGS@%$X_LDFLAGS%g
6156 s%@X_LIBS@%$X_LIBS%g
6157 s%@ITCLLIB@%$ITCLLIB%g
6158 s%@ITCL_DEPS@%$ITCL_DEPS%g
6159 s%@ITKLIB@%$ITKLIB%g
6160 s%@ITK_DEPS@%$ITK_DEPS%g
6161 s%@TIXLIB@%$TIXLIB%g
6162 s%@TIX_DEPS@%$TIX_DEPS%g
6163 s%@GDBTKLIBS@%$GDBTKLIBS%g
6164 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
6165 s%@IGNORE_SIM@%$IGNORE_SIM%g
6166 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
6167 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6168 s%@CONFIG_OBS@%$CONFIG_OBS%g
6169 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6170 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6171 s%@HLDFLAGS@%$HLDFLAGS%g
6172 s%@HLDENV@%$HLDENV%g
6173 s%@target_subdir@%$target_subdir%g
6174 /@host_makefile_frag@/r $host_makefile_frag
6175 s%@host_makefile_frag@%%g
6176 /@target_makefile_frag@/r $target_makefile_frag
6177 s%@target_makefile_frag@%%g
6180 s%@EXEEXT@%$EXEEXT%g
6181 s%@subdirs@%$subdirs%g
6186 cat >> $CONFIG_STATUS <<\EOF
6188 # Split the substitutions into bite-sized pieces for seds with
6189 # small command number limits, like on Digital OSF/1 and HP-UX.
6190 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6191 ac_file
=1 # Number of current file.
6192 ac_beg
=1 # First line for current file.
6193 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6196 while $ac_more_lines; do
6197 if test $ac_beg -gt 1; then
6198 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6200 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6202 if test ! -s conftest.s
$ac_file; then
6204 rm -f conftest.s
$ac_file
6206 if test -z "$ac_sed_cmds"; then
6207 ac_sed_cmds
="sed -f conftest.s$ac_file"
6209 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6211 ac_file
=`expr $ac_file + 1`
6213 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6216 if test -z "$ac_sed_cmds"; then
6221 cat >> $CONFIG_STATUS <<EOF
6223 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
6225 cat >> $CONFIG_STATUS <<\EOF
6226 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6229 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6230 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6231 *) ac_file_in
="${ac_file}.in" ;;
6234 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6236 # Remove last slash and all that follows it. Not all systems have dirname.
6237 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6238 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6239 # The file is in a subdirectory.
6240 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6241 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6242 # A "../" for each directory in $ac_dir_suffix.
6243 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6245 ac_dir_suffix
= ac_dots
=
6248 case "$ac_given_srcdir" in
6250 if test -z "$ac_dots"; then top_srcdir
=.
6251 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6252 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6254 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6255 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6258 case "$ac_given_INSTALL" in
6259 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6260 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6263 echo creating
"$ac_file"
6265 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6267 *Makefile
*) ac_comsub
="1i\\
6268 # $configure_input" ;;
6272 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6274 s%@configure_input@%$configure_input%g
6275 s%@srcdir@%$srcdir%g
6276 s%@top_srcdir@%$top_srcdir%g
6277 s%@INSTALL@%$INSTALL%g
6278 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6282 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6283 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6285 # ac_d sets the value in "#define NAME VALUE" lines.
6286 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6287 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6290 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6291 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6292 ac_uB
='\([ ]\)%\1#\2define\3'
6295 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6296 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6297 ac_eB
='$%\1#\2define\3'
6301 if test "${CONFIG_HEADERS+set}" != set; then
6303 cat >> $CONFIG_STATUS <<EOF
6304 CONFIG_HEADERS="config.h:config.in"
6306 cat >> $CONFIG_STATUS <<\EOF
6308 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6311 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6312 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6313 *) ac_file_in
="${ac_file}.in" ;;
6316 echo creating
$ac_file
6318 rm -f conftest.frag conftest.
in conftest.out
6319 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6320 cat $ac_file_inputs > conftest.
in
6324 # Transform confdefs.h into a sed script conftest.vals that substitutes
6325 # the proper values into config.h.in to produce config.h. And first:
6326 # Protect against being on the right side of a sed subst in config.status.
6327 # Protect against being in an unquoted here document in config.status.
6329 cat > conftest.hdr
<<\EOF
6332 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6336 sed -n -f conftest.hdr confdefs.h > conftest.vals
6339 # This sed command replaces #undef with comments. This is necessary, for
6340 # example, in the case of _POSIX_SOURCE, which is predefined and required
6341 # on some systems where configure will not decide to define it.
6342 cat >> conftest.vals <<\EOF
6343 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6346 # Break up conftest.vals because some shells have a limit on
6347 # the size of here documents, and old seds have small limits too.
6352 ac_lines=`grep -c . conftest.vals
`
6353 # grep -c gives empty output for an empty file on some AIX systems.
6354 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6355 # Write a limited-size here document to conftest.frag.
6356 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6357 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6359 sed -f conftest.frag conftest.in > conftest.out
6361 mv conftest.out conftest.in
6363 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6365 mv conftest.tail conftest.vals
6369 cat >> $CONFIG_STATUS <<\EOF
6370 rm -f conftest.frag conftest.h
6371 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6372 cat conftest.in >> conftest.h
6374 if cmp -s $ac_file conftest.h 2>/dev/null; then
6375 echo "$ac_file is unchanged"
6378 # Remove last slash and all that follows it. Not all systems have dirname.
6379 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6380 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6381 # The file is in a subdirectory.
6382 test ! -d "$ac_dir" && mkdir "$ac_dir"
6385 mv conftest.h $ac_file
6391 cat >> $CONFIG_STATUS <<EOF
6396 cat >> $CONFIG_STATUS <<\EOF
6397 srcdir=$ac_given_srcdir
6398 while test -n "$ac_sources"; do
6399 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6400 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6402 echo "linking $srcdir/$ac_source to $ac_dest"
6404 if test ! -r $srcdir/$ac_source; then
6405 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6409 # Make relative symlinks.
6410 # Remove last slash and all that follows it. Not all systems have dirname.
6411 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
6412 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6413 # The dest file is in a subdirectory.
6414 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6415 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
6416 # A "../" for each directory in $ac_dest_dir_suffix.
6417 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
6419 ac_dest_dir_suffix= ac_dots=
6423 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6424 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6427 # Make a symlink if possible; otherwise try a hard link.
6428 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6429 ln $srcdir/$ac_source $ac_dest; then :
6431 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6435 cat >> $CONFIG_STATUS <<EOF
6437 gdb_host_cpu=$gdb_host_cpu
6438 gdb_target_cpu=$gdb_target_cpu
6439 nativefile=$nativefile
6442 cat >> $CONFIG_STATUS <<\EOF
6444 if test "${nativefile}" = ""; then
6445 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6446 < Makefile > Makefile.tem
6447 mv -f Makefile.tem Makefile
6450 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6451 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6452 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6453 mv -f Makefile.tmp Makefile
6455 case x$CONFIG_HEADERS in
6456 xconfig.h:config.in)
6462 chmod +x $CONFIG_STATUS
6463 rm -fr confdefs* $ac_clean_files
6464 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6466 if test "$no_recursion" != yes; then
6468 # Remove --cache-file and --srcdir arguments so they do not pile up.
6469 ac_sub_configure_args=
6471 for ac_arg in $ac_configure_args; do
6472 if test -n "$ac_prev"; then
6477 -cache-file | --cache-file | --cache-fil | --cache-fi \
6478 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6479 ac_prev=cache_file ;;
6480 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6481 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6483 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6485 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6487 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6491 for ac_config_dir in $configdirs; do
6493 # Do not complain, so a configure script can configure whichever
6494 # parts of a large source tree are present.
6495 if test ! -d $srcdir/$ac_config_dir; then
6499 echo configuring in $ac_config_dir
6504 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6506 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6514 # A "../" for each directory in /$ac_config_dir.
6515 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6518 .) # No --srcdir option. We are building in place.
6519 ac_sub_srcdir=$srcdir ;;
6520 /*) # Absolute path.
6521 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6523 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6526 # Check for guested configure; otherwise get Cygnus style configure.
6527 if test -f $ac_sub_srcdir/configure; then
6528 ac_sub_configure=$ac_sub_srcdir/configure
6529 elif test -f $ac_sub_srcdir/configure.in; then
6530 ac_sub_configure=$ac_configure
6532 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6536 # The recursion is here.
6537 if test -n "$ac_sub_configure"; then
6539 # Make the cache file name correct relative to the subdirectory.
6540 case "$cache_file" in
6541 /*) ac_sub_cache_file=$cache_file ;;
6543 ac_sub_cache_file="$ac_dots$cache_file" ;;
6545 case "$ac_given_INSTALL" in
6546 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6547 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6550 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6551 # The eval makes quoting arguments work.
6552 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6555 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }