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-shared Use shared libraries"
61 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
65 cache_file
=.
/config.cache
74 program_transform_name
=s
,x
,x
,
82 bindir
='${exec_prefix}/bin'
83 sbindir
='${exec_prefix}/sbin'
84 libexecdir
='${exec_prefix}/libexec'
85 datadir
='${prefix}/share'
86 sysconfdir
='${prefix}/etc'
87 sharedstatedir
='${prefix}/com'
88 localstatedir
='${prefix}/var'
89 libdir
='${exec_prefix}/lib'
90 includedir
='${prefix}/include'
91 oldincludedir
='/usr/include'
92 infodir
='${prefix}/info'
93 mandir
='${prefix}/man'
95 # Initialize some other variables.
98 SHELL
=${CONFIG_SHELL-/bin/sh}
99 # Maximum number of lines to put in a shell here document.
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
114 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 # Accept the important Cygnus configure options, so we can diagnose typos.
122 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
124 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
125 bindir
="$ac_optarg" ;;
127 -build |
--build |
--buil |
--bui |
--bu)
129 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
130 build
="$ac_optarg" ;;
132 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
133 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
134 ac_prev
=cache_file
;;
135 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
136 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
137 cache_file
="$ac_optarg" ;;
139 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
141 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
143 datadir
="$ac_optarg" ;;
145 -disable-* |
--disable-*)
146 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* |
--enable-*)
155 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
168 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
169 |
--exec |
--exe |
--ex)
170 ac_prev
=exec_prefix
;;
171 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
172 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
173 |
--exec=* |
--exe=* |
--ex=*)
174 exec_prefix
="$ac_optarg" ;;
176 -gas |
--gas |
--ga |
--g)
177 # Obsolete; use --with-gas.
180 -help |
--help |
--hel |
--he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --version print the version of autoconf that created configure
192 Directory and file names:
193 --prefix=PREFIX install architecture-independent files in PREFIX
195 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 --bindir=DIR user executables in DIR [EPREFIX/bin]
198 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
199 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
200 --datadir=DIR read-only architecture-independent data in DIR
202 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
203 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
206 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
207 --includedir=DIR C header files in DIR [PREFIX/include]
208 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
209 --infodir=DIR info documentation in DIR [PREFIX/info]
210 --mandir=DIR man documentation in DIR [PREFIX/man]
211 --srcdir=DIR find the sources in DIR [configure dir or ..]
212 --program-prefix=PREFIX prepend PREFIX to installed program names
213 --program-suffix=SUFFIX append SUFFIX to installed program names
214 --program-transform-name=PROGRAM
215 run sed PROGRAM on installed program names
219 --build=BUILD configure for building on BUILD [BUILD=HOST]
220 --host=HOST configure for HOST [guessed]
221 --target=TARGET configure for TARGET [TARGET=HOST]
222 Features and packages:
223 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
224 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
225 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
226 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
227 --x-includes=DIR X include files are in DIR
228 --x-libraries=DIR X library files are in DIR
230 if test -n "$ac_help"; then
231 echo "--enable and --with options recognized:$ac_help"
235 -host |
--host |
--hos |
--ho)
237 -host=* |
--host=* |
--hos=* |
--ho=*)
240 -includedir |
--includedir |
--includedi |
--included |
--include \
241 |
--includ |
--inclu |
--incl |
--inc)
242 ac_prev
=includedir
;;
243 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
244 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
245 includedir
="$ac_optarg" ;;
247 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
249 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
250 infodir
="$ac_optarg" ;;
252 -libdir |
--libdir |
--libdi |
--libd)
254 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
255 libdir
="$ac_optarg" ;;
257 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
258 |
--libexe |
--libex |
--libe)
259 ac_prev
=libexecdir
;;
260 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
261 |
--libexe=* |
--libex=* |
--libe=*)
262 libexecdir
="$ac_optarg" ;;
264 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
265 |
--localstate |
--localstat |
--localsta |
--localst \
266 |
--locals |
--local |
--loca |
--loc |
--lo)
267 ac_prev
=localstatedir
;;
268 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
269 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
270 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
271 localstatedir
="$ac_optarg" ;;
273 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
275 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
276 mandir
="$ac_optarg" ;;
279 # Obsolete; use --without-fp.
282 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
286 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
287 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
290 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
291 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
292 |
--oldin |
--oldi |
--old |
--ol |
--o)
293 ac_prev
=oldincludedir
;;
294 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
295 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
296 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
297 oldincludedir
="$ac_optarg" ;;
299 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
301 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
302 prefix
="$ac_optarg" ;;
304 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
305 |
--program-pre |
--program-pr |
--program-p)
306 ac_prev
=program_prefix
;;
307 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
308 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
309 program_prefix
="$ac_optarg" ;;
311 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
312 |
--program-suf |
--program-su |
--program-s)
313 ac_prev
=program_suffix
;;
314 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
315 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
316 program_suffix
="$ac_optarg" ;;
318 -program-transform-name |
--program-transform-name \
319 |
--program-transform-nam |
--program-transform-na \
320 |
--program-transform-n |
--program-transform- \
321 |
--program-transform |
--program-transfor \
322 |
--program-transfo |
--program-transf \
323 |
--program-trans |
--program-tran \
324 |
--progr-tra |
--program-tr |
--program-t)
325 ac_prev
=program_transform_name
;;
326 -program-transform-name=* |
--program-transform-name=* \
327 |
--program-transform-nam=* |
--program-transform-na=* \
328 |
--program-transform-n=* |
--program-transform-=* \
329 |
--program-transform=* |
--program-transfor=* \
330 |
--program-transfo=* |
--program-transf=* \
331 |
--program-trans=* |
--program-tran=* \
332 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
333 program_transform_name
="$ac_optarg" ;;
335 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
336 |
-silent |
--silent |
--silen |
--sile |
--sil)
339 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
341 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
343 sbindir
="$ac_optarg" ;;
345 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
346 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
347 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
349 ac_prev
=sharedstatedir
;;
350 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
351 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
352 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
354 sharedstatedir
="$ac_optarg" ;;
356 -site |
--site |
--sit)
358 -site=* |
--site=* |
--sit=*)
361 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
363 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
364 srcdir
="$ac_optarg" ;;
366 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
367 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
368 ac_prev
=sysconfdir
;;
369 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
370 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
371 sysconfdir
="$ac_optarg" ;;
373 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
375 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
376 target
="$ac_optarg" ;;
378 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
381 -version |
--version |
--versio |
--versi |
--vers)
382 echo "configure generated by autoconf version 2.13"
386 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package
=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}='$ac_optarg'" ;;
398 -without-* |
--without-*)
399 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package
=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
408 # Obsolete; use --with-x.
411 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
412 |
--x-incl |
--x-inc |
--x-in |
--x-i)
413 ac_prev
=x_includes
;;
414 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
415 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
416 x_includes
="$ac_optarg" ;;
418 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
419 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
420 ac_prev
=x_libraries
;;
421 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
422 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
423 x_libraries
="$ac_optarg" ;;
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
432 if test "x$nonopt" != xNONE
; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447 # File descriptor usage:
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
473 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
474 |
--no-cr |
--no-c) ;;
475 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
476 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
477 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
484 # Only set these to C if already set. These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
489 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
491 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest
* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
500 ac_unique_file
=main.c
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504 ac_srcdir_defaulted
=yes
505 # Try the directory containing this script, then its parent.
507 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
510 if test ! -r $srcdir/$ac_unique_file; then
514 ac_srcdir_defaulted
=no
516 if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$CONFIG_SITE"; then
527 if test "x$prefix" != xNONE
; then
528 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
530 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
533 for ac_site_file
in $CONFIG_SITE; do
534 if test -r "$ac_site_file"; then
535 echo "loading site script $ac_site_file"
540 if test -r "$cache_file"; then
541 echo "loading cache $cache_file"
544 echo "creating cache $cache_file"
549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550 ac_cpp
='$CPP $CPPFLAGS'
551 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553 cross_compiling
=$ac_cv_prog_cc_cross
557 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
558 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
566 ac_n
= ac_c
='\c' ac_t
=
572 # Extract the first word of "gcc", so it can be a program name with args.
573 set dummy gcc
; ac_word
=$2
574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
575 echo "configure:576: checking for $ac_word" >&5
576 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
577 echo $ac_n "(cached) $ac_c" 1>&6
579 if test -n "$CC"; then
580 ac_cv_prog_CC
="$CC" # Let the user override the test.
582 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
584 for ac_dir
in $ac_dummy; do
585 test -z "$ac_dir" && ac_dir
=.
586 if test -f $ac_dir/$ac_word; then
595 if test -n "$CC"; then
596 echo "$ac_t""$CC" 1>&6
598 echo "$ac_t""no" 1>&6
601 if test -z "$CC"; then
602 # Extract the first word of "cc", so it can be a program name with args.
603 set dummy cc
; ac_word
=$2
604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
605 echo "configure:606: checking for $ac_word" >&5
606 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
607 echo $ac_n "(cached) $ac_c" 1>&6
609 if test -n "$CC"; then
610 ac_cv_prog_CC
="$CC" # Let the user override the test.
612 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
615 for ac_dir
in $ac_dummy; do
616 test -z "$ac_dir" && ac_dir
=.
617 if test -f $ac_dir/$ac_word; then
618 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
627 if test $ac_prog_rejected = yes; then
628 # We found a bogon in the path, so make sure we never use it.
629 set dummy
$ac_cv_prog_CC
631 if test $# -gt 0; then
632 # We chose a different compiler from the bogus one.
633 # However, it has the same basename, so the bogon will be chosen
634 # first if we set CC to just the basename; use the full file name.
636 set dummy
"$ac_dir/$ac_word" "$@"
644 if test -n "$CC"; then
645 echo "$ac_t""$CC" 1>&6
647 echo "$ac_t""no" 1>&6
650 if test -z "$CC"; then
653 # Extract the first word of "cl", so it can be a program name with args.
654 set dummy cl
; ac_word
=$2
655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
656 echo "configure:657: checking for $ac_word" >&5
657 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
658 echo $ac_n "(cached) $ac_c" 1>&6
660 if test -n "$CC"; then
661 ac_cv_prog_CC
="$CC" # Let the user override the test.
663 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
665 for ac_dir
in $ac_dummy; do
666 test -z "$ac_dir" && ac_dir
=.
667 if test -f $ac_dir/$ac_word; then
676 if test -n "$CC"; then
677 echo "$ac_t""$CC" 1>&6
679 echo "$ac_t""no" 1>&6
684 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
688 echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
692 ac_cpp
='$CPP $CPPFLAGS'
693 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
694 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
695 cross_compiling
=$ac_cv_prog_cc_cross
697 cat > conftest.
$ac_ext << EOF
699 #line 700 "configure"
700 #include "confdefs.h"
704 if { (eval echo configure
:705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
705 ac_cv_prog_cc_works
=yes
706 # If we can't run a trivial program, we are probably using a cross compiler.
707 if (.
/conftest
; exit) 2>/dev
/null
; then
708 ac_cv_prog_cc_cross
=no
710 ac_cv_prog_cc_cross
=yes
713 echo "configure: failed program was:" >&5
714 cat conftest.
$ac_ext >&5
715 ac_cv_prog_cc_works
=no
719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
720 ac_cpp
='$CPP $CPPFLAGS'
721 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
722 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
723 cross_compiling
=$ac_cv_prog_cc_cross
725 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
726 if test $ac_cv_prog_cc_works = no
; then
727 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
730 echo "configure:731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
731 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
732 cross_compiling
=$ac_cv_prog_cc_cross
734 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
735 echo "configure:736: checking whether we are using GNU C" >&5
736 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
739 cat > conftest.c
<<EOF
744 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
751 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
753 if test $ac_cv_prog_gcc = yes; then
759 ac_test_CFLAGS
="${CFLAGS+set}"
760 ac_save_CFLAGS
="$CFLAGS"
762 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
763 echo "configure:764: checking whether ${CC-cc} accepts -g" >&5
764 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 echo 'void f(){}' > conftest.c
768 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
777 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
778 if test "$ac_test_CFLAGS" = set; then
779 CFLAGS
="$ac_save_CFLAGS"
780 elif test $ac_cv_prog_cc_g = yes; then
781 if test "$GCC" = yes; then
787 if test "$GCC" = yes; then
794 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
795 echo "configure:796: checking how to run the C preprocessor" >&5
796 # On Suns, sometimes $CPP names a directory.
797 if test -n "$CPP" && test -d "$CPP"; then
800 if test -z "$CPP"; then
801 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 # This must be in double quotes, not single quotes, because CPP may get
805 # substituted into the Makefile and "${CC-cc}" will confuse make.
807 # On the NeXT, cc -E runs the code through the compiler's parser,
808 # not just through cpp.
809 cat > conftest.
$ac_ext <<EOF
810 #line 811 "configure"
811 #include "confdefs.h"
815 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
816 { (eval echo configure
:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
817 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
818 if test -z "$ac_err"; then
822 echo "configure: failed program was:" >&5
823 cat conftest.
$ac_ext >&5
825 CPP
="${CC-cc} -E -traditional-cpp"
826 cat > conftest.
$ac_ext <<EOF
827 #line 828 "configure"
828 #include "confdefs.h"
832 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
833 { (eval echo configure
:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
834 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
835 if test -z "$ac_err"; then
839 echo "configure: failed program was:" >&5
840 cat conftest.
$ac_ext >&5
842 CPP
="${CC-cc} -nologo -E"
843 cat > conftest.
$ac_ext <<EOF
844 #line 845 "configure"
845 #include "confdefs.h"
849 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
850 { (eval echo configure
:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
851 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
852 if test -z "$ac_err"; then
856 echo "configure: failed program was:" >&5
857 cat conftest.
$ac_ext >&5
866 ac_cv_prog_CPP
="$CPP"
868 CPP
="$ac_cv_prog_CPP"
870 ac_cv_prog_CPP
="$CPP"
872 echo "$ac_t""$CPP" 1>&6
874 echo $ac_n "checking for AIX""... $ac_c" 1>&6
875 echo "configure:876: checking for AIX" >&5
876 cat > conftest.
$ac_ext <<EOF
877 #line 878 "configure"
878 #include "confdefs.h"
884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
885 egrep "yes" >/dev
/null
2>&1; then
887 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
888 #define _ALL_SOURCE 1
893 echo "$ac_t""no" 1>&6
898 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
899 echo "configure:900: checking for POSIXized ISC" >&5
900 if test -d /etc
/conf
/kconfig.d
&&
901 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
903 echo "$ac_t""yes" 1>&6
904 ISC
=yes # If later tests want to check for ISC.
905 cat >> confdefs.h
<<\EOF
906 #define _POSIX_SOURCE 1
909 if test "$GCC" = yes; then
915 echo "$ac_t""no" 1>&6
922 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
923 echo "configure:924: checking for ${CC-cc} option to accept ANSI C" >&5
924 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 am_cv_prog_cc_stdc
=no
929 # Don't try gcc -ansi; that turns off useful extensions and
930 # breaks some systems' header files.
932 # Ultrix and OSF/1 -std1
933 # HP-UX -Aa -D_HPUX_SOURCE
934 # SVR4 -Xc -D__EXTENSIONS__
935 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
937 CC
="$ac_save_CC $ac_arg"
938 cat > conftest.
$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
943 #include <sys/types.h>
944 #include <sys/stat.h>
945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
946 struct buf { int x; };
947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
948 static char *e (p, i)
954 static char *f (char * (*g) (char **, int), char **p, ...)
959 s = g (p, va_arg (v,int));
963 int test (int i, double x);
964 struct s1 {int (*f) (int a);};
965 struct s2 {int (*f) (double a);};
966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
976 if { (eval echo configure
:977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
978 am_cv_prog_cc_stdc
="$ac_arg"; break
980 echo "configure: failed program was:" >&5
981 cat conftest.
$ac_ext >&5
989 if test -z "$am_cv_prog_cc_stdc"; then
990 echo "$ac_t""none needed" 1>&6
992 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
994 case "x$am_cv_prog_cc_stdc" in
996 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1001 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1002 if test -f $ac_dir/install-sh
; then
1004 ac_install_sh
="$ac_aux_dir/install-sh -c"
1006 elif test -f $ac_dir/install.sh
; then
1008 ac_install_sh
="$ac_aux_dir/install.sh -c"
1012 if test -z "$ac_aux_dir"; then
1013 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1015 ac_config_guess
=$ac_aux_dir/config.guess
1016 ac_config_sub
=$ac_aux_dir/config.sub
1017 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1020 # Do some error checking and defaulting for the host and target type.
1022 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1025 # 1. You are not allowed to specify --host, --target, and nonopt at the
1027 # 2. Host defaults to nonopt.
1028 # 3. If nonopt is not specified, then host defaults to the current host,
1029 # as determined by config.guess.
1030 # 4. Target and build default to nonopt.
1031 # 5. If nonopt is not specified, then target and build default to host.
1033 # The aliases save the names the user supplied, while $host etc.
1034 # will get canonicalized.
1035 case $host---$target---$nonopt in
1036 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1037 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1041 # Make sure we can run config.sub.
1042 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1043 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1046 echo $ac_n "checking host system type""... $ac_c" 1>&6
1047 echo "configure:1048: checking host system type" >&5
1050 case "$host_alias" in
1054 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1055 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1057 *) host_alias
=$nonopt ;;
1061 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1062 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1063 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1064 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1065 echo "$ac_t""$host" 1>&6
1067 echo $ac_n "checking target system type""... $ac_c" 1>&6
1068 echo "configure:1069: checking target system type" >&5
1070 target_alias
=$target
1071 case "$target_alias" in
1074 NONE
) target_alias
=$host_alias ;;
1075 *) target_alias
=$nonopt ;;
1079 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1080 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1081 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1082 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1083 echo "$ac_t""$target" 1>&6
1085 echo $ac_n "checking build system type""... $ac_c" 1>&6
1086 echo "configure:1087: checking build system type" >&5
1089 case "$build_alias" in
1092 NONE
) build_alias
=$host_alias ;;
1093 *) build_alias
=$nonopt ;;
1097 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1098 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1099 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1100 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1101 echo "$ac_t""$build" 1>&6
1103 test "$host_alias" != "$target_alias" &&
1104 test "$program_prefix$program_suffix$program_transform_name" = \
1106 program_prefix
=${target_alias}-
1110 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether ${MAKE-make} sets \${MAKE}" >&5
1112 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1113 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 cat > conftestmake
<<\EOF
1118 @
echo 'ac_maketemp="${MAKE}"'
1120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1121 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1122 if test -n "$ac_maketemp"; then
1123 eval ac_cv_prog_make_
${ac_make}_set
=yes
1125 eval ac_cv_prog_make_
${ac_make}_set
=no
1129 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1130 echo "$ac_t""yes" 1>&6
1133 echo "$ac_t""no" 1>&6
1134 SET_MAKE
="MAKE=${MAKE-make}"
1137 # Extract the first word of "ranlib", so it can be a program name with args.
1138 set dummy ranlib
; ac_word
=$2
1139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1140 echo "configure:1141: checking for $ac_word" >&5
1141 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 if test -n "$RANLIB"; then
1145 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1147 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1149 for ac_dir
in $ac_dummy; do
1150 test -z "$ac_dir" && ac_dir
=.
1151 if test -f $ac_dir/$ac_word; then
1152 ac_cv_prog_RANLIB
="ranlib"
1157 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1160 RANLIB
="$ac_cv_prog_RANLIB"
1161 if test -n "$RANLIB"; then
1162 echo "$ac_t""$RANLIB" 1>&6
1164 echo "$ac_t""no" 1>&6
1167 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1168 echo "configure:1169: checking for ANSI C header files" >&5
1169 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 cat > conftest.
$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1181 { (eval echo configure
:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1182 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1183 if test -z "$ac_err"; then
1185 ac_cv_header_stdc
=yes
1188 echo "configure: failed program was:" >&5
1189 cat conftest.
$ac_ext >&5
1191 ac_cv_header_stdc
=no
1195 if test $ac_cv_header_stdc = yes; then
1196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1197 cat > conftest.
$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1203 egrep "memchr" >/dev
/null
2>&1; then
1207 ac_cv_header_stdc
=no
1213 if test $ac_cv_header_stdc = yes; then
1214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1215 cat > conftest.
$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1221 egrep "free" >/dev
/null
2>&1; then
1225 ac_cv_header_stdc
=no
1231 if test $ac_cv_header_stdc = yes; then
1232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1233 if test "$cross_compiling" = yes; then
1236 cat > conftest.
$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1240 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1241 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1243 int main () { int i; for (i = 0; i < 256; i++)
1244 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1248 if { (eval echo configure
:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1252 echo "configure: failed program was:" >&5
1253 cat conftest.
$ac_ext >&5
1255 ac_cv_header_stdc
=no
1263 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1264 if test $ac_cv_header_stdc = yes; then
1265 cat >> confdefs.h
<<\EOF
1266 #define STDC_HEADERS 1
1271 echo $ac_n "checking for working const""... $ac_c" 1>&6
1272 echo "configure:1273: checking for working const" >&5
1273 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 cat > conftest.
$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1282 /* Ultrix mips cc rejects this. */
1283 typedef int charset[2]; const charset x;
1284 /* SunOS 4.1.1 cc rejects this. */
1285 char const *const *ccp;
1287 /* NEC SVR4.0.2 mips cc rejects this. */
1288 struct point {int x, y;};
1289 static struct point const zero = {0,0};
1290 /* AIX XL C 1.02.0.0 rejects this.
1291 It does not let you subtract one const X* pointer from another in an arm
1292 of an if-expression whose if-part is not a constant expression */
1293 const char *g = "string";
1294 ccp = &g + (g ? g-g : 0);
1295 /* HPUX 7.0 cc rejects these. */
1298 ccp = (char const *const *) p;
1299 { /* SCO 3.2v4 cc rejects this. */
1301 char const *s = 0 ? (char *) 0 : (char const *) 0;
1305 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1307 const int *foo = &x[0];
1310 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1311 typedef const int *iptr;
1315 { /* AIX XL C 1.02.0.0 rejects this saying
1316 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1317 struct s { int j; const int *ap[3]; };
1318 struct s *b; b->j = 5;
1320 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1326 if { (eval echo configure
:1327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1330 echo "configure: failed program was:" >&5
1331 cat conftest.
$ac_ext >&5
1338 echo "$ac_t""$ac_cv_c_const" 1>&6
1339 if test $ac_cv_c_const = no
; then
1340 cat >> confdefs.h
<<\EOF
1346 echo $ac_n "checking for inline""... $ac_c" 1>&6
1347 echo "configure:1348: checking for inline" >&5
1348 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1352 for ac_kw
in inline __inline__ __inline
; do
1353 cat > conftest.
$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1361 if { (eval echo configure
:1362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1363 ac_cv_c_inline
=$ac_kw; break
1365 echo "configure: failed program was:" >&5
1366 cat conftest.
$ac_ext >&5
1373 echo "$ac_t""$ac_cv_c_inline" 1>&6
1374 case "$ac_cv_c_inline" in
1376 no
) cat >> confdefs.h
<<\EOF
1380 *) cat >> confdefs.h
<<EOF
1381 #define inline $ac_cv_c_inline
1386 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1387 echo "configure:1388: checking for off_t" >&5
1388 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 cat > conftest.
$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1394 #include <sys/types.h>
1400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1401 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1403 ac_cv_type_off_t
=yes
1411 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1412 if test $ac_cv_type_off_t = no
; then
1413 cat >> confdefs.h
<<\EOF
1419 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1420 echo "configure:1421: checking for size_t" >&5
1421 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 cat > conftest.
$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 #include <sys/types.h>
1433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1434 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1436 ac_cv_type_size_t
=yes
1439 ac_cv_type_size_t
=no
1444 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1445 if test $ac_cv_type_size_t = no
; then
1446 cat >> confdefs.h
<<\EOF
1447 #define size_t unsigned
1452 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1453 # for constant arguments. Useless!
1454 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1455 echo "configure:1456: checking for working alloca.h" >&5
1456 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftest.
$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1464 char *p = alloca(2 * sizeof(int));
1467 if { (eval echo configure
:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1469 ac_cv_header_alloca_h
=yes
1471 echo "configure: failed program was:" >&5
1472 cat conftest.
$ac_ext >&5
1474 ac_cv_header_alloca_h
=no
1479 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1480 if test $ac_cv_header_alloca_h = yes; then
1481 cat >> confdefs.h
<<\EOF
1482 #define HAVE_ALLOCA_H 1
1487 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1488 echo "configure:1489: checking for alloca" >&5
1489 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 cat > conftest.
$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1497 # define alloca __builtin_alloca
1500 # include <malloc.h>
1501 # define alloca _alloca
1504 # include <alloca.h>
1509 # ifndef alloca /* predefined by HP cc +Olibcalls */
1518 char *p = (char *) alloca(1);
1521 if { (eval echo configure
:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1523 ac_cv_func_alloca_works
=yes
1525 echo "configure: failed program was:" >&5
1526 cat conftest.
$ac_ext >&5
1528 ac_cv_func_alloca_works
=no
1533 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1534 if test $ac_cv_func_alloca_works = yes; then
1535 cat >> confdefs.h
<<\EOF
1536 #define HAVE_ALLOCA 1
1541 if test $ac_cv_func_alloca_works = no
; then
1542 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1543 # that cause trouble. Some versions do not even contain alloca or
1544 # contain a buggy version. If you still want to use their alloca,
1545 # use ar to extract alloca.o from them instead of compiling alloca.c.
1546 ALLOCA
=alloca.
${ac_objext}
1547 cat >> confdefs.h
<<\EOF
1552 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1553 echo "configure:1554: checking whether alloca needs Cray hooks" >&5
1554 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.
$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 #if defined(CRAY) && ! defined(CRAY2)
1567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1568 egrep "webecray" >/dev
/null
2>&1; then
1579 echo "$ac_t""$ac_cv_os_cray" 1>&6
1580 if test $ac_cv_os_cray = yes; then
1581 for ac_func
in _getb67 GETB67 getb67
; do
1582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1583 echo "configure:1584: checking for $ac_func" >&5
1584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 cat > conftest.
$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1590 /* System header to define __stub macros and hopefully few prototypes,
1591 which can conflict with char $ac_func(); below. */
1593 /* Override any gcc2 internal prototype to avoid an error. */
1594 /* We use char because int might match the return type of a gcc2
1595 builtin and then its argument prototype would still apply. */
1600 /* The GNU C library defines this for functions which it implements
1601 to always fail with ENOSYS. Some functions are actually named
1602 something starting with __ and the normal name is an alias. */
1603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1611 if { (eval echo configure
:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1613 eval "ac_cv_func_$ac_func=yes"
1615 echo "configure: failed program was:" >&5
1616 cat conftest.
$ac_ext >&5
1618 eval "ac_cv_func_$ac_func=no"
1623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1624 echo "$ac_t""yes" 1>&6
1625 cat >> confdefs.h
<<EOF
1626 #define CRAY_STACKSEG_END $ac_func
1631 echo "$ac_t""no" 1>&6
1637 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1638 echo "configure:1639: checking stack direction for C alloca" >&5
1639 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 if test "$cross_compiling" = yes; then
1643 ac_cv_c_stack_direction
=0
1645 cat > conftest.
$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1648 find_stack_direction ()
1650 static char *addr = 0;
1655 return find_stack_direction ();
1658 return (&dummy > addr) ? 1 : -1;
1662 exit (find_stack_direction() < 0);
1665 if { (eval echo configure
:1666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1667 ac_cv_c_stack_direction
=1
1669 echo "configure: failed program was:" >&5
1670 cat conftest.
$ac_ext >&5
1672 ac_cv_c_stack_direction
=-1
1679 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1680 cat >> confdefs.h
<<EOF
1681 #define STACK_DIRECTION $ac_cv_c_stack_direction
1686 for ac_hdr
in unistd.h
1688 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_hdr" >&5
1691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 cat > conftest.
$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1699 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1700 { (eval echo configure
:1701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1701 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1702 if test -z "$ac_err"; then
1704 eval "ac_cv_header_$ac_safe=yes"
1707 echo "configure: failed program was:" >&5
1708 cat conftest.
$ac_ext >&5
1710 eval "ac_cv_header_$ac_safe=no"
1714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1715 echo "$ac_t""yes" 1>&6
1716 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1717 cat >> confdefs.h
<<EOF
1718 #define $ac_tr_hdr 1
1722 echo "$ac_t""no" 1>&6
1726 for ac_func
in getpagesize
1728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1729 echo "configure:1730: checking for $ac_func" >&5
1730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 cat > conftest.
$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $ac_func(); below. */
1739 /* Override any gcc2 internal prototype to avoid an error. */
1740 /* We use char because int might match the return type of a gcc2
1741 builtin and then its argument prototype would still apply. */
1746 /* The GNU C library defines this for functions which it implements
1747 to always fail with ENOSYS. Some functions are actually named
1748 something starting with __ and the normal name is an alias. */
1749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1757 if { (eval echo configure
:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1759 eval "ac_cv_func_$ac_func=yes"
1761 echo "configure: failed program was:" >&5
1762 cat conftest.
$ac_ext >&5
1764 eval "ac_cv_func_$ac_func=no"
1769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1770 echo "$ac_t""yes" 1>&6
1771 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1772 cat >> confdefs.h
<<EOF
1773 #define $ac_tr_func 1
1777 echo "$ac_t""no" 1>&6
1781 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1782 echo "configure:1783: checking for working mmap" >&5
1783 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 if test "$cross_compiling" = yes; then
1787 ac_cv_func_mmap_fixed_mapped
=no
1789 cat > conftest.
$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1793 /* Thanks to Mike Haertel and Jim Avera for this test.
1794 Here is a matrix of mmap possibilities:
1795 mmap private not fixed
1796 mmap private fixed at somewhere currently unmapped
1797 mmap private fixed at somewhere already mapped
1798 mmap shared not fixed
1799 mmap shared fixed at somewhere currently unmapped
1800 mmap shared fixed at somewhere already mapped
1801 For private mappings, we should verify that changes cannot be read()
1802 back from the file, nor mmap's back from the file at a different
1803 address. (There have been systems where private was not correctly
1804 implemented like the infamous i386 svr4.0, and systems where the
1805 VM page cache was not coherent with the filesystem buffer cache
1806 like early versions of FreeBSD and possibly contemporary NetBSD.)
1807 For shared mappings, we should conversely verify that changes get
1808 propogated back to all the places they're supposed to be.
1810 Grep wants private fixed already mapped.
1811 The main things grep needs to know about mmap are:
1812 * does it exist and is it safe to write into the mmap'd area
1813 * how to use it (BSD variants) */
1814 #include <sys/types.h>
1816 #include <sys/mman.h>
1818 /* This mess was copied from the GNU getpagesize.h. */
1819 #ifndef HAVE_GETPAGESIZE
1820 # ifdef HAVE_UNISTD_H
1821 # include <unistd.h>
1824 /* Assume that all systems that can run configure have sys/param.h. */
1825 # ifndef HAVE_SYS_PARAM_H
1826 # define HAVE_SYS_PARAM_H 1
1829 # ifdef _SC_PAGESIZE
1830 # define getpagesize() sysconf(_SC_PAGESIZE)
1831 # else /* no _SC_PAGESIZE */
1832 # ifdef HAVE_SYS_PARAM_H
1833 # include <sys/param.h>
1834 # ifdef EXEC_PAGESIZE
1835 # define getpagesize() EXEC_PAGESIZE
1836 # else /* no EXEC_PAGESIZE */
1838 # define getpagesize() NBPG * CLSIZE
1841 # endif /* no CLSIZE */
1842 # else /* no NBPG */
1844 # define getpagesize() NBPC
1845 # else /* no NBPC */
1847 # define getpagesize() PAGESIZE
1848 # endif /* PAGESIZE */
1849 # endif /* no NBPC */
1850 # endif /* no NBPG */
1851 # endif /* no EXEC_PAGESIZE */
1852 # else /* no HAVE_SYS_PARAM_H */
1853 # define getpagesize() 8192 /* punt totally */
1854 # endif /* no HAVE_SYS_PARAM_H */
1855 # endif /* no _SC_PAGESIZE */
1857 #endif /* no HAVE_GETPAGESIZE */
1860 extern "C" { void *malloc(unsigned); }
1868 char *data, *data2, *data3;
1872 pagesize = getpagesize();
1875 * First, make a file with some known garbage in it.
1877 data = malloc(pagesize);
1880 for (i = 0; i < pagesize; ++i)
1881 *(data + i) = rand();
1883 fd = creat("conftestmmap", 0600);
1886 if (write(fd, data, pagesize) != pagesize)
1891 * Next, try to mmap the file at a fixed address which
1892 * already has something else allocated at it. If we can,
1893 * also make sure that we see the same garbage.
1895 fd = open("conftestmmap", O_RDWR);
1898 data2 = malloc(2 * pagesize);
1901 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1902 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1903 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1905 for (i = 0; i < pagesize; ++i)
1906 if (*(data + i) != *(data2 + i))
1910 * Finally, make sure that changes to the mapped area
1911 * do not percolate back to the file as seen by read().
1912 * (This is a bug on some variants of i386 svr4.0.)
1914 for (i = 0; i < pagesize; ++i)
1915 *(data2 + i) = *(data2 + i) + 1;
1916 data3 = malloc(pagesize);
1919 if (read(fd, data3, pagesize) != pagesize)
1921 for (i = 0; i < pagesize; ++i)
1922 if (*(data + i) != *(data3 + i))
1925 unlink("conftestmmap");
1930 if { (eval echo configure
:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1932 ac_cv_func_mmap_fixed_mapped
=yes
1934 echo "configure: failed program was:" >&5
1935 cat conftest.
$ac_ext >&5
1937 ac_cv_func_mmap_fixed_mapped
=no
1944 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1945 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1946 cat >> confdefs.h
<<\EOF
1953 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1954 unistd.h values.h sys
/param.h
1956 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1958 echo "configure:1959: checking for $ac_hdr" >&5
1959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 cat > conftest.
$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1967 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1968 { (eval echo configure
:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1969 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1970 if test -z "$ac_err"; then
1972 eval "ac_cv_header_$ac_safe=yes"
1975 echo "configure: failed program was:" >&5
1976 cat conftest.
$ac_ext >&5
1978 eval "ac_cv_header_$ac_safe=no"
1982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1983 echo "$ac_t""yes" 1>&6
1984 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1985 cat >> confdefs.h
<<EOF
1986 #define $ac_tr_hdr 1
1990 echo "$ac_t""no" 1>&6
1994 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1995 __argz_count __argz_stringify __argz_next
1997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1998 echo "configure:1999: checking for $ac_func" >&5
1999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 /* System header to define __stub macros and hopefully few prototypes,
2006 which can conflict with char $ac_func(); below. */
2008 /* Override any gcc2 internal prototype to avoid an error. */
2009 /* We use char because int might match the return type of a gcc2
2010 builtin and then its argument prototype would still apply. */
2015 /* The GNU C library defines this for functions which it implements
2016 to always fail with ENOSYS. Some functions are actually named
2017 something starting with __ and the normal name is an alias. */
2018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2026 if { (eval echo configure
:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2028 eval "ac_cv_func_$ac_func=yes"
2030 echo "configure: failed program was:" >&5
2031 cat conftest.
$ac_ext >&5
2033 eval "ac_cv_func_$ac_func=no"
2038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2039 echo "$ac_t""yes" 1>&6
2040 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2041 cat >> confdefs.h
<<EOF
2042 #define $ac_tr_func 1
2046 echo "$ac_t""no" 1>&6
2051 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2052 for ac_func
in stpcpy
2054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2055 echo "configure:2056: checking for $ac_func" >&5
2056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2059 cat > conftest.
$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2062 /* System header to define __stub macros and hopefully few prototypes,
2063 which can conflict with char $ac_func(); below. */
2065 /* Override any gcc2 internal prototype to avoid an error. */
2066 /* We use char because int might match the return type of a gcc2
2067 builtin and then its argument prototype would still apply. */
2072 /* The GNU C library defines this for functions which it implements
2073 to always fail with ENOSYS. Some functions are actually named
2074 something starting with __ and the normal name is an alias. */
2075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2083 if { (eval echo configure
:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2085 eval "ac_cv_func_$ac_func=yes"
2087 echo "configure: failed program was:" >&5
2088 cat conftest.
$ac_ext >&5
2090 eval "ac_cv_func_$ac_func=no"
2095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2096 echo "$ac_t""yes" 1>&6
2097 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2098 cat >> confdefs.h
<<EOF
2099 #define $ac_tr_func 1
2103 echo "$ac_t""no" 1>&6
2108 if test "${ac_cv_func_stpcpy}" = "yes"; then
2109 cat >> confdefs.h
<<\EOF
2110 #define HAVE_STPCPY 1
2115 if test $ac_cv_header_locale_h = yes; then
2116 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2117 echo "configure:2118: checking for LC_MESSAGES" >&5
2118 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2129 if { (eval echo configure
:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2131 am_cv_val_LC_MESSAGES
=yes
2133 echo "configure: failed program was:" >&5
2134 cat conftest.
$ac_ext >&5
2136 am_cv_val_LC_MESSAGES
=no
2141 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2142 if test $am_cv_val_LC_MESSAGES = yes; then
2143 cat >> confdefs.h
<<\EOF
2144 #define HAVE_LC_MESSAGES 1
2149 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2150 echo "configure:2151: checking whether NLS is requested" >&5
2151 # Check whether --enable-nls or --disable-nls was given.
2152 if test "${enable_nls+set}" = set; then
2153 enableval
="$enable_nls"
2159 echo "$ac_t""$USE_NLS" 1>&6
2162 USE_INCLUDED_LIBINTL
=no
2164 if test "$USE_NLS" = "yes"; then
2165 cat >> confdefs.h
<<\EOF
2166 #define ENABLE_NLS 1
2169 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2170 echo "configure:2171: checking whether included gettext is requested" >&5
2171 # Check whether --with-included-gettext or --without-included-gettext was given.
2172 if test "${with_included_gettext+set}" = set; then
2173 withval
="$with_included_gettext"
2174 nls_cv_force_use_gnu_gettext
=$withval
2176 nls_cv_force_use_gnu_gettext
=no
2179 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2181 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2182 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2184 nls_cv_header_libgt
=
2187 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2189 echo "configure:2190: checking for libintl.h" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.
$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2196 #include <libintl.h>
2198 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure
:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2203 eval "ac_cv_header_$ac_safe=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.
$ac_ext >&5
2209 eval "ac_cv_header_$ac_safe=no"
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2216 echo "configure:2217: checking for gettext in libc" >&5
2217 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.
$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 #include <libintl.h>
2225 return (int) gettext ("")
2228 if { (eval echo configure
:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2230 gt_cv_func_gettext_libc
=yes
2232 echo "configure: failed program was:" >&5
2233 cat conftest.
$ac_ext >&5
2235 gt_cv_func_gettext_libc
=no
2240 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2242 if test "$gt_cv_func_gettext_libc" != "yes"; then
2243 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2244 echo "configure:2245: checking for bindtextdomain in -lintl" >&5
2245 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2249 ac_save_LIBS
="$LIBS"
2251 cat > conftest.
$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 /* Override any gcc2 internal prototype to avoid an error. */
2255 /* We use char because int might match the return type of a gcc2
2256 builtin and then its argument prototype would still apply. */
2257 char bindtextdomain();
2263 if { (eval echo configure
:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2265 eval "ac_cv_lib_$ac_lib_var=yes"
2267 echo "configure: failed program was:" >&5
2268 cat conftest.
$ac_ext >&5
2270 eval "ac_cv_lib_$ac_lib_var=no"
2273 LIBS
="$ac_save_LIBS"
2276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2278 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2279 echo "configure:2280: checking for gettext in libintl" >&5
2280 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 cat > conftest.
$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2288 return (int) gettext ("")
2291 if { (eval echo configure
:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2293 gt_cv_func_gettext_libintl
=yes
2295 echo "configure: failed program was:" >&5
2296 cat conftest.
$ac_ext >&5
2298 gt_cv_func_gettext_libintl
=no
2303 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2305 echo "$ac_t""no" 1>&6
2310 if test "$gt_cv_func_gettext_libc" = "yes" \
2311 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2312 cat >> confdefs.h
<<\EOF
2313 #define HAVE_GETTEXT 1
2316 # Extract the first word of "msgfmt", so it can be a program name with args.
2317 set dummy msgfmt
; ac_word
=$2
2318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2319 echo "configure:2320: checking for $ac_word" >&5
2320 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2325 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2328 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2329 for ac_dir
in $PATH; do
2330 test -z "$ac_dir" && ac_dir
=.
2331 if test -f $ac_dir/$ac_word; then
2332 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2333 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2339 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2343 MSGFMT
="$ac_cv_path_MSGFMT"
2344 if test -n "$MSGFMT"; then
2345 echo "$ac_t""$MSGFMT" 1>&6
2347 echo "$ac_t""no" 1>&6
2349 if test "$MSGFMT" != "no"; then
2350 for ac_func
in dcgettext
2352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_func" >&5
2354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.
$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 /* System header to define __stub macros and hopefully few prototypes,
2361 which can conflict with char $ac_func(); below. */
2363 /* Override any gcc2 internal prototype to avoid an error. */
2364 /* We use char because int might match the return type of a gcc2
2365 builtin and then its argument prototype would still apply. */
2370 /* The GNU C library defines this for functions which it implements
2371 to always fail with ENOSYS. Some functions are actually named
2372 something starting with __ and the normal name is an alias. */
2373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2381 if { (eval echo configure
:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2383 eval "ac_cv_func_$ac_func=yes"
2385 echo "configure: failed program was:" >&5
2386 cat conftest.
$ac_ext >&5
2388 eval "ac_cv_func_$ac_func=no"
2393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
2395 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2396 cat >> confdefs.h
<<EOF
2397 #define $ac_tr_func 1
2401 echo "$ac_t""no" 1>&6
2405 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2406 set dummy gmsgfmt
; ac_word
=$2
2407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2408 echo "configure:2409: checking for $ac_word" >&5
2409 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2414 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2417 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2420 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2422 for ac_dir
in $ac_dummy; do
2423 test -z "$ac_dir" && ac_dir
=.
2424 if test -f $ac_dir/$ac_word; then
2425 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2430 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2434 GMSGFMT
="$ac_cv_path_GMSGFMT"
2435 if test -n "$GMSGFMT"; then
2436 echo "$ac_t""$GMSGFMT" 1>&6
2438 echo "$ac_t""no" 1>&6
2441 # Extract the first word of "xgettext", so it can be a program name with args.
2442 set dummy xgettext
; ac_word
=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2453 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2454 for ac_dir
in $PATH; do
2455 test -z "$ac_dir" && ac_dir
=.
2456 if test -f $ac_dir/$ac_word; then
2457 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2458 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2464 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2468 XGETTEXT
="$ac_cv_path_XGETTEXT"
2469 if test -n "$XGETTEXT"; then
2470 echo "$ac_t""$XGETTEXT" 1>&6
2472 echo "$ac_t""no" 1>&6
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2480 extern int _nl_msg_cat_cntr;
2481 return _nl_msg_cat_cntr
2484 if { (eval echo configure
:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2489 echo "configure: failed program was:" >&5
2490 cat conftest.
$ac_ext >&5
2501 echo "$ac_t""no" 1>&6
2506 if test "$CATOBJEXT" = "NONE"; then
2507 nls_cv_use_gnu_gettext
=yes
2511 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2512 INTLOBJS
="\$(GETTOBJS)"
2513 # Extract the first word of "msgfmt", so it can be a program name with args.
2514 set dummy msgfmt
; ac_word
=$2
2515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2516 echo "configure:2517: checking for $ac_word" >&5
2517 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2522 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2525 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2526 for ac_dir
in $PATH; do
2527 test -z "$ac_dir" && ac_dir
=.
2528 if test -f $ac_dir/$ac_word; then
2529 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2530 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2536 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2540 MSGFMT
="$ac_cv_path_MSGFMT"
2541 if test -n "$MSGFMT"; then
2542 echo "$ac_t""$MSGFMT" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2548 set dummy gmsgfmt
; ac_word
=$2
2549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_word" >&5
2551 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2556 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2559 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2562 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2564 for ac_dir
in $ac_dummy; do
2565 test -z "$ac_dir" && ac_dir
=.
2566 if test -f $ac_dir/$ac_word; then
2567 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2572 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2576 GMSGFMT
="$ac_cv_path_GMSGFMT"
2577 if test -n "$GMSGFMT"; then
2578 echo "$ac_t""$GMSGFMT" 1>&6
2580 echo "$ac_t""no" 1>&6
2583 # Extract the first word of "xgettext", so it can be a program name with args.
2584 set dummy xgettext
; ac_word
=$2
2585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_word" >&5
2587 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2592 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2595 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2596 for ac_dir
in $PATH; do
2597 test -z "$ac_dir" && ac_dir
=.
2598 if test -f $ac_dir/$ac_word; then
2599 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2600 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2606 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2610 XGETTEXT
="$ac_cv_path_XGETTEXT"
2611 if test -n "$XGETTEXT"; then
2612 echo "$ac_t""$XGETTEXT" 1>&6
2614 echo "$ac_t""no" 1>&6
2618 USE_INCLUDED_LIBINTL
=yes
2622 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2624 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2625 nls_cv_header_intl
=libintl.h
2626 nls_cv_header_libgt
=libgettext.h
2629 if test "$XGETTEXT" != ":"; then
2630 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2633 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2638 # We need to process the po/ directory.
2642 nls_cv_header_intl
=libintl.h
2643 nls_cv_header_libgt
=libgettext.h
2646 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2647 # because some of the sources are only built for this goal.
2648 if test "$PACKAGE" = gettext; then
2650 USE_INCLUDED_LIBINTL
=yes
2653 for lang
in $ALL_LINGUAS; do
2654 GMOFILES
="$GMOFILES $lang.gmo"
2655 POFILES
="$POFILES $lang.po"
2671 if test "x$CATOBJEXT" != "x"; then
2672 if test "x$ALL_LINGUAS" = "x"; then
2675 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2676 echo "configure:2677: checking for catalogs to be installed" >&5
2678 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2679 case "$ALL_LINGUAS" in
2680 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2683 LINGUAS
=$NEW_LINGUAS
2684 echo "$ac_t""$LINGUAS" 1>&6
2687 if test -n "$LINGUAS"; then
2688 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2692 if test $ac_cv_header_locale_h = yes; then
2693 INCLUDE_LOCALE_H
="#include <locale.h>"
2696 /* The system does not provide the header <locale.h>. Take care yourself. */"
2700 if test -f $srcdir/po2tbl.
sed.
in; then
2701 if test "$CATOBJEXT" = ".cat"; then
2702 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2703 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2704 echo "configure:2705: checking for linux/version.h" >&5
2705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 cat > conftest.
$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 #include <linux/version.h>
2713 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2714 { (eval echo configure
:2715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2715 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2716 if test -z "$ac_err"; then
2718 eval "ac_cv_header_$ac_safe=yes"
2721 echo "configure: failed program was:" >&5
2722 cat conftest.
$ac_ext >&5
2724 eval "ac_cv_header_$ac_safe=no"
2728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2729 echo "$ac_t""yes" 1>&6
2732 echo "$ac_t""no" 1>&6
2737 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2739 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2740 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2743 if test "$PACKAGE" = "gettext"; then
2753 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2759 if test -d $srcdir/po
; then
2760 test -d po || mkdir po
2761 if test "x$srcdir" != "x."; then
2762 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2763 posrcprefix
="$srcdir/"
2765 posrcprefix
="../$srcdir/"
2771 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2772 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2781 configdirs
="doc testsuite"
2784 .
${srcdir}/configure.
host
2786 .
${srcdir}/configure.tgt
2789 # Find a good install program. We prefer a C program (faster),
2790 # so one script is as good as another. But avoid the broken or
2791 # incompatible versions:
2792 # SysV /etc/install, /usr/sbin/install
2793 # SunOS /usr/etc/install
2794 # IRIX /sbin/install
2796 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2797 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2798 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2799 # ./install, which can be erroneously created by make from ./install.sh.
2800 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2801 echo "configure:2802: checking for a BSD compatible install" >&5
2802 if test -z "$INSTALL"; then
2803 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2807 for ac_dir
in $PATH; do
2808 # Account for people who put trailing slashes in PATH elements.
2810 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2812 # OSF1 and SCO ODT 3.0 have their own names for install.
2813 # Don't use installbsd from OSF since it installs stuff as root
2815 for ac_prog
in ginstall scoinst
install; do
2816 if test -f $ac_dir/$ac_prog; then
2817 if test $ac_prog = install &&
2818 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2819 # AIX install. It has an incompatible calling convention.
2822 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2833 if test "${ac_cv_path_install+set}" = set; then
2834 INSTALL
="$ac_cv_path_install"
2836 # As a last resort, use the slow shell script. We don't cache a
2837 # path for INSTALL within a source directory, because that will
2838 # break other packages using the cache if that directory is
2839 # removed, or if the path is relative.
2840 INSTALL
="$ac_install_sh"
2843 echo "$ac_t""$INSTALL" 1>&6
2845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2846 # It thinks the first close brace ends the variable substitution.
2847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2849 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2851 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2853 if test $host != $build; then
2854 ac_tool_prefix
=${host_alias}-
2859 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2860 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2862 echo "configure:2863: checking for $ac_word" >&5
2863 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2864 echo $ac_n "(cached) $ac_c" 1>&6
2866 if test -n "$AR"; then
2867 ac_cv_prog_AR
="$AR" # Let the user override the test.
2869 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2871 for ac_dir
in $ac_dummy; do
2872 test -z "$ac_dir" && ac_dir
=.
2873 if test -f $ac_dir/$ac_word; then
2874 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2879 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2883 if test -n "$AR"; then
2884 echo "$ac_t""$AR" 1>&6
2886 echo "$ac_t""no" 1>&6
2891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2892 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2894 echo "configure:2895: checking for $ac_word" >&5
2895 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 if test -n "$RANLIB"; then
2899 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2903 for ac_dir
in $ac_dummy; do
2904 test -z "$ac_dir" && ac_dir
=.
2905 if test -f $ac_dir/$ac_word; then
2906 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2913 RANLIB
="$ac_cv_prog_RANLIB"
2914 if test -n "$RANLIB"; then
2915 echo "$ac_t""$RANLIB" 1>&6
2917 echo "$ac_t""no" 1>&6
2921 if test -z "$ac_cv_prog_RANLIB"; then
2922 if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "ranlib", so it can be a program name with args.
2924 set dummy ranlib
; ac_word
=$2
2925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_word" >&5
2927 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 if test -n "$RANLIB"; then
2931 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2933 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2935 for ac_dir
in $ac_dummy; do
2936 test -z "$ac_dir" && ac_dir
=.
2937 if test -f $ac_dir/$ac_word; then
2938 ac_cv_prog_RANLIB
="ranlib"
2943 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2946 RANLIB
="$ac_cv_prog_RANLIB"
2947 if test -n "$RANLIB"; then
2948 echo "$ac_t""$RANLIB" 1>&6
2950 echo "$ac_t""no" 1>&6
2958 for ac_prog
in 'bison -y' byacc
2960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy
$ac_prog; ac_word
=$2
2962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2963 echo "configure:2964: checking for $ac_word" >&5
2964 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 if test -n "$YACC"; then
2968 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2970 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2972 for ac_dir
in $ac_dummy; do
2973 test -z "$ac_dir" && ac_dir
=.
2974 if test -f $ac_dir/$ac_word; then
2975 ac_cv_prog_YACC
="$ac_prog"
2982 YACC
="$ac_cv_prog_YACC"
2983 if test -n "$YACC"; then
2984 echo "$ac_t""$YACC" 1>&6
2986 echo "$ac_t""no" 1>&6
2989 test -n "$YACC" && break
2991 test -n "$YACC" || YACC
="yacc"
2994 if test "$program_transform_name" = s
,x
,x
,; then
2995 program_transform_name
=
2997 # Double any \ or $. echo might interpret backslashes.
2998 cat <<\EOF_SED
> conftestsed
2999 s
,\\,\\\\,g
; s
,\$
,$$
,g
3001 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3004 test "$program_prefix" != NONE
&&
3005 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3006 # Use a double $ so make ignores it.
3007 test "$program_suffix" != NONE
&&
3008 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3010 # sed with no file args requires a program.
3011 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3014 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3015 echo "configure:3016: checking return type of signal handlers" >&5
3016 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 cat > conftest.
$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3022 #include <sys/types.h>
3028 extern "C" void (*signal (int, void (*)(int)))(int);
3030 void (*signal ()) ();
3037 if { (eval echo configure
:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3039 ac_cv_type_signal
=void
3041 echo "configure: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3044 ac_cv_type_signal
=int
3049 echo "$ac_t""$ac_cv_type_signal" 1>&6
3050 cat >> confdefs.h
<<EOF
3051 #define RETSIGTYPE $ac_cv_type_signal
3056 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3057 echo "configure:3058: checking for ANSI C header files" >&5
3058 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3061 cat > conftest.
$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3069 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3070 { (eval echo configure
:3071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3071 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3072 if test -z "$ac_err"; then
3074 ac_cv_header_stdc
=yes
3077 echo "configure: failed program was:" >&5
3078 cat conftest.
$ac_ext >&5
3080 ac_cv_header_stdc
=no
3084 if test $ac_cv_header_stdc = yes; then
3085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3086 cat > conftest.
$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092 egrep "memchr" >/dev
/null
2>&1; then
3096 ac_cv_header_stdc
=no
3102 if test $ac_cv_header_stdc = yes; then
3103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3104 cat > conftest.
$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3110 egrep "free" >/dev
/null
2>&1; then
3114 ac_cv_header_stdc
=no
3120 if test $ac_cv_header_stdc = yes; then
3121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3122 if test "$cross_compiling" = yes; then
3125 cat > conftest.
$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3129 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3130 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3132 int main () { int i; for (i = 0; i < 256; i++)
3133 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3137 if { (eval echo configure
:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3141 echo "configure: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3144 ac_cv_header_stdc
=no
3152 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3153 if test $ac_cv_header_stdc = yes; then
3154 cat >> confdefs.h
<<\EOF
3155 #define STDC_HEADERS 1
3161 for ac_hdr
in ctype.h curses.h endian.h link.h \
3162 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3163 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h \
3164 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3165 wchar.h wctype.h asm
/debugreg.h
3167 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3169 echo "configure:3170: checking for $ac_hdr" >&5
3170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3173 cat > conftest.
$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3178 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3179 { (eval echo configure
:3180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3180 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3181 if test -z "$ac_err"; then
3183 eval "ac_cv_header_$ac_safe=yes"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.
$ac_ext >&5
3189 eval "ac_cv_header_$ac_safe=no"
3193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3196 cat >> confdefs.h
<<EOF
3197 #define $ac_tr_hdr 1
3201 echo "$ac_t""no" 1>&6
3205 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3206 echo "configure:3207: checking whether stat file-mode macros are broken" >&5
3207 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 cat > conftest.
$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <sys/types.h>
3214 #include <sys/stat.h>
3216 #if defined(S_ISBLK) && defined(S_IFDIR)
3217 # if S_ISBLK (S_IFDIR)
3222 #if defined(S_ISBLK) && defined(S_IFCHR)
3223 # if S_ISBLK (S_IFCHR)
3228 #if defined(S_ISLNK) && defined(S_IFREG)
3229 # if S_ISLNK (S_IFREG)
3234 #if defined(S_ISSOCK) && defined(S_IFREG)
3235 # if S_ISSOCK (S_IFREG)
3241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3242 egrep "You lose" >/dev
/null
2>&1; then
3244 ac_cv_header_stat_broken
=yes
3247 ac_cv_header_stat_broken
=no
3253 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3254 if test $ac_cv_header_stat_broken = yes; then
3255 cat >> confdefs.h
<<\EOF
3256 #define STAT_MACROS_BROKEN 1
3262 echo $ac_n "checking for working const""... $ac_c" 1>&6
3263 echo "configure:3264: checking for working const" >&5
3264 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.
$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3273 /* Ultrix mips cc rejects this. */
3274 typedef int charset[2]; const charset x;
3275 /* SunOS 4.1.1 cc rejects this. */
3276 char const *const *ccp;
3278 /* NEC SVR4.0.2 mips cc rejects this. */
3279 struct point {int x, y;};
3280 static struct point const zero = {0,0};
3281 /* AIX XL C 1.02.0.0 rejects this.
3282 It does not let you subtract one const X* pointer from another in an arm
3283 of an if-expression whose if-part is not a constant expression */
3284 const char *g = "string";
3285 ccp = &g + (g ? g-g : 0);
3286 /* HPUX 7.0 cc rejects these. */
3289 ccp = (char const *const *) p;
3290 { /* SCO 3.2v4 cc rejects this. */
3292 char const *s = 0 ? (char *) 0 : (char const *) 0;
3296 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3298 const int *foo = &x[0];
3301 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3302 typedef const int *iptr;
3306 { /* AIX XL C 1.02.0.0 rejects this saying
3307 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3308 struct s { int j; const int *ap[3]; };
3309 struct s *b; b->j = 5;
3311 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3317 if { (eval echo configure
:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3321 echo "configure: failed program was:" >&5
3322 cat conftest.
$ac_ext >&5
3329 echo "$ac_t""$ac_cv_c_const" 1>&6
3330 if test $ac_cv_c_const = no
; then
3331 cat >> confdefs.h
<<\EOF
3338 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc
3340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3341 echo "configure:3342: checking for $ac_func" >&5
3342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3345 cat > conftest.
$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 /* System header to define __stub macros and hopefully few prototypes,
3349 which can conflict with char $ac_func(); below. */
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3358 /* The GNU C library defines this for functions which it implements
3359 to always fail with ENOSYS. Some functions are actually named
3360 something starting with __ and the normal name is an alias. */
3361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3369 if { (eval echo configure
:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3371 eval "ac_cv_func_$ac_func=yes"
3373 echo "configure: failed program was:" >&5
3374 cat conftest.
$ac_ext >&5
3376 eval "ac_cv_func_$ac_func=no"
3381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3383 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3384 cat >> confdefs.h
<<EOF
3385 #define $ac_tr_func 1
3389 echo "$ac_t""no" 1>&6
3393 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3394 # for constant arguments. Useless!
3395 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3396 echo "configure:3397: checking for working alloca.h" >&5
3397 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3405 char *p = alloca(2 * sizeof(int));
3408 if { (eval echo configure
:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3410 ac_cv_header_alloca_h
=yes
3412 echo "configure: failed program was:" >&5
3413 cat conftest.
$ac_ext >&5
3415 ac_cv_header_alloca_h
=no
3420 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3421 if test $ac_cv_header_alloca_h = yes; then
3422 cat >> confdefs.h
<<\EOF
3423 #define HAVE_ALLOCA_H 1
3428 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3429 echo "configure:3430: checking for alloca" >&5
3430 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3438 # define alloca __builtin_alloca
3441 # include <malloc.h>
3442 # define alloca _alloca
3445 # include <alloca.h>
3450 # ifndef alloca /* predefined by HP cc +Olibcalls */
3459 char *p = (char *) alloca(1);
3462 if { (eval echo configure
:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3464 ac_cv_func_alloca_works
=yes
3466 echo "configure: failed program was:" >&5
3467 cat conftest.
$ac_ext >&5
3469 ac_cv_func_alloca_works
=no
3474 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3475 if test $ac_cv_func_alloca_works = yes; then
3476 cat >> confdefs.h
<<\EOF
3477 #define HAVE_ALLOCA 1
3482 if test $ac_cv_func_alloca_works = no
; then
3483 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3484 # that cause trouble. Some versions do not even contain alloca or
3485 # contain a buggy version. If you still want to use their alloca,
3486 # use ar to extract alloca.o from them instead of compiling alloca.c.
3487 ALLOCA
=alloca.
${ac_objext}
3488 cat >> confdefs.h
<<\EOF
3493 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3494 echo "configure:3495: checking whether alloca needs Cray hooks" >&5
3495 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3498 cat > conftest.
$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #if defined(CRAY) && ! defined(CRAY2)
3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3509 egrep "webecray" >/dev
/null
2>&1; then
3520 echo "$ac_t""$ac_cv_os_cray" 1>&6
3521 if test $ac_cv_os_cray = yes; then
3522 for ac_func
in _getb67 GETB67 getb67
; do
3523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3524 echo "configure:3525: checking for $ac_func" >&5
3525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 cat > conftest.
$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3531 /* System header to define __stub macros and hopefully few prototypes,
3532 which can conflict with char $ac_func(); below. */
3534 /* Override any gcc2 internal prototype to avoid an error. */
3535 /* We use char because int might match the return type of a gcc2
3536 builtin and then its argument prototype would still apply. */
3541 /* The GNU C library defines this for functions which it implements
3542 to always fail with ENOSYS. Some functions are actually named
3543 something starting with __ and the normal name is an alias. */
3544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3552 if { (eval echo configure
:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3554 eval "ac_cv_func_$ac_func=yes"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3559 eval "ac_cv_func_$ac_func=no"
3564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3565 echo "$ac_t""yes" 1>&6
3566 cat >> confdefs.h
<<EOF
3567 #define CRAY_STACKSEG_END $ac_func
3572 echo "$ac_t""no" 1>&6
3578 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3579 echo "configure:3580: checking stack direction for C alloca" >&5
3580 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 if test "$cross_compiling" = yes; then
3584 ac_cv_c_stack_direction
=0
3586 cat > conftest.
$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 find_stack_direction ()
3591 static char *addr = 0;
3596 return find_stack_direction ();
3599 return (&dummy > addr) ? 1 : -1;
3603 exit (find_stack_direction() < 0);
3606 if { (eval echo configure
:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3608 ac_cv_c_stack_direction
=1
3610 echo "configure: failed program was:" >&5
3611 cat conftest.
$ac_ext >&5
3613 ac_cv_c_stack_direction
=-1
3620 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3621 cat >> confdefs.h
<<EOF
3622 #define STACK_DIRECTION $ac_cv_c_stack_direction
3628 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3629 echo "configure:3630: checking whether malloc must be declared" >&5
3630 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 cat > conftest.
$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3638 #ifdef HAVE_STRING_H
3641 #ifdef HAVE_STRINGS_H
3642 #include <strings.h>
3645 #ifdef HAVE_STDLIB_H
3648 #ifdef HAVE_UNISTD_H
3652 char *(*pfn) = (char *(*)) malloc
3655 if { (eval echo configure
:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657 bfd_cv_decl_needed_malloc
=no
3659 echo "configure: failed program was:" >&5
3660 cat conftest.
$ac_ext >&5
3662 bfd_cv_decl_needed_malloc
=yes
3667 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3668 if test $bfd_cv_decl_needed_malloc = yes; then
3669 cat >> confdefs.h
<<\EOF
3670 #define NEED_DECLARATION_MALLOC 1
3675 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3676 echo "configure:3677: checking whether realloc must be declared" >&5
3677 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+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 *(*)) realloc
3702 if { (eval echo configure
:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3704 bfd_cv_decl_needed_realloc
=no
3706 echo "configure: failed program was:" >&5
3707 cat conftest.
$ac_ext >&5
3709 bfd_cv_decl_needed_realloc
=yes
3714 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3715 if test $bfd_cv_decl_needed_realloc = yes; then
3716 cat >> confdefs.h
<<\EOF
3717 #define NEED_DECLARATION_REALLOC 1
3722 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3723 echo "configure:3724: checking whether free must be declared" >&5
3724 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+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 *(*)) free
3749 if { (eval echo configure
:3750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751 bfd_cv_decl_needed_free
=no
3753 echo "configure: failed program was:" >&5
3754 cat conftest.
$ac_ext >&5
3756 bfd_cv_decl_needed_free
=yes
3761 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3762 if test $bfd_cv_decl_needed_free = yes; then
3763 cat >> confdefs.h
<<\EOF
3764 #define NEED_DECLARATION_FREE 1
3769 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3770 echo "configure:3771: checking whether strerror must be declared" >&5
3771 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+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 *(*)) strerror
3796 if { (eval echo configure
:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3798 bfd_cv_decl_needed_strerror
=no
3800 echo "configure: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 bfd_cv_decl_needed_strerror
=yes
3808 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
3809 if test $bfd_cv_decl_needed_strerror = yes; then
3810 cat >> confdefs.h
<<\EOF
3811 #define NEED_DECLARATION_STRERROR 1
3816 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
3817 echo "configure:3818: checking whether strdup must be declared" >&5
3818 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+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 *(*)) strdup
3843 if { (eval echo configure
:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3845 bfd_cv_decl_needed_strdup
=no
3847 echo "configure: failed program was:" >&5
3848 cat conftest.
$ac_ext >&5
3850 bfd_cv_decl_needed_strdup
=yes
3855 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
3856 if test $bfd_cv_decl_needed_strdup = yes; then
3857 cat >> confdefs.h
<<\EOF
3858 #define NEED_DECLARATION_STRDUP 1
3864 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
3865 if test "${target}" = "${host}"; then
3868 cat >> confdefs.h
<<\EOF
3869 #define START_INFERIOR_TRAPS_EXPECTED 2
3872 cat >> confdefs.h
<<\EOF
3873 #define sys_quotactl 1
3880 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
3881 echo "configure:3882: checking for gregset_t type" >&5
3882 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 cat > conftest.
$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 #include <sys/procfs.h>
3890 gregset_t *gregsetp = 0
3893 if { (eval echo configure
:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3895 gdb_cv_have_gregset_t
=yes
3897 echo "configure: failed program was:" >&5
3898 cat conftest.
$ac_ext >&5
3900 gdb_cv_have_gregset_t
=no
3905 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
3906 if test $gdb_cv_have_gregset_t = yes; then
3907 cat >> confdefs.h
<<\EOF
3908 #define HAVE_GREGSET_T 1
3913 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
3914 echo "configure:3915: checking for fpregset_t type" >&5
3915 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3918 cat > conftest.
$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3921 #include <sys/procfs.h>
3923 fpregset_t *fpregsetp = 0
3926 if { (eval echo configure
:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3928 gdb_cv_have_fpregset_t
=yes
3930 echo "configure: failed program was:" >&5
3931 cat conftest.
$ac_ext >&5
3933 gdb_cv_have_fpregset_t
=no
3938 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
3939 if test $gdb_cv_have_fpregset_t = yes; then
3940 cat >> confdefs.h
<<\EOF
3941 #define HAVE_FPREGSET_T 1
3946 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3947 echo "configure:3948: checking for main in -lm" >&5
3948 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 ac_save_LIBS
="$LIBS"
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3962 if { (eval echo configure
:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3964 eval "ac_cv_lib_$ac_lib_var=yes"
3966 echo "configure: failed program was:" >&5
3967 cat conftest.
$ac_ext >&5
3969 eval "ac_cv_lib_$ac_lib_var=no"
3972 LIBS
="$ac_save_LIBS"
3975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3976 echo "$ac_t""yes" 1>&6
3977 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3978 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3979 cat >> confdefs.h
<<EOF
3980 #define $ac_tr_lib 1
3986 echo "$ac_t""no" 1>&6
3990 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
3991 echo "configure:3992: checking for wctype in -lc" >&5
3992 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
3993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 ac_save_LIBS
="$LIBS"
3998 cat > conftest.
$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4010 if { (eval echo configure
:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4012 eval "ac_cv_lib_$ac_lib_var=yes"
4014 echo "configure: failed program was:" >&5
4015 cat conftest.
$ac_ext >&5
4017 eval "ac_cv_lib_$ac_lib_var=no"
4020 LIBS
="$ac_save_LIBS"
4023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4027 echo "$ac_t""no" 1>&6
4028 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4029 echo "configure:4030: checking for wctype in -lw" >&5
4030 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4034 ac_save_LIBS
="$LIBS"
4036 cat > conftest.
$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4039 /* Override any gcc2 internal prototype to avoid an error. */
4040 /* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4048 if { (eval echo configure
:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4050 eval "ac_cv_lib_$ac_lib_var=yes"
4052 echo "configure: failed program was:" >&5
4053 cat conftest.
$ac_ext >&5
4055 eval "ac_cv_lib_$ac_lib_var=no"
4058 LIBS
="$ac_save_LIBS"
4061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4063 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4065 cat >> confdefs.h
<<EOF
4066 #define $ac_tr_lib 1
4072 echo "$ac_t""no" 1>&6
4081 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4082 echo "configure:4083: checking for long long support in compiler" >&5
4083 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4086 cat > conftest.
$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4092 extern long long foo;
4093 switch (foo & 2) { case 0: return 1; }
4097 if { (eval echo configure
:4098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4099 gdb_cv_c_long_long
=yes
4101 echo "configure: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 gdb_cv_c_long_long
=no
4109 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4110 if test $gdb_cv_c_long_long = yes; then
4111 cat >> confdefs.h
<<\EOF
4112 #define CC_HAS_LONG_LONG 1
4118 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4119 echo "configure:4120: checking for long long support in printf" >&5
4120 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 if test "$cross_compiling" = yes; then
4124 gdb_cv_printf_has_long_long
=no
4126 cat > conftest.
$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4133 l = (l << 16) + 0x0123;
4134 l = (l << 16) + 0x4567;
4135 l = (l << 16) + 0x89ab;
4136 l = (l << 16) + 0xcdef;
4137 sprintf (buf, "0x%016llx", l);
4138 return (strcmp ("0x0123456789abcdef", buf));
4141 if { (eval echo configure
:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4143 gdb_cv_printf_has_long_long
=yes
4145 echo "configure: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4148 gdb_cv_printf_has_long_long
=no
4155 if test $gdb_cv_printf_has_long_long = yes; then
4156 cat >> confdefs.h
<<\EOF
4157 #define PRINTF_HAS_LONG_LONG 1
4161 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4164 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4165 echo "configure:4166: checking for long double support in compiler" >&5
4166 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 cat > conftest.
$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4177 if { (eval echo configure
:4178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4179 ac_cv_c_long_double
=yes
4181 echo "configure: failed program was:" >&5
4182 cat conftest.
$ac_ext >&5
4184 ac_cv_c_long_double
=no
4189 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4190 if test $ac_cv_c_long_double = yes; then
4191 cat >> confdefs.h
<<\EOF
4192 #define HAVE_LONG_DOUBLE 1
4198 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4199 echo "configure:4200: checking for long double support in printf" >&5
4200 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 if test "$cross_compiling" = yes; then
4204 gdb_cv_printf_has_long_double
=no
4206 cat > conftest.
$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4212 long double f = 3.141592653;
4213 sprintf (buf, "%Lg", f);
4214 return (strncmp ("3.14159", buf, 7));
4217 if { (eval echo configure
:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4219 gdb_cv_printf_has_long_double
=yes
4221 echo "configure: failed program was:" >&5
4222 cat conftest.
$ac_ext >&5
4224 gdb_cv_printf_has_long_double
=no
4231 if test $gdb_cv_printf_has_long_double = yes; then
4232 cat >> confdefs.h
<<\EOF
4233 #define PRINTF_HAS_LONG_DOUBLE 1
4237 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4240 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4241 echo "configure:4242: checking for long double support in scanf" >&5
4242 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 if test "$cross_compiling" = yes; then
4246 gdb_cv_scanf_has_long_double
=no
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4253 char *buf = "3.141592653";
4255 sscanf (buf, "%Lg", &f);
4256 return !(f > 3.14159 && f < 3.14160);
4259 if { (eval echo configure
:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4261 gdb_cv_scanf_has_long_double
=yes
4263 echo "configure: failed program was:" >&5
4264 cat conftest.
$ac_ext >&5
4266 gdb_cv_scanf_has_long_double
=no
4273 if test $gdb_cv_scanf_has_long_double = yes; then
4274 cat >> confdefs.h
<<\EOF
4275 #define SCANF_HAS_LONG_DOUBLE 1
4279 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4281 for ac_hdr
in unistd.h
4283 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4285 echo "configure:4286: checking for $ac_hdr" >&5
4286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 cat > conftest.
$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4294 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4295 { (eval echo configure
:4296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4296 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4297 if test -z "$ac_err"; then
4299 eval "ac_cv_header_$ac_safe=yes"
4302 echo "configure: failed program was:" >&5
4303 cat conftest.
$ac_ext >&5
4305 eval "ac_cv_header_$ac_safe=no"
4309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4311 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4312 cat >> confdefs.h
<<EOF
4313 #define $ac_tr_hdr 1
4317 echo "$ac_t""no" 1>&6
4321 for ac_func
in getpagesize
4323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4324 echo "configure:4325: checking for $ac_func" >&5
4325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 cat > conftest.
$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 /* System header to define __stub macros and hopefully few prototypes,
4332 which can conflict with char $ac_func(); below. */
4334 /* Override any gcc2 internal prototype to avoid an error. */
4335 /* We use char because int might match the return type of a gcc2
4336 builtin and then its argument prototype would still apply. */
4341 /* The GNU C library defines this for functions which it implements
4342 to always fail with ENOSYS. Some functions are actually named
4343 something starting with __ and the normal name is an alias. */
4344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4352 if { (eval echo configure
:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4354 eval "ac_cv_func_$ac_func=yes"
4356 echo "configure: failed program was:" >&5
4357 cat conftest.
$ac_ext >&5
4359 eval "ac_cv_func_$ac_func=no"
4364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4367 cat >> confdefs.h
<<EOF
4368 #define $ac_tr_func 1
4372 echo "$ac_t""no" 1>&6
4376 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4377 echo "configure:4378: checking for working mmap" >&5
4378 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 if test "$cross_compiling" = yes; then
4382 ac_cv_func_mmap_fixed_mapped
=no
4384 cat > conftest.
$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4388 /* Thanks to Mike Haertel and Jim Avera for this test.
4389 Here is a matrix of mmap possibilities:
4390 mmap private not fixed
4391 mmap private fixed at somewhere currently unmapped
4392 mmap private fixed at somewhere already mapped
4393 mmap shared not fixed
4394 mmap shared fixed at somewhere currently unmapped
4395 mmap shared fixed at somewhere already mapped
4396 For private mappings, we should verify that changes cannot be read()
4397 back from the file, nor mmap's back from the file at a different
4398 address. (There have been systems where private was not correctly
4399 implemented like the infamous i386 svr4.0, and systems where the
4400 VM page cache was not coherent with the filesystem buffer cache
4401 like early versions of FreeBSD and possibly contemporary NetBSD.)
4402 For shared mappings, we should conversely verify that changes get
4403 propogated back to all the places they're supposed to be.
4405 Grep wants private fixed already mapped.
4406 The main things grep needs to know about mmap are:
4407 * does it exist and is it safe to write into the mmap'd area
4408 * how to use it (BSD variants) */
4409 #include <sys/types.h>
4411 #include <sys/mman.h>
4413 /* This mess was copied from the GNU getpagesize.h. */
4414 #ifndef HAVE_GETPAGESIZE
4415 # ifdef HAVE_UNISTD_H
4416 # include <unistd.h>
4419 /* Assume that all systems that can run configure have sys/param.h. */
4420 # ifndef HAVE_SYS_PARAM_H
4421 # define HAVE_SYS_PARAM_H 1
4424 # ifdef _SC_PAGESIZE
4425 # define getpagesize() sysconf(_SC_PAGESIZE)
4426 # else /* no _SC_PAGESIZE */
4427 # ifdef HAVE_SYS_PARAM_H
4428 # include <sys/param.h>
4429 # ifdef EXEC_PAGESIZE
4430 # define getpagesize() EXEC_PAGESIZE
4431 # else /* no EXEC_PAGESIZE */
4433 # define getpagesize() NBPG * CLSIZE
4436 # endif /* no CLSIZE */
4437 # else /* no NBPG */
4439 # define getpagesize() NBPC
4440 # else /* no NBPC */
4442 # define getpagesize() PAGESIZE
4443 # endif /* PAGESIZE */
4444 # endif /* no NBPC */
4445 # endif /* no NBPG */
4446 # endif /* no EXEC_PAGESIZE */
4447 # else /* no HAVE_SYS_PARAM_H */
4448 # define getpagesize() 8192 /* punt totally */
4449 # endif /* no HAVE_SYS_PARAM_H */
4450 # endif /* no _SC_PAGESIZE */
4452 #endif /* no HAVE_GETPAGESIZE */
4455 extern "C" { void *malloc(unsigned); }
4463 char *data, *data2, *data3;
4467 pagesize = getpagesize();
4470 * First, make a file with some known garbage in it.
4472 data = malloc(pagesize);
4475 for (i = 0; i < pagesize; ++i)
4476 *(data + i) = rand();
4478 fd = creat("conftestmmap", 0600);
4481 if (write(fd, data, pagesize) != pagesize)
4486 * Next, try to mmap the file at a fixed address which
4487 * already has something else allocated at it. If we can,
4488 * also make sure that we see the same garbage.
4490 fd = open("conftestmmap", O_RDWR);
4493 data2 = malloc(2 * pagesize);
4496 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4497 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4498 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4500 for (i = 0; i < pagesize; ++i)
4501 if (*(data + i) != *(data2 + i))
4505 * Finally, make sure that changes to the mapped area
4506 * do not percolate back to the file as seen by read().
4507 * (This is a bug on some variants of i386 svr4.0.)
4509 for (i = 0; i < pagesize; ++i)
4510 *(data2 + i) = *(data2 + i) + 1;
4511 data3 = malloc(pagesize);
4514 if (read(fd, data3, pagesize) != pagesize)
4516 for (i = 0; i < pagesize; ++i)
4517 if (*(data + i) != *(data3 + i))
4520 unlink("conftestmmap");
4525 if { (eval echo configure
:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4527 ac_cv_func_mmap_fixed_mapped
=yes
4529 echo "configure: failed program was:" >&5
4530 cat conftest.
$ac_ext >&5
4532 ac_cv_func_mmap_fixed_mapped
=no
4539 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4540 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4541 cat >> confdefs.h
<<\EOF
4550 if test ${build} = ${host} -a ${host} = ${target} ; then
4553 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4554 echo "configure:4555: checking for HPUX/OSF thread support" >&5
4555 if test -f /usr
/include
/dce
/cma_config.h
; then
4556 if test "$GCC" = "yes" ; then
4557 echo "$ac_t""yes" 1>&6
4558 cat >> confdefs.h
<<\EOF
4559 #define HAVE_HPUX_THREAD_SUPPORT 1
4562 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
4563 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
4565 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4568 echo "$ac_t""no" 1>&6
4572 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4573 echo "configure:4574: checking for Solaris thread debugging library" >&5
4574 if test -f /usr
/lib
/libthread_db.so
.1 ; then
4575 echo "$ac_t""yes" 1>&6
4576 cat >> confdefs.h
<<\EOF
4577 #define HAVE_THREAD_DB_LIB 1
4580 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
4581 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
4582 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4583 echo "configure:4584: checking for dlopen in -ldl" >&5
4584 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 ac_save_LIBS
="$LIBS"
4590 cat > conftest.
$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 /* Override any gcc2 internal prototype to avoid an error. */
4594 /* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4602 if { (eval echo configure
:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4604 eval "ac_cv_lib_$ac_lib_var=yes"
4606 echo "configure: failed program was:" >&5
4607 cat conftest.
$ac_ext >&5
4609 eval "ac_cv_lib_$ac_lib_var=no"
4612 LIBS
="$ac_save_LIBS"
4615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4616 echo "$ac_t""yes" 1>&6
4617 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4619 cat >> confdefs.h
<<EOF
4620 #define $ac_tr_lib 1
4626 echo "$ac_t""no" 1>&6
4629 if test "$GCC" = "yes" ; then
4630 # The GNU linker requires the -export-dynamic option to make
4631 # all symbols visible in the dynamic symbol table.
4632 hold_ldflags
=$LDFLAGS
4633 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4634 echo "configure:4635: checking for the ld -export-dynamic flag" >&5
4635 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
4636 cat > conftest.
$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4644 if { (eval echo configure
:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4648 echo "configure: failed program was:" >&5
4649 cat conftest.
$ac_ext >&5
4654 LDFLAGS
=$hold_ldflags
4655 echo "$ac_t""$found" 1>&6
4656 if test $found = yes; then
4657 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4660 # Sun randomly tweaked the prototypes in <proc_service.h>
4662 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
4663 echo "configure:4664: checking if <proc_service.h> is old" >&5
4664 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4668 cat > conftest.
$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4672 #include <proc_service.h>
4674 (struct ps_prochandle*, psaddr_t, const void*, size_t);
4680 if { (eval echo configure
:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4682 gdb_cv_proc_service_is_old
=no
4684 echo "configure: failed program was:" >&5
4685 cat conftest.
$ac_ext >&5
4687 gdb_cv_proc_service_is_old
=yes
4693 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
4694 if test $gdb_cv_proc_service_is_old = yes; then
4695 cat >> confdefs.h
<<\EOF
4696 #define PROC_SERVICE_IS_OLD 1
4701 echo "$ac_t""no" 1>&6
4710 # Check whether --enable-tui or --disable-tui was given.
4711 if test "${enable_tui+set}" = set; then
4712 enableval
="$enable_tui"
4714 case "${enable_tui}" in
4716 "") enable_tui
=yes ;;
4718 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
4724 case ${enable_tui} in
4726 cat >> confdefs.h
<<\EOF
4731 TUI_LIBRARY
=tui
/libtui.a
4741 # Check whether --enable-netrom or --disable-netrom was given.
4742 if test "${enable_netrom+set}" = set; then
4743 enableval
="$enable_netrom"
4744 case "${enableval}" in
4745 yes) enable_netrom
=yes ;;
4746 no
) enable_netrom
=no
;;
4747 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
4752 if test "${enable_netrom}" = "yes"; then
4753 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
4754 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
4757 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4758 if test "${enable_build_warnings+set}" = set; then
4759 enableval
="$enable_build_warnings"
4760 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
4761 case "${enableval}" in
4763 no
) build_warnings
="-w";;
4764 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4765 build_warnings
="${build_warnings} ${t}";;
4766 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4767 build_warnings
="${t} ${build_warnings}";;
4768 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4774 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
4776 WARN_CFLAGS
="${build_warnings}"
4787 # Check whether --with-mmalloc or --without-mmalloc was given.
4788 if test "${with_mmalloc+set}" = set; then
4789 withval
="$with_mmalloc"
4790 case "${withval}" in
4791 yes) want_mmalloc
=true
;;
4792 no
) want_mmalloc
=false
;;
4793 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
4799 if test x
$want_mmalloc = xtrue
; then
4800 cat >> confdefs.h
<<\EOF
4801 #define USE_MMALLOC 1
4804 cat >> confdefs.h
<<\EOF
4805 #define MMCHECK_FORCE 1
4808 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
4809 MMALLOC
='../mmalloc/libmmalloc.a'
4812 # start-sanitize-carp
4813 # The below takes an educated guess at the targets that
4814 # should be built. It is an interum version that provides
4815 # significant backward compatibility.
4817 # Check whether --enable-carp or --disable-carp was given.
4818 if test "${enable_carp+set}" = set; then
4819 enableval
="$enable_carp"
4820 case "${enableval}" in
4821 yes) enable_carp
=yes ;;
4822 no
) enable_carp
=no
;;
4823 *) { echo "configure: error: bad value ${enableval} for carp option" 1>&2; exit 1; } ;;
4829 # Check whether --enable-targets or --disable-targets was given.
4830 if test "${enable_targets+set}" = set; then
4831 enableval
="$enable_targets"
4832 case "${enableval}" in
4833 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
4835 no
) enable_targets
= ;;
4836 *) enable_targets
="$enableval" ;;
4840 # Canonicalize the secondary target names.
4842 if test -n "$enable_targets" ; then
4843 if test "$enable_targets" = all
; then
4846 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4848 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4849 if test -n "$result" ; then
4850 canon_targets
="$canon_targets $result"
4856 # Convert the target names into GDB [*]-tdep.c names
4858 for targ
in $target $canon_targets
4860 if test "x$targ" = "xall" ; then
4863 t_cpu
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4864 t_vendor
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4865 t_os
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4869 target_vendor=$t_vendor
4871 . ${srcdir}/configure.tgt
4872 echo ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
4873 if test -r ${mt} ; then
4874 # This gets confused over .mt files that have multiple -tdep.o
4876 s/^.*[ =]\([^ ]*\)-tdep.o.*/\1/p
4878 selarchs
="$selarchs $tdep"
4883 # We don't do any links based on the target system, just makefile config.
4885 if test x
${all_targets} = xfalse
; then
4887 # Target architecture .o files.
4890 for arch
in $selarchs
4892 archdefs
="$archdefs -DARCH_$arch"
4893 ta
="$ta ${arch}-tdep.o"
4896 dvp
) ta
="$ta mips-tdep.o dvp-tdep.o" ;;
4900 # Weed out duplicate .o files.
4910 # And duplicate -D flags.
4912 for i
in $archdefs ; do
4922 else # all_targets is true
4924 MACHINE_OBS
='$(ALL_MACHINES)'
4927 if test "${enable_carp}" = yes ; then
4931 MACHINE_OBS
="# $MACHINE_OBS"
4936 # start-sanitize-gdbtk
4937 # start-sanitize-ide
4939 # Check whether --enable-ide or --disable-ide was given.
4940 if test "${enable_ide+set}" = set; then
4941 enableval
="$enable_ide"
4945 if test "$enable_ide" = yes; then
4953 # Check whether --with-foundry-libs or --without-foundry-libs was given.
4954 if test "${with_foundry_libs+set}" = set; then
4955 withval
="$with_foundry_libs"
4956 FOUNDRY_LIB_BASE
=${withval}
4962 # This is the Foundry SDK
4964 # These variables are used to determine where the Foundry libs and
4965 # header files are located.
4967 if test "$FOUNDRY_LIB_BASE" != ""; then
4968 LIBGUI
="${FOUNDRY_LIB_BASE}/lib/libgui.a"
4969 GUI_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
4970 if test x
$enable_ide = xyes
; then
4971 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include -DIDE"
4972 IDE_X
="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu"
4974 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
4976 LIBIDETCL
="${FOUNDRY_LIB_BASE}/lib/libidetcl.a"
4977 LIBIDE
="${FOUNDRY_LIB_BASE}/lib/libide.a"
4978 IDE_DEPS
="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a"
4981 LIBGUI
="../libgui/src/libgui.a"
4982 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
4983 # start-sanitize-ide
4984 if test x
$enable_ide = xyes
; then
4985 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop"
4986 IDE_X
="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu"
4988 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src"
4990 LIBIDETCL
="../libidetcl/src/libidetcl.a"
4991 LIBIDE
="../libide/src/libide.a"
4992 IDE_DEPS
="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a"
4998 # start-sanitize-ide
5007 # Check whether --with-cpu or --without-cpu was given.
5008 if test "${with_cpu+set}" = set; then
5011 powerpc-
* | powerpcle-
* )
5012 ## It would be nice to keep this table in sync with the one in
5014 case "${with_cpu}" in
5015 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
5017 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5019 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
5020 ## These are all RS6000 variants, as far as GDB is concerned.
5030 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5036 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5039 cat >> confdefs.h
<<EOF
5040 #define TARGET_CPU_DEFAULT "${with_cpu}"
5050 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5051 if test "${enable_gdbtk+set}" = set; then
5052 enableval
="$enable_gdbtk"
5053 case "${enableval}" in
5057 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5060 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5068 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5072 # Default is on for everything but go32 and Cygwin
5083 # In the Cygwin environment, we need some additional flags.
5084 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5085 echo "configure:5086: checking for cygwin" >&5
5086 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5087 echo $ac_n "(cached) $ac_c" 1>&6
5089 cat > conftest.
$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5098 egrep "lose" >/dev
/null
2>&1; then
5100 gdb_cv_os_cygwin
=yes
5109 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5111 if test x
$gdb_cv_os_cygwin = xyes
; then
5112 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5115 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5116 echo "configure:5117: checking for tgetent in -lncurses" >&5
5117 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5121 ac_save_LIBS
="$LIBS"
5122 LIBS
="-lncurses $LIBS"
5123 cat > conftest.
$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 /* Override any gcc2 internal prototype to avoid an error. */
5127 /* We use char because int might match the return type of a gcc2
5128 builtin and then its argument prototype would still apply. */
5135 if { (eval echo configure
:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5137 eval "ac_cv_lib_$ac_lib_var=yes"
5139 echo "configure: failed program was:" >&5
5140 cat conftest.
$ac_ext >&5
5142 eval "ac_cv_lib_$ac_lib_var=no"
5145 LIBS
="$ac_save_LIBS"
5148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5149 echo "$ac_t""yes" 1>&6
5152 echo "$ac_t""no" 1>&6
5153 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5154 echo "configure:5155: checking for tgetent in -ltermlib" >&5
5155 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5159 ac_save_LIBS
="$LIBS"
5160 LIBS
="-ltermlib $LIBS"
5161 cat > conftest.
$ac_ext <<EOF
5162 #line 5163 "configure"
5163 #include "confdefs.h"
5164 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5173 if { (eval echo configure
:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5175 eval "ac_cv_lib_$ac_lib_var=yes"
5177 echo "configure: failed program was:" >&5
5178 cat conftest.
$ac_ext >&5
5180 eval "ac_cv_lib_$ac_lib_var=no"
5183 LIBS
="$ac_save_LIBS"
5186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5187 echo "$ac_t""yes" 1>&6
5190 echo "$ac_t""no" 1>&6
5191 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5192 echo "configure:5193: checking for tgetent in -ltermcap" >&5
5193 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 ac_save_LIBS
="$LIBS"
5198 LIBS
="-ltermcap $LIBS"
5199 cat > conftest.
$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5211 if { (eval echo configure
:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5213 eval "ac_cv_lib_$ac_lib_var=yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.
$ac_ext >&5
5218 eval "ac_cv_lib_$ac_lib_var=no"
5221 LIBS
="$ac_save_LIBS"
5224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5225 echo "$ac_t""yes" 1>&6
5228 echo "$ac_t""no" 1>&6
5229 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5230 echo "configure:5231: checking for tgetent in -lcurses" >&5
5231 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5235 ac_save_LIBS
="$LIBS"
5236 LIBS
="-lcurses $LIBS"
5237 cat > conftest.
$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5249 if { (eval echo configure
:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5251 eval "ac_cv_lib_$ac_lib_var=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.
$ac_ext >&5
5256 eval "ac_cv_lib_$ac_lib_var=no"
5259 LIBS
="$ac_save_LIBS"
5262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5263 echo "$ac_t""yes" 1>&6
5266 echo "$ac_t""no" 1>&6
5267 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5268 echo "configure:5269: checking for tgetent in -lterminfo" >&5
5269 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5273 ac_save_LIBS
="$LIBS"
5274 LIBS
="-lterminfo $LIBS"
5275 cat > conftest.
$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* Override any gcc2 internal prototype to avoid an error. */
5279 /* We use char because int might match the return type of a gcc2
5280 builtin and then its argument prototype would still apply. */
5287 if { (eval echo configure
:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5289 eval "ac_cv_lib_$ac_lib_var=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.
$ac_ext >&5
5294 eval "ac_cv_lib_$ac_lib_var=no"
5297 LIBS
="$ac_save_LIBS"
5300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5304 echo "$ac_t""no" 1>&6
5316 if test "x$TERM_LIB" = x
5318 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5327 DLLTOOL
=${DLLTOOL-dlltool}
5328 WINDRES
=${WINDRES-windres}
5332 if test x
$gdb_cv_os_cygwin = xyes
; then
5333 WIN32LIBS
="-luser32"
5334 if test x
$enable_ide = xyes
; then
5335 WIN32LIBS
="$WIN32LIBS -ladvapi32"
5342 if test "${enable_gdbtk}" = "yes"; then
5346 # Ok, lets find the tcl configuration
5347 # First, look for one uninstalled.
5348 # the alternative search directory is invoked by --with-tclconfig
5351 if test x
"${no_tcl}" = x
; then
5352 # we reset no_tcl in case something fails here
5354 # Check whether --with-tclconfig or --without-tclconfig was given.
5355 if test "${with_tclconfig+set}" = set; then
5356 withval
="$with_tclconfig"
5357 with_tclconfig
=${withval}
5360 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5361 echo "configure:5362: checking for Tcl configuration" >&5
5362 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5367 # First check to see if --with-tclconfig was specified.
5368 if test x
"${with_tclconfig}" != x
; then
5369 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5370 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
5372 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5376 # then check for a private Tcl installation
5377 if test x
"${ac_cv_c_tclconfig}" = x
; then
5380 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5382 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5384 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5385 if test -f "$i/${configdir}/tclConfig.sh" ; then
5386 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5391 # check in a few common install locations
5392 if test x
"${ac_cv_c_tclconfig}" = x
; then
5393 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5394 if test -f "$i/tclConfig.sh" ; then
5395 ac_cv_c_tclconfig
=`(cd $i; pwd)`
5400 # check in a few other private locations
5401 if test x
"${ac_cv_c_tclconfig}" = x
; then
5404 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5405 if test -f "$i/${configdir}/tclConfig.sh" ; then
5406 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5414 if test x
"${ac_cv_c_tclconfig}" = x
; then
5415 TCLCONFIG
="# no Tcl configs found"
5416 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
5419 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
5420 echo "$ac_t""found $TCLCONFIG" 1>&6
5424 if test -z "${no_tcl}"; then
5454 # Ok, lets find the tk configuration
5455 # First, look for one uninstalled.
5456 # the alternative search directory is invoked by --with-tkconfig
5459 if test x
"${no_tk}" = x
; then
5460 # we reset no_tk in case something fails here
5462 # Check whether --with-tkconfig or --without-tkconfig was given.
5463 if test "${with_tkconfig+set}" = set; then
5464 withval
="$with_tkconfig"
5465 with_tkconfig
=${withval}
5468 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
5469 echo "configure:5470: checking for Tk configuration" >&5
5470 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
5475 # First check to see if --with-tkconfig was specified.
5476 if test x
"${with_tkconfig}" != x
; then
5477 if test -f "${with_tkconfig}/tkConfig.sh" ; then
5478 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
5480 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
5484 # then check for a private Tk library
5485 if test x
"${ac_cv_c_tkconfig}" = x
; then
5488 `ls -dr ../tk[4-9]* 2>/dev/null` \
5490 `ls -dr ../../tk[4-9]* 2>/dev/null` \
5492 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
5493 if test -f "$i/${configdir}/tkConfig.sh" ; then
5494 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5499 # check in a few common install locations
5500 if test x
"${ac_cv_c_tkconfig}" = x
; then
5501 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5502 if test -f "$i/tkConfig.sh" ; then
5503 ac_cv_c_tkconfig
=`(cd $i; pwd)`
5508 # check in a few other private locations
5509 if test x
"${ac_cv_c_tkconfig}" = x
; then
5512 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
5513 if test -f "$i/${configdir}/tkConfig.sh" ; then
5514 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5522 if test x
"${ac_cv_c_tkconfig}" = x
; then
5523 TKCONFIG
="# no Tk configs found"
5524 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
5527 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
5528 echo "$ac_t""found $TKCONFIG" 1>&6
5534 # If $no_tk is nonempty, then we can't do Tk, and there is no
5535 # point to doing Tcl.
5536 if test -z "${no_tk}"; then
5538 if test -f "$TKCONFIG" ; then
5556 # Ok, lets find the tcl source trees so we can use the headers
5557 # Warning: transition of version 9 to 10 will break this algorithm
5558 # because 10 sorts before 9. We also look for just tcl. We have to
5559 # be careful that we don't match stuff like tclX by accident.
5560 # the alternative search directory is involked by --with-tclinclude
5564 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
5565 echo "configure:5566: checking for Tcl private headers. dir=${configdir}" >&5
5566 # Check whether --with-tclinclude or --without-tclinclude was given.
5567 if test "${with_tclinclude+set}" = set; then
5568 withval
="$with_tclinclude"
5569 with_tclinclude
=${withval}
5572 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5576 # first check to see if --with-tclinclude was specified
5577 if test x
"${with_tclinclude}" != x
; then
5578 if test -f ${with_tclinclude}/tclInt.h
; then
5579 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
5580 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
5581 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
5583 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5587 # next check if it came with Tcl configuration file
5588 if test x
"${ac_cv_c_tclconfig}" = x
; then
5589 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
5590 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
5594 # next check in private source directory
5596 # since ls returns lowest version numbers first, reverse its output
5597 if test x
"${ac_cv_c_tclh}" = x
; then
5600 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
5601 ${srcdir}/..
/..
/tcl \
5602 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
5603 ${srcdir}/..
/..
/..
/tcl \
5604 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
5605 if test -f $i/generic
/tclInt.h
; then
5606 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5611 # finally check in a few common install locations
5613 # since ls returns lowest version numbers first, reverse its output
5614 if test x
"${ac_cv_c_tclh}" = x
; then
5616 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
5617 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
5618 /usr
/local
/src
/tcl \
5619 /usr
/local
/lib
/tcl \
5620 ${prefix}/include
; do
5621 if test -f $i/generic
/tclInt.h
; then
5622 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5627 # see if one is installed
5628 if test x
"${ac_cv_c_tclh}" = x
; then
5629 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
5630 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
5631 echo "configure:5632: checking for tclInt.h" >&5
5632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5635 cat > conftest.
$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5640 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5641 { (eval echo configure
:5642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5642 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5643 if test -z "$ac_err"; then
5645 eval "ac_cv_header_$ac_safe=yes"
5648 echo "configure: failed program was:" >&5
5649 cat conftest.
$ac_ext >&5
5651 eval "ac_cv_header_$ac_safe=no"
5655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5656 echo "$ac_t""yes" 1>&6
5657 ac_cv_c_tclh
=installed
5659 echo "$ac_t""no" 1>&6
5667 if test x
"${ac_cv_c_tclh}" = x
; then
5668 TCLHDIR
="# no Tcl private headers found"
5669 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
5671 if test x
"${ac_cv_c_tclh}" != x
; then
5673 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
5674 echo "$ac_t""is installed" 1>&6
5677 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
5678 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
5679 TCLHDIR
="-I${ac_cv_c_tclh}"
5687 # Ok, lets find the tk source trees so we can use the headers
5688 # If the directory (presumably symlink) named "tk" exists, use that one
5689 # in preference to any others. Same logic is used when choosing library
5690 # and again with Tcl. The search order is the best place to look first, then in
5691 # decreasing significance. The loop breaks if the trigger file is found.
5692 # Note the gross little conversion here of srcdir by cd'ing to the found
5693 # directory. This converts the path from a relative to an absolute, so
5694 # recursive cache variables for the path will work right. We check all
5695 # the possible paths in one loop rather than many seperate loops to speed
5697 # the alternative search directory is involked by --with-tkinclude
5700 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
5701 echo "configure:5702: checking for Tk private headers" >&5
5702 # Check whether --with-tkinclude or --without-tkinclude was given.
5703 if test "${with_tkinclude+set}" = set; then
5704 withval
="$with_tkinclude"
5705 with_tkinclude
=${withval}
5708 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5712 # first check to see if --with-tkinclude was specified
5713 if test x
"${with_tkinclude}" != x
; then
5714 if test -f ${with_tkinclude}/tk.h
; then
5715 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
5716 elif test -f ${with_tkinclude}/generic
/tk.h
; then
5717 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
5719 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5723 # next check if it came with Tk configuration file
5724 if test x
"${ac_cv_c_tkconfig}" = x
; then
5725 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
5726 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
5730 # next check in private source directory
5732 # since ls returns lowest version numbers first, reverse its output
5733 if test x
"${ac_cv_c_tkh}" = x
; then
5736 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
5737 ${srcdir}/..
/..
/tk \
5738 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
5739 ${srcdir}/..
/..
/..
/tk \
5740 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
5741 if test -f $i/generic
/tk.h
; then
5742 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5747 # finally check in a few common install locations
5749 # since ls returns lowest version numbers first, reverse its output
5750 if test x
"${ac_cv_c_tkh}" = x
; then
5752 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
5753 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
5756 ${prefix}/include
; do
5757 if test -f $i/generic
/tk.h
; then
5758 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5763 # see if one is installed
5764 if test x
"${ac_cv_c_tkh}" = x
; then
5765 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
5766 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5767 echo "configure:5768: checking for tk.h" >&5
5768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5769 echo $ac_n "(cached) $ac_c" 1>&6
5771 cat > conftest.
$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5776 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5777 { (eval echo configure
:5778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5778 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5779 if test -z "$ac_err"; then
5781 eval "ac_cv_header_$ac_safe=yes"
5784 echo "configure: failed program was:" >&5
5785 cat conftest.
$ac_ext >&5
5787 eval "ac_cv_header_$ac_safe=no"
5791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5792 echo "$ac_t""yes" 1>&6
5793 ac_cv_c_tkh
=installed
5795 echo "$ac_t""no" 1>&6
5803 if test x
"${ac_cv_c_tkh}" != x
; then
5805 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
5806 echo "$ac_t""is installed" 1>&6
5809 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5810 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
5811 TKHDIR
="-I${ac_cv_c_tkh}"
5814 TKHDIR
="# no Tk directory found"
5815 echo "configure: warning: Can't find Tk private headers" 1>&2
5822 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5823 echo "configure:5824: checking for Itcl private headers. srcdir=${srcdir}" >&5
5824 if test x
"${ac_cv_c_itclh}" = x
; then
5825 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
5826 if test -f $i/generic
/itcl.h
; then
5827 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
5832 if test x
"${ac_cv_c_itclh}" = x
; then
5833 ITCLHDIR
="# no Itcl private headers found"
5834 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
5836 if test x
"${ac_cv_c_itclh}" != x
; then
5837 ITCLHDIR
="-I${ac_cv_c_itclh}"
5839 # should always be here
5840 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
5845 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5846 echo "configure:5847: checking for Itk private headers. srcdir=${srcdir}" >&5
5847 if test x
"${ac_cv_c_itkh}" = x
; then
5848 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
5849 if test -f $i/generic
/itk.h
; then
5850 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
5855 if test x
"${ac_cv_c_itkh}" = x
; then
5856 ITKHDIR
="# no Itk private headers found"
5857 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
5859 if test x
"${ac_cv_c_itkh}" != x
; then
5860 ITKHDIR
="-I${ac_cv_c_itkh}"
5862 # should always be here
5863 # ITKLIB="../itcl/itk/unix/libitk.a"
5868 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5869 echo "configure:5870: checking for Tix private headers. srcdir=${srcdir}" >&5
5870 if test x
"${ac_cv_c_tixh}" = x
; then
5871 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
5872 if test -f $i/generic
/tix.h
; then
5873 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
5878 if test x
"${ac_cv_c_tixh}" = x
; then
5879 TIXHDIR
="# no Tix private headers found"
5880 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
5882 if test x
"${ac_cv_c_tixh}" != x
; then
5883 TIXHDIR
="-I${ac_cv_c_tixh}"
5888 # now look for Itcl library stuff
5892 # Ok, lets find the itcl configuration
5893 # First, look for one uninstalled.
5894 # the alternative search directory is invoked by --with-itclconfig
5897 if test x
"${no_itcl}" = x
; then
5898 # we reset no_itcl in case something fails here
5900 # Check whether --with-itclconfig or --without-itclconfig was given.
5901 if test "${with_itclconfig+set}" = set; then
5902 withval
="$with_itclconfig"
5903 with_itclconfig
=${withval}
5906 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
5907 echo "configure:5908: checking for Itcl configuration" >&5
5908 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5913 # First check to see if --with-itclconfig was specified.
5914 if test x
"${with_itclconfig}" != x
; then
5915 if test -f "${with_itclconfig}/itclConfig.sh" ; then
5916 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
5918 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
5922 # then check for a private Itcl library
5923 if test x
"${ac_cv_c_itclconfig}" = x
; then
5926 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
5928 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
5930 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
5931 if test -f "$i/itclConfig.sh" ; then
5932 ac_cv_c_itclconfig
=`(cd $i; pwd)`
5937 # check in a few common install locations
5938 if test x
"${ac_cv_c_itclconfig}" = x
; then
5939 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5940 if test -f "$i/itclConfig.sh" ; then
5941 ac_cv_c_itclconfig
=`(cd $i; pwd)`
5946 # check in a few other private locations
5947 if test x
"${ac_cv_c_itclconfig}" = x
; then
5949 ${srcdir}/..
/itcl
/itcl \
5950 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
5951 if test -f "$i/itclConfig.sh" ; then
5952 ac_cv_c_itclconfig
=`(cd $i; pwd)`
5960 if test x
"${ac_cv_c_itclconfig}" = x
; then
5961 ITCLCONFIG
="# no Itcl configs found"
5962 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
5965 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
5966 echo "$ac_t""found $ITCLCONFIG" 1>&6
5970 if test -z "${no_itcl}"; then
5972 if test -f "$ITCLCONFIG" ; then
5988 itcldir
=..
/itcl
/itcl
/win
/
5991 itcldir
=..
/itcl
/itcl
/unix
/
5996 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
5997 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
6001 # now look for Itk library stuff
6004 # Ok, lets find the itk configuration
6005 # First, look for one uninstalled.
6006 # the alternative search directory is invoked by --with-itkconfig
6009 if test x
"${no_itk}" = x
; then
6010 # we reset no_itk in case something fails here
6012 # Check whether --with-itkconfig or --without-itkconfig was given.
6013 if test "${with_itkconfig+set}" = set; then
6014 withval
="$with_itkconfig"
6015 with_itkconfig
=${withval}
6018 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6019 echo "configure:6020: checking for Itk configuration" >&5
6020 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6025 # First check to see if --with-itkconfig was specified.
6026 if test x
"${with_itkconfig}" != x
; then
6027 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6028 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
6030 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6034 # then check for a private Itk library
6035 if test x
"${ac_cv_c_itkconfig}" = x
; then
6038 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6040 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6042 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6043 if test -f "$i/itkConfig.sh" ; then
6044 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6049 # check in a few common install locations
6050 if test x
"${ac_cv_c_itkconfig}" = x
; then
6051 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6052 if test -f "$i/itkConfig.sh" ; then
6053 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6058 # check in a few other private locations
6059 if test x
"${ac_cv_c_itkconfig}" = x
; then
6061 ${srcdir}/..
/itcl
/itk \
6062 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6063 if test -f "$i/itkConfig.sh" ; then
6064 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6072 if test x
"${ac_cv_c_itkconfig}" = x
; then
6073 ITKCONFIG
="# no Itk configs found"
6074 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6077 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
6078 echo "$ac_t""found $ITKCONFIG" 1>&6
6083 if test -z "${no_itcl}"; then
6085 if test -f "$ITKCONFIG" ; then
6102 itkdir
=..
/itcl
/itk
/win
/
6105 itkdir
=..
/itcl
/itk
/unix
/
6109 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
6110 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
6113 # now look for Tix library stuff
6116 # Ok, lets find the tix configuration
6117 # First, look for one uninstalled.
6118 # the alternative search directory is invoked by --with-itkconfig
6121 if test x
"${no_tix}" = x
; then
6122 # we reset no_tix in case something fails here
6124 # Check whether --with-tixconfig or --without-tixconfig was given.
6125 if test "${with_tixconfig+set}" = set; then
6126 withval
="$with_tixconfig"
6127 with_tixconfig
=${withval}
6130 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6131 echo "configure:6132: checking for Tix configuration" >&5
6132 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6133 echo $ac_n "(cached) $ac_c" 1>&6
6137 # First check to see if --with-tixconfig was specified.
6138 if test x
"${with_tixconfig}" != x
; then
6139 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6140 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
6142 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6146 # then check for a private Tix library
6147 if test x
"${ac_cv_c_tixconfig}" = x
; then
6150 `ls -dr ../tix 2>/dev/null` \
6152 `ls -dr ../../tix 2>/dev/null` \
6154 `ls -dr ../../../tix 2>/dev/null` ; do
6155 echo "**** Looking at $i - with ${configdir}"
6156 if test -f "$i/tixConfig.sh" ; then
6157 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6162 # check in a few common install locations
6163 if test x
"${ac_cv_c_tixconfig}" = x
; then
6164 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6165 echo "**** Looking at $i"
6166 if test -f "$i/tixConfig.sh" ; then
6167 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6172 # check in a few other private locations
6173 echo "**** Other private locations"
6174 if test x
"${ac_cv_c_tixconfig}" = x
; then
6177 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6178 echo "**** Looking at $i - with ${configdir}"
6179 if test -f "$i/${configdir}/tixConfig.sh" ; then
6180 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
6188 if test x
"${ac_cv_c_tixconfig}" = x
; then
6189 TIXCONFIG
="# no Tix configs found"
6190 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6193 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
6194 echo "$ac_t""found $TIXCONFIG" 1>&6
6199 if test -z "${no_tix}"; then
6201 if test -f "$TIXCONFIG" ; then
6212 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
6213 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
6217 ENABLE_CFLAGS
="${ENABLE_CFLAGS} -DGDBTK"
6218 # Tcl/Tk 8.1 require -fwritable strings. I don't
6219 # know whether 8.2 will or not, but I bet it will.
6220 # I don't have to worry about 7.x since we don't support it.
6222 if test ${GCC} = "yes"; then
6223 if test ${TCL_VERSION} != "8.0" ; then
6224 GDBTK_CFLAGS
="-fwritable-strings"
6228 # Include some libraries that Tcl and Tk want.
6229 if test "${enable_ide}" = "yes"; then
6230 TCL_LIBS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(ITK) $(TIXLIB) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6231 CONFIG_DEPS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6233 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6234 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6236 # Yes, the ordering seems wrong here. But it isn't.
6237 # TK_LIBS is the list of libraries that need to be linked
6238 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6239 # were in LIBS then any link tests after this point would
6240 # try to include things like `$(LIBGUI)', which wouldn't work.
6241 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
6242 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-variable.o gdbtk-wrapper.o"
6244 if test x
$gdb_cv_os_cygwin = xyes
; then
6245 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
6246 WIN32LDAPP
="-Wl,--subsystem,console"
6247 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
6265 # end-sanitize-gdbtk
6267 # If we find X, set shell vars x_includes and x_libraries to the
6268 # paths, otherwise set no_x=yes.
6269 # Uses ac_ vars as temps to allow command line to override cache and checks.
6270 # --without-x overrides everything else, but does not touch the cache.
6271 echo $ac_n "checking for X""... $ac_c" 1>&6
6272 echo "configure:6273: checking for X" >&5
6274 # Check whether --with-x or --without-x was given.
6275 if test "${with_x+set}" = set; then
6280 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6281 if test "x$with_x" = xno
; then
6282 # The user explicitly disabled X.
6285 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6286 # Both variables are already set.
6289 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6292 # One or both of the vars are not set, and there is no cached value.
6293 ac_x_includes
=NO ac_x_libraries
=NO
6295 if mkdir conftestdir
; then
6297 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6298 cat > Imakefile
<<'EOF'
6300 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6302 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6303 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6304 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6305 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6306 for ac_extension
in a so sl
; do
6307 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6308 test -f $ac_im_libdir/libX11.
$ac_extension; then
6309 ac_im_usrlibdir
=$ac_im_libdir; break
6312 # Screen out bogus values from the imake configuration. They are
6313 # bogus both because they are the default anyway, and because
6314 # using them would break gcc on systems where it needs fixed includes.
6315 case "$ac_im_incroot" in
6317 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
6319 case "$ac_im_usrlibdir" in
6321 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
6328 if test "$ac_x_includes" = NO
; then
6329 # Guess where to find include files, by looking for this one X11 .h file.
6330 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
6332 # First, try using that file with no special directory specified.
6333 cat > conftest.
$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 #include <$x_direct_test_include>
6338 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6339 { (eval echo configure
:6340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6340 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6341 if test -z "$ac_err"; then
6343 # We can compile using X headers with no special include directory.
6347 echo "configure: failed program was:" >&5
6348 cat conftest.
$ac_ext >&5
6350 # Look for the header file in a standard set of common directories.
6351 # Check X11 before X11Rn because it is often a symlink to the current release.
6354 /usr
/X11R
6/include \
6355 /usr
/X11R
5/include \
6356 /usr
/X11R
4/include \
6359 /usr
/include
/X11R6 \
6360 /usr
/include
/X11R5 \
6361 /usr
/include
/X11R4 \
6363 /usr
/local
/X11
/include \
6364 /usr
/local
/X11R
6/include \
6365 /usr
/local
/X11R
5/include \
6366 /usr
/local
/X11R
4/include \
6368 /usr
/local
/include
/X11 \
6369 /usr
/local
/include
/X11R6 \
6370 /usr
/local
/include
/X11R5 \
6371 /usr
/local
/include
/X11R4 \
6375 /usr
/XFree86
/include
/X11 \
6378 /usr
/local
/include \
6379 /usr
/unsupported
/include \
6380 /usr
/athena
/include \
6381 /usr
/local
/x11r
5/include \
6382 /usr
/lpp
/Xamples
/include \
6384 /usr
/openwin
/include \
6385 /usr
/openwin
/share
/include \
6388 if test -r "$ac_dir/$x_direct_test_include"; then
6389 ac_x_includes
=$ac_dir
6395 fi # $ac_x_includes = NO
6397 if test "$ac_x_libraries" = NO
; then
6398 # Check for the libraries.
6400 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
6401 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
6403 # See if we find them without any special options.
6404 # Don't add to $LIBS permanently.
6405 ac_save_LIBS
="$LIBS"
6406 LIBS
="-l$x_direct_test_library $LIBS"
6407 cat > conftest.
$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6412 ${x_direct_test_function}()
6415 if { (eval echo configure
:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6417 LIBS
="$ac_save_LIBS"
6418 # We can link X programs with no special library path.
6421 echo "configure: failed program was:" >&5
6422 cat conftest.
$ac_ext >&5
6424 LIBS
="$ac_save_LIBS"
6425 # First see if replacing the include by lib works.
6426 # Check X11 before X11Rn because it is often a symlink to the current release.
6427 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
6438 /usr
/local
/X11
/lib \
6439 /usr
/local
/X11R
6/lib \
6440 /usr
/local
/X11R
5/lib \
6441 /usr
/local
/X11R
4/lib \
6443 /usr
/local
/lib
/X11 \
6444 /usr
/local
/lib
/X11R6 \
6445 /usr
/local
/lib
/X11R5 \
6446 /usr
/local
/lib
/X11R4 \
6450 /usr
/XFree86
/lib
/X11 \
6454 /usr
/unsupported
/lib \
6456 /usr
/local
/x11r
5/lib \
6457 /usr
/lpp
/Xamples
/lib \
6461 /usr
/openwin
/share
/lib \
6464 for ac_extension
in a so sl
; do
6465 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
6466 ac_x_libraries
=$ac_dir
6473 fi # $ac_x_libraries = NO
6475 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
6476 # Didn't find X anywhere. Cache the known absence of X.
6477 ac_cv_have_x
="have_x=no"
6479 # Record where we found X for the cache.
6480 ac_cv_have_x
="have_x=yes \
6481 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6485 eval "$ac_cv_have_x"
6488 if test "$have_x" != yes; then
6489 echo "$ac_t""$have_x" 1>&6
6492 # If each of the values was on the command line, it overrides each guess.
6493 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6494 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6495 # Update the cache value to reflect the command line values.
6496 ac_cv_have_x
="have_x=yes \
6497 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6498 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6501 # start-sanitize-sky
6502 # Enable GPU2 library for MIPS simulator
6503 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
6504 if test "${with_sim_gpu2+set}" = set; then
6505 withval
="$with_sim_gpu2"
6508 if test -d "${withval}"
6510 if test x
${x_libraries} != x
6512 LIBS
="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext -lm"
6514 LIBS
="${LIBS} -L${withval}/lib -lgpu2 -lX11 -lXext -lm"
6517 echo "configure: warning: Directory ${withval} does not exist." 1>&2
6519 *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2
6523 # Enable target accurate FP library
6524 # Check whether --with-sim-funit or --without-sim-funit was given.
6525 if test "${with_sim_funit+set}" = set; then
6526 withval
="$with_sim_funit"
6529 if test -d "${withval}"
6531 LIBS
="${LIBS} -L${withval}/lib -lfunit"
6533 echo "configure: warning: Directory ${withval} does not exist." 1>&2
6535 *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2
6546 # Begin stuff to support --enable-shared
6547 # Check whether --enable-shared or --disable-shared was given.
6548 if test "${enable_shared+set}" = set; then
6549 enableval
="$enable_shared"
6550 case "${enableval}" in
6559 # If we have shared libraries, try to set rpath reasonably.
6560 if test "${shared}" = "true"; then
6563 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
6565 *-*-irix5* |
*-*-irix6*)
6566 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6570 *-*-linux* |
*-pc-linux-gnu)
6571 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6574 HLDFLAGS
='-R $(libdir)'
6577 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;'
6582 # On SunOS, if the linker supports the -rpath option, use it to
6583 # prevent ../bfd and ../opcodes from being included in the run time
6587 echo 'main () { }' > conftest.c
6588 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
6589 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
6591 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
6593 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
6595 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
6597 elif test "${shared}" = "true"; then
6598 HLDFLAGS
='-Wl,-rpath=$(libdir)'
6600 HLDFLAGS
='-Wl,-rpath='
6602 rm -f conftest.t conftest.c conftest
6607 # End stuff to support --enable-shared
6609 # target_subdir is used by the testsuite to find the target libraries.
6611 if test "${host}" != "${target}"; then
6612 target_subdir
="${target_alias}/"
6617 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
6618 if test ! -f ${host_makefile_frag}; then
6619 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
6621 frags
="$frags $host_makefile_frag"
6623 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
6624 if test ! -f ${target_makefile_frag}; then
6625 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
6627 frags
="$frags $target_makefile_frag"
6634 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6635 ' ${host_makefile_frag}`
6637 targetfile
=`sed -n '
6638 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6639 ' ${target_makefile_frag}`
6641 # these really aren't orthogonal true/false values of the same condition,
6642 # but shells are slow enough that I like to reuse the test conditions
6644 if test "${target}" = "${host}"; then
6645 nativefile
=`sed -n '
6646 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6647 ' ${host_makefile_frag}`
6649 # GDBserver is only useful in a "native" enviroment
6650 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
6654 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
6655 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
6656 # corresponding links. But we have to remove the xm.h files and tm.h
6657 # files anyway, e.g. when switching from "configure host" to
6663 if test "${hostfile}" != ""; then
6664 files
="${files} config/${gdb_host_cpu}/${hostfile}"
6665 links
="${links} xm.h"
6668 if test "${targetfile}" != ""; then
6669 files
="${files} config/${gdb_target_cpu}/${targetfile}"
6670 links
="${links} tm.h"
6673 if test "${nativefile}" != ""; then
6674 files
="${files} config/${gdb_host_cpu}/${nativefile}"
6675 links
="${links} nm.h"
6677 # A cross-only configuration.
6678 files
="${files} config/nm-empty.h"
6679 links
="${links} nm.h"
6681 # start-sanitize-gdbtk
6682 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6683 echo "configure:6684: checking whether ln -s works" >&5
6684 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6685 echo $ac_n "(cached) $ac_c" 1>&6
6688 if ln -s X conftestdata
2>/dev
/null
6691 ac_cv_prog_LN_S
="ln -s"
6696 LN_S
="$ac_cv_prog_LN_S"
6697 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6698 echo "$ac_t""yes" 1>&6
6700 echo "$ac_t""no" 1>&6
6703 # Make it possible to use the GUI without doing a full install
6704 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl2
; then
6705 if test "$LN_S" = "ln -s" -a ! -f gdbtcl2
; then
6706 echo linking
$srcdir/gdbtcl2 to gdbtcl2
6707 $LN_S $srcdir/gdbtcl2 gdbtcl2
6709 echo Warning
: Unable to link
$srcdir/gdbtcl2 to gdbtcl2. You will need to
do a
6710 echo " " make install before you are able to run the GUI.
6713 # end-sanitize-gdbtk
6717 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
6718 echo "configure:6719: checking for Cygwin environment" >&5
6719 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
6720 echo $ac_n "(cached) $ac_c" 1>&6
6722 cat > conftest.
$ac_ext <<EOF
6723 #line 6724 "configure"
6724 #include "confdefs.h"
6729 #define __CYGWIN__ __CYGWIN32__
6734 if { (eval echo configure
:6735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6738 echo "configure: failed program was:" >&5
6739 cat conftest.
$ac_ext >&5
6747 echo "$ac_t""$ac_cv_cygwin" 1>&6
6749 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
6750 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
6751 echo "configure:6752: checking for mingw32 environment" >&5
6752 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6755 cat > conftest.
$ac_ext <<EOF
6756 #line 6757 "configure"
6757 #include "confdefs.h"
6763 if { (eval echo configure
:6764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6767 echo "configure: failed program was:" >&5
6768 cat conftest.
$ac_ext >&5
6776 echo "$ac_t""$ac_cv_mingw32" 1>&6
6778 test "$ac_cv_mingw32" = yes && MINGW32
=yes
6781 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6782 echo "configure:6783: checking for executable suffix" >&5
6783 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6786 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
6790 echo 'int main () { return 0; }' > conftest.
$ac_ext
6792 if { (eval echo configure
:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
6793 for file in conftest.
*; do
6795 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
6796 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
6800 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
6803 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
6808 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
6809 echo "$ac_t""${ac_cv_exeext}" 1>&6
6813 subdirs
="$configdirs"
6816 cat > confcache
<<\EOF
6817 # This file is a shell script that caches the results of configure
6818 # tests run on this system so they can be shared between configure
6819 # scripts and configure runs. It is not useful on other systems.
6820 # If it contains results you don't want to keep, you may remove or edit it.
6822 # By default, configure uses ./config.cache as the cache file,
6823 # creating it if it does not exist already. You can give configure
6824 # the --cache-file=FILE option to use a different cache file; that is
6825 # what configure does when it calls configure scripts in
6826 # subdirectories, so they share the cache.
6827 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6828 # config.status only pays attention to the cache file if you give it the
6829 # --recheck option to rerun configure.
6832 # The following way of writing the cache mishandles newlines in values,
6833 # but we know of no workaround that is simple, portable, and efficient.
6834 # So, don't put newlines in cache variables' values.
6835 # Ultrix sh set writes to stderr and can't be redirected directly,
6836 # and sets the high bit in the cache file unless we assign to the vars.
6838 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6840 # `set' does not quote correctly, so add quotes (double-quote substitution
6841 # turns \\\\ into \\, and sed turns \\ into \).
6843 -e "s/'/'\\\\''/g" \
6844 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6847 # `set' quotes correctly as required by POSIX, so do not add quotes.
6848 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6851 if cmp -s $cache_file confcache
; then
6854 if test -w $cache_file; then
6855 echo "updating cache $cache_file"
6856 cat confcache
> $cache_file
6858 echo "not updating unwritable cache $cache_file"
6863 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6865 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6866 # Let make expand exec_prefix.
6867 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6869 # Any assignment to VPATH causes Sun make to only execute
6870 # the first set of double-colon rules, so remove it if not needed.
6871 # If there is a colon in the path, we need to keep it.
6872 if test "x$srcdir" = x.
; then
6873 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6876 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6878 DEFS
=-DHAVE_CONFIG_H
6880 # Without the "./", some shells look in PATH for config.status.
6881 : ${CONFIG_STATUS=./config.status}
6883 echo creating
$CONFIG_STATUS
6884 rm -f $CONFIG_STATUS
6885 cat > $CONFIG_STATUS <<EOF
6887 # Generated automatically by configure.
6888 # Run this file to recreate the current configuration.
6889 # This directory was configured as follows,
6890 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6892 # $0 $ac_configure_args
6894 # Compiler output produced by configure, useful for debugging
6895 # configure, is in ./config.log if it exists.
6897 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6900 case "\$ac_option" in
6901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6902 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6903 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6904 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6905 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6907 -help | --help | --hel | --he | --h)
6908 echo "\$ac_cs_usage"; exit 0 ;;
6909 *) echo "\$ac_cs_usage"; exit 1 ;;
6913 ac_given_srcdir=$srcdir
6914 ac_given_INSTALL="$INSTALL"
6916 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6918 cat >> $CONFIG_STATUS <<EOF
6920 # Protect against being on the right side of a sed subst in config.status.
6921 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6922 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6926 s%@CFLAGS@%$CFLAGS%g
6927 s%@CPPFLAGS@%$CPPFLAGS%g
6928 s%@CXXFLAGS@%$CXXFLAGS%g
6929 s%@FFLAGS@%$FFLAGS%g
6931 s%@LDFLAGS@%$LDFLAGS%g
6933 s%@exec_prefix@%$exec_prefix%g
6934 s%@prefix@%$prefix%g
6935 s%@program_transform_name@%$program_transform_name%g
6936 s%@bindir@%$bindir%g
6937 s%@sbindir@%$sbindir%g
6938 s%@libexecdir@%$libexecdir%g
6939 s%@datadir@%$datadir%g
6940 s%@sysconfdir@%$sysconfdir%g
6941 s%@sharedstatedir@%$sharedstatedir%g
6942 s%@localstatedir@%$localstatedir%g
6943 s%@libdir@%$libdir%g
6944 s%@includedir@%$includedir%g
6945 s%@oldincludedir@%$oldincludedir%g
6946 s%@infodir@%$infodir%g
6947 s%@mandir@%$mandir%g
6951 s%@host_alias@%$host_alias%g
6952 s%@host_cpu@%$host_cpu%g
6953 s%@host_vendor@%$host_vendor%g
6954 s%@host_os@%$host_os%g
6955 s%@target@%$target%g
6956 s%@target_alias@%$target_alias%g
6957 s%@target_cpu@%$target_cpu%g
6958 s%@target_vendor@%$target_vendor%g
6959 s%@target_os@%$target_os%g
6961 s%@build_alias@%$build_alias%g
6962 s%@build_cpu@%$build_cpu%g
6963 s%@build_vendor@%$build_vendor%g
6964 s%@build_os@%$build_os%g
6965 s%@SET_MAKE@%$SET_MAKE%g
6966 s%@RANLIB@%$RANLIB%g
6967 s%@ALLOCA@%$ALLOCA%g
6968 s%@USE_NLS@%$USE_NLS%g
6969 s%@MSGFMT@%$MSGFMT%g
6970 s%@GMSGFMT@%$GMSGFMT%g
6971 s%@XGETTEXT@%$XGETTEXT%g
6972 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6973 s%@CATALOGS@%$CATALOGS%g
6974 s%@CATOBJEXT@%$CATOBJEXT%g
6975 s%@DATADIRNAME@%$DATADIRNAME%g
6976 s%@GMOFILES@%$GMOFILES%g
6977 s%@INSTOBJEXT@%$INSTOBJEXT%g
6978 s%@INTLDEPS@%$INTLDEPS%g
6979 s%@INTLLIBS@%$INTLLIBS%g
6980 s%@INTLOBJS@%$INTLOBJS%g
6981 s%@POFILES@%$POFILES%g
6983 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6985 s%@GT_YES@%$GT_YES%g
6986 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6988 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6989 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6990 s%@INSTALL_DATA@%$INSTALL_DATA%g
6993 s%@TERM_LIB@%$TERM_LIB%g
6994 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6995 s%@BUILD_TUI@%$BUILD_TUI%g
6996 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
6997 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6998 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6999 s%@MMALLOC@%$MMALLOC%g
7000 s%@MACHINE_OBS@%$MACHINE_OBS%g
7001 s%@ENABLE_IDE@%$ENABLE_IDE%g
7002 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
7003 s%@LIBGUI@%$LIBGUI%g
7004 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7005 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
7007 s%@LIBIDETCL@%$LIBIDETCL%g
7008 s%@LIBIDE@%$LIBIDE%g
7009 s%@IDE_DEPS@%$IDE_DEPS%g
7010 s%@WIN32LIBS@%$WIN32LIBS%g
7011 s%@WIN32LDAPP@%$WIN32LDAPP%g
7012 s%@DLLTOOL@%$DLLTOOL%g
7013 s%@WINDRES@%$WINDRES%g
7014 s%@TCL_VERSION@%$TCL_VERSION%g
7015 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7016 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7017 s%@TCL_CC@%$TCL_CC%g
7018 s%@TCL_DEFS@%$TCL_DEFS%g
7019 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7020 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7021 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7022 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7023 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7024 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7025 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7026 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7027 s%@TCL_RANLIB@%$TCL_RANLIB%g
7028 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7029 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7030 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7031 s%@TK_VERSION@%$TK_VERSION%g
7032 s%@TK_DEFS@%$TK_DEFS%g
7033 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7034 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7035 s%@TK_XLIBSW@%$TK_XLIBSW%g
7036 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7037 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7038 s%@TCLHDIR@%$TCLHDIR%g
7039 s%@TKHDIR@%$TKHDIR%g
7040 s%@ITCLHDIR@%$ITCLHDIR%g
7041 s%@ITKHDIR@%$ITKHDIR%g
7042 s%@TIXHDIR@%$TIXHDIR%g
7043 s%@ITCL_VERSION@%$ITCL_VERSION%g
7044 s%@ITCL_DEFS@%$ITCL_DEFS%g
7045 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7046 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7047 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7048 s%@ITK_VERSION@%$ITK_VERSION%g
7049 s%@ITK_DEFS@%$ITK_DEFS%g
7050 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7051 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7052 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7053 s%@TIX_VERSION@%$TIX_VERSION%g
7054 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7055 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
7056 s%@X_CFLAGS@%$X_CFLAGS%g
7057 s%@X_LDFLAGS@%$X_LDFLAGS%g
7058 s%@X_LIBS@%$X_LIBS%g
7059 s%@ITCLLIB@%$ITCLLIB%g
7060 s%@ITCL_DEPS@%$ITCL_DEPS%g
7061 s%@ITKLIB@%$ITKLIB%g
7062 s%@ITK_DEPS@%$ITK_DEPS%g
7063 s%@TIXLIB@%$TIXLIB%g
7064 s%@TIX_DEPS@%$TIX_DEPS%g
7065 s%@GDBTKLIBS@%$GDBTKLIBS%g
7066 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7067 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7068 s%@CONFIG_OBS@%$CONFIG_OBS%g
7069 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7070 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7071 s%@HLDFLAGS@%$HLDFLAGS%g
7072 s%@HLDENV@%$HLDENV%g
7073 s%@target_subdir@%$target_subdir%g
7074 /@host_makefile_frag@/r $host_makefile_frag
7075 s%@host_makefile_frag@%%g
7076 /@target_makefile_frag@/r $target_makefile_frag
7077 s%@target_makefile_frag@%%g
7080 s%@EXEEXT@%$EXEEXT%g
7081 s%@subdirs@%$subdirs%g
7086 cat >> $CONFIG_STATUS <<\EOF
7088 # Split the substitutions into bite-sized pieces for seds with
7089 # small command number limits, like on Digital OSF/1 and HP-UX.
7090 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7091 ac_file
=1 # Number of current file.
7092 ac_beg
=1 # First line for current file.
7093 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7096 while $ac_more_lines; do
7097 if test $ac_beg -gt 1; then
7098 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7100 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7102 if test ! -s conftest.s
$ac_file; then
7104 rm -f conftest.s
$ac_file
7106 if test -z "$ac_sed_cmds"; then
7107 ac_sed_cmds
="sed -f conftest.s$ac_file"
7109 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7111 ac_file
=`expr $ac_file + 1`
7113 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7116 if test -z "$ac_sed_cmds"; then
7121 cat >> $CONFIG_STATUS <<EOF
7123 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
7125 cat >> $CONFIG_STATUS <<\EOF
7126 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7127 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7129 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7130 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7131 *) ac_file_in
="${ac_file}.in" ;;
7134 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7136 # Remove last slash and all that follows it. Not all systems have dirname.
7137 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7138 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7139 # The file is in a subdirectory.
7140 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7141 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7142 # A "../" for each directory in $ac_dir_suffix.
7143 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7145 ac_dir_suffix
= ac_dots
=
7148 case "$ac_given_srcdir" in
7150 if test -z "$ac_dots"; then top_srcdir
=.
7151 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7152 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7154 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7155 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7158 case "$ac_given_INSTALL" in
7159 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7160 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7163 echo creating
"$ac_file"
7165 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7167 *Makefile
*) ac_comsub
="1i\\
7168 # $configure_input" ;;
7172 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7174 s%@configure_input@%$configure_input%g
7175 s%@srcdir@%$srcdir%g
7176 s%@top_srcdir@%$top_srcdir%g
7177 s%@INSTALL@%$INSTALL%g
7178 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7182 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7183 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7185 # ac_d sets the value in "#define NAME VALUE" lines.
7186 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7187 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7190 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7191 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7192 ac_uB
='\([ ]\)%\1#\2define\3'
7195 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7196 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7197 ac_eB
='$%\1#\2define\3'
7201 if test "${CONFIG_HEADERS+set}" != set; then
7203 cat >> $CONFIG_STATUS <<EOF
7204 CONFIG_HEADERS="config.h:config.in"
7206 cat >> $CONFIG_STATUS <<\EOF
7208 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7209 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7211 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7212 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7213 *) ac_file_in
="${ac_file}.in" ;;
7216 echo creating
$ac_file
7218 rm -f conftest.frag conftest.
in conftest.out
7219 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7220 cat $ac_file_inputs > conftest.
in
7224 # Transform confdefs.h into a sed script conftest.vals that substitutes
7225 # the proper values into config.h.in to produce config.h. And first:
7226 # Protect against being on the right side of a sed subst in config.status.
7227 # Protect against being in an unquoted here document in config.status.
7229 cat > conftest.hdr
<<\EOF
7232 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7236 sed -n -f conftest.hdr confdefs.h > conftest.vals
7239 # This sed command replaces #undef with comments. This is necessary, for
7240 # example, in the case of _POSIX_SOURCE, which is predefined and required
7241 # on some systems where configure will not decide to define it.
7242 cat >> conftest.vals <<\EOF
7243 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7246 # Break up conftest.vals because some shells have a limit on
7247 # the size of here documents, and old seds have small limits too.
7252 ac_lines=`grep -c . conftest.vals
`
7253 # grep -c gives empty output for an empty file on some AIX systems.
7254 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7255 # Write a limited-size here document to conftest.frag.
7256 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7257 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7259 sed -f conftest.frag conftest.in > conftest.out
7261 mv conftest.out conftest.in
7263 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7265 mv conftest.tail conftest.vals
7269 cat >> $CONFIG_STATUS <<\EOF
7270 rm -f conftest.frag conftest.h
7271 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7272 cat conftest.in >> conftest.h
7274 if cmp -s $ac_file conftest.h 2>/dev/null; then
7275 echo "$ac_file is unchanged"
7278 # Remove last slash and all that follows it. Not all systems have dirname.
7279 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7280 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7281 # The file is in a subdirectory.
7282 test ! -d "$ac_dir" && mkdir "$ac_dir"
7285 mv conftest.h $ac_file
7291 cat >> $CONFIG_STATUS <<EOF
7296 cat >> $CONFIG_STATUS <<\EOF
7297 srcdir=$ac_given_srcdir
7298 while test -n "$ac_sources"; do
7299 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7300 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7302 echo "linking $srcdir/$ac_source to $ac_dest"
7304 if test ! -r $srcdir/$ac_source; then
7305 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7309 # Make relative symlinks.
7310 # Remove last slash and all that follows it. Not all systems have dirname.
7311 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7312 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7313 # The dest file is in a subdirectory.
7314 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7315 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7316 # A "../" for each directory in $ac_dest_dir_suffix.
7317 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7319 ac_dest_dir_suffix= ac_dots=
7323 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7324 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7327 # Make a symlink if possible; otherwise try a hard link.
7328 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7329 ln $srcdir/$ac_source $ac_dest; then :
7331 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7335 cat >> $CONFIG_STATUS <<EOF
7337 gdb_host_cpu=$gdb_host_cpu
7338 gdb_target_cpu=$gdb_target_cpu
7339 nativefile=$nativefile
7342 cat >> $CONFIG_STATUS <<\EOF
7344 if test "${nativefile}" = ""; then
7345 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
7346 < Makefile > Makefile.tem
7347 mv -f Makefile.tem Makefile
7350 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
7351 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
7352 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
7353 mv -f Makefile.tmp Makefile
7355 case x$CONFIG_HEADERS in
7356 xconfig.h:config.in)
7362 chmod +x $CONFIG_STATUS
7363 rm -fr confdefs* $ac_clean_files
7364 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7366 if test "$no_recursion" != yes; then
7368 # Remove --cache-file and --srcdir arguments so they do not pile up.
7369 ac_sub_configure_args=
7371 for ac_arg in $ac_configure_args; do
7372 if test -n "$ac_prev"; then
7377 -cache-file | --cache-file | --cache-fil | --cache-fi \
7378 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7379 ac_prev=cache_file ;;
7380 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7381 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7387 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7391 for ac_config_dir in $configdirs; do
7393 # Do not complain, so a configure script can configure whichever
7394 # parts of a large source tree are present.
7395 if test ! -d $srcdir/$ac_config_dir; then
7399 echo configuring in $ac_config_dir
7404 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7406 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7414 # A "../" for each directory in /$ac_config_dir.
7415 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7418 .) # No --srcdir option. We are building in place.
7419 ac_sub_srcdir=$srcdir ;;
7420 /*) # Absolute path.
7421 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7423 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7426 # Check for guested configure; otherwise get Cygnus style configure.
7427 if test -f $ac_sub_srcdir/configure; then
7428 ac_sub_configure=$ac_sub_srcdir/configure
7429 elif test -f $ac_sub_srcdir/configure.in; then
7430 ac_sub_configure=$ac_configure
7432 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7436 # The recursion is here.
7437 if test -n "$ac_sub_configure"; then
7439 # Make the cache file name correct relative to the subdirectory.
7440 case "$cache_file" in
7441 /*) ac_sub_cache_file=$cache_file ;;
7443 ac_sub_cache_file="$ac_dots$cache_file" ;;
7445 case "$ac_given_INSTALL" in
7446 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7447 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7450 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7451 # The eval makes quoting arguments work.
7452 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7455 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }