3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
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 --enable-gdbtk Enable GDBTK GUI front end"
37 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
39 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
41 --with-tclinclude=DIR Directory where tcl private headers are"
43 --with-tkinclude=DIR Directory where tk private headers are"
45 --with-x use the X Window System"
47 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
49 --with-sim-funit=DIR Use target FP lib under given DIR"
51 --enable-shared Use shared libraries"
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file
=.
/config.cache
66 program_transform_name
=s
,x
,x
,
74 bindir
='${exec_prefix}/bin'
75 sbindir
='${exec_prefix}/sbin'
76 libexecdir
='${exec_prefix}/libexec'
77 datadir
='${prefix}/share'
78 sysconfdir
='${prefix}/etc'
79 sharedstatedir
='${prefix}/com'
80 localstatedir
='${prefix}/var'
81 libdir
='${exec_prefix}/lib'
82 includedir
='${prefix}/include'
83 oldincludedir
='/usr/include'
84 infodir
='${prefix}/info'
85 mandir
='${prefix}/man'
87 # Initialize some other variables.
90 SHELL
=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
116 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
117 bindir
="$ac_optarg" ;;
119 -build |
--build |
--buil |
--bui |
--bu)
121 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
122 build
="$ac_optarg" ;;
124 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
125 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
126 ac_prev
=cache_file
;;
127 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
128 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
129 cache_file
="$ac_optarg" ;;
131 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
133 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
135 datadir
="$ac_optarg" ;;
137 -disable-* |
--disable-*)
138 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* |
--enable-*)
147 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
160 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
161 |
--exec |
--exe |
--ex)
162 ac_prev
=exec_prefix
;;
163 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
164 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
165 |
--exec=* |
--exe=* |
--ex=*)
166 exec_prefix
="$ac_optarg" ;;
168 -gas |
--gas |
--ga |
--g)
169 # Obsolete; use --with-gas.
172 -help |
--help |
--hel |
--he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host |
--host |
--hos |
--ho)
229 -host=* |
--host=* |
--hos=* |
--ho=*)
232 -includedir |
--includedir |
--includedi |
--included |
--include \
233 |
--includ |
--inclu |
--incl |
--inc)
234 ac_prev
=includedir
;;
235 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
236 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
237 includedir
="$ac_optarg" ;;
239 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
241 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
242 infodir
="$ac_optarg" ;;
244 -libdir |
--libdir |
--libdi |
--libd)
246 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
247 libdir
="$ac_optarg" ;;
249 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
250 |
--libexe |
--libex |
--libe)
251 ac_prev
=libexecdir
;;
252 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
253 |
--libexe=* |
--libex=* |
--libe=*)
254 libexecdir
="$ac_optarg" ;;
256 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
257 |
--localstate |
--localstat |
--localsta |
--localst \
258 |
--locals |
--local |
--loca |
--loc |
--lo)
259 ac_prev
=localstatedir
;;
260 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
261 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
262 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
263 localstatedir
="$ac_optarg" ;;
265 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
267 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
268 mandir
="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
278 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
279 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
282 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
283 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
284 |
--oldin |
--oldi |
--old |
--ol |
--o)
285 ac_prev
=oldincludedir
;;
286 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
287 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
288 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
289 oldincludedir
="$ac_optarg" ;;
291 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
293 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
294 prefix
="$ac_optarg" ;;
296 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
297 |
--program-pre |
--program-pr |
--program-p)
298 ac_prev
=program_prefix
;;
299 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
300 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
301 program_prefix
="$ac_optarg" ;;
303 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
304 |
--program-suf |
--program-su |
--program-s)
305 ac_prev
=program_suffix
;;
306 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
307 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
308 program_suffix
="$ac_optarg" ;;
310 -program-transform-name |
--program-transform-name \
311 |
--program-transform-nam |
--program-transform-na \
312 |
--program-transform-n |
--program-transform- \
313 |
--program-transform |
--program-transfor \
314 |
--program-transfo |
--program-transf \
315 |
--program-trans |
--program-tran \
316 |
--progr-tra |
--program-tr |
--program-t)
317 ac_prev
=program_transform_name
;;
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 program_transform_name
="$ac_optarg" ;;
327 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
328 |
-silent |
--silent |
--silen |
--sile |
--sil)
331 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
333 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
335 sbindir
="$ac_optarg" ;;
337 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
338 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
339 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
341 ac_prev
=sharedstatedir
;;
342 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
343 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
344 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
346 sharedstatedir
="$ac_optarg" ;;
348 -site |
--site |
--sit)
350 -site=* |
--site=* |
--sit=*)
353 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
355 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
356 srcdir
="$ac_optarg" ;;
358 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
359 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
360 ac_prev
=sysconfdir
;;
361 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
362 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
363 sysconfdir
="$ac_optarg" ;;
365 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
367 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
368 target
="$ac_optarg" ;;
370 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
373 -version |
--version |
--versio |
--versi |
--vers)
374 echo "configure generated by autoconf version 2.12.2"
378 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* |
--without-*)
391 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package
=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
404 |
--x-incl |
--x-inc |
--x-in |
--x-i)
405 ac_prev
=x_includes
;;
406 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
407 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
408 x_includes
="$ac_optarg" ;;
410 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
411 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
412 ac_prev
=x_libraries
;;
413 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
414 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
415 x_libraries
="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE
; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
466 |
--no-cr |
--no-c) ;;
467 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
468 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
469 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest
* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file
=main.c
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted
=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted
=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE
; then
520 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file
in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp
='$CPP $CPPFLAGS'
543 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling
=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
558 ac_n
= ac_c
='\c' ac_t
=
564 # Extract the first word of "gcc", so it can be a program name with args.
565 set dummy gcc
; ac_word
=$2
566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
567 echo "configure:568: checking for $ac_word" >&5
568 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
571 if test -n "$CC"; then
572 ac_cv_prog_CC
="$CC" # Let the user override the test.
574 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
575 for ac_dir
in $PATH; do
576 test -z "$ac_dir" && ac_dir
=.
577 if test -f $ac_dir/$ac_word; then
586 if test -n "$CC"; then
587 echo "$ac_t""$CC" 1>&6
589 echo "$ac_t""no" 1>&6
592 if test -z "$CC"; then
593 # Extract the first word of "cc", so it can be a program name with args.
594 set dummy cc
; ac_word
=$2
595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
596 echo "configure:597: checking for $ac_word" >&5
597 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
600 if test -n "$CC"; then
601 ac_cv_prog_CC
="$CC" # Let the user override the test.
603 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
605 for ac_dir
in $PATH; do
606 test -z "$ac_dir" && ac_dir
=.
607 if test -f $ac_dir/$ac_word; then
608 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
617 if test $ac_prog_rejected = yes; then
618 # We found a bogon in the path, so make sure we never use it.
619 set dummy
$ac_cv_prog_CC
621 if test $# -gt 0; then
622 # We chose a different compiler from the bogus one.
623 # However, it has the same basename, so the bogon will be chosen
624 # first if we set CC to just the basename; use the full file name.
626 set dummy
"$ac_dir/$ac_word" "$@"
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
643 # Extract the first word of "cl", so it can be a program name with args.
644 set dummy cl
; ac_word
=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC
="$CC" # Let the user override the test.
653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $PATH; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
668 echo "$ac_t""no" 1>&6
673 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
676 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
677 echo "configure:678: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681 ac_cpp
='$CPP $CPPFLAGS'
682 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684 cross_compiling
=$ac_cv_prog_cc_cross
686 cat > conftest.
$ac_ext <<EOF
687 #line 688 "configure"
688 #include "confdefs.h"
691 if { (eval echo configure
:692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
692 ac_cv_prog_cc_works
=yes
693 # If we can't run a trivial program, we are probably using a cross compiler.
694 if (.
/conftest
; exit) 2>/dev
/null
; then
695 ac_cv_prog_cc_cross
=no
697 ac_cv_prog_cc_cross
=yes
700 echo "configure: failed program was:" >&5
701 cat conftest.
$ac_ext >&5
702 ac_cv_prog_cc_works
=no
706 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
707 if test $ac_cv_prog_cc_works = no
; then
708 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
712 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
713 cross_compiling
=$ac_cv_prog_cc_cross
715 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
716 echo "configure:717: checking whether we are using GNU C" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 cat > conftest.c
<<EOF
725 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
732 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
734 if test $ac_cv_prog_gcc = yes; then
740 ac_test_CFLAGS
="${CFLAGS+set}"
741 ac_save_CFLAGS
="$CFLAGS"
743 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${CC-cc} accepts -g" >&5
745 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 echo 'void f(){}' > conftest.c
749 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
758 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
759 if test "$ac_test_CFLAGS" = set; then
760 CFLAGS
="$ac_save_CFLAGS"
761 elif test $ac_cv_prog_cc_g = yes; then
762 if test "$GCC" = yes; then
768 if test "$GCC" = yes; then
775 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
776 echo "configure:777: checking how to run the C preprocessor" >&5
777 # On Suns, sometimes $CPP names a directory.
778 if test -n "$CPP" && test -d "$CPP"; then
781 if test -z "$CPP"; then
782 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 # This must be in double quotes, not single quotes, because CPP may get
786 # substituted into the Makefile and "${CC-cc}" will confuse make.
788 # On the NeXT, cc -E runs the code through the compiler's parser,
789 # not just through cpp.
790 cat > conftest.
$ac_ext <<EOF
791 #line 792 "configure"
792 #include "confdefs.h"
796 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
797 { (eval echo configure
:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
798 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
799 if test -z "$ac_err"; then
803 echo "configure: failed program was:" >&5
804 cat conftest.
$ac_ext >&5
806 CPP
="${CC-cc} -E -traditional-cpp"
807 cat > conftest.
$ac_ext <<EOF
808 #line 809 "configure"
809 #include "confdefs.h"
813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
814 { (eval echo configure
:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
816 if test -z "$ac_err"; then
820 echo "configure: failed program was:" >&5
821 cat conftest.
$ac_ext >&5
823 CPP
="${CC-cc} -nologo -E"
824 cat > conftest.
$ac_ext <<EOF
825 #line 826 "configure"
826 #include "confdefs.h"
830 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831 { (eval echo configure
:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
832 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
833 if test -z "$ac_err"; then
837 echo "configure: failed program was:" >&5
838 cat conftest.
$ac_ext >&5
847 ac_cv_prog_CPP
="$CPP"
849 CPP
="$ac_cv_prog_CPP"
851 ac_cv_prog_CPP
="$CPP"
853 echo "$ac_t""$CPP" 1>&6
855 echo $ac_n "checking for AIX""... $ac_c" 1>&6
856 echo "configure:857: checking for AIX" >&5
857 cat > conftest.
$ac_ext <<EOF
858 #line 859 "configure"
859 #include "confdefs.h"
865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
866 egrep "yes" >/dev
/null
2>&1; then
868 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
869 #define _ALL_SOURCE 1
874 echo "$ac_t""no" 1>&6
879 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
880 echo "configure:881: checking for POSIXized ISC" >&5
881 if test -d /etc
/conf
/kconfig.d
&&
882 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
884 echo "$ac_t""yes" 1>&6
885 ISC
=yes # If later tests want to check for ISC.
886 cat >> confdefs.h
<<\EOF
887 #define _POSIX_SOURCE 1
890 if test "$GCC" = yes; then
896 echo "$ac_t""no" 1>&6
903 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
904 echo "configure:905: checking for ${CC-cc} option to accept ANSI C" >&5
905 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 am_cv_prog_cc_stdc
=no
910 # Don't try gcc -ansi; that turns off useful extensions and
911 # breaks some systems' header files.
913 # Ultrix and OSF/1 -std1
914 # HP-UX -Aa -D_HPUX_SOURCE
915 # SVR4 -Xc -D__EXTENSIONS__
916 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
918 CC
="$ac_save_CC $ac_arg"
919 cat > conftest.
$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
924 #include <sys/types.h>
925 #include <sys/stat.h>
926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
927 struct buf { int x; };
928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
929 static char *e (p, i)
935 static char *f (char * (*g) (char **, int), char **p, ...)
940 s = g (p, va_arg (v,int));
944 int test (int i, double x);
945 struct s1 {int (*f) (int a);};
946 struct s2 {int (*f) (double a);};
947 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
953 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
957 if { (eval echo configure
:958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
959 am_cv_prog_cc_stdc
="$ac_arg"; break
961 echo "configure: failed program was:" >&5
962 cat conftest.
$ac_ext >&5
970 if test -z "$am_cv_prog_cc_stdc"; then
971 echo "$ac_t""none needed" 1>&6
973 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
975 case "x$am_cv_prog_cc_stdc" in
977 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
982 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
983 if test -f $ac_dir/install-sh
; then
985 ac_install_sh
="$ac_aux_dir/install-sh -c"
987 elif test -f $ac_dir/install.sh
; then
989 ac_install_sh
="$ac_aux_dir/install.sh -c"
993 if test -z "$ac_aux_dir"; then
994 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
996 ac_config_guess
=$ac_aux_dir/config.guess
997 ac_config_sub
=$ac_aux_dir/config.sub
998 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1001 # Do some error checking and defaulting for the host and target type.
1003 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1006 # 1. You are not allowed to specify --host, --target, and nonopt at the
1008 # 2. Host defaults to nonopt.
1009 # 3. If nonopt is not specified, then host defaults to the current host,
1010 # as determined by config.guess.
1011 # 4. Target and build default to nonopt.
1012 # 5. If nonopt is not specified, then target and build default to host.
1014 # The aliases save the names the user supplied, while $host etc.
1015 # will get canonicalized.
1016 case $host---$target---$nonopt in
1017 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1018 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1022 # Make sure we can run config.sub.
1023 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1024 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1027 echo $ac_n "checking host system type""... $ac_c" 1>&6
1028 echo "configure:1029: checking host system type" >&5
1031 case "$host_alias" in
1035 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1036 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1038 *) host_alias
=$nonopt ;;
1042 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1043 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046 echo "$ac_t""$host" 1>&6
1048 echo $ac_n "checking target system type""... $ac_c" 1>&6
1049 echo "configure:1050: checking target system type" >&5
1051 target_alias
=$target
1052 case "$target_alias" in
1055 NONE
) target_alias
=$host_alias ;;
1056 *) target_alias
=$nonopt ;;
1060 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1061 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1062 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1063 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064 echo "$ac_t""$target" 1>&6
1066 echo $ac_n "checking build system type""... $ac_c" 1>&6
1067 echo "configure:1068: checking build system type" >&5
1070 case "$build_alias" in
1073 NONE
) build_alias
=$host_alias ;;
1074 *) build_alias
=$nonopt ;;
1078 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1079 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1080 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1081 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1082 echo "$ac_t""$build" 1>&6
1084 test "$host_alias" != "$target_alias" &&
1085 test "$program_prefix$program_suffix$program_transform_name" = \
1087 program_prefix
=${target_alias}-
1091 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1092 echo "configure:1093: checking whether ${MAKE-make} sets \${MAKE}" >&5
1093 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1094 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 cat > conftestmake
<<\EOF
1099 @
echo 'ac_maketemp="${MAKE}"'
1101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1102 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1103 if test -n "$ac_maketemp"; then
1104 eval ac_cv_prog_make_
${ac_make}_set
=yes
1106 eval ac_cv_prog_make_
${ac_make}_set
=no
1110 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1111 echo "$ac_t""yes" 1>&6
1114 echo "$ac_t""no" 1>&6
1115 SET_MAKE
="MAKE=${MAKE-make}"
1118 # Extract the first word of "ranlib", so it can be a program name with args.
1119 set dummy ranlib
; ac_word
=$2
1120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1121 echo "configure:1122: checking for $ac_word" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 if test -n "$RANLIB"; then
1126 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1128 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1129 for ac_dir
in $PATH; do
1130 test -z "$ac_dir" && ac_dir
=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_RANLIB
="ranlib"
1137 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1140 RANLIB
="$ac_cv_prog_RANLIB"
1141 if test -n "$RANLIB"; then
1142 echo "$ac_t""$RANLIB" 1>&6
1144 echo "$ac_t""no" 1>&6
1147 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1148 echo "configure:1149: checking for ANSI C header files" >&5
1149 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 cat > conftest.
$ac_ext <<EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1160 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161 { (eval echo configure
:1162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1162 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1163 if test -z "$ac_err"; then
1165 ac_cv_header_stdc
=yes
1168 echo "configure: failed program was:" >&5
1169 cat conftest.
$ac_ext >&5
1171 ac_cv_header_stdc
=no
1175 if test $ac_cv_header_stdc = yes; then
1176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1177 cat > conftest.
$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1183 egrep "memchr" >/dev
/null
2>&1; then
1187 ac_cv_header_stdc
=no
1193 if test $ac_cv_header_stdc = yes; then
1194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1195 cat > conftest.
$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1201 egrep "free" >/dev
/null
2>&1; then
1205 ac_cv_header_stdc
=no
1211 if test $ac_cv_header_stdc = yes; then
1212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1213 if test "$cross_compiling" = yes; then
1216 cat > conftest.
$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1220 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1221 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1223 int main () { int i; for (i = 0; i < 256; i++)
1224 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1228 if { (eval echo configure
:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1232 echo "configure: failed program was:" >&5
1233 cat conftest.
$ac_ext >&5
1235 ac_cv_header_stdc
=no
1243 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1244 if test $ac_cv_header_stdc = yes; then
1245 cat >> confdefs.h
<<\EOF
1246 #define STDC_HEADERS 1
1251 echo $ac_n "checking for working const""... $ac_c" 1>&6
1252 echo "configure:1253: checking for working const" >&5
1253 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 cat > conftest.
$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1262 /* Ultrix mips cc rejects this. */
1263 typedef int charset[2]; const charset x;
1264 /* SunOS 4.1.1 cc rejects this. */
1265 char const *const *ccp;
1267 /* NEC SVR4.0.2 mips cc rejects this. */
1268 struct point {int x, y;};
1269 static struct point const zero = {0,0};
1270 /* AIX XL C 1.02.0.0 rejects this.
1271 It does not let you subtract one const X* pointer from another in an arm
1272 of an if-expression whose if-part is not a constant expression */
1273 const char *g = "string";
1274 ccp = &g + (g ? g-g : 0);
1275 /* HPUX 7.0 cc rejects these. */
1278 ccp = (char const *const *) p;
1279 { /* SCO 3.2v4 cc rejects this. */
1281 char const *s = 0 ? (char *) 0 : (char const *) 0;
1285 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1287 const int *foo = &x[0];
1290 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1291 typedef const int *iptr;
1295 { /* AIX XL C 1.02.0.0 rejects this saying
1296 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1297 struct s { int j; const int *ap[3]; };
1298 struct s *b; b->j = 5;
1300 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1306 if { (eval echo configure
:1307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1310 echo "configure: failed program was:" >&5
1311 cat conftest.
$ac_ext >&5
1318 echo "$ac_t""$ac_cv_c_const" 1>&6
1319 if test $ac_cv_c_const = no
; then
1320 cat >> confdefs.h
<<\EOF
1326 echo $ac_n "checking for inline""... $ac_c" 1>&6
1327 echo "configure:1328: checking for inline" >&5
1328 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1332 for ac_kw
in inline __inline__ __inline
; do
1333 cat > conftest.
$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1341 if { (eval echo configure
:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1343 ac_cv_c_inline
=$ac_kw; break
1345 echo "configure: failed program was:" >&5
1346 cat conftest.
$ac_ext >&5
1353 echo "$ac_t""$ac_cv_c_inline" 1>&6
1354 case "$ac_cv_c_inline" in
1356 no
) cat >> confdefs.h
<<\EOF
1360 *) cat >> confdefs.h
<<EOF
1361 #define inline $ac_cv_c_inline
1366 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1367 echo "configure:1368: checking for off_t" >&5
1368 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 cat > conftest.
$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 #include <sys/types.h>
1380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1381 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1383 ac_cv_type_off_t
=yes
1391 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1392 if test $ac_cv_type_off_t = no
; then
1393 cat >> confdefs.h
<<\EOF
1399 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1400 echo "configure:1401: checking for size_t" >&5
1401 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 #include <sys/types.h>
1413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1414 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1416 ac_cv_type_size_t
=yes
1419 ac_cv_type_size_t
=no
1424 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1425 if test $ac_cv_type_size_t = no
; then
1426 cat >> confdefs.h
<<\EOF
1427 #define size_t unsigned
1432 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1433 # for constant arguments. Useless!
1434 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1435 echo "configure:1436: checking for working alloca.h" >&5
1436 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 cat > conftest.
$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1444 char *p = alloca(2 * sizeof(int));
1447 if { (eval echo configure
:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1449 ac_cv_header_alloca_h
=yes
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1454 ac_cv_header_alloca_h
=no
1459 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1460 if test $ac_cv_header_alloca_h = yes; then
1461 cat >> confdefs.h
<<\EOF
1462 #define HAVE_ALLOCA_H 1
1467 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1468 echo "configure:1469: checking for alloca" >&5
1469 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 cat > conftest.
$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1477 # define alloca __builtin_alloca
1480 # include <malloc.h>
1481 # define alloca _alloca
1484 # include <alloca.h>
1489 # ifndef alloca /* predefined by HP cc +Olibcalls */
1498 char *p = (char *) alloca(1);
1501 if { (eval echo configure
:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1503 ac_cv_func_alloca_works
=yes
1505 echo "configure: failed program was:" >&5
1506 cat conftest.
$ac_ext >&5
1508 ac_cv_func_alloca_works
=no
1513 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1514 if test $ac_cv_func_alloca_works = yes; then
1515 cat >> confdefs.h
<<\EOF
1516 #define HAVE_ALLOCA 1
1521 if test $ac_cv_func_alloca_works = no
; then
1522 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1523 # that cause trouble. Some versions do not even contain alloca or
1524 # contain a buggy version. If you still want to use their alloca,
1525 # use ar to extract alloca.o from them instead of compiling alloca.c.
1526 ALLOCA
=alloca.
${ac_objext}
1527 cat >> confdefs.h
<<\EOF
1532 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1533 echo "configure:1534: checking whether alloca needs Cray hooks" >&5
1534 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 cat > conftest.
$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1540 #if defined(CRAY) && ! defined(CRAY2)
1547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1548 egrep "webecray" >/dev
/null
2>&1; then
1559 echo "$ac_t""$ac_cv_os_cray" 1>&6
1560 if test $ac_cv_os_cray = yes; then
1561 for ac_func
in _getb67 GETB67 getb67
; do
1562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1563 echo "configure:1564: checking for $ac_func" >&5
1564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.
$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 /* System header to define __stub macros and hopefully few prototypes,
1571 which can conflict with char $ac_func(); below. */
1573 /* Override any gcc2 internal prototype to avoid an error. */
1574 /* We use char because int might match the return type of a gcc2
1575 builtin and then its argument prototype would still apply. */
1580 /* The GNU C library defines this for functions which it implements
1581 to always fail with ENOSYS. Some functions are actually named
1582 something starting with __ and the normal name is an alias. */
1583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1591 if { (eval echo configure
:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1593 eval "ac_cv_func_$ac_func=yes"
1595 echo "configure: failed program was:" >&5
1596 cat conftest.
$ac_ext >&5
1598 eval "ac_cv_func_$ac_func=no"
1603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1604 echo "$ac_t""yes" 1>&6
1605 cat >> confdefs.h
<<EOF
1606 #define CRAY_STACKSEG_END $ac_func
1611 echo "$ac_t""no" 1>&6
1617 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1618 echo "configure:1619: checking stack direction for C alloca" >&5
1619 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 if test "$cross_compiling" = yes; then
1623 ac_cv_c_stack_direction
=0
1625 cat > conftest.
$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1628 find_stack_direction ()
1630 static char *addr = 0;
1635 return find_stack_direction ();
1638 return (&dummy > addr) ? 1 : -1;
1642 exit (find_stack_direction() < 0);
1645 if { (eval echo configure
:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1647 ac_cv_c_stack_direction
=1
1649 echo "configure: failed program was:" >&5
1650 cat conftest.
$ac_ext >&5
1652 ac_cv_c_stack_direction
=-1
1659 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1660 cat >> confdefs.h
<<EOF
1661 #define STACK_DIRECTION $ac_cv_c_stack_direction
1666 for ac_hdr
in unistd.h
1668 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_hdr" >&5
1671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 cat > conftest.
$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1679 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1680 { (eval echo configure
:1681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1681 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1682 if test -z "$ac_err"; then
1684 eval "ac_cv_header_$ac_safe=yes"
1687 echo "configure: failed program was:" >&5
1688 cat conftest.
$ac_ext >&5
1690 eval "ac_cv_header_$ac_safe=no"
1694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1695 echo "$ac_t""yes" 1>&6
1696 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1697 cat >> confdefs.h
<<EOF
1698 #define $ac_tr_hdr 1
1702 echo "$ac_t""no" 1>&6
1706 for ac_func
in getpagesize
1708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1709 echo "configure:1710: checking for $ac_func" >&5
1710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 cat > conftest.
$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1716 /* System header to define __stub macros and hopefully few prototypes,
1717 which can conflict with char $ac_func(); below. */
1719 /* Override any gcc2 internal prototype to avoid an error. */
1720 /* We use char because int might match the return type of a gcc2
1721 builtin and then its argument prototype would still apply. */
1726 /* The GNU C library defines this for functions which it implements
1727 to always fail with ENOSYS. Some functions are actually named
1728 something starting with __ and the normal name is an alias. */
1729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1737 if { (eval echo configure
:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1739 eval "ac_cv_func_$ac_func=yes"
1741 echo "configure: failed program was:" >&5
1742 cat conftest.
$ac_ext >&5
1744 eval "ac_cv_func_$ac_func=no"
1749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1750 echo "$ac_t""yes" 1>&6
1751 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1752 cat >> confdefs.h
<<EOF
1753 #define $ac_tr_func 1
1757 echo "$ac_t""no" 1>&6
1761 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1762 echo "configure:1763: checking for working mmap" >&5
1763 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 if test "$cross_compiling" = yes; then
1767 ac_cv_func_mmap_fixed_mapped
=no
1769 cat > conftest.
$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1773 /* Thanks to Mike Haertel and Jim Avera for this test.
1774 Here is a matrix of mmap possibilities:
1775 mmap private not fixed
1776 mmap private fixed at somewhere currently unmapped
1777 mmap private fixed at somewhere already mapped
1778 mmap shared not fixed
1779 mmap shared fixed at somewhere currently unmapped
1780 mmap shared fixed at somewhere already mapped
1781 For private mappings, we should verify that changes cannot be read()
1782 back from the file, nor mmap's back from the file at a different
1783 address. (There have been systems where private was not correctly
1784 implemented like the infamous i386 svr4.0, and systems where the
1785 VM page cache was not coherent with the filesystem buffer cache
1786 like early versions of FreeBSD and possibly contemporary NetBSD.)
1787 For shared mappings, we should conversely verify that changes get
1788 propogated back to all the places they're supposed to be.
1790 Grep wants private fixed already mapped.
1791 The main things grep needs to know about mmap are:
1792 * does it exist and is it safe to write into the mmap'd area
1793 * how to use it (BSD variants) */
1794 #include <sys/types.h>
1796 #include <sys/mman.h>
1798 /* This mess was copied from the GNU getpagesize.h. */
1799 #ifndef HAVE_GETPAGESIZE
1800 # ifdef HAVE_UNISTD_H
1801 # include <unistd.h>
1804 /* Assume that all systems that can run configure have sys/param.h. */
1805 # ifndef HAVE_SYS_PARAM_H
1806 # define HAVE_SYS_PARAM_H 1
1809 # ifdef _SC_PAGESIZE
1810 # define getpagesize() sysconf(_SC_PAGESIZE)
1811 # else /* no _SC_PAGESIZE */
1812 # ifdef HAVE_SYS_PARAM_H
1813 # include <sys/param.h>
1814 # ifdef EXEC_PAGESIZE
1815 # define getpagesize() EXEC_PAGESIZE
1816 # else /* no EXEC_PAGESIZE */
1818 # define getpagesize() NBPG * CLSIZE
1821 # endif /* no CLSIZE */
1822 # else /* no NBPG */
1824 # define getpagesize() NBPC
1825 # else /* no NBPC */
1827 # define getpagesize() PAGESIZE
1828 # endif /* PAGESIZE */
1829 # endif /* no NBPC */
1830 # endif /* no NBPG */
1831 # endif /* no EXEC_PAGESIZE */
1832 # else /* no HAVE_SYS_PARAM_H */
1833 # define getpagesize() 8192 /* punt totally */
1834 # endif /* no HAVE_SYS_PARAM_H */
1835 # endif /* no _SC_PAGESIZE */
1837 #endif /* no HAVE_GETPAGESIZE */
1840 extern "C" { void *malloc(unsigned); }
1848 char *data, *data2, *data3;
1852 pagesize = getpagesize();
1855 * First, make a file with some known garbage in it.
1857 data = malloc(pagesize);
1860 for (i = 0; i < pagesize; ++i)
1861 *(data + i) = rand();
1863 fd = creat("conftestmmap", 0600);
1866 if (write(fd, data, pagesize) != pagesize)
1871 * Next, try to mmap the file at a fixed address which
1872 * already has something else allocated at it. If we can,
1873 * also make sure that we see the same garbage.
1875 fd = open("conftestmmap", O_RDWR);
1878 data2 = malloc(2 * pagesize);
1881 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1882 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1883 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1885 for (i = 0; i < pagesize; ++i)
1886 if (*(data + i) != *(data2 + i))
1890 * Finally, make sure that changes to the mapped area
1891 * do not percolate back to the file as seen by read().
1892 * (This is a bug on some variants of i386 svr4.0.)
1894 for (i = 0; i < pagesize; ++i)
1895 *(data2 + i) = *(data2 + i) + 1;
1896 data3 = malloc(pagesize);
1899 if (read(fd, data3, pagesize) != pagesize)
1901 for (i = 0; i < pagesize; ++i)
1902 if (*(data + i) != *(data3 + i))
1905 unlink("conftestmmap");
1910 if { (eval echo configure
:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1912 ac_cv_func_mmap_fixed_mapped
=yes
1914 echo "configure: failed program was:" >&5
1915 cat conftest.
$ac_ext >&5
1917 ac_cv_func_mmap_fixed_mapped
=no
1924 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1925 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1926 cat >> confdefs.h
<<\EOF
1933 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1934 unistd.h values.h sys
/param.h
1936 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_hdr" >&5
1939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 cat > conftest.
$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1947 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1948 { (eval echo configure
:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1949 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1950 if test -z "$ac_err"; then
1952 eval "ac_cv_header_$ac_safe=yes"
1955 echo "configure: failed program was:" >&5
1956 cat conftest.
$ac_ext >&5
1958 eval "ac_cv_header_$ac_safe=no"
1962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1963 echo "$ac_t""yes" 1>&6
1964 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1965 cat >> confdefs.h
<<EOF
1966 #define $ac_tr_hdr 1
1970 echo "$ac_t""no" 1>&6
1974 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1975 __argz_count __argz_stringify __argz_next
1977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1978 echo "configure:1979: checking for $ac_func" >&5
1979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1982 cat > conftest.
$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1985 /* System header to define __stub macros and hopefully few prototypes,
1986 which can conflict with char $ac_func(); below. */
1988 /* Override any gcc2 internal prototype to avoid an error. */
1989 /* We use char because int might match the return type of a gcc2
1990 builtin and then its argument prototype would still apply. */
1995 /* The GNU C library defines this for functions which it implements
1996 to always fail with ENOSYS. Some functions are actually named
1997 something starting with __ and the normal name is an alias. */
1998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2006 if { (eval echo configure
:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2008 eval "ac_cv_func_$ac_func=yes"
2010 echo "configure: failed program was:" >&5
2011 cat conftest.
$ac_ext >&5
2013 eval "ac_cv_func_$ac_func=no"
2018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2021 cat >> confdefs.h
<<EOF
2022 #define $ac_tr_func 1
2026 echo "$ac_t""no" 1>&6
2031 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2032 for ac_func
in stpcpy
2034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2035 echo "configure:2036: checking for $ac_func" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 cat > conftest.
$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 /* System header to define __stub macros and hopefully few prototypes,
2043 which can conflict with char $ac_func(); below. */
2045 /* Override any gcc2 internal prototype to avoid an error. */
2046 /* We use char because int might match the return type of a gcc2
2047 builtin and then its argument prototype would still apply. */
2052 /* The GNU C library defines this for functions which it implements
2053 to always fail with ENOSYS. Some functions are actually named
2054 something starting with __ and the normal name is an alias. */
2055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2063 if { (eval echo configure
:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2065 eval "ac_cv_func_$ac_func=yes"
2067 echo "configure: failed program was:" >&5
2068 cat conftest.
$ac_ext >&5
2070 eval "ac_cv_func_$ac_func=no"
2075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2076 echo "$ac_t""yes" 1>&6
2077 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2078 cat >> confdefs.h
<<EOF
2079 #define $ac_tr_func 1
2083 echo "$ac_t""no" 1>&6
2088 if test "${ac_cv_func_stpcpy}" = "yes"; then
2089 cat >> confdefs.h
<<\EOF
2090 #define HAVE_STPCPY 1
2095 if test $ac_cv_header_locale_h = yes; then
2096 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2097 echo "configure:2098: checking for LC_MESSAGES" >&5
2098 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.
$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2109 if { (eval echo configure
:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2111 am_cv_val_LC_MESSAGES
=yes
2113 echo "configure: failed program was:" >&5
2114 cat conftest.
$ac_ext >&5
2116 am_cv_val_LC_MESSAGES
=no
2121 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2122 if test $am_cv_val_LC_MESSAGES = yes; then
2123 cat >> confdefs.h
<<\EOF
2124 #define HAVE_LC_MESSAGES 1
2129 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2130 echo "configure:2131: checking whether NLS is requested" >&5
2131 # Check whether --enable-nls or --disable-nls was given.
2132 if test "${enable_nls+set}" = set; then
2133 enableval
="$enable_nls"
2139 echo "$ac_t""$USE_NLS" 1>&6
2142 USE_INCLUDED_LIBINTL
=no
2144 if test "$USE_NLS" = "yes"; then
2145 cat >> confdefs.h
<<\EOF
2146 #define ENABLE_NLS 1
2149 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2150 echo "configure:2151: checking whether included gettext is requested" >&5
2151 # Check whether --with-included-gettext or --without-included-gettext was given.
2152 if test "${with_included_gettext+set}" = set; then
2153 withval
="$with_included_gettext"
2154 nls_cv_force_use_gnu_gettext
=$withval
2156 nls_cv_force_use_gnu_gettext
=no
2159 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2161 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2162 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2164 nls_cv_header_libgt
=
2167 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2168 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2169 echo "configure:2170: checking for libintl.h" >&5
2170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 #include <libintl.h>
2178 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure
:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2181 if test -z "$ac_err"; then
2183 eval "ac_cv_header_$ac_safe=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.
$ac_ext >&5
2189 eval "ac_cv_header_$ac_safe=no"
2193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2194 echo "$ac_t""yes" 1>&6
2195 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2196 echo "configure:2197: checking for gettext in libc" >&5
2197 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 #include <libintl.h>
2205 return (int) gettext ("")
2208 if { (eval echo configure
:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2210 gt_cv_func_gettext_libc
=yes
2212 echo "configure: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2215 gt_cv_func_gettext_libc
=no
2220 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2222 if test "$gt_cv_func_gettext_libc" != "yes"; then
2223 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2224 echo "configure:2225: checking for bindtextdomain in -lintl" >&5
2225 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 ac_save_LIBS
="$LIBS"
2231 cat > conftest.
$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 /* Override any gcc2 internal prototype to avoid an error. */
2235 /* We use char because int might match the return type of a gcc2
2236 builtin and then its argument prototype would still apply. */
2237 char bindtextdomain();
2243 if { (eval echo configure
:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2245 eval "ac_cv_lib_$ac_lib_var=yes"
2247 echo "configure: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2250 eval "ac_cv_lib_$ac_lib_var=no"
2253 LIBS
="$ac_save_LIBS"
2256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2258 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2259 echo "configure:2260: checking for gettext in libintl" >&5
2260 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.
$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2268 return (int) gettext ("")
2271 if { (eval echo configure
:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2273 gt_cv_func_gettext_libintl
=yes
2275 echo "configure: failed program was:" >&5
2276 cat conftest.
$ac_ext >&5
2278 gt_cv_func_gettext_libintl
=no
2283 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2285 echo "$ac_t""no" 1>&6
2290 if test "$gt_cv_func_gettext_libc" = "yes" \
2291 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2292 cat >> confdefs.h
<<\EOF
2293 #define HAVE_GETTEXT 1
2296 # Extract the first word of "msgfmt", so it can be a program name with args.
2297 set dummy msgfmt
; ac_word
=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2305 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2308 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2309 for ac_dir
in $PATH; do
2310 test -z "$ac_dir" && ac_dir
=.
2311 if test -f $ac_dir/$ac_word; then
2312 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2313 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2319 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2323 MSGFMT
="$ac_cv_path_MSGFMT"
2324 if test -n "$MSGFMT"; then
2325 echo "$ac_t""$MSGFMT" 1>&6
2327 echo "$ac_t""no" 1>&6
2329 if test "$MSGFMT" != "no"; then
2330 for ac_func
in dcgettext
2332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2333 echo "configure:2334: checking for $ac_func" >&5
2334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 cat > conftest.
$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 /* System header to define __stub macros and hopefully few prototypes,
2341 which can conflict with char $ac_func(); below. */
2343 /* Override any gcc2 internal prototype to avoid an error. */
2344 /* We use char because int might match the return type of a gcc2
2345 builtin and then its argument prototype would still apply. */
2350 /* The GNU C library defines this for functions which it implements
2351 to always fail with ENOSYS. Some functions are actually named
2352 something starting with __ and the normal name is an alias. */
2353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2361 if { (eval echo configure
:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2363 eval "ac_cv_func_$ac_func=yes"
2365 echo "configure: failed program was:" >&5
2366 cat conftest.
$ac_ext >&5
2368 eval "ac_cv_func_$ac_func=no"
2373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2374 echo "$ac_t""yes" 1>&6
2375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2376 cat >> confdefs.h
<<EOF
2377 #define $ac_tr_func 1
2381 echo "$ac_t""no" 1>&6
2385 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2386 set dummy gmsgfmt
; ac_word
=$2
2387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_word" >&5
2389 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2394 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2397 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2400 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2401 for ac_dir
in $PATH; do
2402 test -z "$ac_dir" && ac_dir
=.
2403 if test -f $ac_dir/$ac_word; then
2404 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2409 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2413 GMSGFMT
="$ac_cv_path_GMSGFMT"
2414 if test -n "$GMSGFMT"; then
2415 echo "$ac_t""$GMSGFMT" 1>&6
2417 echo "$ac_t""no" 1>&6
2420 # Extract the first word of "xgettext", so it can be a program name with args.
2421 set dummy xgettext
; ac_word
=$2
2422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_word" >&5
2424 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2429 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2432 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2433 for ac_dir
in $PATH; do
2434 test -z "$ac_dir" && ac_dir
=.
2435 if test -f $ac_dir/$ac_word; then
2436 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2437 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2443 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2447 XGETTEXT
="$ac_cv_path_XGETTEXT"
2448 if test -n "$XGETTEXT"; then
2449 echo "$ac_t""$XGETTEXT" 1>&6
2451 echo "$ac_t""no" 1>&6
2454 cat > conftest.
$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2459 extern int _nl_msg_cat_cntr;
2460 return _nl_msg_cat_cntr
2463 if { (eval echo configure
:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2468 echo "configure: failed program was:" >&5
2469 cat conftest.
$ac_ext >&5
2480 echo "$ac_t""no" 1>&6
2485 if test "$CATOBJEXT" = "NONE"; then
2486 nls_cv_use_gnu_gettext
=yes
2490 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2491 INTLOBJS
="\$(GETTOBJS)"
2492 # Extract the first word of "msgfmt", so it can be a program name with args.
2493 set dummy msgfmt
; ac_word
=$2
2494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2495 echo "configure:2496: checking for $ac_word" >&5
2496 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2501 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2504 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2505 for ac_dir
in $PATH; do
2506 test -z "$ac_dir" && ac_dir
=.
2507 if test -f $ac_dir/$ac_word; then
2508 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2509 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2515 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2519 MSGFMT
="$ac_cv_path_MSGFMT"
2520 if test -n "$MSGFMT"; then
2521 echo "$ac_t""$MSGFMT" 1>&6
2523 echo "$ac_t""no" 1>&6
2526 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2527 set dummy gmsgfmt
; ac_word
=$2
2528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2529 echo "configure:2530: checking for $ac_word" >&5
2530 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2535 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2538 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2541 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2542 for ac_dir
in $PATH; do
2543 test -z "$ac_dir" && ac_dir
=.
2544 if test -f $ac_dir/$ac_word; then
2545 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2550 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2554 GMSGFMT
="$ac_cv_path_GMSGFMT"
2555 if test -n "$GMSGFMT"; then
2556 echo "$ac_t""$GMSGFMT" 1>&6
2558 echo "$ac_t""no" 1>&6
2561 # Extract the first word of "xgettext", so it can be a program name with args.
2562 set dummy xgettext
; ac_word
=$2
2563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2564 echo "configure:2565: checking for $ac_word" >&5
2565 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2570 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2573 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2574 for ac_dir
in $PATH; do
2575 test -z "$ac_dir" && ac_dir
=.
2576 if test -f $ac_dir/$ac_word; then
2577 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2578 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2584 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2588 XGETTEXT
="$ac_cv_path_XGETTEXT"
2589 if test -n "$XGETTEXT"; then
2590 echo "$ac_t""$XGETTEXT" 1>&6
2592 echo "$ac_t""no" 1>&6
2596 USE_INCLUDED_LIBINTL
=yes
2600 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2602 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2603 nls_cv_header_intl
=libintl.h
2604 nls_cv_header_libgt
=libgettext.h
2607 if test "$XGETTEXT" != ":"; then
2608 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2611 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2616 # We need to process the po/ directory.
2620 nls_cv_header_intl
=libintl.h
2621 nls_cv_header_libgt
=libgettext.h
2624 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2625 # because some of the sources are only built for this goal.
2626 if test "$PACKAGE" = gettext; then
2628 USE_INCLUDED_LIBINTL
=yes
2631 for lang
in $ALL_LINGUAS; do
2632 GMOFILES
="$GMOFILES $lang.gmo"
2633 POFILES
="$POFILES $lang.po"
2649 if test "x$CATOBJEXT" != "x"; then
2650 if test "x$ALL_LINGUAS" = "x"; then
2653 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2654 echo "configure:2655: checking for catalogs to be installed" >&5
2656 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2657 case "$ALL_LINGUAS" in
2658 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2661 LINGUAS
=$NEW_LINGUAS
2662 echo "$ac_t""$LINGUAS" 1>&6
2665 if test -n "$LINGUAS"; then
2666 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2670 if test $ac_cv_header_locale_h = yes; then
2671 INCLUDE_LOCALE_H
="#include <locale.h>"
2674 /* The system does not provide the header <locale.h>. Take care yourself. */"
2678 if test -f $srcdir/po2tbl.
sed.
in; then
2679 if test "$CATOBJEXT" = ".cat"; then
2680 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2681 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2682 echo "configure:2683: checking for linux/version.h" >&5
2683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 cat > conftest.
$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 #include <linux/version.h>
2691 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2692 { (eval echo configure
:2693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2693 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2694 if test -z "$ac_err"; then
2696 eval "ac_cv_header_$ac_safe=yes"
2699 echo "configure: failed program was:" >&5
2700 cat conftest.
$ac_ext >&5
2702 eval "ac_cv_header_$ac_safe=no"
2706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2707 echo "$ac_t""yes" 1>&6
2710 echo "$ac_t""no" 1>&6
2715 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2717 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2718 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2721 if test "$PACKAGE" = "gettext"; then
2731 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2737 if test -d $srcdir/po
; then
2738 test -d po || mkdir po
2739 if test "x$srcdir" != "x."; then
2740 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2741 posrcprefix
="$srcdir/"
2743 posrcprefix
="../$srcdir/"
2749 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2750 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2759 configdirs
="doc testsuite"
2762 .
${srcdir}/configure.
host
2764 .
${srcdir}/configure.tgt
2767 # Find a good install program. We prefer a C program (faster),
2768 # so one script is as good as another. But avoid the broken or
2769 # incompatible versions:
2770 # SysV /etc/install, /usr/sbin/install
2771 # SunOS /usr/etc/install
2772 # IRIX /sbin/install
2774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2777 # ./install, which can be erroneously created by make from ./install.sh.
2778 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2779 echo "configure:2780: checking for a BSD compatible install" >&5
2780 if test -z "$INSTALL"; then
2781 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2785 for ac_dir
in $PATH; do
2786 # Account for people who put trailing slashes in PATH elements.
2788 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2790 # OSF1 and SCO ODT 3.0 have their own names for install.
2791 # Don't use installbsd from OSF since it installs stuff as root
2793 for ac_prog
in ginstall scoinst
install; do
2794 if test -f $ac_dir/$ac_prog; then
2795 if test $ac_prog = install &&
2796 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2797 # AIX install. It has an incompatible calling convention.
2800 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2811 if test "${ac_cv_path_install+set}" = set; then
2812 INSTALL
="$ac_cv_path_install"
2814 # As a last resort, use the slow shell script. We don't cache a
2815 # path for INSTALL within a source directory, because that will
2816 # break other packages using the cache if that directory is
2817 # removed, or if the path is relative.
2818 INSTALL
="$ac_install_sh"
2821 echo "$ac_t""$INSTALL" 1>&6
2823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2824 # It thinks the first close brace ends the variable substitution.
2825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2827 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2829 if test $host != $build; then
2830 ac_tool_prefix
=${host_alias}-
2835 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2836 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2838 echo "configure:2839: checking for $ac_word" >&5
2839 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 if test -n "$AR"; then
2843 ac_cv_prog_AR
="$AR" # Let the user override the test.
2845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2846 for ac_dir
in $PATH; do
2847 test -z "$ac_dir" && ac_dir
=.
2848 if test -f $ac_dir/$ac_word; then
2849 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2854 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2858 if test -n "$AR"; then
2859 echo "$ac_t""$AR" 1>&6
2861 echo "$ac_t""no" 1>&6
2866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2867 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2869 echo "configure:2870: checking for $ac_word" >&5
2870 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 if test -n "$RANLIB"; then
2874 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2877 for ac_dir
in $PATH; do
2878 test -z "$ac_dir" && ac_dir
=.
2879 if test -f $ac_dir/$ac_word; then
2880 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2887 RANLIB
="$ac_cv_prog_RANLIB"
2888 if test -n "$RANLIB"; then
2889 echo "$ac_t""$RANLIB" 1>&6
2891 echo "$ac_t""no" 1>&6
2895 if test -z "$ac_cv_prog_RANLIB"; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "ranlib", so it can be a program name with args.
2898 set dummy ranlib
; ac_word
=$2
2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_word" >&5
2901 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2904 if test -n "$RANLIB"; then
2905 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2907 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2908 for ac_dir
in $PATH; do
2909 test -z "$ac_dir" && ac_dir
=.
2910 if test -f $ac_dir/$ac_word; then
2911 ac_cv_prog_RANLIB
="ranlib"
2916 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2919 RANLIB
="$ac_cv_prog_RANLIB"
2920 if test -n "$RANLIB"; then
2921 echo "$ac_t""$RANLIB" 1>&6
2923 echo "$ac_t""no" 1>&6
2931 for ac_prog
in 'bison -y' byacc
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy
$ac_prog; ac_word
=$2
2935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_word" >&5
2937 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 if test -n "$YACC"; then
2941 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2943 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2944 for ac_dir
in $PATH; do
2945 test -z "$ac_dir" && ac_dir
=.
2946 if test -f $ac_dir/$ac_word; then
2947 ac_cv_prog_YACC
="$ac_prog"
2954 YACC
="$ac_cv_prog_YACC"
2955 if test -n "$YACC"; then
2956 echo "$ac_t""$YACC" 1>&6
2958 echo "$ac_t""no" 1>&6
2961 test -n "$YACC" && break
2963 test -n "$YACC" || YACC
="yacc"
2966 if test "$program_transform_name" = s
,x
,x
,; then
2967 program_transform_name
=
2969 # Double any \ or $. echo might interpret backslashes.
2970 cat <<\EOF_SED
> conftestsed
2971 s
,\\,\\\\,g
; s
,\$
,$$
,g
2973 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2976 test "$program_prefix" != NONE
&&
2977 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2978 # Use a double $ so make ignores it.
2979 test "$program_suffix" != NONE
&&
2980 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2982 # sed with no file args requires a program.
2983 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2986 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2987 echo "configure:2988: checking return type of signal handlers" >&5
2988 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 cat > conftest.
$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 #include <sys/types.h>
3000 extern "C" void (*signal (int, void (*)(int)))(int);
3002 void (*signal ()) ();
3009 if { (eval echo configure
:3010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3011 ac_cv_type_signal
=void
3013 echo "configure: failed program was:" >&5
3014 cat conftest.
$ac_ext >&5
3016 ac_cv_type_signal
=int
3021 echo "$ac_t""$ac_cv_type_signal" 1>&6
3022 cat >> confdefs.h
<<EOF
3023 #define RETSIGTYPE $ac_cv_type_signal
3028 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3029 echo "configure:3030: checking for ANSI C header files" >&5
3030 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 cat > conftest.
$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3041 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3042 { (eval echo configure
:3043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3043 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3044 if test -z "$ac_err"; then
3046 ac_cv_header_stdc
=yes
3049 echo "configure: failed program was:" >&5
3050 cat conftest.
$ac_ext >&5
3052 ac_cv_header_stdc
=no
3056 if test $ac_cv_header_stdc = yes; then
3057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3058 cat > conftest.
$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3064 egrep "memchr" >/dev
/null
2>&1; then
3068 ac_cv_header_stdc
=no
3074 if test $ac_cv_header_stdc = yes; then
3075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3076 cat > conftest.
$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3082 egrep "free" >/dev
/null
2>&1; then
3086 ac_cv_header_stdc
=no
3092 if test $ac_cv_header_stdc = yes; then
3093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3094 if test "$cross_compiling" = yes; then
3097 cat > conftest.
$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3101 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3102 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3104 int main () { int i; for (i = 0; i < 256; i++)
3105 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3109 if { (eval echo configure
:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3113 echo "configure: failed program was:" >&5
3114 cat conftest.
$ac_ext >&5
3116 ac_cv_header_stdc
=no
3124 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3125 if test $ac_cv_header_stdc = yes; then
3126 cat >> confdefs.h
<<\EOF
3127 #define STDC_HEADERS 1
3132 for ac_hdr
in ctype.h curses.h endian.h libintl.h link.h \
3133 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3134 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h \
3135 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3136 wchar.h wctype.h asm
/debugreg.h
3138 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_hdr" >&5
3141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 cat > conftest.
$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3149 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3150 { (eval echo configure
:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3151 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3152 if test -z "$ac_err"; then
3154 eval "ac_cv_header_$ac_safe=yes"
3157 echo "configure: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3160 eval "ac_cv_header_$ac_safe=no"
3164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3167 cat >> confdefs.h
<<EOF
3168 #define $ac_tr_hdr 1
3172 echo "$ac_t""no" 1>&6
3177 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3178 echo "configure:3179: checking whether stat file-mode macros are broken" >&5
3179 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 cat > conftest.
$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 #include <sys/types.h>
3186 #include <sys/stat.h>
3188 #if defined(S_ISBLK) && defined(S_IFDIR)
3189 # if S_ISBLK (S_IFDIR)
3194 #if defined(S_ISBLK) && defined(S_IFCHR)
3195 # if S_ISBLK (S_IFCHR)
3200 #if defined(S_ISLNK) && defined(S_IFREG)
3201 # if S_ISLNK (S_IFREG)
3206 #if defined(S_ISSOCK) && defined(S_IFREG)
3207 # if S_ISSOCK (S_IFREG)
3213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3214 egrep "You lose" >/dev
/null
2>&1; then
3216 ac_cv_header_stat_broken
=yes
3219 ac_cv_header_stat_broken
=no
3225 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3226 if test $ac_cv_header_stat_broken = yes; then
3227 cat >> confdefs.h
<<\EOF
3228 #define STAT_MACROS_BROKEN 1
3234 echo $ac_n "checking for working const""... $ac_c" 1>&6
3235 echo "configure:3236: checking for working const" >&5
3236 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 cat > conftest.
$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3245 /* Ultrix mips cc rejects this. */
3246 typedef int charset[2]; const charset x;
3247 /* SunOS 4.1.1 cc rejects this. */
3248 char const *const *ccp;
3250 /* NEC SVR4.0.2 mips cc rejects this. */
3251 struct point {int x, y;};
3252 static struct point const zero = {0,0};
3253 /* AIX XL C 1.02.0.0 rejects this.
3254 It does not let you subtract one const X* pointer from another in an arm
3255 of an if-expression whose if-part is not a constant expression */
3256 const char *g = "string";
3257 ccp = &g + (g ? g-g : 0);
3258 /* HPUX 7.0 cc rejects these. */
3261 ccp = (char const *const *) p;
3262 { /* SCO 3.2v4 cc rejects this. */
3264 char const *s = 0 ? (char *) 0 : (char const *) 0;
3268 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3270 const int *foo = &x[0];
3273 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3274 typedef const int *iptr;
3278 { /* AIX XL C 1.02.0.0 rejects this saying
3279 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3280 struct s { int j; const int *ap[3]; };
3281 struct s *b; b->j = 5;
3283 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3289 if { (eval echo configure
:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3293 echo "configure: failed program was:" >&5
3294 cat conftest.
$ac_ext >&5
3301 echo "$ac_t""$ac_cv_c_const" 1>&6
3302 if test $ac_cv_c_const = no
; then
3303 cat >> confdefs.h
<<\EOF
3310 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc
3312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_func" >&5
3314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 cat > conftest.
$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 /* System header to define __stub macros and hopefully few prototypes,
3321 which can conflict with char $ac_func(); below. */
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3330 /* The GNU C library defines this for functions which it implements
3331 to always fail with ENOSYS. Some functions are actually named
3332 something starting with __ and the normal name is an alias. */
3333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3341 if { (eval echo configure
:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3343 eval "ac_cv_func_$ac_func=yes"
3345 echo "configure: failed program was:" >&5
3346 cat conftest.
$ac_ext >&5
3348 eval "ac_cv_func_$ac_func=no"
3353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3354 echo "$ac_t""yes" 1>&6
3355 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3356 cat >> confdefs.h
<<EOF
3357 #define $ac_tr_func 1
3361 echo "$ac_t""no" 1>&6
3365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3366 # for constant arguments. Useless!
3367 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3368 echo "configure:3369: checking for working alloca.h" >&5
3369 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3370 echo $ac_n "(cached) $ac_c" 1>&6
3372 cat > conftest.
$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3377 char *p = alloca(2 * sizeof(int));
3380 if { (eval echo configure
:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3382 ac_cv_header_alloca_h
=yes
3384 echo "configure: failed program was:" >&5
3385 cat conftest.
$ac_ext >&5
3387 ac_cv_header_alloca_h
=no
3392 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3393 if test $ac_cv_header_alloca_h = yes; then
3394 cat >> confdefs.h
<<\EOF
3395 #define HAVE_ALLOCA_H 1
3400 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3401 echo "configure:3402: checking for alloca" >&5
3402 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3410 # define alloca __builtin_alloca
3413 # include <malloc.h>
3414 # define alloca _alloca
3417 # include <alloca.h>
3422 # ifndef alloca /* predefined by HP cc +Olibcalls */
3431 char *p = (char *) alloca(1);
3434 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3436 ac_cv_func_alloca_works
=yes
3438 echo "configure: failed program was:" >&5
3439 cat conftest.
$ac_ext >&5
3441 ac_cv_func_alloca_works
=no
3446 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3447 if test $ac_cv_func_alloca_works = yes; then
3448 cat >> confdefs.h
<<\EOF
3449 #define HAVE_ALLOCA 1
3454 if test $ac_cv_func_alloca_works = no
; then
3455 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3456 # that cause trouble. Some versions do not even contain alloca or
3457 # contain a buggy version. If you still want to use their alloca,
3458 # use ar to extract alloca.o from them instead of compiling alloca.c.
3459 ALLOCA
=alloca.
${ac_objext}
3460 cat >> confdefs.h
<<\EOF
3465 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3466 echo "configure:3467: checking whether alloca needs Cray hooks" >&5
3467 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.
$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 #if defined(CRAY) && ! defined(CRAY2)
3480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3481 egrep "webecray" >/dev
/null
2>&1; then
3492 echo "$ac_t""$ac_cv_os_cray" 1>&6
3493 if test $ac_cv_os_cray = yes; then
3494 for ac_func
in _getb67 GETB67 getb67
; do
3495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_func" >&5
3497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.
$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 /* System header to define __stub macros and hopefully few prototypes,
3504 which can conflict with char $ac_func(); below. */
3506 /* Override any gcc2 internal prototype to avoid an error. */
3507 /* We use char because int might match the return type of a gcc2
3508 builtin and then its argument prototype would still apply. */
3513 /* The GNU C library defines this for functions which it implements
3514 to always fail with ENOSYS. Some functions are actually named
3515 something starting with __ and the normal name is an alias. */
3516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3524 if { (eval echo configure
:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3526 eval "ac_cv_func_$ac_func=yes"
3528 echo "configure: failed program was:" >&5
3529 cat conftest.
$ac_ext >&5
3531 eval "ac_cv_func_$ac_func=no"
3536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3538 cat >> confdefs.h
<<EOF
3539 #define CRAY_STACKSEG_END $ac_func
3544 echo "$ac_t""no" 1>&6
3550 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3551 echo "configure:3552: checking stack direction for C alloca" >&5
3552 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 if test "$cross_compiling" = yes; then
3556 ac_cv_c_stack_direction
=0
3558 cat > conftest.
$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 find_stack_direction ()
3563 static char *addr = 0;
3568 return find_stack_direction ();
3571 return (&dummy > addr) ? 1 : -1;
3575 exit (find_stack_direction() < 0);
3578 if { (eval echo configure
:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3580 ac_cv_c_stack_direction
=1
3582 echo "configure: failed program was:" >&5
3583 cat conftest.
$ac_ext >&5
3585 ac_cv_c_stack_direction
=-1
3592 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3593 cat >> confdefs.h
<<EOF
3594 #define STACK_DIRECTION $ac_cv_c_stack_direction
3600 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3601 echo "configure:3602: checking whether malloc must be declared" >&5
3602 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 cat > conftest.
$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3610 #ifdef HAVE_STRING_H
3613 #ifdef HAVE_STRINGS_H
3614 #include <strings.h>
3617 #ifdef HAVE_STDLIB_H
3620 #ifdef HAVE_UNISTD_H
3624 char *(*pfn) = (char *(*)) malloc
3627 if { (eval echo configure
:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 bfd_cv_decl_needed_malloc
=no
3631 echo "configure: failed program was:" >&5
3632 cat conftest.
$ac_ext >&5
3634 bfd_cv_decl_needed_malloc
=yes
3639 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3640 if test $bfd_cv_decl_needed_malloc = yes; then
3641 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3642 cat >> confdefs.h
<<EOF
3643 #define $bfd_tr_decl 1
3648 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3649 echo "configure:3650: checking whether realloc must be declared" >&5
3650 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 cat > conftest.
$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3658 #ifdef HAVE_STRING_H
3661 #ifdef HAVE_STRINGS_H
3662 #include <strings.h>
3665 #ifdef HAVE_STDLIB_H
3668 #ifdef HAVE_UNISTD_H
3672 char *(*pfn) = (char *(*)) realloc
3675 if { (eval echo configure
:3676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3677 bfd_cv_decl_needed_realloc
=no
3679 echo "configure: failed program was:" >&5
3680 cat conftest.
$ac_ext >&5
3682 bfd_cv_decl_needed_realloc
=yes
3687 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3688 if test $bfd_cv_decl_needed_realloc = yes; then
3689 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3690 cat >> confdefs.h
<<EOF
3691 #define $bfd_tr_decl 1
3696 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3697 echo "configure:3698: checking whether free must be declared" >&5
3698 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 cat > conftest.
$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3706 #ifdef HAVE_STRING_H
3709 #ifdef HAVE_STRINGS_H
3710 #include <strings.h>
3713 #ifdef HAVE_STDLIB_H
3716 #ifdef HAVE_UNISTD_H
3720 char *(*pfn) = (char *(*)) free
3723 if { (eval echo configure
:3724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3725 bfd_cv_decl_needed_free
=no
3727 echo "configure: failed program was:" >&5
3728 cat conftest.
$ac_ext >&5
3730 bfd_cv_decl_needed_free
=yes
3735 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3736 if test $bfd_cv_decl_needed_free = yes; then
3737 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3738 cat >> confdefs.h
<<EOF
3739 #define $bfd_tr_decl 1
3744 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3745 echo "configure:3746: checking whether strerror must be declared" >&5
3746 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.
$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3754 #ifdef HAVE_STRING_H
3757 #ifdef HAVE_STRINGS_H
3758 #include <strings.h>
3761 #ifdef HAVE_STDLIB_H
3764 #ifdef HAVE_UNISTD_H
3768 char *(*pfn) = (char *(*)) strerror
3771 if { (eval echo configure
:3772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3773 bfd_cv_decl_needed_strerror
=no
3775 echo "configure: failed program was:" >&5
3776 cat conftest.
$ac_ext >&5
3778 bfd_cv_decl_needed_strerror
=yes
3783 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
3784 if test $bfd_cv_decl_needed_strerror = yes; then
3785 bfd_tr_decl
=NEED_DECLARATION_
`echo strerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3786 cat >> confdefs.h
<<EOF
3787 #define $bfd_tr_decl 1
3792 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
3793 echo "configure:3794: checking whether strdup must be declared" >&5
3794 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 cat > conftest.
$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3802 #ifdef HAVE_STRING_H
3805 #ifdef HAVE_STRINGS_H
3806 #include <strings.h>
3809 #ifdef HAVE_STDLIB_H
3812 #ifdef HAVE_UNISTD_H
3816 char *(*pfn) = (char *(*)) strdup
3819 if { (eval echo configure
:3820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3821 bfd_cv_decl_needed_strdup
=no
3823 echo "configure: failed program was:" >&5
3824 cat conftest.
$ac_ext >&5
3826 bfd_cv_decl_needed_strdup
=yes
3831 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
3832 if test $bfd_cv_decl_needed_strdup = yes; then
3833 bfd_tr_decl
=NEED_DECLARATION_
`echo strdup | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3834 cat >> confdefs.h
<<EOF
3835 #define $bfd_tr_decl 1
3841 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
3842 if test "${target}" = "${host}"; then
3845 cat >> confdefs.h
<<\EOF
3846 #define START_INFERIOR_TRAPS_EXPECTED 2
3849 cat >> confdefs.h
<<\EOF
3850 #define sys_quotactl 1
3857 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
3858 echo "configure:3859: checking for gregset_t type" >&5
3859 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.
$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 #include <sys/procfs.h>
3867 gregset_t *gregsetp = 0
3870 if { (eval echo configure
:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3872 gdb_cv_have_gregset_t
=yes
3874 echo "configure: failed program was:" >&5
3875 cat conftest.
$ac_ext >&5
3877 gdb_cv_have_gregset_t
=no
3882 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
3883 if test $gdb_cv_have_gregset_t = yes; then
3884 cat >> confdefs.h
<<\EOF
3885 #define HAVE_GREGSET_T 1
3890 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
3891 echo "configure:3892: checking for fpregset_t type" >&5
3892 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3895 cat > conftest.
$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 #include <sys/procfs.h>
3900 fpregset_t *fpregsetp = 0
3903 if { (eval echo configure
:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3905 gdb_cv_have_fpregset_t
=yes
3907 echo "configure: failed program was:" >&5
3908 cat conftest.
$ac_ext >&5
3910 gdb_cv_have_fpregset_t
=no
3915 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
3916 if test $gdb_cv_have_fpregset_t = yes; then
3917 cat >> confdefs.h
<<\EOF
3918 #define HAVE_FPREGSET_T 1
3923 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3924 echo "configure:3925: checking for main in -lm" >&5
3925 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3929 ac_save_LIBS
="$LIBS"
3931 cat > conftest.
$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3939 if { (eval echo configure
:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3941 eval "ac_cv_lib_$ac_lib_var=yes"
3943 echo "configure: failed program was:" >&5
3944 cat conftest.
$ac_ext >&5
3946 eval "ac_cv_lib_$ac_lib_var=no"
3949 LIBS
="$ac_save_LIBS"
3952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3953 echo "$ac_t""yes" 1>&6
3954 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3955 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3956 cat >> confdefs.h
<<EOF
3957 #define $ac_tr_lib 1
3963 echo "$ac_t""no" 1>&6
3967 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
3968 echo "configure:3969: checking for wctype in -lc" >&5
3969 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
3970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 ac_save_LIBS
="$LIBS"
3975 cat > conftest.
$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 /* We use char because int might match the return type of a gcc2
3980 builtin and then its argument prototype would still apply. */
3987 if { (eval echo configure
:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3989 eval "ac_cv_lib_$ac_lib_var=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.
$ac_ext >&5
3994 eval "ac_cv_lib_$ac_lib_var=no"
3997 LIBS
="$ac_save_LIBS"
4000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4004 echo "$ac_t""no" 1>&6
4005 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4006 echo "configure:4007: checking for wctype in -lw" >&5
4007 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 ac_save_LIBS
="$LIBS"
4013 cat > conftest.
$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 /* Override any gcc2 internal prototype to avoid an error. */
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4025 if { (eval echo configure
:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4027 eval "ac_cv_lib_$ac_lib_var=yes"
4029 echo "configure: failed program was:" >&5
4030 cat conftest.
$ac_ext >&5
4032 eval "ac_cv_lib_$ac_lib_var=no"
4035 LIBS
="$ac_save_LIBS"
4038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4039 echo "$ac_t""yes" 1>&6
4040 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4041 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4042 cat >> confdefs.h
<<EOF
4043 #define $ac_tr_lib 1
4049 echo "$ac_t""no" 1>&6
4056 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
4057 echo "configure:4058: checking for tgetent in -lncurses" >&5
4058 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
4059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 ac_save_LIBS
="$LIBS"
4063 LIBS
="-lncurses $LIBS"
4064 cat > conftest.
$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4067 /* Override any gcc2 internal prototype to avoid an error. */
4068 /* We use char because int might match the return type of a gcc2
4069 builtin and then its argument prototype would still apply. */
4076 if { (eval echo configure
:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4078 eval "ac_cv_lib_$ac_lib_var=yes"
4080 echo "configure: failed program was:" >&5
4081 cat conftest.
$ac_ext >&5
4083 eval "ac_cv_lib_$ac_lib_var=no"
4086 LIBS
="$ac_save_LIBS"
4089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4090 echo "$ac_t""yes" 1>&6
4093 echo "$ac_t""no" 1>&6
4094 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
4095 echo "configure:4096: checking for tgetent in -ltermlib" >&5
4096 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
4097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 ac_save_LIBS
="$LIBS"
4101 LIBS
="-ltermlib $LIBS"
4102 cat > conftest.
$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4105 /* Override any gcc2 internal prototype to avoid an error. */
4106 /* We use char because int might match the return type of a gcc2
4107 builtin and then its argument prototype would still apply. */
4114 if { (eval echo configure
:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4116 eval "ac_cv_lib_$ac_lib_var=yes"
4118 echo "configure: failed program was:" >&5
4119 cat conftest.
$ac_ext >&5
4121 eval "ac_cv_lib_$ac_lib_var=no"
4124 LIBS
="$ac_save_LIBS"
4127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4131 echo "$ac_t""no" 1>&6
4132 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
4133 echo "configure:4134: checking for tgetent in -ltermcap" >&5
4134 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
4135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 ac_save_LIBS
="$LIBS"
4139 LIBS
="-ltermcap $LIBS"
4140 cat > conftest.
$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4143 /* Override any gcc2 internal prototype to avoid an error. */
4144 /* We use char because int might match the return type of a gcc2
4145 builtin and then its argument prototype would still apply. */
4152 if { (eval echo configure
:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4154 eval "ac_cv_lib_$ac_lib_var=yes"
4156 echo "configure: failed program was:" >&5
4157 cat conftest.
$ac_ext >&5
4159 eval "ac_cv_lib_$ac_lib_var=no"
4162 LIBS
="$ac_save_LIBS"
4165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4166 echo "$ac_t""yes" 1>&6
4169 echo "$ac_t""no" 1>&6
4170 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
4171 echo "configure:4172: checking for tgetent in -lcurses" >&5
4172 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
4173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4176 ac_save_LIBS
="$LIBS"
4177 LIBS
="-lcurses $LIBS"
4178 cat > conftest.
$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 /* Override any gcc2 internal prototype to avoid an error. */
4182 /* We use char because int might match the return type of a gcc2
4183 builtin and then its argument prototype would still apply. */
4190 if { (eval echo configure
:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4192 eval "ac_cv_lib_$ac_lib_var=yes"
4194 echo "configure: failed program was:" >&5
4195 cat conftest.
$ac_ext >&5
4197 eval "ac_cv_lib_$ac_lib_var=no"
4200 LIBS
="$ac_save_LIBS"
4203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4204 echo "$ac_t""yes" 1>&6
4207 echo "$ac_t""no" 1>&6
4208 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
4209 echo "configure:4210: checking for tgetent in -lterminfo" >&5
4210 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 ac_save_LIBS
="$LIBS"
4215 LIBS
="-lterminfo $LIBS"
4216 cat > conftest.
$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4228 if { (eval echo configure
:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4235 eval "ac_cv_lib_$ac_lib_var=no"
4238 LIBS
="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4245 echo "$ac_t""no" 1>&6
4257 if test "x$TERM_LIB" = x
4259 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
4265 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4266 echo "configure:4267: checking for long long support in compiler" >&5
4267 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 cat > conftest.
$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4276 extern long long foo;
4277 switch (foo & 2) { case 0: return 1; }
4281 if { (eval echo configure
:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4283 gdb_cv_c_long_long
=yes
4285 echo "configure: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4288 gdb_cv_c_long_long
=no
4293 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4294 if test $gdb_cv_c_long_long = yes; then
4295 cat >> confdefs.h
<<\EOF
4296 #define CC_HAS_LONG_LONG 1
4302 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4303 echo "configure:4304: checking for long long support in printf" >&5
4304 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 if test "$cross_compiling" = yes; then
4308 gdb_cv_printf_has_long_long
=no
4310 cat > conftest.
$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4317 l = (l << 16) + 0x0123;
4318 l = (l << 16) + 0x4567;
4319 l = (l << 16) + 0x89ab;
4320 l = (l << 16) + 0xcdef;
4321 sprintf (buf, "0x%016llx", l);
4322 return (strcmp ("0x0123456789abcdef", buf));
4325 if { (eval echo configure
:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4327 gdb_cv_printf_has_long_long
=yes
4329 echo "configure: failed program was:" >&5
4330 cat conftest.
$ac_ext >&5
4332 gdb_cv_printf_has_long_long
=no
4339 if test $gdb_cv_printf_has_long_long = yes; then
4340 cat >> confdefs.h
<<\EOF
4341 #define PRINTF_HAS_LONG_LONG 1
4345 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4348 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4349 echo "configure:4350: checking for long double support in compiler" >&5
4350 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4361 if { (eval echo configure
:4362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4363 ac_cv_c_long_double
=yes
4365 echo "configure: failed program was:" >&5
4366 cat conftest.
$ac_ext >&5
4368 ac_cv_c_long_double
=no
4373 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4374 if test $ac_cv_c_long_double = yes; then
4375 cat >> confdefs.h
<<\EOF
4376 #define HAVE_LONG_DOUBLE 1
4382 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4383 echo "configure:4384: checking for long double support in printf" >&5
4384 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4387 if test "$cross_compiling" = yes; then
4388 gdb_cv_printf_has_long_double
=no
4390 cat > conftest.
$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4396 long double f = 3.141592653;
4397 sprintf (buf, "%Lg", f);
4398 return (strncmp ("3.14159", buf, 7));
4401 if { (eval echo configure
:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4403 gdb_cv_printf_has_long_double
=yes
4405 echo "configure: failed program was:" >&5
4406 cat conftest.
$ac_ext >&5
4408 gdb_cv_printf_has_long_double
=no
4415 if test $gdb_cv_printf_has_long_double = yes; then
4416 cat >> confdefs.h
<<\EOF
4417 #define PRINTF_HAS_LONG_DOUBLE 1
4421 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4424 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4425 echo "configure:4426: checking for long double support in scanf" >&5
4426 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4427 echo $ac_n "(cached) $ac_c" 1>&6
4429 if test "$cross_compiling" = yes; then
4430 gdb_cv_scanf_has_long_double
=no
4432 cat > conftest.
$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4437 char *buf = "3.141592653";
4439 sscanf (buf, "%Lg", &f);
4440 return !(f > 3.14159 && f < 3.14160);
4443 if { (eval echo configure
:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4445 gdb_cv_scanf_has_long_double
=yes
4447 echo "configure: failed program was:" >&5
4448 cat conftest.
$ac_ext >&5
4450 gdb_cv_scanf_has_long_double
=no
4457 if test $gdb_cv_scanf_has_long_double = yes; then
4458 cat >> confdefs.h
<<\EOF
4459 #define SCANF_HAS_LONG_DOUBLE 1
4463 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4465 for ac_hdr
in unistd.h
4467 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4469 echo "configure:4470: checking for $ac_hdr" >&5
4470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 cat > conftest.
$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4478 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4479 { (eval echo configure
:4480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4480 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4481 if test -z "$ac_err"; then
4483 eval "ac_cv_header_$ac_safe=yes"
4486 echo "configure: failed program was:" >&5
4487 cat conftest.
$ac_ext >&5
4489 eval "ac_cv_header_$ac_safe=no"
4493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4496 cat >> confdefs.h
<<EOF
4497 #define $ac_tr_hdr 1
4501 echo "$ac_t""no" 1>&6
4505 for ac_func
in getpagesize
4507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4508 echo "configure:4509: checking for $ac_func" >&5
4509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 cat > conftest.
$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4515 /* System header to define __stub macros and hopefully few prototypes,
4516 which can conflict with char $ac_func(); below. */
4518 /* Override any gcc2 internal prototype to avoid an error. */
4519 /* We use char because int might match the return type of a gcc2
4520 builtin and then its argument prototype would still apply. */
4525 /* The GNU C library defines this for functions which it implements
4526 to always fail with ENOSYS. Some functions are actually named
4527 something starting with __ and the normal name is an alias. */
4528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4536 if { (eval echo configure
:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4538 eval "ac_cv_func_$ac_func=yes"
4540 echo "configure: failed program was:" >&5
4541 cat conftest.
$ac_ext >&5
4543 eval "ac_cv_func_$ac_func=no"
4548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6
4550 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4551 cat >> confdefs.h
<<EOF
4552 #define $ac_tr_func 1
4556 echo "$ac_t""no" 1>&6
4560 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4561 echo "configure:4562: checking for working mmap" >&5
4562 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 if test "$cross_compiling" = yes; then
4566 ac_cv_func_mmap_fixed_mapped
=no
4568 cat > conftest.
$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4572 /* Thanks to Mike Haertel and Jim Avera for this test.
4573 Here is a matrix of mmap possibilities:
4574 mmap private not fixed
4575 mmap private fixed at somewhere currently unmapped
4576 mmap private fixed at somewhere already mapped
4577 mmap shared not fixed
4578 mmap shared fixed at somewhere currently unmapped
4579 mmap shared fixed at somewhere already mapped
4580 For private mappings, we should verify that changes cannot be read()
4581 back from the file, nor mmap's back from the file at a different
4582 address. (There have been systems where private was not correctly
4583 implemented like the infamous i386 svr4.0, and systems where the
4584 VM page cache was not coherent with the filesystem buffer cache
4585 like early versions of FreeBSD and possibly contemporary NetBSD.)
4586 For shared mappings, we should conversely verify that changes get
4587 propogated back to all the places they're supposed to be.
4589 Grep wants private fixed already mapped.
4590 The main things grep needs to know about mmap are:
4591 * does it exist and is it safe to write into the mmap'd area
4592 * how to use it (BSD variants) */
4593 #include <sys/types.h>
4595 #include <sys/mman.h>
4597 /* This mess was copied from the GNU getpagesize.h. */
4598 #ifndef HAVE_GETPAGESIZE
4599 # ifdef HAVE_UNISTD_H
4600 # include <unistd.h>
4603 /* Assume that all systems that can run configure have sys/param.h. */
4604 # ifndef HAVE_SYS_PARAM_H
4605 # define HAVE_SYS_PARAM_H 1
4608 # ifdef _SC_PAGESIZE
4609 # define getpagesize() sysconf(_SC_PAGESIZE)
4610 # else /* no _SC_PAGESIZE */
4611 # ifdef HAVE_SYS_PARAM_H
4612 # include <sys/param.h>
4613 # ifdef EXEC_PAGESIZE
4614 # define getpagesize() EXEC_PAGESIZE
4615 # else /* no EXEC_PAGESIZE */
4617 # define getpagesize() NBPG * CLSIZE
4620 # endif /* no CLSIZE */
4621 # else /* no NBPG */
4623 # define getpagesize() NBPC
4624 # else /* no NBPC */
4626 # define getpagesize() PAGESIZE
4627 # endif /* PAGESIZE */
4628 # endif /* no NBPC */
4629 # endif /* no NBPG */
4630 # endif /* no EXEC_PAGESIZE */
4631 # else /* no HAVE_SYS_PARAM_H */
4632 # define getpagesize() 8192 /* punt totally */
4633 # endif /* no HAVE_SYS_PARAM_H */
4634 # endif /* no _SC_PAGESIZE */
4636 #endif /* no HAVE_GETPAGESIZE */
4639 extern "C" { void *malloc(unsigned); }
4647 char *data, *data2, *data3;
4651 pagesize = getpagesize();
4654 * First, make a file with some known garbage in it.
4656 data = malloc(pagesize);
4659 for (i = 0; i < pagesize; ++i)
4660 *(data + i) = rand();
4662 fd = creat("conftestmmap", 0600);
4665 if (write(fd, data, pagesize) != pagesize)
4670 * Next, try to mmap the file at a fixed address which
4671 * already has something else allocated at it. If we can,
4672 * also make sure that we see the same garbage.
4674 fd = open("conftestmmap", O_RDWR);
4677 data2 = malloc(2 * pagesize);
4680 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4681 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4682 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4684 for (i = 0; i < pagesize; ++i)
4685 if (*(data + i) != *(data2 + i))
4689 * Finally, make sure that changes to the mapped area
4690 * do not percolate back to the file as seen by read().
4691 * (This is a bug on some variants of i386 svr4.0.)
4693 for (i = 0; i < pagesize; ++i)
4694 *(data2 + i) = *(data2 + i) + 1;
4695 data3 = malloc(pagesize);
4698 if (read(fd, data3, pagesize) != pagesize)
4700 for (i = 0; i < pagesize; ++i)
4701 if (*(data + i) != *(data3 + i))
4704 unlink("conftestmmap");
4709 if { (eval echo configure
:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4711 ac_cv_func_mmap_fixed_mapped
=yes
4713 echo "configure: failed program was:" >&5
4714 cat conftest.
$ac_ext >&5
4716 ac_cv_func_mmap_fixed_mapped
=no
4723 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4724 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4725 cat >> confdefs.h
<<\EOF
4734 if test ${build} = ${host} -a ${host} = ${target} ; then
4737 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4738 echo "configure:4739: checking for HPUX/OSF thread support" >&5
4739 if test -f /usr
/include
/dce
/cma_config.h
; then
4740 if test "$GCC" = "yes" ; then
4741 echo "$ac_t""yes" 1>&6
4742 cat >> confdefs.h
<<\EOF
4743 #define HAVE_HPUX_THREAD_SUPPORT 1
4746 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
4747 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
4749 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4752 echo "$ac_t""no" 1>&6
4756 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4757 echo "configure:4758: checking for Solaris thread debugging library" >&5
4758 if test -f /usr
/lib
/libthread_db.so
.1 ; then
4759 echo "$ac_t""yes" 1>&6
4760 cat >> confdefs.h
<<\EOF
4761 #define HAVE_THREAD_DB_LIB 1
4764 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
4765 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
4766 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4767 echo "configure:4768: checking for dlopen in -ldl" >&5
4768 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 ac_save_LIBS
="$LIBS"
4774 cat > conftest.
$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4777 /* Override any gcc2 internal prototype to avoid an error. */
4778 /* We use char because int might match the return type of a gcc2
4779 builtin and then its argument prototype would still apply. */
4786 if { (eval echo configure
:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4788 eval "ac_cv_lib_$ac_lib_var=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.
$ac_ext >&5
4793 eval "ac_cv_lib_$ac_lib_var=no"
4796 LIBS
="$ac_save_LIBS"
4799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4800 echo "$ac_t""yes" 1>&6
4801 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4802 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4803 cat >> confdefs.h
<<EOF
4804 #define $ac_tr_lib 1
4810 echo "$ac_t""no" 1>&6
4813 if test "$GCC" = "yes" ; then
4814 # The GNU linker requires the -export-dynamic option to make
4815 # all symbols visible in the dynamic symbol table.
4816 hold_ldflags
=$LDFLAGS
4817 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4818 echo "configure:4819: checking for the ld -export-dynamic flag" >&5
4819 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
4820 cat > conftest.
$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4828 if { (eval echo configure
:4829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4832 echo "configure: failed program was:" >&5
4833 cat conftest.
$ac_ext >&5
4838 LDFLAGS
=$hold_ldflags
4839 echo "$ac_t""$found" 1>&6
4840 if test $found = yes; then
4841 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4844 # Sun randomly tweaked the prototypes in <proc_service.h>
4846 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
4847 echo "configure:4848: checking if <proc_service.h> is old" >&5
4848 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4852 cat > conftest.
$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4856 #include <proc_service.h>
4858 (struct ps_prochandle*, psaddr_t, const void*, size_t);
4864 if { (eval echo configure
:4865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4866 gdb_cv_proc_service_is_old
=no
4868 echo "configure: failed program was:" >&5
4869 cat conftest.
$ac_ext >&5
4871 gdb_cv_proc_service_is_old
=yes
4877 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
4878 if test $gdb_cv_proc_service_is_old = yes; then
4879 cat >> confdefs.h
<<\EOF
4880 #define PROC_SERVICE_IS_OLD 1
4885 echo "$ac_t""no" 1>&6
4894 # Check whether --enable-tui or --disable-tui was given.
4895 if test "${enable_tui+set}" = set; then
4896 enableval
="$enable_tui"
4898 case "${enable_tui}" in
4900 "") enable_tui
=yes ;;
4902 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
4908 case ${enable_tui} in
4910 cat >> confdefs.h
<<\EOF
4915 TUI_LIBRARY
=tui
/libtui.a
4925 # Check whether --enable-netrom or --disable-netrom was given.
4926 if test "${enable_netrom+set}" = set; then
4927 enableval
="$enable_netrom"
4928 case "${enableval}" in
4929 yes) enable_netrom
=yes ;;
4930 no
) enable_netrom
=no
;;
4931 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
4936 if test "${enable_netrom}" = "yes"; then
4937 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
4938 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
4941 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4942 if test "${enable_build_warnings+set}" = set; then
4943 enableval
="$enable_build_warnings"
4944 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
4945 case "${enableval}" in
4947 no
) build_warnings
="-w";;
4948 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4949 build_warnings
="${build_warnings} ${t}";;
4950 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4951 build_warnings
="${t} ${build_warnings}";;
4952 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4958 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
4960 WARN_CFLAGS
="${build_warnings}"
4971 # Check whether --with-mmalloc or --without-mmalloc was given.
4972 if test "${with_mmalloc+set}" = set; then
4973 withval
="$with_mmalloc"
4974 case "${withval}" in
4975 yes) want_mmalloc
=true
;;
4976 no
) want_mmalloc
=false
;;
4977 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
4983 if test x
$want_mmalloc = xtrue
; then
4984 cat >> confdefs.h
<<\EOF
4985 #define USE_MMALLOC 1
4988 cat >> confdefs.h
<<\EOF
4989 #define MMCHECK_FORCE 1
4992 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
4993 MMALLOC
='../mmalloc/libmmalloc.a'
4996 # start-sanitize-carp
4997 # The below takes an educated guess at the targets that
4998 # should be built. It is an interum version that provides
4999 # significant backward compatibility.
5001 # Check whether --enable-carp or --disable-carp was given.
5002 if test "${enable_carp+set}" = set; then
5003 enableval
="$enable_carp"
5004 case "${enableval}" in
5005 yes) enable_carp
=yes ;;
5006 no
) enable_carp
=no
;;
5007 *) { echo "configure: error: bad value ${enableval} for carp option" 1>&2; exit 1; } ;;
5013 # Check whether --enable-targets or --disable-targets was given.
5014 if test "${enable_targets+set}" = set; then
5015 enableval
="$enable_targets"
5016 case "${enableval}" in
5017 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
5019 no
) enable_targets
= ;;
5020 *) enable_targets
="$enableval" ;;
5024 # Canonicalize the secondary target names.
5026 if test -n "$enable_targets" ; then
5027 if test "$enable_targets" = all
; then
5030 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5032 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
5033 if test -n "$result" ; then
5034 canon_targets
="$canon_targets $result"
5040 # Convert the target names into GDB [*]-tdep.c names
5042 for targ
in $target $canon_targets
5044 if test "x$targ" = "xall" ; then
5047 t_cpu
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5048 t_vendor
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5049 t_os
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5053 target_vendor=$t_vendor
5055 . ${srcdir}/configure.tgt
5056 echo ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
5057 if test -r ${mt} ; then
5058 # This gets confused over .mt files that have multiple -tdep.o
5060 s/^.*[ =]\([^ ]*\)-tdep.o.*/\1/p
5062 selarchs
="$selarchs $tdep"
5067 # We don't do any links based on the target system, just makefile config.
5069 if test x
${all_targets} = xfalse
; then
5071 # Target architecture .o files.
5074 for arch
in $selarchs
5076 archdefs
="$archdefs -DARCH_$arch"
5077 ta
="$ta ${arch}-tdep.o"
5080 dvp
) ta
="$ta mips-tdep.o dvp-tdep.o" ;;
5084 # Weed out duplicate .o files.
5094 # And duplicate -D flags.
5096 for i
in $archdefs ; do
5106 else # all_targets is true
5108 MACHINE_OBS
='$(ALL_MACHINES)'
5111 if test "${enable_carp}" = yes ; then
5115 MACHINE_OBS
="# $MACHINE_OBS"
5120 # start-sanitize-gdbtk
5121 # start-sanitize-ide
5123 # Check whether --enable-ide or --disable-ide was given.
5124 if test "${enable_ide+set}" = set; then
5125 enableval
="$enable_ide"
5129 if test "$enable_ide" = yes; then
5137 # Check whether --with-foundry-libs or --without-foundry-libs was given.
5138 if test "${with_foundry_libs+set}" = set; then
5139 withval
="$with_foundry_libs"
5140 FOUNDRY_LIB_BASE
=${withval}
5146 # This is the Foundry SDK
5148 # These variables are used to determine where the Foundry libs and
5149 # header files are located.
5151 if test "$FOUNDRY_LIB_BASE" != ""; then
5152 LIBGUI
="${FOUNDRY_LIB_BASE}/lib/libgui.a"
5153 GUI_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
5154 if test x
$enable_ide = xyes
; then
5155 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include -DIDE"
5156 IDE_X
="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu"
5158 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
5160 LIBIDETCL
="${FOUNDRY_LIB_BASE}/lib/libidetcl.a"
5161 LIBIDE
="${FOUNDRY_LIB_BASE}/lib/libide.a"
5162 IDE_DEPS
="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a"
5165 LIBGUI
="../libgui/src/libgui.a"
5166 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
5167 # start-sanitize-ide
5168 if test x
$enable_ide = xyes
; then
5169 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop"
5170 IDE_X
="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu"
5172 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src"
5174 LIBIDETCL
="../libidetcl/src/libidetcl.a"
5175 LIBIDE
="../libide/src/libide.a"
5176 IDE_DEPS
="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a"
5182 # start-sanitize-ide
5192 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5193 if test "${enable_gdbtk+set}" = set; then
5194 enableval
="$enable_gdbtk"
5195 case "${enableval}" in
5199 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5202 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5210 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5214 # Default is on for everything but go32 and Cygwin
5225 # In the Cygwin environment, we need some additional flags.
5226 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5227 echo "configure:5228: checking for cygwin" >&5
5228 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5231 cat > conftest.
$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5240 egrep "lose" >/dev
/null
2>&1; then
5242 gdb_cv_os_cygwin
=yes
5251 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5258 DLLTOOL
=${DLLTOOL-dlltool}
5259 WINDRES
=${WINDRES-windres}
5263 if test x
$gdb_cv_os_cygwin = xyes
; then
5264 WIN32LIBS
="-luser32"
5265 if test x
$enable_ide = xyes
; then
5266 WIN32LIBS
="$WIN32LIBS -ladvapi32"
5273 if test "${enable_gdbtk}" = "yes"; then
5277 # Ok, lets find the tcl configuration
5278 # First, look for one uninstalled.
5279 # the alternative search directory is invoked by --with-tclconfig
5282 if test x
"${no_tcl}" = x
; then
5283 # we reset no_tcl in case something fails here
5285 # Check whether --with-tclconfig or --without-tclconfig was given.
5286 if test "${with_tclconfig+set}" = set; then
5287 withval
="$with_tclconfig"
5288 with_tclconfig
=${withval}
5291 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5292 echo "configure:5293: checking for Tcl configuration" >&5
5293 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5298 # First check to see if --with-tclconfig was specified.
5299 if test x
"${with_tclconfig}" != x
; then
5300 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5301 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
5303 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5307 # then check for a private Tcl installation
5308 if test x
"${ac_cv_c_tclconfig}" = x
; then
5311 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5313 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5315 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5316 if test -f "$i/${configdir}/tclConfig.sh" ; then
5317 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5322 # check in a few common install locations
5323 if test x
"${ac_cv_c_tclconfig}" = x
; then
5324 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5325 if test -f "$i/tclConfig.sh" ; then
5326 ac_cv_c_tclconfig
=`(cd $i; pwd)`
5331 # check in a few other private locations
5332 if test x
"${ac_cv_c_tclconfig}" = x
; then
5335 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5336 if test -f "$i/${configdir}/tclConfig.sh" ; then
5337 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5345 if test x
"${ac_cv_c_tclconfig}" = x
; then
5346 TCLCONFIG
="# no Tcl configs found"
5347 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
5350 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
5351 echo "$ac_t""found $TCLCONFIG" 1>&6
5355 if test -z "${no_tcl}"; then
5385 # Ok, lets find the tk configuration
5386 # First, look for one uninstalled.
5387 # the alternative search directory is invoked by --with-tkconfig
5390 if test x
"${no_tk}" = x
; then
5391 # we reset no_tk in case something fails here
5393 # Check whether --with-tkconfig or --without-tkconfig was given.
5394 if test "${with_tkconfig+set}" = set; then
5395 withval
="$with_tkconfig"
5396 with_tkconfig
=${withval}
5399 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
5400 echo "configure:5401: checking for Tk configuration" >&5
5401 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5406 # First check to see if --with-tkconfig was specified.
5407 if test x
"${with_tkconfig}" != x
; then
5408 if test -f "${with_tkconfig}/tkConfig.sh" ; then
5409 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
5411 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
5415 # then check for a private Tk library
5416 if test x
"${ac_cv_c_tkconfig}" = x
; then
5419 `ls -dr ../tk[4-9]* 2>/dev/null` \
5421 `ls -dr ../../tk[4-9]* 2>/dev/null` \
5423 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
5424 if test -f "$i/${configdir}/tkConfig.sh" ; then
5425 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5430 # check in a few common install locations
5431 if test x
"${ac_cv_c_tkconfig}" = x
; then
5432 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5433 if test -f "$i/tkConfig.sh" ; then
5434 ac_cv_c_tkconfig
=`(cd $i; pwd)`
5439 # check in a few other private locations
5440 if test x
"${ac_cv_c_tkconfig}" = x
; then
5443 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
5444 if test -f "$i/${configdir}/tkConfig.sh" ; then
5445 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5453 if test x
"${ac_cv_c_tkconfig}" = x
; then
5454 TKCONFIG
="# no Tk configs found"
5455 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
5458 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
5459 echo "$ac_t""found $TKCONFIG" 1>&6
5465 # If $no_tk is nonempty, then we can't do Tk, and there is no
5466 # point to doing Tcl.
5467 if test -z "${no_tk}"; then
5469 if test -f "$TKCONFIG" ; then
5487 # Ok, lets find the tcl source trees so we can use the headers
5488 # Warning: transition of version 9 to 10 will break this algorithm
5489 # because 10 sorts before 9. We also look for just tcl. We have to
5490 # be careful that we don't match stuff like tclX by accident.
5491 # the alternative search directory is involked by --with-tclinclude
5495 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
5496 echo "configure:5497: checking for Tcl private headers. dir=${configdir}" >&5
5497 # Check whether --with-tclinclude or --without-tclinclude was given.
5498 if test "${with_tclinclude+set}" = set; then
5499 withval
="$with_tclinclude"
5500 with_tclinclude
=${withval}
5503 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
5504 echo $ac_n "(cached) $ac_c" 1>&6
5507 # first check to see if --with-tclinclude was specified
5508 if test x
"${with_tclinclude}" != x
; then
5509 if test -f ${with_tclinclude}/tclInt.h
; then
5510 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
5511 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
5512 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
5514 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5518 # next check if it came with Tcl configuration file
5519 if test x
"${ac_cv_c_tclconfig}" = x
; then
5520 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
5521 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
5525 # next check in private source directory
5527 # since ls returns lowest version numbers first, reverse its output
5528 if test x
"${ac_cv_c_tclh}" = x
; then
5531 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
5532 ${srcdir}/..
/..
/tcl \
5533 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
5534 ${srcdir}/..
/..
/..
/tcl \
5535 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
5536 if test -f $i/generic
/tclInt.h
; then
5537 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5542 # finally check in a few common install locations
5544 # since ls returns lowest version numbers first, reverse its output
5545 if test x
"${ac_cv_c_tclh}" = x
; then
5547 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
5548 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
5549 /usr
/local
/src
/tcl \
5550 /usr
/local
/lib
/tcl \
5551 ${prefix}/include
; do
5552 if test -f $i/generic
/tclInt.h
; then
5553 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5558 # see if one is installed
5559 if test x
"${ac_cv_c_tclh}" = x
; then
5560 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
5561 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
5562 echo "configure:5563: checking for tclInt.h" >&5
5563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5564 echo $ac_n "(cached) $ac_c" 1>&6
5566 cat > conftest.
$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5571 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5572 { (eval echo configure
:5573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5573 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5574 if test -z "$ac_err"; then
5576 eval "ac_cv_header_$ac_safe=yes"
5579 echo "configure: failed program was:" >&5
5580 cat conftest.
$ac_ext >&5
5582 eval "ac_cv_header_$ac_safe=no"
5586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5587 echo "$ac_t""yes" 1>&6
5588 ac_cv_c_tclh
=installed
5590 echo "$ac_t""no" 1>&6
5598 if test x
"${ac_cv_c_tclh}" = x
; then
5599 TCLHDIR
="# no Tcl private headers found"
5600 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
5602 if test x
"${ac_cv_c_tclh}" != x
; then
5604 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
5605 echo "$ac_t""is installed" 1>&6
5608 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
5609 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
5610 TCLHDIR
="-I${ac_cv_c_tclh}"
5618 # Ok, lets find the tk source trees so we can use the headers
5619 # If the directory (presumably symlink) named "tk" exists, use that one
5620 # in preference to any others. Same logic is used when choosing library
5621 # and again with Tcl. The search order is the best place to look first, then in
5622 # decreasing significance. The loop breaks if the trigger file is found.
5623 # Note the gross little conversion here of srcdir by cd'ing to the found
5624 # directory. This converts the path from a relative to an absolute, so
5625 # recursive cache variables for the path will work right. We check all
5626 # the possible paths in one loop rather than many seperate loops to speed
5628 # the alternative search directory is involked by --with-tkinclude
5631 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
5632 echo "configure:5633: checking for Tk private headers" >&5
5633 # Check whether --with-tkinclude or --without-tkinclude was given.
5634 if test "${with_tkinclude+set}" = set; then
5635 withval
="$with_tkinclude"
5636 with_tkinclude
=${withval}
5639 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5643 # first check to see if --with-tkinclude was specified
5644 if test x
"${with_tkinclude}" != x
; then
5645 if test -f ${with_tkinclude}/tk.h
; then
5646 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
5647 elif test -f ${with_tkinclude}/generic
/tk.h
; then
5648 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
5650 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5654 # next check if it came with Tk configuration file
5655 if test x
"${ac_cv_c_tkconfig}" = x
; then
5656 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
5657 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
5661 # next check in private source directory
5663 # since ls returns lowest version numbers first, reverse its output
5664 if test x
"${ac_cv_c_tkh}" = x
; then
5667 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
5668 ${srcdir}/..
/..
/tk \
5669 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
5670 ${srcdir}/..
/..
/..
/tk \
5671 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
5672 if test -f $i/generic
/tk.h
; then
5673 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5678 # finally check in a few common install locations
5680 # since ls returns lowest version numbers first, reverse its output
5681 if test x
"${ac_cv_c_tkh}" = x
; then
5683 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
5684 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
5687 ${prefix}/include
; do
5688 if test -f $i/generic
/tk.h
; then
5689 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5694 # see if one is installed
5695 if test x
"${ac_cv_c_tkh}" = x
; then
5696 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
5697 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5698 echo "configure:5699: checking for tk.h" >&5
5699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5702 cat > conftest.
$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5707 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5708 { (eval echo configure
:5709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5709 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5710 if test -z "$ac_err"; then
5712 eval "ac_cv_header_$ac_safe=yes"
5715 echo "configure: failed program was:" >&5
5716 cat conftest.
$ac_ext >&5
5718 eval "ac_cv_header_$ac_safe=no"
5722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5723 echo "$ac_t""yes" 1>&6
5724 ac_cv_c_tkh
=installed
5726 echo "$ac_t""no" 1>&6
5734 if test x
"${ac_cv_c_tkh}" != x
; then
5736 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
5737 echo "$ac_t""is installed" 1>&6
5740 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5741 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
5742 TKHDIR
="-I${ac_cv_c_tkh}"
5745 TKHDIR
="# no Tk directory found"
5746 echo "configure: warning: Can't find Tk private headers" 1>&2
5753 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5754 echo "configure:5755: checking for Itcl private headers. srcdir=${srcdir}" >&5
5755 if test x
"${ac_cv_c_itclh}" = x
; then
5756 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/..
/..
/..
/itcl
; do
5757 if test -f $i/src
/itcl.h
; then
5758 ac_cv_c_itclh
=`(cd $i/src; pwd)`
5763 if test x
"${ac_cv_c_itclh}" = x
; then
5764 ITCLHDIR
="# no Itcl private headers found"
5765 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
5767 if test x
"${ac_cv_c_itclh}" != x
; then
5768 ITCLHDIR
="-I${ac_cv_c_itclh}"
5770 # should always be here
5771 ITCLLIB
="../itcl/src/libitcl.a"
5776 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5777 echo "configure:5778: checking for Tix private headers. srcdir=${srcdir}" >&5
5778 if test x
"${ac_cv_c_tixh}" = x
; then
5779 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
5780 if test -f $i/generic
/tix.h
; then
5781 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
5786 if test x
"${ac_cv_c_tixh}" = x
; then
5787 TIXHDIR
="# no Tix private headers found"
5788 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
5790 if test x
"${ac_cv_c_tixh}" != x
; then
5791 TIXHDIR
="-I${ac_cv_c_tixh}"
5796 # now look for tix library stuff
5798 .
${ac_cv_c_tclconfig}/tclConfig.sh
5801 tixdir
=..
/tix
/win
/tcl8.0
5804 tixdir
=..
/tix
/unix
/tk8.0
5807 if test "${TCL_SHARED_BUILD}" = "1"; then
5808 TIX_LIB_EXT
="${TCL_SHLIB_SUFFIX}"
5810 # Can't win them all: SunOS 4 (others?) appends a version
5811 # number after the ".so"
5814 TIX_LIB_EXT
="${TIX_LIB_EXT}.1.0" ;;
5821 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
5822 TIXLIB
="-L${tixdir} -ltix${TIXVERSION}"
5823 TIX_DEPS
="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
5825 TIXLIB
="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
5826 TIX_DEPS
="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
5830 ENABLE_CFLAGS
="${ENABLE_CFLAGS} -DGDBTK"
5832 # Include some libraries that Tcl and Tk want.
5833 if test "${enable_ide}" = "yes"; then
5834 TCL_LIBS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5835 CONFIG_DEPS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5837 TCL_LIBS
='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5838 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5840 # Yes, the ordering seems wrong here. But it isn't.
5841 # TK_LIBS is the list of libraries that need to be linked
5842 # after Tcl/Tk. Note that this isn't put into LIBS. If it
5843 # were in LIBS then any link tests after this point would
5844 # try to include things like `$(LIBGUI)', which wouldn't work.
5845 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
5846 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
5848 if test x
$gdb_cv_os_cygwin = xyes
; then
5849 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
5850 WIN32LDAPP
="-Wl,--subsystem,console"
5851 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
5864 # end-sanitize-gdbtk
5866 # If we find X, set shell vars x_includes and x_libraries to the
5867 # paths, otherwise set no_x=yes.
5868 # Uses ac_ vars as temps to allow command line to override cache and checks.
5869 # --without-x overrides everything else, but does not touch the cache.
5870 echo $ac_n "checking for X""... $ac_c" 1>&6
5871 echo "configure:5872: checking for X" >&5
5873 # Check whether --with-x or --without-x was given.
5874 if test "${with_x+set}" = set; then
5879 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5880 if test "x$with_x" = xno
; then
5881 # The user explicitly disabled X.
5884 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5885 # Both variables are already set.
5888 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5891 # One or both of the vars are not set, and there is no cached value.
5892 ac_x_includes
=NO ac_x_libraries
=NO
5894 if mkdir conftestdir
; then
5896 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5897 cat > Imakefile
<<'EOF'
5899 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5901 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5903 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5904 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5905 for ac_extension
in a so sl
; do
5906 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5907 test -f $ac_im_libdir/libX11.
$ac_extension; then
5908 ac_im_usrlibdir
=$ac_im_libdir; break
5911 # Screen out bogus values from the imake configuration. They are
5912 # bogus both because they are the default anyway, and because
5913 # using them would break gcc on systems where it needs fixed includes.
5914 case "$ac_im_incroot" in
5916 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5918 case "$ac_im_usrlibdir" in
5920 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5927 if test "$ac_x_includes" = NO
; then
5928 # Guess where to find include files, by looking for this one X11 .h file.
5929 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5931 # First, try using that file with no special directory specified.
5932 cat > conftest.
$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 #include <$x_direct_test_include>
5937 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5938 { (eval echo configure
:5939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5939 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5940 if test -z "$ac_err"; then
5942 # We can compile using X headers with no special include directory.
5946 echo "configure: failed program was:" >&5
5947 cat conftest.
$ac_ext >&5
5949 # Look for the header file in a standard set of common directories.
5950 # Check X11 before X11Rn because it is often a symlink to the current release.
5953 /usr
/X11R
6/include \
5954 /usr
/X11R
5/include \
5955 /usr
/X11R
4/include \
5958 /usr
/include
/X11R6 \
5959 /usr
/include
/X11R5 \
5960 /usr
/include
/X11R4 \
5962 /usr
/local
/X11
/include \
5963 /usr
/local
/X11R
6/include \
5964 /usr
/local
/X11R
5/include \
5965 /usr
/local
/X11R
4/include \
5967 /usr
/local
/include
/X11 \
5968 /usr
/local
/include
/X11R6 \
5969 /usr
/local
/include
/X11R5 \
5970 /usr
/local
/include
/X11R4 \
5974 /usr
/XFree86
/include
/X11 \
5977 /usr
/local
/include \
5978 /usr
/unsupported
/include \
5979 /usr
/athena
/include \
5980 /usr
/local
/x11r
5/include \
5981 /usr
/lpp
/Xamples
/include \
5983 /usr
/openwin
/include \
5984 /usr
/openwin
/share
/include \
5987 if test -r "$ac_dir/$x_direct_test_include"; then
5988 ac_x_includes
=$ac_dir
5994 fi # $ac_x_includes = NO
5996 if test "$ac_x_libraries" = NO
; then
5997 # Check for the libraries.
5999 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
6000 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
6002 # See if we find them without any special options.
6003 # Don't add to $LIBS permanently.
6004 ac_save_LIBS
="$LIBS"
6005 LIBS
="-l$x_direct_test_library $LIBS"
6006 cat > conftest.
$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6011 ${x_direct_test_function}()
6014 if { (eval echo configure
:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6016 LIBS
="$ac_save_LIBS"
6017 # We can link X programs with no special library path.
6020 echo "configure: failed program was:" >&5
6021 cat conftest.
$ac_ext >&5
6023 LIBS
="$ac_save_LIBS"
6024 # First see if replacing the include by lib works.
6025 # Check X11 before X11Rn because it is often a symlink to the current release.
6026 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
6037 /usr
/local
/X11
/lib \
6038 /usr
/local
/X11R
6/lib \
6039 /usr
/local
/X11R
5/lib \
6040 /usr
/local
/X11R
4/lib \
6042 /usr
/local
/lib
/X11 \
6043 /usr
/local
/lib
/X11R6 \
6044 /usr
/local
/lib
/X11R5 \
6045 /usr
/local
/lib
/X11R4 \
6049 /usr
/XFree86
/lib
/X11 \
6053 /usr
/unsupported
/lib \
6055 /usr
/local
/x11r
5/lib \
6056 /usr
/lpp
/Xamples
/lib \
6060 /usr
/openwin
/share
/lib \
6063 for ac_extension
in a so sl
; do
6064 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
6065 ac_x_libraries
=$ac_dir
6072 fi # $ac_x_libraries = NO
6074 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
6075 # Didn't find X anywhere. Cache the known absence of X.
6076 ac_cv_have_x
="have_x=no"
6078 # Record where we found X for the cache.
6079 ac_cv_have_x
="have_x=yes \
6080 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6084 eval "$ac_cv_have_x"
6087 if test "$have_x" != yes; then
6088 echo "$ac_t""$have_x" 1>&6
6091 # If each of the values was on the command line, it overrides each guess.
6092 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6093 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6094 # Update the cache value to reflect the command line values.
6095 ac_cv_have_x
="have_x=yes \
6096 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6097 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6100 # start-sanitize-sky
6101 # Enable GPU2 library for MIPS simulator
6102 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
6103 if test "${with_sim_gpu2+set}" = set; then
6104 withval
="$with_sim_gpu2"
6107 if test -d "${withval}"
6109 if test x
${x_libraries} != x
6111 LIBS
="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext -lm"
6113 LIBS
="${LIBS} -L${withval}/lib -lgpu2 -lX11 -lXext -lm"
6116 echo "configure: warning: Directory ${withval} does not exist." 1>&2
6118 *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2
6122 # Enable target accurate FP library
6123 # Check whether --with-sim-funit or --without-sim-funit was given.
6124 if test "${with_sim_funit+set}" = set; then
6125 withval
="$with_sim_funit"
6128 if test -d "${withval}"
6130 LIBS
="${LIBS} -L${withval}/lib -lfunit"
6132 echo "configure: warning: Directory ${withval} does not exist." 1>&2
6134 *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2
6145 # Begin stuff to support --enable-shared
6146 # Check whether --enable-shared or --disable-shared was given.
6147 if test "${enable_shared+set}" = set; then
6148 enableval
="$enable_shared"
6149 case "${enableval}" in
6158 # If we have shared libraries, try to set rpath reasonably.
6159 if test "${shared}" = "true"; then
6162 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
6164 *-*-irix5* |
*-*-irix6*)
6165 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6169 *-*-linux* |
*-pc-linux-gnu)
6170 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6173 HLDFLAGS
='-R $(libdir)'
6176 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;'
6181 # On SunOS, if the linker supports the -rpath option, use it to
6182 # prevent ../bfd and ../opcodes from being included in the run time
6186 echo 'main () { }' > conftest.c
6187 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
6188 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
6190 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
6192 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
6194 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
6196 elif test "${shared}" = "true"; then
6197 HLDFLAGS
='-Wl,-rpath=$(libdir)'
6199 HLDFLAGS
='-Wl,-rpath='
6201 rm -f conftest.t conftest.c conftest
6206 # End stuff to support --enable-shared
6208 # target_subdir is used by the testsuite to find the target libraries.
6210 if test "${host}" != "${target}"; then
6211 target_subdir
="${target_alias}/"
6216 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
6217 if test ! -f ${host_makefile_frag}; then
6218 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
6220 frags
="$frags $host_makefile_frag"
6222 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
6223 if test ! -f ${target_makefile_frag}; then
6224 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
6226 frags
="$frags $target_makefile_frag"
6233 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6234 ' ${host_makefile_frag}`
6236 targetfile
=`sed -n '
6237 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6238 ' ${target_makefile_frag}`
6240 # these really aren't orthogonal true/false values of the same condition,
6241 # but shells are slow enough that I like to reuse the test conditions
6243 if test "${target}" = "${host}"; then
6244 nativefile
=`sed -n '
6245 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6246 ' ${host_makefile_frag}`
6248 # GDBserver is only useful in a "native" enviroment
6249 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
6253 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
6254 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
6255 # corresponding links. But we have to remove the xm.h files and tm.h
6256 # files anyway, e.g. when switching from "configure host" to
6262 if test "${hostfile}" != ""; then
6263 files
="${files} config/${gdb_host_cpu}/${hostfile}"
6264 links
="${links} xm.h"
6267 if test "${targetfile}" != ""; then
6268 files
="${files} config/${gdb_target_cpu}/${targetfile}"
6269 links
="${links} tm.h"
6272 if test "${nativefile}" != ""; then
6273 files
="${files} config/${gdb_host_cpu}/${nativefile}"
6274 links
="${links} nm.h"
6276 # A cross-only configuration.
6277 files
="${files} config/nm-empty.h"
6278 links
="${links} nm.h"
6280 # start-sanitize-gdbtk
6281 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6282 echo "configure:6283: checking whether ln -s works" >&5
6283 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6287 if ln -s X conftestdata
2>/dev
/null
6290 ac_cv_prog_LN_S
="ln -s"
6295 LN_S
="$ac_cv_prog_LN_S"
6296 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6297 echo "$ac_t""yes" 1>&6
6299 echo "$ac_t""no" 1>&6
6302 # Make it possible to use the GUI without doing a full install
6303 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl2
; then
6304 if test "$LN_S" = "ln -s" -a ! -f gdbtcl2
; then
6305 echo linking
$srcdir/gdbtcl2 to gdbtcl2
6306 $LN_S $srcdir/gdbtcl2 gdbtcl2
6308 echo Warning
: Unable to link
$srcdir/gdbtcl2 to gdbtcl2. You will need to
do a
6309 echo " " make install before you are able to run the GUI.
6312 # end-sanitize-gdbtk
6316 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
6317 echo "configure:6318: checking for Cygwin32 environment" >&5
6318 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6321 cat > conftest.
$ac_ext <<EOF
6322 #line 6323 "configure"
6323 #include "confdefs.h"
6326 return __CYGWIN32__;
6329 if { (eval echo configure
:6330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6333 echo "configure: failed program was:" >&5
6334 cat conftest.
$ac_ext >&5
6342 echo "$ac_t""$am_cv_cygwin32" 1>&6
6344 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
6345 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
6346 echo "configure:6347: checking for Mingw32 environment" >&5
6347 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6350 cat > conftest.
$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6358 if { (eval echo configure
:6359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6362 echo "configure: failed program was:" >&5
6363 cat conftest.
$ac_ext >&5
6371 echo "$ac_t""$am_cv_mingw32" 1>&6
6373 test "$am_cv_mingw32" = yes && MINGW32
=yes
6376 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6377 echo "configure:6378: checking for executable suffix" >&5
6378 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6381 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
6384 cat > am_c_test.c
<< 'EOF'
6386 /* Nothing needed here
*/
6389 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
6391 for file in am_c_test.
*; do
6395 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
6401 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
6404 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
6405 echo "$ac_t""${am_cv_exeext}" 1>&6
6408 subdirs
="$configdirs"
6411 cat > confcache
<<\EOF
6412 # This file is a shell script that caches the results of configure
6413 # tests run on this system so they can be shared between configure
6414 # scripts and configure runs. It is not useful on other systems.
6415 # If it contains results you don't want to keep, you may remove or edit it.
6417 # By default, configure uses ./config.cache as the cache file,
6418 # creating it if it does not exist already. You can give configure
6419 # the --cache-file=FILE option to use a different cache file; that is
6420 # what configure does when it calls configure scripts in
6421 # subdirectories, so they share the cache.
6422 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6423 # config.status only pays attention to the cache file if you give it the
6424 # --recheck option to rerun configure.
6427 # The following way of writing the cache mishandles newlines in values,
6428 # but we know of no workaround that is simple, portable, and efficient.
6429 # So, don't put newlines in cache variables' values.
6430 # Ultrix sh set writes to stderr and can't be redirected directly,
6431 # and sets the high bit in the cache file unless we assign to the vars.
6433 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
6435 # `set' does not quote correctly, so add quotes (double-quote substitution
6436 # turns \\\\ into \\, and sed turns \\ into \).
6438 -e "s/'/'\\\\''/g" \
6439 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6442 # `set' quotes correctly as required by POSIX, so do not add quotes.
6443 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6446 if cmp -s $cache_file confcache
; then
6449 if test -w $cache_file; then
6450 echo "updating cache $cache_file"
6451 cat confcache
> $cache_file
6453 echo "not updating unwritable cache $cache_file"
6458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6460 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6461 # Let make expand exec_prefix.
6462 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6464 # Any assignment to VPATH causes Sun make to only execute
6465 # the first set of double-colon rules, so remove it if not needed.
6466 # If there is a colon in the path, we need to keep it.
6467 if test "x$srcdir" = x.
; then
6468 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6471 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6473 DEFS
=-DHAVE_CONFIG_H
6475 # Without the "./", some shells look in PATH for config.status.
6476 : ${CONFIG_STATUS=./config.status}
6478 echo creating
$CONFIG_STATUS
6479 rm -f $CONFIG_STATUS
6480 cat > $CONFIG_STATUS <<EOF
6482 # Generated automatically by configure.
6483 # Run this file to recreate the current configuration.
6484 # This directory was configured as follows,
6485 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6487 # $0 $ac_configure_args
6489 # Compiler output produced by configure, useful for debugging
6490 # configure, is in ./config.log if it exists.
6492 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6495 case "\$ac_option" in
6496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6497 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6498 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6499 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6500 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
6502 -help | --help | --hel | --he | --h)
6503 echo "\$ac_cs_usage"; exit 0 ;;
6504 *) echo "\$ac_cs_usage"; exit 1 ;;
6508 ac_given_srcdir=$srcdir
6509 ac_given_INSTALL="$INSTALL"
6511 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6513 cat >> $CONFIG_STATUS <<EOF
6515 # Protect against being on the right side of a sed subst in config.status.
6516 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6517 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6521 s%@CFLAGS@%$CFLAGS%g
6522 s%@CPPFLAGS@%$CPPFLAGS%g
6523 s%@CXXFLAGS@%$CXXFLAGS%g
6525 s%@LDFLAGS@%$LDFLAGS%g
6527 s%@exec_prefix@%$exec_prefix%g
6528 s%@prefix@%$prefix%g
6529 s%@program_transform_name@%$program_transform_name%g
6530 s%@bindir@%$bindir%g
6531 s%@sbindir@%$sbindir%g
6532 s%@libexecdir@%$libexecdir%g
6533 s%@datadir@%$datadir%g
6534 s%@sysconfdir@%$sysconfdir%g
6535 s%@sharedstatedir@%$sharedstatedir%g
6536 s%@localstatedir@%$localstatedir%g
6537 s%@libdir@%$libdir%g
6538 s%@includedir@%$includedir%g
6539 s%@oldincludedir@%$oldincludedir%g
6540 s%@infodir@%$infodir%g
6541 s%@mandir@%$mandir%g
6545 s%@host_alias@%$host_alias%g
6546 s%@host_cpu@%$host_cpu%g
6547 s%@host_vendor@%$host_vendor%g
6548 s%@host_os@%$host_os%g
6549 s%@target@%$target%g
6550 s%@target_alias@%$target_alias%g
6551 s%@target_cpu@%$target_cpu%g
6552 s%@target_vendor@%$target_vendor%g
6553 s%@target_os@%$target_os%g
6555 s%@build_alias@%$build_alias%g
6556 s%@build_cpu@%$build_cpu%g
6557 s%@build_vendor@%$build_vendor%g
6558 s%@build_os@%$build_os%g
6559 s%@SET_MAKE@%$SET_MAKE%g
6560 s%@RANLIB@%$RANLIB%g
6561 s%@ALLOCA@%$ALLOCA%g
6562 s%@USE_NLS@%$USE_NLS%g
6563 s%@MSGFMT@%$MSGFMT%g
6564 s%@GMSGFMT@%$GMSGFMT%g
6565 s%@XGETTEXT@%$XGETTEXT%g
6566 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6567 s%@CATALOGS@%$CATALOGS%g
6568 s%@CATOBJEXT@%$CATOBJEXT%g
6569 s%@DATADIRNAME@%$DATADIRNAME%g
6570 s%@GMOFILES@%$GMOFILES%g
6571 s%@INSTOBJEXT@%$INSTOBJEXT%g
6572 s%@INTLDEPS@%$INTLDEPS%g
6573 s%@INTLLIBS@%$INTLLIBS%g
6574 s%@INTLOBJS@%$INTLOBJS%g
6575 s%@POFILES@%$POFILES%g
6577 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6579 s%@GT_YES@%$GT_YES%g
6580 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6582 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6583 s%@INSTALL_DATA@%$INSTALL_DATA%g
6586 s%@TERM_LIB@%$TERM_LIB%g
6587 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6588 s%@BUILD_TUI@%$BUILD_TUI%g
6589 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
6590 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6591 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6592 s%@MMALLOC@%$MMALLOC%g
6593 s%@MACHINE_OBS@%$MACHINE_OBS%g
6594 s%@ENABLE_IDE@%$ENABLE_IDE%g
6595 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6596 s%@LIBGUI@%$LIBGUI%g
6597 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6598 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6600 s%@LIBIDETCL@%$LIBIDETCL%g
6601 s%@LIBIDE@%$LIBIDE%g
6602 s%@IDE_DEPS@%$IDE_DEPS%g
6603 s%@WIN32LIBS@%$WIN32LIBS%g
6604 s%@WIN32LDAPP@%$WIN32LDAPP%g
6605 s%@DLLTOOL@%$DLLTOOL%g
6606 s%@WINDRES@%$WINDRES%g
6607 s%@TCL_VERSION@%$TCL_VERSION%g
6608 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6609 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6610 s%@TCL_CC@%$TCL_CC%g
6611 s%@TCL_DEFS@%$TCL_DEFS%g
6612 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6613 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6614 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6615 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6616 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6617 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6618 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6619 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6620 s%@TCL_RANLIB@%$TCL_RANLIB%g
6621 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6622 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6623 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6624 s%@TK_VERSION@%$TK_VERSION%g
6625 s%@TK_DEFS@%$TK_DEFS%g
6626 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6627 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6628 s%@TK_XLIBSW@%$TK_XLIBSW%g
6629 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6630 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6631 s%@TCLHDIR@%$TCLHDIR%g
6632 s%@TKHDIR@%$TKHDIR%g
6633 s%@ITCLHDIR@%$ITCLHDIR%g
6634 s%@ITCLLIB@%$ITCLLIB%g
6635 s%@TIXHDIR@%$TIXHDIR%g
6636 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6637 s%@X_CFLAGS@%$X_CFLAGS%g
6638 s%@X_LDFLAGS@%$X_LDFLAGS%g
6639 s%@X_LIBS@%$X_LIBS%g
6640 s%@TIXLIB@%$TIXLIB%g
6641 s%@TIX_DEPS@%$TIX_DEPS%g
6642 s%@GDBTKLIBS@%$GDBTKLIBS%g
6643 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6644 s%@CONFIG_OBS@%$CONFIG_OBS%g
6645 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6646 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6647 s%@HLDFLAGS@%$HLDFLAGS%g
6648 s%@HLDENV@%$HLDENV%g
6649 s%@target_subdir@%$target_subdir%g
6650 /@host_makefile_frag@/r $host_makefile_frag
6651 s%@host_makefile_frag@%%g
6652 /@target_makefile_frag@/r $target_makefile_frag
6653 s%@target_makefile_frag@%%g
6656 s%@EXEEXT@%$EXEEXT%g
6657 s%@subdirs@%$subdirs%g
6662 cat >> $CONFIG_STATUS <<\EOF
6664 # Split the substitutions into bite-sized pieces for seds with
6665 # small command number limits, like on Digital OSF/1 and HP-UX.
6666 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6667 ac_file
=1 # Number of current file.
6668 ac_beg
=1 # First line for current file.
6669 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6672 while $ac_more_lines; do
6673 if test $ac_beg -gt 1; then
6674 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6676 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6678 if test ! -s conftest.s
$ac_file; then
6680 rm -f conftest.s
$ac_file
6682 if test -z "$ac_sed_cmds"; then
6683 ac_sed_cmds
="sed -f conftest.s$ac_file"
6685 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6687 ac_file
=`expr $ac_file + 1`
6689 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6692 if test -z "$ac_sed_cmds"; then
6697 cat >> $CONFIG_STATUS <<EOF
6699 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
6701 cat >> $CONFIG_STATUS <<\EOF
6702 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6703 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6705 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6706 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6707 *) ac_file_in
="${ac_file}.in" ;;
6710 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6712 # Remove last slash and all that follows it. Not all systems have dirname.
6713 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6714 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6715 # The file is in a subdirectory.
6716 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6717 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6718 # A "../" for each directory in $ac_dir_suffix.
6719 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6721 ac_dir_suffix
= ac_dots
=
6724 case "$ac_given_srcdir" in
6726 if test -z "$ac_dots"; then top_srcdir
=.
6727 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6728 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6730 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6731 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6734 case "$ac_given_INSTALL" in
6735 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6736 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6739 echo creating
"$ac_file"
6741 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6743 *Makefile
*) ac_comsub
="1i\\
6744 # $configure_input" ;;
6748 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6750 s%@configure_input@%$configure_input%g
6751 s%@srcdir@%$srcdir%g
6752 s%@top_srcdir@%$top_srcdir%g
6753 s%@INSTALL@%$INSTALL%g
6754 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6758 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6759 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6761 # ac_d sets the value in "#define NAME VALUE" lines.
6762 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6763 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6766 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6767 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6768 ac_uB
='\([ ]\)%\1#\2define\3'
6771 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6772 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6773 ac_eB
='$%\1#\2define\3'
6777 if test "${CONFIG_HEADERS+set}" != set; then
6779 cat >> $CONFIG_STATUS <<EOF
6780 CONFIG_HEADERS="config.h:config.in"
6782 cat >> $CONFIG_STATUS <<\EOF
6784 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6787 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6788 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6789 *) ac_file_in
="${ac_file}.in" ;;
6792 echo creating
$ac_file
6794 rm -f conftest.frag conftest.
in conftest.out
6795 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6796 cat $ac_file_inputs > conftest.
in
6800 # Transform confdefs.h into a sed script conftest.vals that substitutes
6801 # the proper values into config.h.in to produce config.h. And first:
6802 # Protect against being on the right side of a sed subst in config.status.
6803 # Protect against being in an unquoted here document in config.status.
6805 cat > conftest.hdr
<<\EOF
6808 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6812 sed -n -f conftest.hdr confdefs.h > conftest.vals
6815 # This sed command replaces #undef with comments. This is necessary, for
6816 # example, in the case of _POSIX_SOURCE, which is predefined and required
6817 # on some systems where configure will not decide to define it.
6818 cat >> conftest.vals <<\EOF
6819 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6822 # Break up conftest.vals because some shells have a limit on
6823 # the size of here documents, and old seds have small limits too.
6828 ac_lines=`grep -c . conftest.vals
`
6829 # grep -c gives empty output for an empty file on some AIX systems.
6830 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6831 # Write a limited-size here document to conftest.frag.
6832 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6833 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6835 sed -f conftest.frag conftest.in > conftest.out
6837 mv conftest.out conftest.in
6839 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6841 mv conftest.tail conftest.vals
6845 cat >> $CONFIG_STATUS <<\EOF
6846 rm -f conftest.frag conftest.h
6847 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6848 cat conftest.in >> conftest.h
6850 if cmp -s $ac_file conftest.h 2>/dev/null; then
6851 echo "$ac_file is unchanged"
6854 # Remove last slash and all that follows it. Not all systems have dirname.
6855 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6856 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6857 # The file is in a subdirectory.
6858 test ! -d "$ac_dir" && mkdir "$ac_dir"
6861 mv conftest.h $ac_file
6867 cat >> $CONFIG_STATUS <<EOF
6872 cat >> $CONFIG_STATUS <<\EOF
6873 srcdir=$ac_given_srcdir
6874 while test -n "$ac_sources"; do
6875 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6876 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6878 echo "linking $srcdir/$ac_source to $ac_dest"
6880 if test ! -r $srcdir/$ac_source; then
6881 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6885 # Make relative symlinks.
6886 # Remove last slash and all that follows it. Not all systems have dirname.
6887 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
6888 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6889 # The dest file is in a subdirectory.
6890 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6891 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
6892 # A "../" for each directory in $ac_dest_dir_suffix.
6893 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
6895 ac_dest_dir_suffix= ac_dots=
6899 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6900 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6903 # Make a symlink if possible; otherwise try a hard link.
6904 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6905 ln $srcdir/$ac_source $ac_dest; then :
6907 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6911 cat >> $CONFIG_STATUS <<EOF
6913 gdb_host_cpu=$gdb_host_cpu
6914 gdb_target_cpu=$gdb_target_cpu
6915 nativefile=$nativefile
6918 cat >> $CONFIG_STATUS <<\EOF
6920 if test "${nativefile}" = ""; then
6921 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6922 < Makefile > Makefile.tem
6923 mv -f Makefile.tem Makefile
6926 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6927 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6928 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6929 mv -f Makefile.tmp Makefile
6931 case x$CONFIG_HEADERS in
6932 xconfig.h:config.in)
6938 chmod +x $CONFIG_STATUS
6939 rm -fr confdefs* $ac_clean_files
6940 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6942 if test "$no_recursion" != yes; then
6944 # Remove --cache-file and --srcdir arguments so they do not pile up.
6945 ac_sub_configure_args=
6947 for ac_arg in $ac_configure_args; do
6948 if test -n "$ac_prev"; then
6953 -cache-file | --cache-file | --cache-fil | --cache-fi \
6954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6955 ac_prev=cache_file ;;
6956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6959 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6961 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6963 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6967 for ac_config_dir in $configdirs; do
6969 # Do not complain, so a configure script can configure whichever
6970 # parts of a large source tree are present.
6971 if test ! -d $srcdir/$ac_config_dir; then
6975 echo configuring in $ac_config_dir
6980 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6982 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6990 # A "../" for each directory in /$ac_config_dir.
6991 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6994 .) # No --srcdir option. We are building in place.
6995 ac_sub_srcdir=$srcdir ;;
6996 /*) # Absolute path.
6997 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6999 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7002 # Check for guested configure; otherwise get Cygnus style configure.
7003 if test -f $ac_sub_srcdir/configure; then
7004 ac_sub_configure=$ac_sub_srcdir/configure
7005 elif test -f $ac_sub_srcdir/configure.in; then
7006 ac_sub_configure=$ac_configure
7008 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7012 # The recursion is here.
7013 if test -n "$ac_sub_configure"; then
7015 # Make the cache file name correct relative to the subdirectory.
7016 case "$cache_file" in
7017 /*) ac_sub_cache_file=$cache_file ;;
7019 ac_sub_cache_file="$ac_dots$cache_file" ;;
7021 case "$ac_given_INSTALL" in
7022 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7023 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7026 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7027 # The eval makes quoting arguments work.
7028 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7031 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }