3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
19 --enable-multi-ice Build the multi-ice-gdb-server"
21 --enable-gdbmi Enable GDB-MI interface"
23 --enable-tui Enable full-screen terminal user interface"
25 --enable-netrom Enable NetROM support"
27 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
29 --with-mmalloc Use memory mapped malloc package"
31 --with-cpu=CPU Set the default CPU variant to debug"
33 --enable-gdbtk Enable GDBTK GUI front end"
35 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
37 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
39 --with-tclinclude=DIR Directory where tcl private headers are"
41 --with-tkinclude=DIR Directory where tk private headers are"
43 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
45 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
47 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
49 --with-x use the X Window System"
51 --enable-sim Link gdb with simulator"
53 --enable-shared Use shared libraries"
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
59 cache_file
=.
/config.cache
68 program_transform_name
=s
,x
,x
,
77 bindir
='${exec_prefix}/bin'
78 sbindir
='${exec_prefix}/sbin'
79 libexecdir
='${exec_prefix}/libexec'
80 datadir
='${prefix}/share'
81 sysconfdir
='${prefix}/etc'
82 sharedstatedir
='${prefix}/com'
83 localstatedir
='${prefix}/var'
84 libdir
='${exec_prefix}/lib'
85 includedir
='${prefix}/include'
86 oldincludedir
='/usr/include'
87 infodir
='${prefix}/info'
88 mandir
='${prefix}/man'
90 # Initialize some other variables.
93 SHELL
=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
119 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
120 bindir
="$ac_optarg" ;;
122 -build |
--build |
--buil |
--bui |
--bu)
124 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
125 build
="$ac_optarg" ;;
127 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
128 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
129 ac_prev
=cache_file
;;
130 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
131 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
132 cache_file
="$ac_optarg" ;;
134 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
136 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
138 datadir
="$ac_optarg" ;;
140 -disable-* |
--disable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* |
--enable-*)
150 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
163 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
164 |
--exec |
--exe |
--ex)
165 ac_prev
=exec_prefix
;;
166 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
167 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
168 |
--exec=* |
--exe=* |
--ex=*)
169 exec_prefix
="$ac_optarg" ;;
171 -gas |
--gas |
--ga |
--g)
172 # Obsolete; use --with-gas.
175 -help |
--help |
--hel |
--he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --site-file=FILE use FILE as the site file
187 --version print the version of autoconf that created configure
188 Directory and file names:
189 --prefix=PREFIX install architecture-independent files in PREFIX
191 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
193 --bindir=DIR user executables in DIR [EPREFIX/bin]
194 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
195 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
196 --datadir=DIR read-only architecture-independent data in DIR
198 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
199 --sharedstatedir=DIR modifiable architecture-independent data in DIR
201 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
202 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
203 --includedir=DIR C header files in DIR [PREFIX/include]
204 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
205 --infodir=DIR info documentation in DIR [PREFIX/info]
206 --mandir=DIR man documentation in DIR [PREFIX/man]
207 --srcdir=DIR find the sources in DIR [configure dir or ..]
208 --program-prefix=PREFIX prepend PREFIX to installed program names
209 --program-suffix=SUFFIX append SUFFIX to installed program names
210 --program-transform-name=PROGRAM
211 run sed PROGRAM on installed program names
215 --build=BUILD configure for building on BUILD [BUILD=HOST]
216 --host=HOST configure for HOST [guessed]
217 --target=TARGET configure for TARGET [TARGET=HOST]
218 Features and packages:
219 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
220 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
221 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
222 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
223 --x-includes=DIR X include files are in DIR
224 --x-libraries=DIR X library files are in DIR
226 if test -n "$ac_help"; then
227 echo "--enable and --with options recognized:$ac_help"
231 -host |
--host |
--hos |
--ho)
233 -host=* |
--host=* |
--hos=* |
--ho=*)
236 -includedir |
--includedir |
--includedi |
--included |
--include \
237 |
--includ |
--inclu |
--incl |
--inc)
238 ac_prev
=includedir
;;
239 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
240 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
241 includedir
="$ac_optarg" ;;
243 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
245 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
246 infodir
="$ac_optarg" ;;
248 -libdir |
--libdir |
--libdi |
--libd)
250 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
251 libdir
="$ac_optarg" ;;
253 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
254 |
--libexe |
--libex |
--libe)
255 ac_prev
=libexecdir
;;
256 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
257 |
--libexe=* |
--libex=* |
--libe=*)
258 libexecdir
="$ac_optarg" ;;
260 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
261 |
--localstate |
--localstat |
--localsta |
--localst \
262 |
--locals |
--local |
--loca |
--loc |
--lo)
263 ac_prev
=localstatedir
;;
264 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
265 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
266 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
267 localstatedir
="$ac_optarg" ;;
269 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
271 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
272 mandir
="$ac_optarg" ;;
275 # Obsolete; use --without-fp.
278 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
282 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
283 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
286 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
287 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
288 |
--oldin |
--oldi |
--old |
--ol |
--o)
289 ac_prev
=oldincludedir
;;
290 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
291 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
292 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
293 oldincludedir
="$ac_optarg" ;;
295 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
297 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
298 prefix
="$ac_optarg" ;;
300 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
301 |
--program-pre |
--program-pr |
--program-p)
302 ac_prev
=program_prefix
;;
303 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
304 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
305 program_prefix
="$ac_optarg" ;;
307 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
308 |
--program-suf |
--program-su |
--program-s)
309 ac_prev
=program_suffix
;;
310 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
311 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
312 program_suffix
="$ac_optarg" ;;
314 -program-transform-name |
--program-transform-name \
315 |
--program-transform-nam |
--program-transform-na \
316 |
--program-transform-n |
--program-transform- \
317 |
--program-transform |
--program-transfor \
318 |
--program-transfo |
--program-transf \
319 |
--program-trans |
--program-tran \
320 |
--progr-tra |
--program-tr |
--program-t)
321 ac_prev
=program_transform_name
;;
322 -program-transform-name=* |
--program-transform-name=* \
323 |
--program-transform-nam=* |
--program-transform-na=* \
324 |
--program-transform-n=* |
--program-transform-=* \
325 |
--program-transform=* |
--program-transfor=* \
326 |
--program-transfo=* |
--program-transf=* \
327 |
--program-trans=* |
--program-tran=* \
328 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
329 program_transform_name
="$ac_optarg" ;;
331 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
332 |
-silent |
--silent |
--silen |
--sile |
--sil)
335 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
337 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
339 sbindir
="$ac_optarg" ;;
341 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
342 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
343 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
345 ac_prev
=sharedstatedir
;;
346 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
347 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
348 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
350 sharedstatedir
="$ac_optarg" ;;
352 -site |
--site |
--sit)
354 -site=* |
--site=* |
--sit=*)
357 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
359 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
360 sitefile
="$ac_optarg" ;;
362 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
364 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
365 srcdir
="$ac_optarg" ;;
367 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
368 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
369 ac_prev
=sysconfdir
;;
370 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
371 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
372 sysconfdir
="$ac_optarg" ;;
374 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
376 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
377 target
="$ac_optarg" ;;
379 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
382 -version |
--version |
--versio |
--versi |
--vers)
383 echo "configure generated by autoconf version 2.13"
387 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package
=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}='$ac_optarg'" ;;
399 -without-* |
--without-*)
400 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}=no" ;;
409 # Obsolete; use --with-x.
412 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
413 |
--x-incl |
--x-inc |
--x-in |
--x-i)
414 ac_prev
=x_includes
;;
415 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
416 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
417 x_includes
="$ac_optarg" ;;
419 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
420 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
421 ac_prev
=x_libraries
;;
422 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
423 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
424 x_libraries
="$ac_optarg" ;;
426 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431 echo "configure: warning: $ac_option: invalid host type" 1>&2
433 if test "x$nonopt" != xNONE
; then
434 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 if test -n "$ac_prev"; then
443 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448 # File descriptor usage:
451 # 2 errors and warnings
452 # 3 some systems may open it to /dev/tty
453 # 4 used on the Kubota Titan
454 # 6 checking for... messages and results
455 # 5 compiler messages saved in config.log
456 if test "$silent" = yes; then
464 This file contains any messages produced by compilers while
465 running configure, to aid debugging if configure makes a mistake.
468 # Strip out --no-create and --no-recursion so they do not pile up.
469 # Also quote any args containing shell metacharacters.
474 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
475 |
--no-cr |
--no-c) ;;
476 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
477 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
478 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
480 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
485 # Only set these to C if already set. These must not be set unconditionally
486 # because not all systems understand e.g. LANG=C (notably SCO).
487 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488 # Non-C LC_CTYPE values break the ctype check.
489 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
490 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
491 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
492 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
495 rm -rf conftest
* confdefs.h
496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 # A filename unique to this package, relative to the directory that
500 # configure is in, which we can look for to find out if srcdir is correct.
501 ac_unique_file
=main.c
503 # Find the source files, if location was not specified.
504 if test -z "$srcdir"; then
505 ac_srcdir_defaulted
=yes
506 # Try the directory containing this script, then its parent.
508 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
511 if test ! -r $srcdir/$ac_unique_file; then
515 ac_srcdir_defaulted
=no
517 if test ! -r $srcdir/$ac_unique_file; then
518 if test "$ac_srcdir_defaulted" = yes; then
519 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526 # Prefer explicitly selected file to automatically selected ones.
527 if test -z "$sitefile"; then
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE
; then
530 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
532 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 CONFIG_SITE
="$sitefile"
538 for ac_site_file
in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
549 echo "creating cache $cache_file"
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp
='$CPP $CPPFLAGS'
556 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling
=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
571 ac_n
= ac_c
='\c' ac_t
=
577 # Extract the first word of "gcc", so it can be a program name with args.
578 set dummy gcc
; ac_word
=$2
579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
580 echo "configure:581: checking for $ac_word" >&5
581 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
582 echo $ac_n "(cached) $ac_c" 1>&6
584 if test -n "$CC"; then
585 ac_cv_prog_CC
="$CC" # Let the user override the test.
587 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
589 for ac_dir
in $ac_dummy; do
590 test -z "$ac_dir" && ac_dir
=.
591 if test -f $ac_dir/$ac_word; then
600 if test -n "$CC"; then
601 echo "$ac_t""$CC" 1>&6
603 echo "$ac_t""no" 1>&6
606 if test -z "$CC"; then
607 # Extract the first word of "cc", so it can be a program name with args.
608 set dummy cc
; ac_word
=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:611: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 if test -n "$CC"; then
615 ac_cv_prog_CC
="$CC" # Let the user override the test.
617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
620 for ac_dir
in $ac_dummy; do
621 test -z "$ac_dir" && ac_dir
=.
622 if test -f $ac_dir/$ac_word; then
623 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
632 if test $ac_prog_rejected = yes; then
633 # We found a bogon in the path, so make sure we never use it.
634 set dummy
$ac_cv_prog_CC
636 if test $# -gt 0; then
637 # We chose a different compiler from the bogus one.
638 # However, it has the same basename, so the bogon will be chosen
639 # first if we set CC to just the basename; use the full file name.
641 set dummy
"$ac_dir/$ac_word" "$@"
649 if test -n "$CC"; then
650 echo "$ac_t""$CC" 1>&6
652 echo "$ac_t""no" 1>&6
655 if test -z "$CC"; then
658 # Extract the first word of "cl", so it can be a program name with args.
659 set dummy cl
; ac_word
=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
665 if test -n "$CC"; then
666 ac_cv_prog_CC
="$CC" # Let the user override the test.
668 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
670 for ac_dir
in $ac_dummy; do
671 test -z "$ac_dir" && ac_dir
=.
672 if test -f $ac_dir/$ac_word; then
681 if test -n "$CC"; then
682 echo "$ac_t""$CC" 1>&6
684 echo "$ac_t""no" 1>&6
689 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
692 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
693 echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
697 ac_cpp
='$CPP $CPPFLAGS'
698 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
699 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
700 cross_compiling
=$ac_cv_prog_cc_cross
702 cat > conftest.
$ac_ext << EOF
704 #line 705 "configure"
705 #include "confdefs.h"
709 if { (eval echo configure
:710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
710 ac_cv_prog_cc_works
=yes
711 # If we can't run a trivial program, we are probably using a cross compiler.
712 if (.
/conftest
; exit) 2>/dev
/null
; then
713 ac_cv_prog_cc_cross
=no
715 ac_cv_prog_cc_cross
=yes
718 echo "configure: failed program was:" >&5
719 cat conftest.
$ac_ext >&5
720 ac_cv_prog_cc_works
=no
724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
725 ac_cpp
='$CPP $CPPFLAGS'
726 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
727 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
728 cross_compiling
=$ac_cv_prog_cc_cross
730 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
731 if test $ac_cv_prog_cc_works = no
; then
732 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
734 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
735 echo "configure:736: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
736 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
737 cross_compiling
=$ac_cv_prog_cc_cross
739 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
740 echo "configure:741: checking whether we are using GNU C" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 cat > conftest.c
<<EOF
749 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
756 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
758 if test $ac_cv_prog_gcc = yes; then
764 ac_test_CFLAGS
="${CFLAGS+set}"
765 ac_save_CFLAGS
="$CFLAGS"
767 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
768 echo "configure:769: checking whether ${CC-cc} accepts -g" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 echo 'void f(){}' > conftest.c
773 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
782 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
783 if test "$ac_test_CFLAGS" = set; then
784 CFLAGS
="$ac_save_CFLAGS"
785 elif test $ac_cv_prog_cc_g = yes; then
786 if test "$GCC" = yes; then
792 if test "$GCC" = yes; then
799 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
800 echo "configure:801: checking how to run the C preprocessor" >&5
801 # On Suns, sometimes $CPP names a directory.
802 if test -n "$CPP" && test -d "$CPP"; then
805 if test -z "$CPP"; then
806 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 # This must be in double quotes, not single quotes, because CPP may get
810 # substituted into the Makefile and "${CC-cc}" will confuse make.
812 # On the NeXT, cc -E runs the code through the compiler's parser,
813 # not just through cpp.
814 cat > conftest.
$ac_ext <<EOF
815 #line 816 "configure"
816 #include "confdefs.h"
820 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
821 { (eval echo configure
:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
822 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
823 if test -z "$ac_err"; then
827 echo "configure: failed program was:" >&5
828 cat conftest.
$ac_ext >&5
830 CPP
="${CC-cc} -E -traditional-cpp"
831 cat > conftest.
$ac_ext <<EOF
832 #line 833 "configure"
833 #include "confdefs.h"
837 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
838 { (eval echo configure
:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
839 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
840 if test -z "$ac_err"; then
844 echo "configure: failed program was:" >&5
845 cat conftest.
$ac_ext >&5
847 CPP
="${CC-cc} -nologo -E"
848 cat > conftest.
$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure
:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.
$ac_ext >&5
871 ac_cv_prog_CPP
="$CPP"
873 CPP
="$ac_cv_prog_CPP"
875 ac_cv_prog_CPP
="$CPP"
877 echo "$ac_t""$CPP" 1>&6
879 echo $ac_n "checking for AIX""... $ac_c" 1>&6
880 echo "configure:881: checking for AIX" >&5
881 cat > conftest.
$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
890 egrep "yes" >/dev
/null
2>&1; then
892 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
893 #define _ALL_SOURCE 1
898 echo "$ac_t""no" 1>&6
903 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
904 echo "configure:905: checking for POSIXized ISC" >&5
905 if test -d /etc
/conf
/kconfig.d
&&
906 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
908 echo "$ac_t""yes" 1>&6
909 ISC
=yes # If later tests want to check for ISC.
910 cat >> confdefs.h
<<\EOF
911 #define _POSIX_SOURCE 1
914 if test "$GCC" = yes; then
920 echo "$ac_t""no" 1>&6
927 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
928 echo "configure:929: checking for ${CC-cc} option to accept ANSI C" >&5
929 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 am_cv_prog_cc_stdc
=no
934 # Don't try gcc -ansi; that turns off useful extensions and
935 # breaks some systems' header files.
937 # Ultrix and OSF/1 -std1
938 # HP-UX -Aa -D_HPUX_SOURCE
939 # SVR4 -Xc -D__EXTENSIONS__
940 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
942 CC
="$ac_save_CC $ac_arg"
943 cat > conftest.
$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
948 #include <sys/types.h>
949 #include <sys/stat.h>
950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
951 struct buf { int x; };
952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
953 static char *e (p, i)
959 static char *f (char * (*g) (char **, int), char **p, ...)
964 s = g (p, va_arg (v,int));
968 int test (int i, double x);
969 struct s1 {int (*f) (int a);};
970 struct s2 {int (*f) (double a);};
971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
981 if { (eval echo configure
:982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
983 am_cv_prog_cc_stdc
="$ac_arg"; break
985 echo "configure: failed program was:" >&5
986 cat conftest.
$ac_ext >&5
994 if test -z "$am_cv_prog_cc_stdc"; then
995 echo "$ac_t""none needed" 1>&6
997 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
999 case "x$am_cv_prog_cc_stdc" in
1001 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1006 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1007 if test -f $ac_dir/install-sh
; then
1009 ac_install_sh
="$ac_aux_dir/install-sh -c"
1011 elif test -f $ac_dir/install.sh
; then
1013 ac_install_sh
="$ac_aux_dir/install.sh -c"
1017 if test -z "$ac_aux_dir"; then
1018 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1020 ac_config_guess
=$ac_aux_dir/config.guess
1021 ac_config_sub
=$ac_aux_dir/config.sub
1022 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1025 # Do some error checking and defaulting for the host and target type.
1027 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1030 # 1. You are not allowed to specify --host, --target, and nonopt at the
1032 # 2. Host defaults to nonopt.
1033 # 3. If nonopt is not specified, then host defaults to the current host,
1034 # as determined by config.guess.
1035 # 4. Target and build default to nonopt.
1036 # 5. If nonopt is not specified, then target and build default to host.
1038 # The aliases save the names the user supplied, while $host etc.
1039 # will get canonicalized.
1040 case $host---$target---$nonopt in
1041 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1042 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1046 # Make sure we can run config.sub.
1047 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1048 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1051 echo $ac_n "checking host system type""... $ac_c" 1>&6
1052 echo "configure:1053: checking host system type" >&5
1055 case "$host_alias" in
1059 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1060 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1062 *) host_alias
=$nonopt ;;
1066 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1067 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1068 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1069 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1070 echo "$ac_t""$host" 1>&6
1072 echo $ac_n "checking target system type""... $ac_c" 1>&6
1073 echo "configure:1074: checking target system type" >&5
1075 target_alias
=$target
1076 case "$target_alias" in
1079 NONE
) target_alias
=$host_alias ;;
1080 *) target_alias
=$nonopt ;;
1084 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1085 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1086 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1087 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1088 echo "$ac_t""$target" 1>&6
1090 echo $ac_n "checking build system type""... $ac_c" 1>&6
1091 echo "configure:1092: checking build system type" >&5
1094 case "$build_alias" in
1097 NONE
) build_alias
=$host_alias ;;
1098 *) build_alias
=$nonopt ;;
1102 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1103 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1104 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1105 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1106 echo "$ac_t""$build" 1>&6
1108 test "$host_alias" != "$target_alias" &&
1109 test "$program_prefix$program_suffix$program_transform_name" = \
1111 program_prefix
=${target_alias}-
1115 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1116 echo "configure:1117: checking whether ${MAKE-make} sets \${MAKE}" >&5
1117 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1118 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 cat > conftestmake
<<\EOF
1123 @
echo 'ac_maketemp="${MAKE}"'
1125 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1126 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1127 if test -n "$ac_maketemp"; then
1128 eval ac_cv_prog_make_
${ac_make}_set
=yes
1130 eval ac_cv_prog_make_
${ac_make}_set
=no
1134 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1135 echo "$ac_t""yes" 1>&6
1138 echo "$ac_t""no" 1>&6
1139 SET_MAKE
="MAKE=${MAKE-make}"
1142 # Extract the first word of "ranlib", so it can be a program name with args.
1143 set dummy ranlib
; ac_word
=$2
1144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1145 echo "configure:1146: checking for $ac_word" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 if test -n "$RANLIB"; then
1150 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1152 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1154 for ac_dir
in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir
=.
1156 if test -f $ac_dir/$ac_word; then
1157 ac_cv_prog_RANLIB
="ranlib"
1162 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1165 RANLIB
="$ac_cv_prog_RANLIB"
1166 if test -n "$RANLIB"; then
1167 echo "$ac_t""$RANLIB" 1>&6
1169 echo "$ac_t""no" 1>&6
1172 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1173 echo "configure:1174: checking for ANSI C header files" >&5
1174 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 cat > conftest.
$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1185 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1186 { (eval echo configure
:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1187 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1188 if test -z "$ac_err"; then
1190 ac_cv_header_stdc
=yes
1193 echo "configure: failed program was:" >&5
1194 cat conftest.
$ac_ext >&5
1196 ac_cv_header_stdc
=no
1200 if test $ac_cv_header_stdc = yes; then
1201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1202 cat > conftest.
$ac_ext <<EOF
1203 #line 1204 "configure"
1204 #include "confdefs.h"
1207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1208 egrep "memchr" >/dev
/null
2>&1; then
1212 ac_cv_header_stdc
=no
1218 if test $ac_cv_header_stdc = yes; then
1219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1220 cat > conftest.
$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1226 egrep "free" >/dev
/null
2>&1; then
1230 ac_cv_header_stdc
=no
1236 if test $ac_cv_header_stdc = yes; then
1237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1238 if test "$cross_compiling" = yes; then
1241 cat > conftest.
$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1245 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1246 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1248 int main () { int i; for (i = 0; i < 256; i++)
1249 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1253 if { (eval echo configure
:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1257 echo "configure: failed program was:" >&5
1258 cat conftest.
$ac_ext >&5
1260 ac_cv_header_stdc
=no
1268 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1269 if test $ac_cv_header_stdc = yes; then
1270 cat >> confdefs.h
<<\EOF
1271 #define STDC_HEADERS 1
1276 echo $ac_n "checking for working const""... $ac_c" 1>&6
1277 echo "configure:1278: checking for working const" >&5
1278 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 cat > conftest.
$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1287 /* Ultrix mips cc rejects this. */
1288 typedef int charset[2]; const charset x;
1289 /* SunOS 4.1.1 cc rejects this. */
1290 char const *const *ccp;
1292 /* NEC SVR4.0.2 mips cc rejects this. */
1293 struct point {int x, y;};
1294 static struct point const zero = {0,0};
1295 /* AIX XL C 1.02.0.0 rejects this.
1296 It does not let you subtract one const X* pointer from another in an arm
1297 of an if-expression whose if-part is not a constant expression */
1298 const char *g = "string";
1299 ccp = &g + (g ? g-g : 0);
1300 /* HPUX 7.0 cc rejects these. */
1303 ccp = (char const *const *) p;
1304 { /* SCO 3.2v4 cc rejects this. */
1306 char const *s = 0 ? (char *) 0 : (char const *) 0;
1310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1312 const int *foo = &x[0];
1315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1316 typedef const int *iptr;
1320 { /* AIX XL C 1.02.0.0 rejects this saying
1321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1322 struct s { int j; const int *ap[3]; };
1323 struct s *b; b->j = 5;
1325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1331 if { (eval echo configure
:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1335 echo "configure: failed program was:" >&5
1336 cat conftest.
$ac_ext >&5
1343 echo "$ac_t""$ac_cv_c_const" 1>&6
1344 if test $ac_cv_c_const = no
; then
1345 cat >> confdefs.h
<<\EOF
1351 echo $ac_n "checking for inline""... $ac_c" 1>&6
1352 echo "configure:1353: checking for inline" >&5
1353 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1357 for ac_kw
in inline __inline__ __inline
; do
1358 cat > conftest.
$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1366 if { (eval echo configure
:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1368 ac_cv_c_inline
=$ac_kw; break
1370 echo "configure: failed program was:" >&5
1371 cat conftest.
$ac_ext >&5
1378 echo "$ac_t""$ac_cv_c_inline" 1>&6
1379 case "$ac_cv_c_inline" in
1381 no
) cat >> confdefs.h
<<\EOF
1385 *) cat >> confdefs.h
<<EOF
1386 #define inline $ac_cv_c_inline
1391 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1392 echo "configure:1393: checking for off_t" >&5
1393 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 cat > conftest.
$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 #include <sys/types.h>
1405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1406 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1408 ac_cv_type_off_t
=yes
1416 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1417 if test $ac_cv_type_off_t = no
; then
1418 cat >> confdefs.h
<<\EOF
1424 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1425 echo "configure:1426: checking for size_t" >&5
1426 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 cat > conftest.
$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 #include <sys/types.h>
1438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1439 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1441 ac_cv_type_size_t
=yes
1444 ac_cv_type_size_t
=no
1449 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1450 if test $ac_cv_type_size_t = no
; then
1451 cat >> confdefs.h
<<\EOF
1452 #define size_t unsigned
1457 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1458 # for constant arguments. Useless!
1459 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1460 echo "configure:1461: checking for working alloca.h" >&5
1461 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.
$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1469 char *p = alloca(2 * sizeof(int));
1472 if { (eval echo configure
:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1474 ac_cv_header_alloca_h
=yes
1476 echo "configure: failed program was:" >&5
1477 cat conftest.
$ac_ext >&5
1479 ac_cv_header_alloca_h
=no
1484 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1485 if test $ac_cv_header_alloca_h = yes; then
1486 cat >> confdefs.h
<<\EOF
1487 #define HAVE_ALLOCA_H 1
1492 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1493 echo "configure:1494: checking for alloca" >&5
1494 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 cat > conftest.
$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1502 # define alloca __builtin_alloca
1505 # include <malloc.h>
1506 # define alloca _alloca
1509 # include <alloca.h>
1514 # ifndef alloca /* predefined by HP cc +Olibcalls */
1523 char *p = (char *) alloca(1);
1526 if { (eval echo configure
:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1528 ac_cv_func_alloca_works
=yes
1530 echo "configure: failed program was:" >&5
1531 cat conftest.
$ac_ext >&5
1533 ac_cv_func_alloca_works
=no
1538 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1539 if test $ac_cv_func_alloca_works = yes; then
1540 cat >> confdefs.h
<<\EOF
1541 #define HAVE_ALLOCA 1
1546 if test $ac_cv_func_alloca_works = no
; then
1547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1548 # that cause trouble. Some versions do not even contain alloca or
1549 # contain a buggy version. If you still want to use their alloca,
1550 # use ar to extract alloca.o from them instead of compiling alloca.c.
1551 ALLOCA
=alloca.
${ac_objext}
1552 cat >> confdefs.h
<<\EOF
1557 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1558 echo "configure:1559: checking whether alloca needs Cray hooks" >&5
1559 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 cat > conftest.
$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 #if defined(CRAY) && ! defined(CRAY2)
1572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1573 egrep "webecray" >/dev
/null
2>&1; then
1584 echo "$ac_t""$ac_cv_os_cray" 1>&6
1585 if test $ac_cv_os_cray = yes; then
1586 for ac_func
in _getb67 GETB67 getb67
; do
1587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1588 echo "configure:1589: checking for $ac_func" >&5
1589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.
$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 /* System header to define __stub macros and hopefully few prototypes,
1596 which can conflict with char $ac_func(); below. */
1598 /* Override any gcc2 internal prototype to avoid an error. */
1599 /* We use char because int might match the return type of a gcc2
1600 builtin and then its argument prototype would still apply. */
1605 /* The GNU C library defines this for functions which it implements
1606 to always fail with ENOSYS. Some functions are actually named
1607 something starting with __ and the normal name is an alias. */
1608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1616 if { (eval echo configure
:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1618 eval "ac_cv_func_$ac_func=yes"
1620 echo "configure: failed program was:" >&5
1621 cat conftest.
$ac_ext >&5
1623 eval "ac_cv_func_$ac_func=no"
1628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1630 cat >> confdefs.h
<<EOF
1631 #define CRAY_STACKSEG_END $ac_func
1636 echo "$ac_t""no" 1>&6
1642 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1643 echo "configure:1644: checking stack direction for C alloca" >&5
1644 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 if test "$cross_compiling" = yes; then
1648 ac_cv_c_stack_direction
=0
1650 cat > conftest.
$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 find_stack_direction ()
1655 static char *addr = 0;
1660 return find_stack_direction ();
1663 return (&dummy > addr) ? 1 : -1;
1667 exit (find_stack_direction() < 0);
1670 if { (eval echo configure
:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1672 ac_cv_c_stack_direction
=1
1674 echo "configure: failed program was:" >&5
1675 cat conftest.
$ac_ext >&5
1677 ac_cv_c_stack_direction
=-1
1684 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1685 cat >> confdefs.h
<<EOF
1686 #define STACK_DIRECTION $ac_cv_c_stack_direction
1691 for ac_hdr
in unistd.h
1693 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_hdr" >&5
1696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1699 cat > conftest.
$ac_ext <<EOF
1700 #line 1701 "configure"
1701 #include "confdefs.h"
1704 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure
:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1707 if test -z "$ac_err"; then
1709 eval "ac_cv_header_$ac_safe=yes"
1712 echo "configure: failed program was:" >&5
1713 cat conftest.
$ac_ext >&5
1715 eval "ac_cv_header_$ac_safe=no"
1719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1722 cat >> confdefs.h
<<EOF
1723 #define $ac_tr_hdr 1
1727 echo "$ac_t""no" 1>&6
1731 for ac_func
in getpagesize
1733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_func" >&5
1735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 cat > conftest.
$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $ac_func(); below. */
1744 /* Override any gcc2 internal prototype to avoid an error. */
1745 /* We use char because int might match the return type of a gcc2
1746 builtin and then its argument prototype would still apply. */
1751 /* The GNU C library defines this for functions which it implements
1752 to always fail with ENOSYS. Some functions are actually named
1753 something starting with __ and the normal name is an alias. */
1754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1762 if { (eval echo configure
:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1764 eval "ac_cv_func_$ac_func=yes"
1766 echo "configure: failed program was:" >&5
1767 cat conftest.
$ac_ext >&5
1769 eval "ac_cv_func_$ac_func=no"
1774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1776 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1777 cat >> confdefs.h
<<EOF
1778 #define $ac_tr_func 1
1782 echo "$ac_t""no" 1>&6
1786 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1787 echo "configure:1788: checking for working mmap" >&5
1788 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 if test "$cross_compiling" = yes; then
1792 ac_cv_func_mmap_fixed_mapped
=no
1794 cat > conftest.
$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1798 /* Thanks to Mike Haertel and Jim Avera for this test.
1799 Here is a matrix of mmap possibilities:
1800 mmap private not fixed
1801 mmap private fixed at somewhere currently unmapped
1802 mmap private fixed at somewhere already mapped
1803 mmap shared not fixed
1804 mmap shared fixed at somewhere currently unmapped
1805 mmap shared fixed at somewhere already mapped
1806 For private mappings, we should verify that changes cannot be read()
1807 back from the file, nor mmap's back from the file at a different
1808 address. (There have been systems where private was not correctly
1809 implemented like the infamous i386 svr4.0, and systems where the
1810 VM page cache was not coherent with the filesystem buffer cache
1811 like early versions of FreeBSD and possibly contemporary NetBSD.)
1812 For shared mappings, we should conversely verify that changes get
1813 propogated back to all the places they're supposed to be.
1815 Grep wants private fixed already mapped.
1816 The main things grep needs to know about mmap are:
1817 * does it exist and is it safe to write into the mmap'd area
1818 * how to use it (BSD variants) */
1819 #include <sys/types.h>
1821 #include <sys/mman.h>
1823 /* This mess was copied from the GNU getpagesize.h. */
1824 #ifndef HAVE_GETPAGESIZE
1825 # ifdef HAVE_UNISTD_H
1826 # include <unistd.h>
1829 /* Assume that all systems that can run configure have sys/param.h. */
1830 # ifndef HAVE_SYS_PARAM_H
1831 # define HAVE_SYS_PARAM_H 1
1834 # ifdef _SC_PAGESIZE
1835 # define getpagesize() sysconf(_SC_PAGESIZE)
1836 # else /* no _SC_PAGESIZE */
1837 # ifdef HAVE_SYS_PARAM_H
1838 # include <sys/param.h>
1839 # ifdef EXEC_PAGESIZE
1840 # define getpagesize() EXEC_PAGESIZE
1841 # else /* no EXEC_PAGESIZE */
1843 # define getpagesize() NBPG * CLSIZE
1846 # endif /* no CLSIZE */
1847 # else /* no NBPG */
1849 # define getpagesize() NBPC
1850 # else /* no NBPC */
1852 # define getpagesize() PAGESIZE
1853 # endif /* PAGESIZE */
1854 # endif /* no NBPC */
1855 # endif /* no NBPG */
1856 # endif /* no EXEC_PAGESIZE */
1857 # else /* no HAVE_SYS_PARAM_H */
1858 # define getpagesize() 8192 /* punt totally */
1859 # endif /* no HAVE_SYS_PARAM_H */
1860 # endif /* no _SC_PAGESIZE */
1862 #endif /* no HAVE_GETPAGESIZE */
1865 extern "C" { void *malloc(unsigned); }
1873 char *data, *data2, *data3;
1877 pagesize = getpagesize();
1880 * First, make a file with some known garbage in it.
1882 data = malloc(pagesize);
1885 for (i = 0; i < pagesize; ++i)
1886 *(data + i) = rand();
1888 fd = creat("conftestmmap", 0600);
1891 if (write(fd, data, pagesize) != pagesize)
1896 * Next, try to mmap the file at a fixed address which
1897 * already has something else allocated at it. If we can,
1898 * also make sure that we see the same garbage.
1900 fd = open("conftestmmap", O_RDWR);
1903 data2 = malloc(2 * pagesize);
1906 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1907 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1908 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1910 for (i = 0; i < pagesize; ++i)
1911 if (*(data + i) != *(data2 + i))
1915 * Finally, make sure that changes to the mapped area
1916 * do not percolate back to the file as seen by read().
1917 * (This is a bug on some variants of i386 svr4.0.)
1919 for (i = 0; i < pagesize; ++i)
1920 *(data2 + i) = *(data2 + i) + 1;
1921 data3 = malloc(pagesize);
1924 if (read(fd, data3, pagesize) != pagesize)
1926 for (i = 0; i < pagesize; ++i)
1927 if (*(data + i) != *(data3 + i))
1930 unlink("conftestmmap");
1935 if { (eval echo configure
:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1937 ac_cv_func_mmap_fixed_mapped
=yes
1939 echo "configure: failed program was:" >&5
1940 cat conftest.
$ac_ext >&5
1942 ac_cv_func_mmap_fixed_mapped
=no
1949 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1950 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1951 cat >> confdefs.h
<<\EOF
1958 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1959 unistd.h values.h sys
/param.h
1961 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_hdr" >&5
1964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 cat > conftest.
$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1972 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1973 { (eval echo configure
:1974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1974 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1975 if test -z "$ac_err"; then
1977 eval "ac_cv_header_$ac_safe=yes"
1980 echo "configure: failed program was:" >&5
1981 cat conftest.
$ac_ext >&5
1983 eval "ac_cv_header_$ac_safe=no"
1987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1989 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1990 cat >> confdefs.h
<<EOF
1991 #define $ac_tr_hdr 1
1995 echo "$ac_t""no" 1>&6
1999 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2000 __argz_count __argz_stringify __argz_next
2002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2003 echo "configure:2004: checking for $ac_func" >&5
2004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 cat > conftest.
$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2010 /* System header to define __stub macros and hopefully few prototypes,
2011 which can conflict with char $ac_func(); below. */
2013 /* Override any gcc2 internal prototype to avoid an error. */
2014 /* We use char because int might match the return type of a gcc2
2015 builtin and then its argument prototype would still apply. */
2020 /* The GNU C library defines this for functions which it implements
2021 to always fail with ENOSYS. Some functions are actually named
2022 something starting with __ and the normal name is an alias. */
2023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2031 if { (eval echo configure
:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2033 eval "ac_cv_func_$ac_func=yes"
2035 echo "configure: failed program was:" >&5
2036 cat conftest.
$ac_ext >&5
2038 eval "ac_cv_func_$ac_func=no"
2043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2046 cat >> confdefs.h
<<EOF
2047 #define $ac_tr_func 1
2051 echo "$ac_t""no" 1>&6
2056 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2057 for ac_func
in stpcpy
2059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2060 echo "configure:2061: checking for $ac_func" >&5
2061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2064 cat > conftest.
$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2067 /* System header to define __stub macros and hopefully few prototypes,
2068 which can conflict with char $ac_func(); below. */
2070 /* Override any gcc2 internal prototype to avoid an error. */
2071 /* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2077 /* The GNU C library defines this for functions which it implements
2078 to always fail with ENOSYS. Some functions are actually named
2079 something starting with __ and the normal name is an alias. */
2080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2088 if { (eval echo configure
:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2090 eval "ac_cv_func_$ac_func=yes"
2092 echo "configure: failed program was:" >&5
2093 cat conftest.
$ac_ext >&5
2095 eval "ac_cv_func_$ac_func=no"
2100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2103 cat >> confdefs.h
<<EOF
2104 #define $ac_tr_func 1
2108 echo "$ac_t""no" 1>&6
2113 if test "${ac_cv_func_stpcpy}" = "yes"; then
2114 cat >> confdefs.h
<<\EOF
2115 #define HAVE_STPCPY 1
2120 if test $ac_cv_header_locale_h = yes; then
2121 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2122 echo "configure:2123: checking for LC_MESSAGES" >&5
2123 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 cat > conftest.
$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2134 if { (eval echo configure
:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2136 am_cv_val_LC_MESSAGES
=yes
2138 echo "configure: failed program was:" >&5
2139 cat conftest.
$ac_ext >&5
2141 am_cv_val_LC_MESSAGES
=no
2146 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2147 if test $am_cv_val_LC_MESSAGES = yes; then
2148 cat >> confdefs.h
<<\EOF
2149 #define HAVE_LC_MESSAGES 1
2154 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether NLS is requested" >&5
2156 # Check whether --enable-nls or --disable-nls was given.
2157 if test "${enable_nls+set}" = set; then
2158 enableval
="$enable_nls"
2164 echo "$ac_t""$USE_NLS" 1>&6
2167 USE_INCLUDED_LIBINTL
=no
2169 if test "$USE_NLS" = "yes"; then
2170 cat >> confdefs.h
<<\EOF
2171 #define ENABLE_NLS 1
2174 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2175 echo "configure:2176: checking whether included gettext is requested" >&5
2176 # Check whether --with-included-gettext or --without-included-gettext was given.
2177 if test "${with_included_gettext+set}" = set; then
2178 withval
="$with_included_gettext"
2179 nls_cv_force_use_gnu_gettext
=$withval
2181 nls_cv_force_use_gnu_gettext
=no
2184 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2186 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2187 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2189 nls_cv_header_libgt
=
2192 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2193 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2194 echo "configure:2195: checking for libintl.h" >&5
2195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 cat > conftest.
$ac_ext <<EOF
2199 #line 2200 "configure"
2200 #include "confdefs.h"
2201 #include <libintl.h>
2203 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2204 { (eval echo configure
:2205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2205 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2206 if test -z "$ac_err"; then
2208 eval "ac_cv_header_$ac_safe=yes"
2211 echo "configure: failed program was:" >&5
2212 cat conftest.
$ac_ext >&5
2214 eval "ac_cv_header_$ac_safe=no"
2218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2219 echo "$ac_t""yes" 1>&6
2220 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2221 echo "configure:2222: checking for gettext in libc" >&5
2222 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 cat > conftest.
$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2228 #include <libintl.h>
2230 return (int) gettext ("")
2233 if { (eval echo configure
:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2235 gt_cv_func_gettext_libc
=yes
2237 echo "configure: failed program was:" >&5
2238 cat conftest.
$ac_ext >&5
2240 gt_cv_func_gettext_libc
=no
2245 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2247 if test "$gt_cv_func_gettext_libc" != "yes"; then
2248 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2249 echo "configure:2250: checking for bindtextdomain in -lintl" >&5
2250 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 ac_save_LIBS
="$LIBS"
2256 cat > conftest.
$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 /* Override any gcc2 internal prototype to avoid an error. */
2260 /* We use char because int might match the return type of a gcc2
2261 builtin and then its argument prototype would still apply. */
2262 char bindtextdomain();
2268 if { (eval echo configure
:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2270 eval "ac_cv_lib_$ac_lib_var=yes"
2272 echo "configure: failed program was:" >&5
2273 cat conftest.
$ac_ext >&5
2275 eval "ac_cv_lib_$ac_lib_var=no"
2278 LIBS
="$ac_save_LIBS"
2281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2284 echo "configure:2285: checking for gettext in libintl" >&5
2285 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.
$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2293 return (int) gettext ("")
2296 if { (eval echo configure
:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2298 gt_cv_func_gettext_libintl
=yes
2300 echo "configure: failed program was:" >&5
2301 cat conftest.
$ac_ext >&5
2303 gt_cv_func_gettext_libintl
=no
2308 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2310 echo "$ac_t""no" 1>&6
2315 if test "$gt_cv_func_gettext_libc" = "yes" \
2316 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2317 cat >> confdefs.h
<<\EOF
2318 #define HAVE_GETTEXT 1
2321 # Extract the first word of "msgfmt", so it can be a program name with args.
2322 set dummy msgfmt
; ac_word
=$2
2323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_word" >&5
2325 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2330 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2333 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2334 for ac_dir
in $PATH; do
2335 test -z "$ac_dir" && ac_dir
=.
2336 if test -f $ac_dir/$ac_word; then
2337 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2338 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2344 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2348 MSGFMT
="$ac_cv_path_MSGFMT"
2349 if test -n "$MSGFMT"; then
2350 echo "$ac_t""$MSGFMT" 1>&6
2352 echo "$ac_t""no" 1>&6
2354 if test "$MSGFMT" != "no"; then
2355 for ac_func
in dcgettext
2357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_func" >&5
2359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 cat > conftest.
$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 /* System header to define __stub macros and hopefully few prototypes,
2366 which can conflict with char $ac_func(); below. */
2368 /* Override any gcc2 internal prototype to avoid an error. */
2369 /* We use char because int might match the return type of a gcc2
2370 builtin and then its argument prototype would still apply. */
2375 /* The GNU C library defines this for functions which it implements
2376 to always fail with ENOSYS. Some functions are actually named
2377 something starting with __ and the normal name is an alias. */
2378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2386 if { (eval echo configure
:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2388 eval "ac_cv_func_$ac_func=yes"
2390 echo "configure: failed program was:" >&5
2391 cat conftest.
$ac_ext >&5
2393 eval "ac_cv_func_$ac_func=no"
2398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2399 echo "$ac_t""yes" 1>&6
2400 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2401 cat >> confdefs.h
<<EOF
2402 #define $ac_tr_func 1
2406 echo "$ac_t""no" 1>&6
2410 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2411 set dummy gmsgfmt
; ac_word
=$2
2412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_word" >&5
2414 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2419 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2422 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2425 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2427 for ac_dir
in $ac_dummy; do
2428 test -z "$ac_dir" && ac_dir
=.
2429 if test -f $ac_dir/$ac_word; then
2430 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2435 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2439 GMSGFMT
="$ac_cv_path_GMSGFMT"
2440 if test -n "$GMSGFMT"; then
2441 echo "$ac_t""$GMSGFMT" 1>&6
2443 echo "$ac_t""no" 1>&6
2446 # Extract the first word of "xgettext", so it can be a program name with args.
2447 set dummy xgettext
; ac_word
=$2
2448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_word" >&5
2450 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2455 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2458 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2459 for ac_dir
in $PATH; do
2460 test -z "$ac_dir" && ac_dir
=.
2461 if test -f $ac_dir/$ac_word; then
2462 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2463 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2469 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2473 XGETTEXT
="$ac_cv_path_XGETTEXT"
2474 if test -n "$XGETTEXT"; then
2475 echo "$ac_t""$XGETTEXT" 1>&6
2477 echo "$ac_t""no" 1>&6
2480 cat > conftest.
$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2485 extern int _nl_msg_cat_cntr;
2486 return _nl_msg_cat_cntr
2489 if { (eval echo configure
:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2494 echo "configure: failed program was:" >&5
2495 cat conftest.
$ac_ext >&5
2506 echo "$ac_t""no" 1>&6
2511 if test "$CATOBJEXT" = "NONE"; then
2512 nls_cv_use_gnu_gettext
=yes
2516 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2517 INTLOBJS
="\$(GETTOBJS)"
2518 # Extract the first word of "msgfmt", so it can be a program name with args.
2519 set dummy msgfmt
; ac_word
=$2
2520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2521 echo "configure:2522: checking for $ac_word" >&5
2522 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2527 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2530 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2531 for ac_dir
in $PATH; do
2532 test -z "$ac_dir" && ac_dir
=.
2533 if test -f $ac_dir/$ac_word; then
2534 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2535 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2541 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2545 MSGFMT
="$ac_cv_path_MSGFMT"
2546 if test -n "$MSGFMT"; then
2547 echo "$ac_t""$MSGFMT" 1>&6
2549 echo "$ac_t""no" 1>&6
2552 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2553 set dummy gmsgfmt
; ac_word
=$2
2554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2555 echo "configure:2556: checking for $ac_word" >&5
2556 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2561 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2564 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2567 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2569 for ac_dir
in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir
=.
2571 if test -f $ac_dir/$ac_word; then
2572 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2577 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2581 GMSGFMT
="$ac_cv_path_GMSGFMT"
2582 if test -n "$GMSGFMT"; then
2583 echo "$ac_t""$GMSGFMT" 1>&6
2585 echo "$ac_t""no" 1>&6
2588 # Extract the first word of "xgettext", so it can be a program name with args.
2589 set dummy xgettext
; ac_word
=$2
2590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2591 echo "configure:2592: checking for $ac_word" >&5
2592 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2597 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2600 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2601 for ac_dir
in $PATH; do
2602 test -z "$ac_dir" && ac_dir
=.
2603 if test -f $ac_dir/$ac_word; then
2604 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2605 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2611 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2615 XGETTEXT
="$ac_cv_path_XGETTEXT"
2616 if test -n "$XGETTEXT"; then
2617 echo "$ac_t""$XGETTEXT" 1>&6
2619 echo "$ac_t""no" 1>&6
2623 USE_INCLUDED_LIBINTL
=yes
2627 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2629 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2630 nls_cv_header_intl
=libintl.h
2631 nls_cv_header_libgt
=libgettext.h
2634 if test "$XGETTEXT" != ":"; then
2635 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2638 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2643 # We need to process the po/ directory.
2647 nls_cv_header_intl
=libintl.h
2648 nls_cv_header_libgt
=libgettext.h
2651 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2652 # because some of the sources are only built for this goal.
2653 if test "$PACKAGE" = gettext; then
2655 USE_INCLUDED_LIBINTL
=yes
2658 for lang
in $ALL_LINGUAS; do
2659 GMOFILES
="$GMOFILES $lang.gmo"
2660 POFILES
="$POFILES $lang.po"
2676 if test "x$CATOBJEXT" != "x"; then
2677 if test "x$ALL_LINGUAS" = "x"; then
2680 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2681 echo "configure:2682: checking for catalogs to be installed" >&5
2683 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2684 case "$ALL_LINGUAS" in
2685 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2688 LINGUAS
=$NEW_LINGUAS
2689 echo "$ac_t""$LINGUAS" 1>&6
2692 if test -n "$LINGUAS"; then
2693 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2697 if test $ac_cv_header_locale_h = yes; then
2698 INCLUDE_LOCALE_H
="#include <locale.h>"
2701 /* The system does not provide the header <locale.h>. Take care yourself. */"
2705 if test -f $srcdir/po2tbl.
sed.
in; then
2706 if test "$CATOBJEXT" = ".cat"; then
2707 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2708 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2709 echo "configure:2710: checking for linux/version.h" >&5
2710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 #include <linux/version.h>
2718 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure
:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2723 eval "ac_cv_header_$ac_safe=yes"
2726 echo "configure: failed program was:" >&5
2727 cat conftest.
$ac_ext >&5
2729 eval "ac_cv_header_$ac_safe=no"
2733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2737 echo "$ac_t""no" 1>&6
2742 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2744 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2745 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2748 if test "$PACKAGE" = "gettext"; then
2758 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2764 if test -d $srcdir/po
; then
2765 test -d po || mkdir po
2766 if test "x$srcdir" != "x."; then
2767 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2768 posrcprefix
="$srcdir/"
2770 posrcprefix
="../$srcdir/"
2776 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2777 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2788 configdirs
="doc testsuite"
2790 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2791 if test "${enable_multi_ice+set}" = set; then
2792 enableval
="$enable_multi_ice"
2793 case "${enableval}" in
2794 yes ) enable_multi_ice
="yes" ;;
2795 no
) enable_multi_ice
="no" ;;
2796 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2802 if test "${enable_multi_ice}" = "yes"; then
2803 configdirs
="${configdirs} multi-ice"
2807 .
${srcdir}/configure.
host
2809 .
${srcdir}/configure.tgt
2812 for ac_prog
in mawk gawk nawk
awk
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy
$ac_prog; ac_word
=$2
2816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_word" >&5
2818 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 if test -n "$AWK"; then
2822 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2824 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2826 for ac_dir
in $ac_dummy; do
2827 test -z "$ac_dir" && ac_dir
=.
2828 if test -f $ac_dir/$ac_word; then
2829 ac_cv_prog_AWK
="$ac_prog"
2836 AWK
="$ac_cv_prog_AWK"
2837 if test -n "$AWK"; then
2838 echo "$ac_t""$AWK" 1>&6
2840 echo "$ac_t""no" 1>&6
2843 test -n "$AWK" && break
2846 # Find a good install program. We prefer a C program (faster),
2847 # so one script is as good as another. But avoid the broken or
2848 # incompatible versions:
2849 # SysV /etc/install, /usr/sbin/install
2850 # SunOS /usr/etc/install
2851 # IRIX /sbin/install
2853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2856 # ./install, which can be erroneously created by make from ./install.sh.
2857 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2858 echo "configure:2859: checking for a BSD compatible install" >&5
2859 if test -z "$INSTALL"; then
2860 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2864 for ac_dir
in $PATH; do
2865 # Account for people who put trailing slashes in PATH elements.
2867 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2869 # OSF1 and SCO ODT 3.0 have their own names for install.
2870 # Don't use installbsd from OSF since it installs stuff as root
2872 for ac_prog
in ginstall scoinst
install; do
2873 if test -f $ac_dir/$ac_prog; then
2874 if test $ac_prog = install &&
2875 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2876 # AIX install. It has an incompatible calling convention.
2879 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2890 if test "${ac_cv_path_install+set}" = set; then
2891 INSTALL
="$ac_cv_path_install"
2893 # As a last resort, use the slow shell script. We don't cache a
2894 # path for INSTALL within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the path is relative.
2897 INSTALL
="$ac_install_sh"
2900 echo "$ac_t""$INSTALL" 1>&6
2902 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2903 # It thinks the first close brace ends the variable substitution.
2904 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2906 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2908 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2910 if test $host != $build; then
2911 ac_tool_prefix
=${host_alias}-
2916 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2917 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2919 echo "configure:2920: checking for $ac_word" >&5
2920 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 if test -n "$AR"; then
2924 ac_cv_prog_AR
="$AR" # Let the user override the test.
2926 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2928 for ac_dir
in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir
=.
2930 if test -f $ac_dir/$ac_word; then
2931 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2936 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2940 if test -n "$AR"; then
2941 echo "$ac_t""$AR" 1>&6
2943 echo "$ac_t""no" 1>&6
2948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2949 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_word" >&5
2952 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 if test -n "$RANLIB"; then
2956 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2960 for ac_dir
in $ac_dummy; do
2961 test -z "$ac_dir" && ac_dir
=.
2962 if test -f $ac_dir/$ac_word; then
2963 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2970 RANLIB
="$ac_cv_prog_RANLIB"
2971 if test -n "$RANLIB"; then
2972 echo "$ac_t""$RANLIB" 1>&6
2974 echo "$ac_t""no" 1>&6
2978 if test -z "$ac_cv_prog_RANLIB"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "ranlib", so it can be a program name with args.
2981 set dummy ranlib
; ac_word
=$2
2982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_word" >&5
2984 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 if test -n "$RANLIB"; then
2988 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2990 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2992 for ac_dir
in $ac_dummy; do
2993 test -z "$ac_dir" && ac_dir
=.
2994 if test -f $ac_dir/$ac_word; then
2995 ac_cv_prog_RANLIB
="ranlib"
3000 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3003 RANLIB
="$ac_cv_prog_RANLIB"
3004 if test -n "$RANLIB"; then
3005 echo "$ac_t""$RANLIB" 1>&6
3007 echo "$ac_t""no" 1>&6
3015 for ac_prog
in 'bison -y' byacc
3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy
$ac_prog; ac_word
=$2
3019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3020 echo "configure:3021: checking for $ac_word" >&5
3021 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 if test -n "$YACC"; then
3025 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3027 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3029 for ac_dir
in $ac_dummy; do
3030 test -z "$ac_dir" && ac_dir
=.
3031 if test -f $ac_dir/$ac_word; then
3032 ac_cv_prog_YACC
="$ac_prog"
3039 YACC
="$ac_cv_prog_YACC"
3040 if test -n "$YACC"; then
3041 echo "$ac_t""$YACC" 1>&6
3043 echo "$ac_t""no" 1>&6
3046 test -n "$YACC" && break
3048 test -n "$YACC" || YACC
="yacc"
3051 if test "$program_transform_name" = s
,x
,x
,; then
3052 program_transform_name
=
3054 # Double any \ or $. echo might interpret backslashes.
3055 cat <<\EOF_SED
> conftestsed
3056 s
,\\,\\\\,g
; s
,\$
,$$
,g
3058 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3061 test "$program_prefix" != NONE
&&
3062 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3063 # Use a double $ so make ignores it.
3064 test "$program_suffix" != NONE
&&
3065 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3067 # sed with no file args requires a program.
3068 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3071 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3072 echo "configure:3073: checking return type of signal handlers" >&5
3073 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 cat > conftest.
$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079 #include <sys/types.h>
3085 extern "C" void (*signal (int, void (*)(int)))(int);
3087 void (*signal ()) ();
3094 if { (eval echo configure
:3095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3096 ac_cv_type_signal
=void
3098 echo "configure: failed program was:" >&5
3099 cat conftest.
$ac_ext >&5
3101 ac_cv_type_signal
=int
3106 echo "$ac_t""$ac_cv_type_signal" 1>&6
3107 cat >> confdefs.h
<<EOF
3108 #define RETSIGTYPE $ac_cv_type_signal
3113 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3114 echo "configure:3115: checking for ANSI C header files" >&5
3115 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 cat > conftest.
$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3126 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3127 { (eval echo configure
:3128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3128 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3129 if test -z "$ac_err"; then
3131 ac_cv_header_stdc
=yes
3134 echo "configure: failed program was:" >&5
3135 cat conftest.
$ac_ext >&5
3137 ac_cv_header_stdc
=no
3141 if test $ac_cv_header_stdc = yes; then
3142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3143 cat > conftest.
$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3149 egrep "memchr" >/dev
/null
2>&1; then
3153 ac_cv_header_stdc
=no
3159 if test $ac_cv_header_stdc = yes; then
3160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3167 egrep "free" >/dev
/null
2>&1; then
3171 ac_cv_header_stdc
=no
3177 if test $ac_cv_header_stdc = yes; then
3178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3179 if test "$cross_compiling" = yes; then
3182 cat > conftest.
$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3186 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3187 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3189 int main () { int i; for (i = 0; i < 256; i++)
3190 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3194 if { (eval echo configure
:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3198 echo "configure: failed program was:" >&5
3199 cat conftest.
$ac_ext >&5
3201 ac_cv_header_stdc
=no
3209 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3210 if test $ac_cv_header_stdc = yes; then
3211 cat >> confdefs.h
<<\EOF
3212 #define STDC_HEADERS 1
3218 for ac_hdr
in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3219 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3220 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3221 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3222 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3225 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_hdr" >&5
3228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3236 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3237 { (eval echo configure
:3238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3238 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3239 if test -z "$ac_err"; then
3241 eval "ac_cv_header_$ac_safe=yes"
3244 echo "configure: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3247 eval "ac_cv_header_$ac_safe=no"
3251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3252 echo "$ac_t""yes" 1>&6
3253 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3254 cat >> confdefs.h
<<EOF
3255 #define $ac_tr_hdr 1
3259 echo "$ac_t""no" 1>&6
3263 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3264 echo "configure:3265: checking whether stat file-mode macros are broken" >&5
3265 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 cat > conftest.
$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 #include <sys/types.h>
3272 #include <sys/stat.h>
3274 #if defined(S_ISBLK) && defined(S_IFDIR)
3275 # if S_ISBLK (S_IFDIR)
3280 #if defined(S_ISBLK) && defined(S_IFCHR)
3281 # if S_ISBLK (S_IFCHR)
3286 #if defined(S_ISLNK) && defined(S_IFREG)
3287 # if S_ISLNK (S_IFREG)
3292 #if defined(S_ISSOCK) && defined(S_IFREG)
3293 # if S_ISSOCK (S_IFREG)
3299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3300 egrep "You lose" >/dev
/null
2>&1; then
3302 ac_cv_header_stat_broken
=yes
3305 ac_cv_header_stat_broken
=no
3311 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3312 if test $ac_cv_header_stat_broken = yes; then
3313 cat >> confdefs.h
<<\EOF
3314 #define STAT_MACROS_BROKEN 1
3320 echo $ac_n "checking for working const""... $ac_c" 1>&6
3321 echo "configure:3322: checking for working const" >&5
3322 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.
$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3331 /* Ultrix mips cc rejects this. */
3332 typedef int charset[2]; const charset x;
3333 /* SunOS 4.1.1 cc rejects this. */
3334 char const *const *ccp;
3336 /* NEC SVR4.0.2 mips cc rejects this. */
3337 struct point {int x, y;};
3338 static struct point const zero = {0,0};
3339 /* AIX XL C 1.02.0.0 rejects this.
3340 It does not let you subtract one const X* pointer from another in an arm
3341 of an if-expression whose if-part is not a constant expression */
3342 const char *g = "string";
3343 ccp = &g + (g ? g-g : 0);
3344 /* HPUX 7.0 cc rejects these. */
3347 ccp = (char const *const *) p;
3348 { /* SCO 3.2v4 cc rejects this. */
3350 char const *s = 0 ? (char *) 0 : (char const *) 0;
3354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3356 const int *foo = &x[0];
3359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3360 typedef const int *iptr;
3364 { /* AIX XL C 1.02.0.0 rejects this saying
3365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3366 struct s { int j; const int *ap[3]; };
3367 struct s *b; b->j = 5;
3369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3375 if { (eval echo configure
:3376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3379 echo "configure: failed program was:" >&5
3380 cat conftest.
$ac_ext >&5
3387 echo "$ac_t""$ac_cv_c_const" 1>&6
3388 if test $ac_cv_c_const = no
; then
3389 cat >> confdefs.h
<<\EOF
3396 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_func" >&5
3400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 cat > conftest.
$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 /* System header to define __stub macros and hopefully few prototypes,
3407 which can conflict with char $ac_func(); below. */
3409 /* Override any gcc2 internal prototype to avoid an error. */
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3416 /* The GNU C library defines this for functions which it implements
3417 to always fail with ENOSYS. Some functions are actually named
3418 something starting with __ and the normal name is an alias. */
3419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3427 if { (eval echo configure
:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3429 eval "ac_cv_func_$ac_func=yes"
3431 echo "configure: failed program was:" >&5
3432 cat conftest.
$ac_ext >&5
3434 eval "ac_cv_func_$ac_func=no"
3439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3440 echo "$ac_t""yes" 1>&6
3441 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3442 cat >> confdefs.h
<<EOF
3443 #define $ac_tr_func 1
3447 echo "$ac_t""no" 1>&6
3451 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3452 # for constant arguments. Useless!
3453 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3454 echo "configure:3455: checking for working alloca.h" >&5
3455 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3458 cat > conftest.
$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3463 char *p = alloca(2 * sizeof(int));
3466 if { (eval echo configure
:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3468 ac_cv_header_alloca_h
=yes
3470 echo "configure: failed program was:" >&5
3471 cat conftest.
$ac_ext >&5
3473 ac_cv_header_alloca_h
=no
3478 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3479 if test $ac_cv_header_alloca_h = yes; then
3480 cat >> confdefs.h
<<\EOF
3481 #define HAVE_ALLOCA_H 1
3486 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3487 echo "configure:3488: checking for alloca" >&5
3488 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 cat > conftest.
$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3496 # define alloca __builtin_alloca
3499 # include <malloc.h>
3500 # define alloca _alloca
3503 # include <alloca.h>
3508 # ifndef alloca /* predefined by HP cc +Olibcalls */
3517 char *p = (char *) alloca(1);
3520 if { (eval echo configure
:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3522 ac_cv_func_alloca_works
=yes
3524 echo "configure: failed program was:" >&5
3525 cat conftest.
$ac_ext >&5
3527 ac_cv_func_alloca_works
=no
3532 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3533 if test $ac_cv_func_alloca_works = yes; then
3534 cat >> confdefs.h
<<\EOF
3535 #define HAVE_ALLOCA 1
3540 if test $ac_cv_func_alloca_works = no
; then
3541 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3542 # that cause trouble. Some versions do not even contain alloca or
3543 # contain a buggy version. If you still want to use their alloca,
3544 # use ar to extract alloca.o from them instead of compiling alloca.c.
3545 ALLOCA
=alloca.
${ac_objext}
3546 cat >> confdefs.h
<<\EOF
3551 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3552 echo "configure:3553: checking whether alloca needs Cray hooks" >&5
3553 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 cat > conftest.
$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3559 #if defined(CRAY) && ! defined(CRAY2)
3566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3567 egrep "webecray" >/dev
/null
2>&1; then
3578 echo "$ac_t""$ac_cv_os_cray" 1>&6
3579 if test $ac_cv_os_cray = yes; then
3580 for ac_func
in _getb67 GETB67 getb67
; do
3581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3582 echo "configure:3583: checking for $ac_func" >&5
3583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 cat > conftest.
$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 /* System header to define __stub macros and hopefully few prototypes,
3590 which can conflict with char $ac_func(); below. */
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3599 /* The GNU C library defines this for functions which it implements
3600 to always fail with ENOSYS. Some functions are actually named
3601 something starting with __ and the normal name is an alias. */
3602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3610 if { (eval echo configure
:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3612 eval "ac_cv_func_$ac_func=yes"
3614 echo "configure: failed program was:" >&5
3615 cat conftest.
$ac_ext >&5
3617 eval "ac_cv_func_$ac_func=no"
3622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3623 echo "$ac_t""yes" 1>&6
3624 cat >> confdefs.h
<<EOF
3625 #define CRAY_STACKSEG_END $ac_func
3630 echo "$ac_t""no" 1>&6
3636 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3637 echo "configure:3638: checking stack direction for C alloca" >&5
3638 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 if test "$cross_compiling" = yes; then
3642 ac_cv_c_stack_direction
=0
3644 cat > conftest.
$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 find_stack_direction ()
3649 static char *addr = 0;
3654 return find_stack_direction ();
3657 return (&dummy > addr) ? 1 : -1;
3661 exit (find_stack_direction() < 0);
3664 if { (eval echo configure
:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3666 ac_cv_c_stack_direction
=1
3668 echo "configure: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3671 ac_cv_c_stack_direction
=-1
3678 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3679 cat >> confdefs.h
<<EOF
3680 #define STACK_DIRECTION $ac_cv_c_stack_direction
3686 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3687 echo "configure:3688: checking for PTRACE_GETXFPREGS" >&5
3688 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.
$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3694 #include <sys/ptrace.h>
3699 if { (eval echo configure
:3700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3701 gdb_cv_have_ptrace_getxfpregs
=yes
3703 echo "configure: failed program was:" >&5
3704 cat conftest.
$ac_ext >&5
3706 gdb_cv_have_ptrace_getxfpregs
=no
3711 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3712 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3713 cat >> confdefs.h
<<\EOF
3714 #define HAVE_PTRACE_GETXFPREGS 1
3719 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3720 echo "configure:3721: checking for socketpair in -lsocket" >&5
3721 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 ac_save_LIBS
="$LIBS"
3726 LIBS
="-lsocket $LIBS"
3727 cat > conftest.
$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3739 if { (eval echo configure
:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3741 eval "ac_cv_lib_$ac_lib_var=yes"
3743 echo "configure: failed program was:" >&5
3744 cat conftest.
$ac_ext >&5
3746 eval "ac_cv_lib_$ac_lib_var=no"
3749 LIBS
="$ac_save_LIBS"
3752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3753 echo "$ac_t""yes" 1>&6
3754 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3756 cat >> confdefs.h
<<EOF
3757 #define $ac_tr_lib 1
3760 LIBS
="-lsocket $LIBS"
3763 echo "$ac_t""no" 1>&6
3766 for ac_func
in socketpair
3768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3769 echo "configure:3770: checking for $ac_func" >&5
3770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 cat > conftest.
$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 /* System header to define __stub macros and hopefully few prototypes,
3777 which can conflict with char $ac_func(); below. */
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3786 /* The GNU C library defines this for functions which it implements
3787 to always fail with ENOSYS. Some functions are actually named
3788 something starting with __ and the normal name is an alias. */
3789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3797 if { (eval echo configure
:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3799 eval "ac_cv_func_$ac_func=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.
$ac_ext >&5
3804 eval "ac_cv_func_$ac_func=no"
3809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3811 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3812 cat >> confdefs.h
<<EOF
3813 #define $ac_tr_func 1
3817 echo "$ac_t""no" 1>&6
3823 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3824 echo "configure:3825: checking whether malloc must be declared" >&5
3825 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.
$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3833 #ifdef HAVE_STRING_H
3836 #ifdef HAVE_STRINGS_H
3837 #include <strings.h>
3840 #ifdef HAVE_STDLIB_H
3843 #ifdef HAVE_UNISTD_H
3847 char *(*pfn) = (char *(*)) malloc
3850 if { (eval echo configure
:3851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3852 bfd_cv_decl_needed_malloc
=no
3854 echo "configure: failed program was:" >&5
3855 cat conftest.
$ac_ext >&5
3857 bfd_cv_decl_needed_malloc
=yes
3862 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3863 if test $bfd_cv_decl_needed_malloc = yes; then
3864 cat >> confdefs.h
<<\EOF
3865 #define NEED_DECLARATION_MALLOC 1
3870 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3871 echo "configure:3872: checking whether realloc must be declared" >&5
3872 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3875 cat > conftest.
$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3880 #ifdef HAVE_STRING_H
3883 #ifdef HAVE_STRINGS_H
3884 #include <strings.h>
3887 #ifdef HAVE_STDLIB_H
3890 #ifdef HAVE_UNISTD_H
3894 char *(*pfn) = (char *(*)) realloc
3897 if { (eval echo configure
:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3899 bfd_cv_decl_needed_realloc
=no
3901 echo "configure: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3904 bfd_cv_decl_needed_realloc
=yes
3909 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3910 if test $bfd_cv_decl_needed_realloc = yes; then
3911 cat >> confdefs.h
<<\EOF
3912 #define NEED_DECLARATION_REALLOC 1
3917 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3918 echo "configure:3919: checking whether free must be declared" >&5
3919 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.
$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3927 #ifdef HAVE_STRING_H
3930 #ifdef HAVE_STRINGS_H
3931 #include <strings.h>
3934 #ifdef HAVE_STDLIB_H
3937 #ifdef HAVE_UNISTD_H
3941 char *(*pfn) = (char *(*)) free
3944 if { (eval echo configure
:3945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3946 bfd_cv_decl_needed_free
=no
3948 echo "configure: failed program was:" >&5
3949 cat conftest.
$ac_ext >&5
3951 bfd_cv_decl_needed_free
=yes
3956 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3957 if test $bfd_cv_decl_needed_free = yes; then
3958 cat >> confdefs.h
<<\EOF
3959 #define NEED_DECLARATION_FREE 1
3964 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3965 echo "configure:3966: checking whether strerror must be declared" >&5
3966 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 cat > conftest.
$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3974 #ifdef HAVE_STRING_H
3977 #ifdef HAVE_STRINGS_H
3978 #include <strings.h>
3981 #ifdef HAVE_STDLIB_H
3984 #ifdef HAVE_UNISTD_H
3988 char *(*pfn) = (char *(*)) strerror
3991 if { (eval echo configure
:3992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3993 bfd_cv_decl_needed_strerror
=no
3995 echo "configure: failed program was:" >&5
3996 cat conftest.
$ac_ext >&5
3998 bfd_cv_decl_needed_strerror
=yes
4003 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4004 if test $bfd_cv_decl_needed_strerror = yes; then
4005 cat >> confdefs.h
<<\EOF
4006 #define NEED_DECLARATION_STRERROR 1
4011 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4012 echo "configure:4013: checking whether strdup must be declared" >&5
4013 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 cat > conftest.
$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4021 #ifdef HAVE_STRING_H
4024 #ifdef HAVE_STRINGS_H
4025 #include <strings.h>
4028 #ifdef HAVE_STDLIB_H
4031 #ifdef HAVE_UNISTD_H
4035 char *(*pfn) = (char *(*)) strdup
4038 if { (eval echo configure
:4039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4040 bfd_cv_decl_needed_strdup
=no
4042 echo "configure: failed program was:" >&5
4043 cat conftest.
$ac_ext >&5
4045 bfd_cv_decl_needed_strdup
=yes
4050 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4051 if test $bfd_cv_decl_needed_strdup = yes; then
4052 cat >> confdefs.h
<<\EOF
4053 #define NEED_DECLARATION_STRDUP 1
4058 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4059 echo "configure:4060: checking whether strstr must be declared" >&5
4060 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 cat > conftest.
$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4068 #ifdef HAVE_STRING_H
4071 #ifdef HAVE_STRINGS_H
4072 #include <strings.h>
4075 #ifdef HAVE_STDLIB_H
4078 #ifdef HAVE_UNISTD_H
4082 char *(*pfn) = (char *(*)) strstr
4085 if { (eval echo configure
:4086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4087 bfd_cv_decl_needed_strstr
=no
4089 echo "configure: failed program was:" >&5
4090 cat conftest.
$ac_ext >&5
4092 bfd_cv_decl_needed_strstr
=yes
4097 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4098 if test $bfd_cv_decl_needed_strstr = yes; then
4099 cat >> confdefs.h
<<\EOF
4100 #define NEED_DECLARATION_STRSTR 1
4107 # The following save_state_t checkery is only necessary for HPUX
4108 # versions earlier than 10.20. When those fade from memory, this
4109 # could be expunged. --jsm 1999-03-22
4111 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4112 echo "configure:4113: checking for HPUX save_state structure" >&5
4113 cat > conftest.
$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 #include <machine/save_state.h>
4118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119 egrep "save_state_t" >/dev
/null
2>&1; then
4121 gdb_cv_hpux_savestate
=yes
4124 gdb_cv_hpux_savestate
=no
4128 cat > conftest.
$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4131 #include <machine/save_state.h>
4133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4134 egrep "ss_wide" >/dev
/null
2>&1; then
4136 gdb_cv_hpux_sswide
=yes
4139 gdb_cv_hpux_sswide
=no
4143 if test $gdb_cv_hpux_savestate = yes
4145 cat >> confdefs.h
<<\EOF
4146 #define HAVE_STRUCT_SAVE_STATE_T 1
4150 if test $gdb_cv_hpux_sswide = yes
4152 cat >> confdefs.h
<<\EOF
4153 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4157 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4160 # If we are configured native on GNU/Linux, work around problems with
4162 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4164 if test "${target}" = "${host}"; then
4167 cat >> confdefs.h
<<\EOF
4168 #define START_INFERIOR_TRAPS_EXPECTED 2
4171 cat >> confdefs.h
<<\EOF
4172 #define sys_quotactl 1
4176 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4177 cat >> confdefs.h
<<\EOF
4178 #define NEW_PROC_API 1
4182 # FIXME: we would like to define NEW_PROC_API for all versions of
4183 # Solaris from 2.6 on... but it isn't quite working yet. Seems
4184 # to work on sparc 2.6, so let's try it out there.
4185 sparc-sun-solaris2.6
)
4186 cat >> confdefs.h
<<\EOF
4187 #define NEW_PROC_API 1
4194 if test "$ac_cv_header_sys_procfs_h" = yes; then
4195 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4196 echo "configure:4197: checking for pstatus_t in sys/procfs.h" >&5
4197 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 cat > conftest.
$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <sys/procfs.h>
4208 if { (eval echo configure
:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4210 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4212 echo "configure: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4215 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4221 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4222 cat >> confdefs.h
<<\EOF
4223 #define HAVE_PSTATUS_T 1
4227 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4229 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4230 echo "configure:4231: checking for prrun_t in sys/procfs.h" >&5
4231 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 cat > conftest.
$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4237 #include <sys/procfs.h>
4242 if { (eval echo configure
:4243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4244 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4246 echo "configure: failed program was:" >&5
4247 cat conftest.
$ac_ext >&5
4249 bfd_cv_have_sys_procfs_type_prrun_t
=no
4255 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4256 cat >> confdefs.h
<<\EOF
4257 #define HAVE_PRRUN_T 1
4261 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4263 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4264 echo "configure:4265: checking for gregset_t in sys/procfs.h" >&5
4265 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4268 cat > conftest.
$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4271 #include <sys/procfs.h>
4276 if { (eval echo configure
:4277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4278 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4280 echo "configure: failed program was:" >&5
4281 cat conftest.
$ac_ext >&5
4283 bfd_cv_have_sys_procfs_type_gregset_t
=no
4289 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4290 cat >> confdefs.h
<<\EOF
4291 #define HAVE_GREGSET_T 1
4295 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4297 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4298 echo "configure:4299: checking for fpregset_t in sys/procfs.h" >&5
4299 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 cat > conftest.
$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305 #include <sys/procfs.h>
4310 if { (eval echo configure
:4311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4312 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4314 echo "configure: failed program was:" >&5
4315 cat conftest.
$ac_ext >&5
4317 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4323 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4324 cat >> confdefs.h
<<\EOF
4325 #define HAVE_FPREGSET_T 1
4329 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4331 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4332 echo "configure:4333: checking for prgregset_t in sys/procfs.h" >&5
4333 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4336 cat > conftest.
$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4339 #include <sys/procfs.h>
4344 if { (eval echo configure
:4345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4346 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4348 echo "configure: failed program was:" >&5
4349 cat conftest.
$ac_ext >&5
4351 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4357 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4358 cat >> confdefs.h
<<\EOF
4359 #define HAVE_PRGREGSET_T 1
4363 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4365 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4366 echo "configure:4367: checking for prfpregset_t in sys/procfs.h" >&5
4367 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 cat > conftest.
$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 #include <sys/procfs.h>
4378 if { (eval echo configure
:4379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4380 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
4382 echo "configure: failed program was:" >&5
4383 cat conftest.
$ac_ext >&5
4385 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
4391 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4392 cat >> confdefs.h
<<\EOF
4393 #define HAVE_PRFPREGSET_T 1
4397 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4399 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4400 echo "configure:4401: checking for lwpid_t in sys/procfs.h" >&5
4401 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 cat > conftest.
$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 #include <sys/procfs.h>
4412 if { (eval echo configure
:4413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4414 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
4416 echo "configure: failed program was:" >&5
4417 cat conftest.
$ac_ext >&5
4419 bfd_cv_have_sys_procfs_type_lwpid_t
=no
4425 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4426 cat >> confdefs.h
<<\EOF
4427 #define HAVE_LWPID_T 1
4431 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4433 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4434 echo "configure:4435: checking for psaddr_t in sys/procfs.h" >&5
4435 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4438 cat > conftest.
$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 #include <sys/procfs.h>
4446 if { (eval echo configure
:4447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4448 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
4450 echo "configure: failed program was:" >&5
4451 cat conftest.
$ac_ext >&5
4453 bfd_cv_have_sys_procfs_type_psaddr_t
=no
4459 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4460 cat >> confdefs.h
<<\EOF
4461 #define HAVE_PSADDR_T 1
4465 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4469 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4470 echo "configure:4471: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4471 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 cat > conftest.
$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4478 #include <sys/types.h>
4479 #include <sys/procfs.h>
4484 dummy = ioctl(0, PIOCSET, &dummy);
4488 if { (eval echo configure
:4489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4490 gdb_cv_have_procfs_piocset
=yes
4492 echo "configure: failed program was:" >&5
4493 cat conftest.
$ac_ext >&5
4495 gdb_cv_have_procfs_piocset
=no
4500 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4501 if test $gdb_cv_have_procfs_piocset = yes; then
4502 cat >> confdefs.h
<<\EOF
4503 #define HAVE_PROCFS_PIOCSET 1
4509 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4510 echo "configure:4511: checking for main in -lm" >&5
4511 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 ac_save_LIBS
="$LIBS"
4517 cat > conftest.
$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4525 if { (eval echo configure
:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4527 eval "ac_cv_lib_$ac_lib_var=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.
$ac_ext >&5
4532 eval "ac_cv_lib_$ac_lib_var=no"
4535 LIBS
="$ac_save_LIBS"
4538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4539 echo "$ac_t""yes" 1>&6
4540 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4541 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4542 cat >> confdefs.h
<<EOF
4543 #define $ac_tr_lib 1
4549 echo "$ac_t""no" 1>&6
4553 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4554 echo "configure:4555: checking for wctype in -lc" >&5
4555 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 ac_save_LIBS
="$LIBS"
4561 cat > conftest.
$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4573 if { (eval echo configure
:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4575 eval "ac_cv_lib_$ac_lib_var=yes"
4577 echo "configure: failed program was:" >&5
4578 cat conftest.
$ac_ext >&5
4580 eval "ac_cv_lib_$ac_lib_var=no"
4583 LIBS
="$ac_save_LIBS"
4586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4587 echo "$ac_t""yes" 1>&6
4590 echo "$ac_t""no" 1>&6
4591 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4592 echo "configure:4593: checking for wctype in -lw" >&5
4593 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 ac_save_LIBS
="$LIBS"
4599 cat > conftest.
$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 /* Override any gcc2 internal prototype to avoid an error. */
4603 /* We use char because int might match the return type of a gcc2
4604 builtin and then its argument prototype would still apply. */
4611 if { (eval echo configure
:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4613 eval "ac_cv_lib_$ac_lib_var=yes"
4615 echo "configure: failed program was:" >&5
4616 cat conftest.
$ac_ext >&5
4618 eval "ac_cv_lib_$ac_lib_var=no"
4621 LIBS
="$ac_save_LIBS"
4624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4626 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4628 cat >> confdefs.h
<<EOF
4629 #define $ac_tr_lib 1
4635 echo "$ac_t""no" 1>&6
4642 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4643 echo "configure:4644: checking for long long support in compiler" >&5
4644 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.
$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4653 extern long long foo;
4654 switch (foo & 2) { case 0: return 1; }
4658 if { (eval echo configure
:4659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4660 gdb_cv_c_long_long
=yes
4662 echo "configure: failed program was:" >&5
4663 cat conftest.
$ac_ext >&5
4665 gdb_cv_c_long_long
=no
4670 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4671 if test $gdb_cv_c_long_long = yes; then
4672 cat >> confdefs.h
<<\EOF
4673 #define CC_HAS_LONG_LONG 1
4679 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4680 echo "configure:4681: checking for long long support in printf" >&5
4681 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4682 echo $ac_n "(cached) $ac_c" 1>&6
4684 if test "$cross_compiling" = yes; then
4685 gdb_cv_printf_has_long_long
=no
4687 cat > conftest.
$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4694 l = (l << 16) + 0x0123;
4695 l = (l << 16) + 0x4567;
4696 l = (l << 16) + 0x89ab;
4697 l = (l << 16) + 0xcdef;
4698 sprintf (buf, "0x%016llx", l);
4699 return (strcmp ("0x0123456789abcdef", buf));
4702 if { (eval echo configure
:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4704 gdb_cv_printf_has_long_long
=yes
4706 echo "configure: failed program was:" >&5
4707 cat conftest.
$ac_ext >&5
4709 gdb_cv_printf_has_long_long
=no
4716 if test $gdb_cv_printf_has_long_long = yes; then
4717 cat >> confdefs.h
<<\EOF
4718 #define PRINTF_HAS_LONG_LONG 1
4722 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4725 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4726 echo "configure:4727: checking for long double support in compiler" >&5
4727 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4728 echo $ac_n "(cached) $ac_c" 1>&6
4730 cat > conftest.
$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4738 if { (eval echo configure
:4739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4740 ac_cv_c_long_double
=yes
4742 echo "configure: failed program was:" >&5
4743 cat conftest.
$ac_ext >&5
4745 ac_cv_c_long_double
=no
4750 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4751 if test $ac_cv_c_long_double = yes; then
4752 cat >> confdefs.h
<<\EOF
4753 #define HAVE_LONG_DOUBLE 1
4759 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4760 echo "configure:4761: checking for long double support in printf" >&5
4761 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4764 if test "$cross_compiling" = yes; then
4765 gdb_cv_printf_has_long_double
=no
4767 cat > conftest.
$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4773 long double f = 3.141592653;
4774 sprintf (buf, "%Lg", f);
4775 return (strncmp ("3.14159", buf, 7));
4778 if { (eval echo configure
:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4780 gdb_cv_printf_has_long_double
=yes
4782 echo "configure: failed program was:" >&5
4783 cat conftest.
$ac_ext >&5
4785 gdb_cv_printf_has_long_double
=no
4792 if test $gdb_cv_printf_has_long_double = yes; then
4793 cat >> confdefs.h
<<\EOF
4794 #define PRINTF_HAS_LONG_DOUBLE 1
4798 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4801 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4802 echo "configure:4803: checking for long double support in scanf" >&5
4803 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 if test "$cross_compiling" = yes; then
4807 gdb_cv_scanf_has_long_double
=no
4809 cat > conftest.
$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4814 char *buf = "3.141592653";
4816 sscanf (buf, "%Lg", &f);
4817 return !(f > 3.14159 && f < 3.14160);
4820 if { (eval echo configure
:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4822 gdb_cv_scanf_has_long_double
=yes
4824 echo "configure: failed program was:" >&5
4825 cat conftest.
$ac_ext >&5
4827 gdb_cv_scanf_has_long_double
=no
4834 if test $gdb_cv_scanf_has_long_double = yes; then
4835 cat >> confdefs.h
<<\EOF
4836 #define SCANF_HAS_LONG_DOUBLE 1
4840 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4842 for ac_hdr
in unistd.h
4844 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4846 echo "configure:4847: checking for $ac_hdr" >&5
4847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4850 cat > conftest.
$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4855 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4856 { (eval echo configure
:4857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4857 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4858 if test -z "$ac_err"; then
4860 eval "ac_cv_header_$ac_safe=yes"
4863 echo "configure: failed program was:" >&5
4864 cat conftest.
$ac_ext >&5
4866 eval "ac_cv_header_$ac_safe=no"
4870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4871 echo "$ac_t""yes" 1>&6
4872 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4873 cat >> confdefs.h
<<EOF
4874 #define $ac_tr_hdr 1
4878 echo "$ac_t""no" 1>&6
4882 for ac_func
in getpagesize
4884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4885 echo "configure:4886: checking for $ac_func" >&5
4886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 cat > conftest.
$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 /* System header to define __stub macros and hopefully few prototypes,
4893 which can conflict with char $ac_func(); below. */
4895 /* Override any gcc2 internal prototype to avoid an error. */
4896 /* We use char because int might match the return type of a gcc2
4897 builtin and then its argument prototype would still apply. */
4902 /* The GNU C library defines this for functions which it implements
4903 to always fail with ENOSYS. Some functions are actually named
4904 something starting with __ and the normal name is an alias. */
4905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4913 if { (eval echo configure
:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4915 eval "ac_cv_func_$ac_func=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.
$ac_ext >&5
4920 eval "ac_cv_func_$ac_func=no"
4925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4926 echo "$ac_t""yes" 1>&6
4927 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4928 cat >> confdefs.h
<<EOF
4929 #define $ac_tr_func 1
4933 echo "$ac_t""no" 1>&6
4937 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4938 echo "configure:4939: checking for working mmap" >&5
4939 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 if test "$cross_compiling" = yes; then
4943 ac_cv_func_mmap_fixed_mapped
=no
4945 cat > conftest.
$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4949 /* Thanks to Mike Haertel and Jim Avera for this test.
4950 Here is a matrix of mmap possibilities:
4951 mmap private not fixed
4952 mmap private fixed at somewhere currently unmapped
4953 mmap private fixed at somewhere already mapped
4954 mmap shared not fixed
4955 mmap shared fixed at somewhere currently unmapped
4956 mmap shared fixed at somewhere already mapped
4957 For private mappings, we should verify that changes cannot be read()
4958 back from the file, nor mmap's back from the file at a different
4959 address. (There have been systems where private was not correctly
4960 implemented like the infamous i386 svr4.0, and systems where the
4961 VM page cache was not coherent with the filesystem buffer cache
4962 like early versions of FreeBSD and possibly contemporary NetBSD.)
4963 For shared mappings, we should conversely verify that changes get
4964 propogated back to all the places they're supposed to be.
4966 Grep wants private fixed already mapped.
4967 The main things grep needs to know about mmap are:
4968 * does it exist and is it safe to write into the mmap'd area
4969 * how to use it (BSD variants) */
4970 #include <sys/types.h>
4972 #include <sys/mman.h>
4974 /* This mess was copied from the GNU getpagesize.h. */
4975 #ifndef HAVE_GETPAGESIZE
4976 # ifdef HAVE_UNISTD_H
4977 # include <unistd.h>
4980 /* Assume that all systems that can run configure have sys/param.h. */
4981 # ifndef HAVE_SYS_PARAM_H
4982 # define HAVE_SYS_PARAM_H 1
4985 # ifdef _SC_PAGESIZE
4986 # define getpagesize() sysconf(_SC_PAGESIZE)
4987 # else /* no _SC_PAGESIZE */
4988 # ifdef HAVE_SYS_PARAM_H
4989 # include <sys/param.h>
4990 # ifdef EXEC_PAGESIZE
4991 # define getpagesize() EXEC_PAGESIZE
4992 # else /* no EXEC_PAGESIZE */
4994 # define getpagesize() NBPG * CLSIZE
4997 # endif /* no CLSIZE */
4998 # else /* no NBPG */
5000 # define getpagesize() NBPC
5001 # else /* no NBPC */
5003 # define getpagesize() PAGESIZE
5004 # endif /* PAGESIZE */
5005 # endif /* no NBPC */
5006 # endif /* no NBPG */
5007 # endif /* no EXEC_PAGESIZE */
5008 # else /* no HAVE_SYS_PARAM_H */
5009 # define getpagesize() 8192 /* punt totally */
5010 # endif /* no HAVE_SYS_PARAM_H */
5011 # endif /* no _SC_PAGESIZE */
5013 #endif /* no HAVE_GETPAGESIZE */
5016 extern "C" { void *malloc(unsigned); }
5024 char *data, *data2, *data3;
5028 pagesize = getpagesize();
5031 * First, make a file with some known garbage in it.
5033 data = malloc(pagesize);
5036 for (i = 0; i < pagesize; ++i)
5037 *(data + i) = rand();
5039 fd = creat("conftestmmap", 0600);
5042 if (write(fd, data, pagesize) != pagesize)
5047 * Next, try to mmap the file at a fixed address which
5048 * already has something else allocated at it. If we can,
5049 * also make sure that we see the same garbage.
5051 fd = open("conftestmmap", O_RDWR);
5054 data2 = malloc(2 * pagesize);
5057 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5058 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5059 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5061 for (i = 0; i < pagesize; ++i)
5062 if (*(data + i) != *(data2 + i))
5066 * Finally, make sure that changes to the mapped area
5067 * do not percolate back to the file as seen by read().
5068 * (This is a bug on some variants of i386 svr4.0.)
5070 for (i = 0; i < pagesize; ++i)
5071 *(data2 + i) = *(data2 + i) + 1;
5072 data3 = malloc(pagesize);
5075 if (read(fd, data3, pagesize) != pagesize)
5077 for (i = 0; i < pagesize; ++i)
5078 if (*(data + i) != *(data3 + i))
5081 unlink("conftestmmap");
5086 if { (eval echo configure
:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5088 ac_cv_func_mmap_fixed_mapped
=yes
5090 echo "configure: failed program was:" >&5
5091 cat conftest.
$ac_ext >&5
5093 ac_cv_func_mmap_fixed_mapped
=no
5100 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5101 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5102 cat >> confdefs.h
<<\EOF
5111 if test ${build} = ${host} -a ${host} = ${target} ; then
5114 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5115 echo "configure:5116: checking for HPUX/OSF thread support" >&5
5116 if test -f /usr
/include
/dce
/cma_config.h
; then
5117 if test "$GCC" = "yes" ; then
5118 echo "$ac_t""yes" 1>&6
5119 cat >> confdefs.h
<<\EOF
5120 #define HAVE_HPUX_THREAD_SUPPORT 1
5123 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
5124 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
5125 CONFIG_INITS
="${CONFIG_INITS} hpux-thread.c"
5127 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5130 echo "$ac_t""no" 1>&6
5134 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5135 echo "configure:5136: checking for Solaris thread debugging library" >&5
5136 if test -f /usr
/lib
/libthread_db.so
.1 ; then
5137 echo "$ac_t""yes" 1>&6
5138 cat >> confdefs.h
<<\EOF
5139 #define HAVE_THREAD_DB_LIB 1
5142 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
5143 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
5144 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5145 echo "configure:5146: checking for dlopen in -ldl" >&5
5146 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5148 echo $ac_n "(cached) $ac_c" 1>&6
5150 ac_save_LIBS
="$LIBS"
5152 cat > conftest.
$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5164 if { (eval echo configure
:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5166 eval "ac_cv_lib_$ac_lib_var=yes"
5168 echo "configure: failed program was:" >&5
5169 cat conftest.
$ac_ext >&5
5171 eval "ac_cv_lib_$ac_lib_var=no"
5174 LIBS
="$ac_save_LIBS"
5177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5178 echo "$ac_t""yes" 1>&6
5179 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5181 cat >> confdefs.h
<<EOF
5182 #define $ac_tr_lib 1
5188 echo "$ac_t""no" 1>&6
5191 if test "$GCC" = "yes" ; then
5192 # The GNU linker requires the -export-dynamic option to make
5193 # all symbols visible in the dynamic symbol table.
5194 hold_ldflags
=$LDFLAGS
5195 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5196 echo "configure:5197: checking for the ld -export-dynamic flag" >&5
5197 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
5198 cat > conftest.
$ac_ext <<EOF
5199 #line 5200 "configure"
5200 #include "confdefs.h"
5206 if { (eval echo configure
:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5210 echo "configure: failed program was:" >&5
5211 cat conftest.
$ac_ext >&5
5216 LDFLAGS
=$hold_ldflags
5217 echo "$ac_t""$found" 1>&6
5218 if test $found = yes; then
5219 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5222 # Sun randomly tweaked the prototypes in <proc_service.h>
5224 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5225 echo "configure:5226: checking if <proc_service.h> is old" >&5
5226 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5230 cat > conftest.
$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5234 #include <proc_service.h>
5236 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5242 if { (eval echo configure
:5243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5244 gdb_cv_proc_service_is_old
=no
5246 echo "configure: failed program was:" >&5
5247 cat conftest.
$ac_ext >&5
5249 gdb_cv_proc_service_is_old
=yes
5255 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5256 if test $gdb_cv_proc_service_is_old = yes; then
5257 cat >> confdefs.h
<<\EOF
5258 #define PROC_SERVICE_IS_OLD 1
5263 echo "$ac_t""no" 1>&6
5271 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5272 if test "${enable_gdbmi+set}" = set; then
5273 enableval
="$enable_gdbmi"
5275 case "${enable_gdbmi}" in
5277 "") enable_gdbmi
=yes ;;
5279 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
5285 case ${enable_gdbmi} in
5287 if test -d "${srcdir}/mi" ; then
5288 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
5289 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
5290 CONFIG_SRCS
="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
5291 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
5292 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
5297 # Check whether --enable-tui or --disable-tui was given.
5298 if test "${enable_tui+set}" = set; then
5299 enableval
="$enable_tui"
5301 case "${enable_tui}" in
5303 "") enable_tui
=yes ;;
5305 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5311 case ${enable_tui} in
5313 cat >> confdefs.h
<<\EOF
5318 TUI_LIBRARY
=tui
/libtui.a
5328 # Check whether --enable-netrom or --disable-netrom was given.
5329 if test "${enable_netrom+set}" = set; then
5330 enableval
="$enable_netrom"
5331 case "${enableval}" in
5332 yes) enable_netrom
=yes ;;
5333 no
) enable_netrom
=no
;;
5334 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5339 if test "${enable_netrom}" = "yes"; then
5340 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5341 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5342 CONFIG_INITS
="${CONFIG_INITS} remote-nrom.c"
5345 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5346 if test "${enable_build_warnings+set}" = set; then
5347 enableval
="$enable_build_warnings"
5349 # not yet: -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
5350 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith"
5351 case "${enableval}" in
5353 no
) build_warnings
="-w";;
5354 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5355 build_warnings
="${build_warnings} ${t}";;
5356 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5357 build_warnings
="${t} ${build_warnings}";;
5358 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5360 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5361 echo "Setting warning flags = $build_warnings" 6>&1
5365 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5367 # Separate out the -Werror flag as some files just cannot be
5368 # compiled with it enabled.
5369 for w
in ${build_warnings}; do
5371 -Werr*) WERROR_CFLAGS
=-Werror ;;
5372 *) WARN_CFLAGS
="${WARN_CFLAGS} $w"
5388 # Check whether --with-mmalloc or --without-mmalloc was given.
5389 if test "${with_mmalloc+set}" = set; then
5390 withval
="$with_mmalloc"
5391 case "${withval}" in
5392 yes) want_mmalloc
=true
;;
5393 no
) want_mmalloc
=false
;;
5394 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5400 if test x
$want_mmalloc = xtrue
; then
5401 cat >> confdefs.h
<<\EOF
5402 #define USE_MMALLOC 1
5405 cat >> confdefs.h
<<\EOF
5406 #define MMCHECK_FORCE 1
5409 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5410 MMALLOC
='../mmalloc/libmmalloc.a'
5414 # In the Cygwin environment, we need some additional flags.
5415 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5416 echo "configure:5417: checking for cygwin" >&5
5417 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5420 cat > conftest.
$ac_ext <<EOF
5421 #line 5422 "configure"
5422 #include "confdefs.h"
5424 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5429 egrep "lose" >/dev
/null
2>&1; then
5431 gdb_cv_os_cygwin
=yes
5440 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5442 DLLTOOL
=${DLLTOOL-dlltool}
5443 WINDRES
=${WINDRES-windres}
5447 if test x
$gdb_host = xgo32
; then
5450 if test x
$gdb_cv_os_cygwin = xyes
; then
5451 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5454 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5455 echo "configure:5456: checking for tgetent in -lncurses" >&5
5456 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5460 ac_save_LIBS
="$LIBS"
5461 LIBS
="-lncurses $LIBS"
5462 cat > conftest.
$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5474 if { (eval echo configure
:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5476 eval "ac_cv_lib_$ac_lib_var=yes"
5478 echo "configure: failed program was:" >&5
5479 cat conftest.
$ac_ext >&5
5481 eval "ac_cv_lib_$ac_lib_var=no"
5484 LIBS
="$ac_save_LIBS"
5487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5488 echo "$ac_t""yes" 1>&6
5491 echo "$ac_t""no" 1>&6
5492 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5493 echo "configure:5494: checking for tgetent in -lHcurses" >&5
5494 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 ac_save_LIBS
="$LIBS"
5499 LIBS
="-lHcurses $LIBS"
5500 cat > conftest.
$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5503 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5512 if { (eval echo configure
:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5514 eval "ac_cv_lib_$ac_lib_var=yes"
5516 echo "configure: failed program was:" >&5
5517 cat conftest.
$ac_ext >&5
5519 eval "ac_cv_lib_$ac_lib_var=no"
5522 LIBS
="$ac_save_LIBS"
5525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5526 echo "$ac_t""yes" 1>&6
5529 echo "$ac_t""no" 1>&6
5530 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5531 echo "configure:5532: checking for tgetent in -ltermlib" >&5
5532 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 ac_save_LIBS
="$LIBS"
5537 LIBS
="-ltermlib $LIBS"
5538 cat > conftest.
$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5541 /* Override any gcc2 internal prototype to avoid an error. */
5542 /* We use char because int might match the return type of a gcc2
5543 builtin and then its argument prototype would still apply. */
5550 if { (eval echo configure
:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5552 eval "ac_cv_lib_$ac_lib_var=yes"
5554 echo "configure: failed program was:" >&5
5555 cat conftest.
$ac_ext >&5
5557 eval "ac_cv_lib_$ac_lib_var=no"
5560 LIBS
="$ac_save_LIBS"
5563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5564 echo "$ac_t""yes" 1>&6
5567 echo "$ac_t""no" 1>&6
5568 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5569 echo "configure:5570: checking for tgetent in -ltermcap" >&5
5570 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5574 ac_save_LIBS
="$LIBS"
5575 LIBS
="-ltermcap $LIBS"
5576 cat > conftest.
$ac_ext <<EOF
5577 #line 5578 "configure"
5578 #include "confdefs.h"
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 /* We use char because int might match the return type of a gcc2
5581 builtin and then its argument prototype would still apply. */
5588 if { (eval echo configure
:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5590 eval "ac_cv_lib_$ac_lib_var=yes"
5592 echo "configure: failed program was:" >&5
5593 cat conftest.
$ac_ext >&5
5595 eval "ac_cv_lib_$ac_lib_var=no"
5598 LIBS
="$ac_save_LIBS"
5601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5602 echo "$ac_t""yes" 1>&6
5605 echo "$ac_t""no" 1>&6
5606 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5607 echo "configure:5608: checking for tgetent in -lcurses" >&5
5608 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 ac_save_LIBS
="$LIBS"
5613 LIBS
="-lcurses $LIBS"
5614 cat > conftest.
$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 /* Override any gcc2 internal prototype to avoid an error. */
5618 /* We use char because int might match the return type of a gcc2
5619 builtin and then its argument prototype would still apply. */
5626 if { (eval echo configure
:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5628 eval "ac_cv_lib_$ac_lib_var=yes"
5630 echo "configure: failed program was:" >&5
5631 cat conftest.
$ac_ext >&5
5633 eval "ac_cv_lib_$ac_lib_var=no"
5636 LIBS
="$ac_save_LIBS"
5639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5640 echo "$ac_t""yes" 1>&6
5643 echo "$ac_t""no" 1>&6
5644 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5645 echo "configure:5646: checking for tgetent in -lterminfo" >&5
5646 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 ac_save_LIBS
="$LIBS"
5651 LIBS
="-lterminfo $LIBS"
5652 cat > conftest.
$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5664 if { (eval echo configure
:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5666 eval "ac_cv_lib_$ac_lib_var=yes"
5668 echo "configure: failed program was:" >&5
5669 cat conftest.
$ac_ext >&5
5671 eval "ac_cv_lib_$ac_lib_var=no"
5674 LIBS
="$ac_save_LIBS"
5677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5678 echo "$ac_t""yes" 1>&6
5681 echo "$ac_t""no" 1>&6
5695 if test "x$TERM_LIB" = x
5697 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5703 # libreadline needs libuser32.a in a cygwin environment
5705 if test x
$gdb_cv_os_cygwin = xyes
; then
5706 WIN32LIBS
="-luser32"
5708 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
5714 LIBGUI
="../libgui/src/libgui.a"
5715 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
5719 # Check whether --with-cpu or --without-cpu was given.
5720 if test "${with_cpu+set}" = set; then
5723 powerpc-
* | powerpcle-
* )
5724 ## It would be nice to keep this table in sync with the one in
5726 case "${with_cpu}" in
5727 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
5729 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5731 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
5732 ## These are all RS6000 variants, as far as GDB is concerned.
5742 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5748 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5751 cat >> confdefs.h
<<EOF
5752 #define TARGET_CPU_DEFAULT "${with_cpu}"
5762 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5763 if test "${enable_gdbtk+set}" = set; then
5764 enableval
="$enable_gdbtk"
5765 case "${enableval}" in
5769 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5772 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5780 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5784 # Default is on for everything but go32 and Cygwin
5802 if test "${enable_gdbtk}" = "yes"; then
5806 # Ok, lets find the tcl configuration
5807 # First, look for one uninstalled.
5808 # the alternative search directory is invoked by --with-tclconfig
5811 if test x
"${no_tcl}" = x
; then
5812 # we reset no_tcl in case something fails here
5814 # Check whether --with-tclconfig or --without-tclconfig was given.
5815 if test "${with_tclconfig+set}" = set; then
5816 withval
="$with_tclconfig"
5817 with_tclconfig
=${withval}
5820 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5821 echo "configure:5822: checking for Tcl configuration" >&5
5822 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5823 echo $ac_n "(cached) $ac_c" 1>&6
5827 # First check to see if --with-tclconfig was specified.
5828 if test x
"${with_tclconfig}" != x
; then
5829 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5830 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
5832 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5836 # then check for a private Tcl installation
5837 if test x
"${ac_cv_c_tclconfig}" = x
; then
5840 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5842 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5844 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5845 if test -f "$i/${configdir}/tclConfig.sh" ; then
5846 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5851 # check in a few common install locations
5852 if test x
"${ac_cv_c_tclconfig}" = x
; then
5853 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5854 if test -f "$i/tclConfig.sh" ; then
5855 ac_cv_c_tclconfig
=`(cd $i; pwd)`
5860 # check in a few other private locations
5861 if test x
"${ac_cv_c_tclconfig}" = x
; then
5864 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5865 if test -f "$i/${configdir}/tclConfig.sh" ; then
5866 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5874 if test x
"${ac_cv_c_tclconfig}" = x
; then
5875 TCLCONFIG
="# no Tcl configs found"
5876 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
5879 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
5880 echo "$ac_t""found $TCLCONFIG" 1>&6
5884 if test -z "${no_tcl}"; then
5914 # Ok, lets find the tk configuration
5915 # First, look for one uninstalled.
5916 # the alternative search directory is invoked by --with-tkconfig
5919 if test x
"${no_tk}" = x
; then
5920 # we reset no_tk in case something fails here
5922 # Check whether --with-tkconfig or --without-tkconfig was given.
5923 if test "${with_tkconfig+set}" = set; then
5924 withval
="$with_tkconfig"
5925 with_tkconfig
=${withval}
5928 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
5929 echo "configure:5930: checking for Tk configuration" >&5
5930 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5935 # First check to see if --with-tkconfig was specified.
5936 if test x
"${with_tkconfig}" != x
; then
5937 if test -f "${with_tkconfig}/tkConfig.sh" ; then
5938 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
5940 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
5944 # then check for a private Tk library
5945 if test x
"${ac_cv_c_tkconfig}" = x
; then
5948 `ls -dr ../tk[4-9]* 2>/dev/null` \
5950 `ls -dr ../../tk[4-9]* 2>/dev/null` \
5952 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
5953 if test -f "$i/${configdir}/tkConfig.sh" ; then
5954 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5959 # check in a few common install locations
5960 if test x
"${ac_cv_c_tkconfig}" = x
; then
5961 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5962 if test -f "$i/tkConfig.sh" ; then
5963 ac_cv_c_tkconfig
=`(cd $i; pwd)`
5968 # check in a few other private locations
5969 if test x
"${ac_cv_c_tkconfig}" = x
; then
5972 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
5973 if test -f "$i/${configdir}/tkConfig.sh" ; then
5974 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5982 if test x
"${ac_cv_c_tkconfig}" = x
; then
5983 TKCONFIG
="# no Tk configs found"
5984 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
5987 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
5988 echo "$ac_t""found $TKCONFIG" 1>&6
5994 # If $no_tk is nonempty, then we can't do Tk, and there is no
5995 # point to doing Tcl.
5996 if test -z "${no_tk}"; then
5998 if test -f "$TKCONFIG" ; then
6016 # Ok, lets find the tcl source trees so we can use the headers
6017 # Warning: transition of version 9 to 10 will break this algorithm
6018 # because 10 sorts before 9. We also look for just tcl. We have to
6019 # be careful that we don't match stuff like tclX by accident.
6020 # the alternative search directory is involked by --with-tclinclude
6024 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6025 echo "configure:6026: checking for Tcl private headers. dir=${configdir}" >&5
6026 # Check whether --with-tclinclude or --without-tclinclude was given.
6027 if test "${with_tclinclude+set}" = set; then
6028 withval
="$with_tclinclude"
6029 with_tclinclude
=${withval}
6032 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6036 # first check to see if --with-tclinclude was specified
6037 if test x
"${with_tclinclude}" != x
; then
6038 if test -f ${with_tclinclude}/tclInt.h
; then
6039 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
6040 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
6041 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
6043 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6047 # next check if it came with Tcl configuration file
6048 if test x
"${ac_cv_c_tclconfig}" = x
; then
6049 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
6050 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
6054 # next check in private source directory
6056 # since ls returns lowest version numbers first, reverse its output
6057 if test x
"${ac_cv_c_tclh}" = x
; then
6060 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6061 ${srcdir}/..
/..
/tcl \
6062 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6063 ${srcdir}/..
/..
/..
/tcl \
6064 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6065 if test -f $i/generic
/tclInt.h
; then
6066 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6071 # finally check in a few common install locations
6073 # since ls returns lowest version numbers first, reverse its output
6074 if test x
"${ac_cv_c_tclh}" = x
; then
6076 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6077 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6078 /usr
/local
/src
/tcl \
6079 /usr
/local
/lib
/tcl \
6080 ${prefix}/include
; do
6081 if test -f $i/generic
/tclInt.h
; then
6082 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6087 # see if one is installed
6088 if test x
"${ac_cv_c_tclh}" = x
; then
6089 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6090 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6091 echo "configure:6092: checking for tclInt.h" >&5
6092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6095 cat > conftest.
$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6100 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6101 { (eval echo configure
:6102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6102 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6103 if test -z "$ac_err"; then
6105 eval "ac_cv_header_$ac_safe=yes"
6108 echo "configure: failed program was:" >&5
6109 cat conftest.
$ac_ext >&5
6111 eval "ac_cv_header_$ac_safe=no"
6115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6116 echo "$ac_t""yes" 1>&6
6117 ac_cv_c_tclh
=installed
6119 echo "$ac_t""no" 1>&6
6127 if test x
"${ac_cv_c_tclh}" = x
; then
6128 TCLHDIR
="# no Tcl private headers found"
6129 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6131 if test x
"${ac_cv_c_tclh}" != x
; then
6133 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
6134 echo "$ac_t""is installed" 1>&6
6137 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6138 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6139 TCLHDIR
="-I${ac_cv_c_tclh}"
6147 # Ok, lets find the tk source trees so we can use the headers
6148 # If the directory (presumably symlink) named "tk" exists, use that one
6149 # in preference to any others. Same logic is used when choosing library
6150 # and again with Tcl. The search order is the best place to look first, then in
6151 # decreasing significance. The loop breaks if the trigger file is found.
6152 # Note the gross little conversion here of srcdir by cd'ing to the found
6153 # directory. This converts the path from a relative to an absolute, so
6154 # recursive cache variables for the path will work right. We check all
6155 # the possible paths in one loop rather than many seperate loops to speed
6157 # the alternative search directory is involked by --with-tkinclude
6160 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6161 echo "configure:6162: checking for Tk private headers" >&5
6162 # Check whether --with-tkinclude or --without-tkinclude was given.
6163 if test "${with_tkinclude+set}" = set; then
6164 withval
="$with_tkinclude"
6165 with_tkinclude
=${withval}
6168 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6169 echo $ac_n "(cached) $ac_c" 1>&6
6172 # first check to see if --with-tkinclude was specified
6173 if test x
"${with_tkinclude}" != x
; then
6174 if test -f ${with_tkinclude}/tk.h
; then
6175 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
6176 elif test -f ${with_tkinclude}/generic
/tk.h
; then
6177 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
6179 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6183 # next check if it came with Tk configuration file
6184 if test x
"${ac_cv_c_tkconfig}" = x
; then
6185 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
6186 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
6190 # next check in private source directory
6192 # since ls returns lowest version numbers first, reverse its output
6193 if test x
"${ac_cv_c_tkh}" = x
; then
6196 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6197 ${srcdir}/..
/..
/tk \
6198 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6199 ${srcdir}/..
/..
/..
/tk \
6200 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6201 if test -f $i/generic
/tk.h
; then
6202 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6207 # finally check in a few common install locations
6209 # since ls returns lowest version numbers first, reverse its output
6210 if test x
"${ac_cv_c_tkh}" = x
; then
6212 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6213 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6216 ${prefix}/include
; do
6217 if test -f $i/generic
/tk.h
; then
6218 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6223 # see if one is installed
6224 if test x
"${ac_cv_c_tkh}" = x
; then
6225 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
6226 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6227 echo "configure:6228: checking for tk.h" >&5
6228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6229 echo $ac_n "(cached) $ac_c" 1>&6
6231 cat > conftest.
$ac_ext <<EOF
6232 #line 6233 "configure"
6233 #include "confdefs.h"
6236 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6237 { (eval echo configure
:6238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6238 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6239 if test -z "$ac_err"; then
6241 eval "ac_cv_header_$ac_safe=yes"
6244 echo "configure: failed program was:" >&5
6245 cat conftest.
$ac_ext >&5
6247 eval "ac_cv_header_$ac_safe=no"
6251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6252 echo "$ac_t""yes" 1>&6
6253 ac_cv_c_tkh
=installed
6255 echo "$ac_t""no" 1>&6
6263 if test x
"${ac_cv_c_tkh}" != x
; then
6265 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
6266 echo "$ac_t""is installed" 1>&6
6269 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6270 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6271 TKHDIR
="-I${ac_cv_c_tkh}"
6274 TKHDIR
="# no Tk directory found"
6275 echo "configure: warning: Can't find Tk private headers" 1>&2
6282 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6283 echo "configure:6284: checking for Itcl private headers. srcdir=${srcdir}" >&5
6284 if test x
"${ac_cv_c_itclh}" = x
; then
6285 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
6286 if test -f $i/generic
/itcl.h
; then
6287 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
6292 if test x
"${ac_cv_c_itclh}" = x
; then
6293 ITCLHDIR
="# no Itcl private headers found"
6294 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6296 if test x
"${ac_cv_c_itclh}" != x
; then
6297 ITCLHDIR
="-I${ac_cv_c_itclh}"
6299 # should always be here
6300 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6305 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6306 echo "configure:6307: checking for Itk private headers. srcdir=${srcdir}" >&5
6307 if test x
"${ac_cv_c_itkh}" = x
; then
6308 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
6309 if test -f $i/generic
/itk.h
; then
6310 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
6315 if test x
"${ac_cv_c_itkh}" = x
; then
6316 ITKHDIR
="# no Itk private headers found"
6317 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6319 if test x
"${ac_cv_c_itkh}" != x
; then
6320 ITKHDIR
="-I${ac_cv_c_itkh}"
6322 # should always be here
6323 # ITKLIB="../itcl/itk/unix/libitk.a"
6328 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6329 echo "configure:6330: checking for Tix private headers. srcdir=${srcdir}" >&5
6330 if test x
"${ac_cv_c_tixh}" = x
; then
6331 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
6332 if test -f $i/generic
/tix.h
; then
6333 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
6338 if test x
"${ac_cv_c_tixh}" = x
; then
6339 TIXHDIR
="# no Tix private headers found"
6340 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6342 if test x
"${ac_cv_c_tixh}" != x
; then
6343 TIXHDIR
="-I${ac_cv_c_tixh}"
6348 # now look for Itcl library stuff
6352 # Ok, lets find the itcl configuration
6353 # First, look for one uninstalled.
6354 # the alternative search directory is invoked by --with-itclconfig
6357 if test x
"${no_itcl}" = x
; then
6358 # we reset no_itcl in case something fails here
6360 # Check whether --with-itclconfig or --without-itclconfig was given.
6361 if test "${with_itclconfig+set}" = set; then
6362 withval
="$with_itclconfig"
6363 with_itclconfig
=${withval}
6366 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6367 echo "configure:6368: checking for Itcl configuration" >&5
6368 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6369 echo $ac_n "(cached) $ac_c" 1>&6
6373 # First check to see if --with-itclconfig was specified.
6374 if test x
"${with_itclconfig}" != x
; then
6375 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6376 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
6378 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6382 # then check for a private Itcl library
6383 if test x
"${ac_cv_c_itclconfig}" = x
; then
6386 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6388 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6390 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6391 if test -f "$i/itclConfig.sh" ; then
6392 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6397 # check in a few common install locations
6398 if test x
"${ac_cv_c_itclconfig}" = x
; then
6399 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6400 if test -f "$i/itclConfig.sh" ; then
6401 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6406 # check in a few other private locations
6407 if test x
"${ac_cv_c_itclconfig}" = x
; then
6409 ${srcdir}/..
/itcl
/itcl \
6410 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6411 if test -f "$i/itclConfig.sh" ; then
6412 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6420 if test x
"${ac_cv_c_itclconfig}" = x
; then
6421 ITCLCONFIG
="# no Itcl configs found"
6422 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6425 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
6426 echo "$ac_t""found $ITCLCONFIG" 1>&6
6430 if test -z "${no_itcl}"; then
6432 if test -f "$ITCLCONFIG" ; then
6448 itcldir
=..
/itcl
/itcl
/win
/
6451 itcldir
=..
/itcl
/itcl
/unix
/
6456 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
6457 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
6461 # now look for Itk library stuff
6464 # Ok, lets find the itk configuration
6465 # First, look for one uninstalled.
6466 # the alternative search directory is invoked by --with-itkconfig
6469 if test x
"${no_itk}" = x
; then
6470 # we reset no_itk in case something fails here
6472 # Check whether --with-itkconfig or --without-itkconfig was given.
6473 if test "${with_itkconfig+set}" = set; then
6474 withval
="$with_itkconfig"
6475 with_itkconfig
=${withval}
6478 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6479 echo "configure:6480: checking for Itk configuration" >&5
6480 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6485 # First check to see if --with-itkconfig was specified.
6486 if test x
"${with_itkconfig}" != x
; then
6487 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6488 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
6490 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6494 # then check for a private Itk library
6495 if test x
"${ac_cv_c_itkconfig}" = x
; then
6498 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6500 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6502 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6503 if test -f "$i/itkConfig.sh" ; then
6504 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6509 # check in a few common install locations
6510 if test x
"${ac_cv_c_itkconfig}" = x
; then
6511 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6512 if test -f "$i/itkConfig.sh" ; then
6513 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6518 # check in a few other private locations
6519 if test x
"${ac_cv_c_itkconfig}" = x
; then
6521 ${srcdir}/..
/itcl
/itk \
6522 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6523 if test -f "$i/itkConfig.sh" ; then
6524 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6532 if test x
"${ac_cv_c_itkconfig}" = x
; then
6533 ITKCONFIG
="# no Itk configs found"
6534 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6537 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
6538 echo "$ac_t""found $ITKCONFIG" 1>&6
6543 if test -z "${no_itcl}"; then
6545 if test -f "$ITKCONFIG" ; then
6562 itkdir
=..
/itcl
/itk
/win
/
6565 itkdir
=..
/itcl
/itk
/unix
/
6569 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
6570 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
6573 # now look for Tix library stuff
6576 # Ok, lets find the tix configuration
6577 # First, look for one uninstalled.
6578 # the alternative search directory is invoked by --with-itkconfig
6581 if test x
"${no_tix}" = x
; then
6582 # we reset no_tix in case something fails here
6584 # Check whether --with-tixconfig or --without-tixconfig was given.
6585 if test "${with_tixconfig+set}" = set; then
6586 withval
="$with_tixconfig"
6587 with_tixconfig
=${withval}
6590 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6591 echo "configure:6592: checking for Tix configuration" >&5
6592 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6597 # First check to see if --with-tixconfig was specified.
6598 if test x
"${with_tixconfig}" != x
; then
6599 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6600 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
6602 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6606 # then check for a private Tix library
6607 if test x
"${ac_cv_c_tixconfig}" = x
; then
6610 `ls -dr ../tix 2>/dev/null` \
6612 `ls -dr ../../tix 2>/dev/null` \
6614 `ls -dr ../../../tix 2>/dev/null` ; do
6615 echo "**** Looking at $i - with ${configdir}"
6616 if test -f "$i/tixConfig.sh" ; then
6617 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6622 # check in a few common install locations
6623 if test x
"${ac_cv_c_tixconfig}" = x
; then
6624 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6625 echo "**** Looking at $i"
6626 if test -f "$i/tixConfig.sh" ; then
6627 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6632 # check in a few other private locations
6633 echo "**** Other private locations"
6634 if test x
"${ac_cv_c_tixconfig}" = x
; then
6637 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6638 echo "**** Looking at $i - with ${configdir}"
6639 if test -f "$i/${configdir}/tixConfig.sh" ; then
6640 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
6648 if test x
"${ac_cv_c_tixconfig}" = x
; then
6649 TIXCONFIG
="# no Tix configs found"
6650 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6653 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
6654 echo "$ac_t""found $TIXCONFIG" 1>&6
6659 if test -z "${no_tix}"; then
6661 if test -f "$TIXCONFIG" ; then
6672 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
6673 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
6677 ENABLE_CFLAGS
="$ENABLE_CFLAGS -DGDBTK"
6678 # Tcl/Tk 8.1 require -fwritable strings. I don't
6679 # know whether 8.2 will or not, but I bet it will.
6680 # I don't have to worry about 7.x since we don't support it.
6682 if test "$GCC" = "yes"; then
6683 if test "$TCL_VERSION" != "8.0" ; then
6684 GDBTK_CFLAGS
="-fwritable-strings"
6688 # Include some libraries that Tcl and Tk want.
6689 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6690 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6691 # Yes, the ordering seems wrong here. But it isn't.
6692 # TK_LIBS is the list of libraries that need to be linked
6693 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6694 # were in LIBS then any link tests after this point would
6695 # try to include things like `$(LIBGUI)', which wouldn't work.
6696 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
6697 CONFIG_SRCS
="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
6698 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
6699 CONFIG_INITS
="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
6701 if test x
$gdb_cv_os_cygwin = xyes
; then
6702 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
6703 WIN32LDAPP
="-Wl,--subsystem,console"
6704 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
6723 # If we find X, set shell vars x_includes and x_libraries to the
6724 # paths, otherwise set no_x=yes.
6725 # Uses ac_ vars as temps to allow command line to override cache and checks.
6726 # --without-x overrides everything else, but does not touch the cache.
6727 echo $ac_n "checking for X""... $ac_c" 1>&6
6728 echo "configure:6729: checking for X" >&5
6730 # Check whether --with-x or --without-x was given.
6731 if test "${with_x+set}" = set; then
6736 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6737 if test "x$with_x" = xno
; then
6738 # The user explicitly disabled X.
6741 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6742 # Both variables are already set.
6745 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 # One or both of the vars are not set, and there is no cached value.
6749 ac_x_includes
=NO ac_x_libraries
=NO
6751 if mkdir conftestdir
; then
6753 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6754 cat > Imakefile
<<'EOF'
6756 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6758 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6759 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6760 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6761 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6762 for ac_extension
in a so sl
; do
6763 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6764 test -f $ac_im_libdir/libX11.
$ac_extension; then
6765 ac_im_usrlibdir
=$ac_im_libdir; break
6768 # Screen out bogus values from the imake configuration. They are
6769 # bogus both because they are the default anyway, and because
6770 # using them would break gcc on systems where it needs fixed includes.
6771 case "$ac_im_incroot" in
6773 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
6775 case "$ac_im_usrlibdir" in
6777 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
6784 if test "$ac_x_includes" = NO
; then
6785 # Guess where to find include files, by looking for this one X11 .h file.
6786 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
6788 # First, try using that file with no special directory specified.
6789 cat > conftest.
$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6792 #include <$x_direct_test_include>
6794 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6795 { (eval echo configure
:6796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6796 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6797 if test -z "$ac_err"; then
6799 # We can compile using X headers with no special include directory.
6803 echo "configure: failed program was:" >&5
6804 cat conftest.
$ac_ext >&5
6806 # Look for the header file in a standard set of common directories.
6807 # Check X11 before X11Rn because it is often a symlink to the current release.
6810 /usr
/X11R
6/include \
6811 /usr
/X11R
5/include \
6812 /usr
/X11R
4/include \
6815 /usr
/include
/X11R6 \
6816 /usr
/include
/X11R5 \
6817 /usr
/include
/X11R4 \
6819 /usr
/local
/X11
/include \
6820 /usr
/local
/X11R
6/include \
6821 /usr
/local
/X11R
5/include \
6822 /usr
/local
/X11R
4/include \
6824 /usr
/local
/include
/X11 \
6825 /usr
/local
/include
/X11R6 \
6826 /usr
/local
/include
/X11R5 \
6827 /usr
/local
/include
/X11R4 \
6831 /usr
/XFree86
/include
/X11 \
6834 /usr
/local
/include \
6835 /usr
/unsupported
/include \
6836 /usr
/athena
/include \
6837 /usr
/local
/x11r
5/include \
6838 /usr
/lpp
/Xamples
/include \
6840 /usr
/openwin
/include \
6841 /usr
/openwin
/share
/include \
6844 if test -r "$ac_dir/$x_direct_test_include"; then
6845 ac_x_includes
=$ac_dir
6851 fi # $ac_x_includes = NO
6853 if test "$ac_x_libraries" = NO
; then
6854 # Check for the libraries.
6856 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
6857 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
6859 # See if we find them without any special options.
6860 # Don't add to $LIBS permanently.
6861 ac_save_LIBS
="$LIBS"
6862 LIBS
="-l$x_direct_test_library $LIBS"
6863 cat > conftest.
$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6868 ${x_direct_test_function}()
6871 if { (eval echo configure
:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6873 LIBS
="$ac_save_LIBS"
6874 # We can link X programs with no special library path.
6877 echo "configure: failed program was:" >&5
6878 cat conftest.
$ac_ext >&5
6880 LIBS
="$ac_save_LIBS"
6881 # First see if replacing the include by lib works.
6882 # Check X11 before X11Rn because it is often a symlink to the current release.
6883 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
6894 /usr
/local
/X11
/lib \
6895 /usr
/local
/X11R
6/lib \
6896 /usr
/local
/X11R
5/lib \
6897 /usr
/local
/X11R
4/lib \
6899 /usr
/local
/lib
/X11 \
6900 /usr
/local
/lib
/X11R6 \
6901 /usr
/local
/lib
/X11R5 \
6902 /usr
/local
/lib
/X11R4 \
6906 /usr
/XFree86
/lib
/X11 \
6910 /usr
/unsupported
/lib \
6912 /usr
/local
/x11r
5/lib \
6913 /usr
/lpp
/Xamples
/lib \
6917 /usr
/openwin
/share
/lib \
6920 for ac_extension
in a so sl
; do
6921 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
6922 ac_x_libraries
=$ac_dir
6929 fi # $ac_x_libraries = NO
6931 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
6932 # Didn't find X anywhere. Cache the known absence of X.
6933 ac_cv_have_x
="have_x=no"
6935 # Record where we found X for the cache.
6936 ac_cv_have_x
="have_x=yes \
6937 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6941 eval "$ac_cv_have_x"
6944 if test "$have_x" != yes; then
6945 echo "$ac_t""$have_x" 1>&6
6948 # If each of the values was on the command line, it overrides each guess.
6949 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6950 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6951 # Update the cache value to reflect the command line values.
6952 ac_cv_have_x
="have_x=yes \
6953 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6954 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6959 # Unlike the sim directory, whether a simulator is linked is controlled by
6960 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
6961 # This code just checks for a few cases where we'd like to ignore those
6962 # definitions, even when they're present in the '.mt' file. These cases
6963 # are when --disable-sim is specified, or if the simulator directory is
6964 # not part of the soruce tree.
6966 # Check whether --enable-sim or --disable-sim was given.
6967 if test "${enable_sim+set}" = set; then
6968 enableval
="$enable_sim"
6969 echo "enable_sim = $enable_sim";
6970 echo "enableval = ${enableval}";
6971 case "${enableval}" in
6972 yes) ignore_sim
=false
;;
6973 no
) ignore_sim
=true
;;
6974 *) ignore_sim
=false
;;
6981 if test ! -d "${srcdir}/../sim"; then
6985 if test "${ignore_sim}" = "true"; then
6987 IGNORE_SIM_OBS
="SIM_OBS="
6991 cat >> confdefs.h
<<\EOF
7006 # Begin stuff to support --enable-shared
7007 # Check whether --enable-shared or --disable-shared was given.
7008 if test "${enable_shared+set}" = set; then
7009 enableval
="$enable_shared"
7010 case "${enableval}" in
7019 # If we have shared libraries, try to set rpath reasonably.
7020 if test "${shared}" = "true"; then
7023 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
7025 *-*-irix5* |
*-*-irix6*)
7026 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7030 *-*-linux* |
*-pc-linux-gnu)
7031 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7034 HLDFLAGS
='-R $(libdir)'
7037 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;'
7042 # On SunOS, if the linker supports the -rpath option, use it to
7043 # prevent ../bfd and ../opcodes from being included in the run time
7047 echo 'main () { }' > conftest.c
7048 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
7049 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
7051 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
7053 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
7055 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
7057 elif test "${shared}" = "true"; then
7058 HLDFLAGS
='-Wl,-rpath=$(libdir)'
7060 HLDFLAGS
='-Wl,-rpath='
7062 rm -f conftest.t conftest.c conftest
7067 # End stuff to support --enable-shared
7069 # target_subdir is used by the testsuite to find the target libraries.
7071 if test "${host}" != "${target}"; then
7072 target_subdir
="${target_alias}/"
7077 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7078 if test ! -f ${host_makefile_frag}; then
7079 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
7081 frags
="$frags $host_makefile_frag"
7083 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7084 if test ! -f ${target_makefile_frag}; then
7085 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
7087 frags
="$frags $target_makefile_frag"
7094 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7095 ' ${host_makefile_frag}`
7097 targetfile
=`sed -n '
7098 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7099 ' ${target_makefile_frag}`
7101 # these really aren't orthogonal true/false values of the same condition,
7102 # but shells are slow enough that I like to reuse the test conditions
7104 if test "${target}" = "${host}"; then
7105 nativefile
=`sed -n '
7106 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7107 ' ${host_makefile_frag}`
7109 # GDBserver is only useful in a "native" enviroment
7110 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7114 SUBDIRS
="doc testsuite nlm"
7115 if test "${enable_multi_ice}" = "yes"; then
7116 SUBDIRS
="${SUBDIRS} multi-ice"
7121 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7122 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
7123 # corresponding links. But we have to remove the xm.h files and tm.h
7124 # files anyway, e.g. when switching from "configure host" to
7130 if test "${hostfile}" != ""; then
7131 files
="${files} config/${gdb_host_cpu}/${hostfile}"
7132 links
="${links} xm.h"
7135 if test "${targetfile}" != ""; then
7136 files
="${files} config/${gdb_target_cpu}/${targetfile}"
7137 links
="${links} tm.h"
7140 if test "${nativefile}" != ""; then
7141 files
="${files} config/${gdb_host_cpu}/${nativefile}"
7142 links
="${links} nm.h"
7144 # A cross-only configuration.
7145 files
="${files} config/nm-empty.h"
7146 links
="${links} nm.h"
7148 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7149 echo "configure:7150: checking whether ln -s works" >&5
7150 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7154 if ln -s X conftestdata
2>/dev
/null
7157 ac_cv_prog_LN_S
="ln -s"
7162 LN_S
="$ac_cv_prog_LN_S"
7163 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7164 echo "$ac_t""yes" 1>&6
7166 echo "$ac_t""no" 1>&6
7169 # Make it possible to use the GUI without doing a full install
7170 if test "${enable_gdbtk}" = "yes" ; then
7171 if test "$LN_S" = "ln -s" -a ! -f gdbtcl
; then
7172 echo linking
$srcdir/gdbtk
/library to gdbtcl
7173 $LN_S $srcdir/gdbtk
/library gdbtcl
7175 echo Warning
: Unable to link
$srcdir/gdbtk
/library to gdbtcl. You will need to
do a
7176 echo " " make install before you are able to run the GUI.
7182 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7183 echo "configure:7184: checking for Cygwin environment" >&5
7184 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7185 echo $ac_n "(cached) $ac_c" 1>&6
7187 cat > conftest.
$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7194 #define __CYGWIN__ __CYGWIN32__
7199 if { (eval echo configure
:7200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7203 echo "configure: failed program was:" >&5
7204 cat conftest.
$ac_ext >&5
7212 echo "$ac_t""$ac_cv_cygwin" 1>&6
7214 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
7215 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7216 echo "configure:7217: checking for mingw32 environment" >&5
7217 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7218 echo $ac_n "(cached) $ac_c" 1>&6
7220 cat > conftest.
$ac_ext <<EOF
7221 #line 7222 "configure"
7222 #include "confdefs.h"
7228 if { (eval echo configure
:7229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7232 echo "configure: failed program was:" >&5
7233 cat conftest.
$ac_ext >&5
7241 echo "$ac_t""$ac_cv_mingw32" 1>&6
7243 test "$ac_cv_mingw32" = yes && MINGW32
=yes
7246 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7247 echo "configure:7248: checking for executable suffix" >&5
7248 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7249 echo $ac_n "(cached) $ac_c" 1>&6
7251 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
7255 echo 'int main () { return 0; }' > conftest.
$ac_ext
7257 if { (eval echo configure
:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7258 for file in conftest.
*; do
7260 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
7261 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
7265 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7268 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
7273 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
7274 echo "$ac_t""${ac_cv_exeext}" 1>&6
7278 subdirs
="$configdirs"
7281 cat > confcache
<<\EOF
7282 # This file is a shell script that caches the results of configure
7283 # tests run on this system so they can be shared between configure
7284 # scripts and configure runs. It is not useful on other systems.
7285 # If it contains results you don't want to keep, you may remove or edit it.
7287 # By default, configure uses ./config.cache as the cache file,
7288 # creating it if it does not exist already. You can give configure
7289 # the --cache-file=FILE option to use a different cache file; that is
7290 # what configure does when it calls configure scripts in
7291 # subdirectories, so they share the cache.
7292 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7293 # config.status only pays attention to the cache file if you give it the
7294 # --recheck option to rerun configure.
7297 # The following way of writing the cache mishandles newlines in values,
7298 # but we know of no workaround that is simple, portable, and efficient.
7299 # So, don't put newlines in cache variables' values.
7300 # Ultrix sh set writes to stderr and can't be redirected directly,
7301 # and sets the high bit in the cache file unless we assign to the vars.
7303 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7305 # `set' does not quote correctly, so add quotes (double-quote substitution
7306 # turns \\\\ into \\, and sed turns \\ into \).
7308 -e "s/'/'\\\\''/g" \
7309 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7312 # `set' quotes correctly as required by POSIX, so do not add quotes.
7313 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7316 if cmp -s $cache_file confcache
; then
7319 if test -w $cache_file; then
7320 echo "updating cache $cache_file"
7321 cat confcache
> $cache_file
7323 echo "not updating unwritable cache $cache_file"
7328 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7330 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7331 # Let make expand exec_prefix.
7332 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7334 # Any assignment to VPATH causes Sun make to only execute
7335 # the first set of double-colon rules, so remove it if not needed.
7336 # If there is a colon in the path, we need to keep it.
7337 if test "x$srcdir" = x.
; then
7338 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7341 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7343 DEFS
=-DHAVE_CONFIG_H
7345 # Without the "./", some shells look in PATH for config.status.
7346 : ${CONFIG_STATUS=./config.status}
7348 echo creating
$CONFIG_STATUS
7349 rm -f $CONFIG_STATUS
7350 cat > $CONFIG_STATUS <<EOF
7352 # Generated automatically by configure.
7353 # Run this file to recreate the current configuration.
7354 # This directory was configured as follows,
7355 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7357 # $0 $ac_configure_args
7359 # Compiler output produced by configure, useful for debugging
7360 # configure, is in ./config.log if it exists.
7362 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7365 case "\$ac_option" in
7366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7367 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7368 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7369 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7370 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7372 -help | --help | --hel | --he | --h)
7373 echo "\$ac_cs_usage"; exit 0 ;;
7374 *) echo "\$ac_cs_usage"; exit 1 ;;
7378 ac_given_srcdir=$srcdir
7379 ac_given_INSTALL="$INSTALL"
7381 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7383 cat >> $CONFIG_STATUS <<EOF
7385 # Protect against being on the right side of a sed subst in config.status.
7386 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7387 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7391 s%@CFLAGS@%$CFLAGS%g
7392 s%@CPPFLAGS@%$CPPFLAGS%g
7393 s%@CXXFLAGS@%$CXXFLAGS%g
7394 s%@FFLAGS@%$FFLAGS%g
7396 s%@LDFLAGS@%$LDFLAGS%g
7398 s%@exec_prefix@%$exec_prefix%g
7399 s%@prefix@%$prefix%g
7400 s%@program_transform_name@%$program_transform_name%g
7401 s%@bindir@%$bindir%g
7402 s%@sbindir@%$sbindir%g
7403 s%@libexecdir@%$libexecdir%g
7404 s%@datadir@%$datadir%g
7405 s%@sysconfdir@%$sysconfdir%g
7406 s%@sharedstatedir@%$sharedstatedir%g
7407 s%@localstatedir@%$localstatedir%g
7408 s%@libdir@%$libdir%g
7409 s%@includedir@%$includedir%g
7410 s%@oldincludedir@%$oldincludedir%g
7411 s%@infodir@%$infodir%g
7412 s%@mandir@%$mandir%g
7416 s%@host_alias@%$host_alias%g
7417 s%@host_cpu@%$host_cpu%g
7418 s%@host_vendor@%$host_vendor%g
7419 s%@host_os@%$host_os%g
7420 s%@target@%$target%g
7421 s%@target_alias@%$target_alias%g
7422 s%@target_cpu@%$target_cpu%g
7423 s%@target_vendor@%$target_vendor%g
7424 s%@target_os@%$target_os%g
7426 s%@build_alias@%$build_alias%g
7427 s%@build_cpu@%$build_cpu%g
7428 s%@build_vendor@%$build_vendor%g
7429 s%@build_os@%$build_os%g
7430 s%@SET_MAKE@%$SET_MAKE%g
7431 s%@RANLIB@%$RANLIB%g
7432 s%@ALLOCA@%$ALLOCA%g
7433 s%@USE_NLS@%$USE_NLS%g
7434 s%@MSGFMT@%$MSGFMT%g
7435 s%@GMSGFMT@%$GMSGFMT%g
7436 s%@XGETTEXT@%$XGETTEXT%g
7437 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7438 s%@CATALOGS@%$CATALOGS%g
7439 s%@CATOBJEXT@%$CATOBJEXT%g
7440 s%@DATADIRNAME@%$DATADIRNAME%g
7441 s%@GMOFILES@%$GMOFILES%g
7442 s%@INSTOBJEXT@%$INSTOBJEXT%g
7443 s%@INTLDEPS@%$INTLDEPS%g
7444 s%@INTLLIBS@%$INTLLIBS%g
7445 s%@INTLOBJS@%$INTLOBJS%g
7446 s%@POFILES@%$POFILES%g
7448 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7450 s%@GT_YES@%$GT_YES%g
7451 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7454 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7455 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7456 s%@INSTALL_DATA@%$INSTALL_DATA%g
7459 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
7460 s%@BUILD_TUI@%$BUILD_TUI%g
7461 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
7462 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7463 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
7464 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
7465 s%@MMALLOC@%$MMALLOC%g
7466 s%@DLLTOOL@%$DLLTOOL%g
7467 s%@WINDRES@%$WINDRES%g
7468 s%@TERM_LIB@%$TERM_LIB%g
7469 s%@WIN32LIBS@%$WIN32LIBS%g
7470 s%@LIBGUI@%$LIBGUI%g
7471 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7472 s%@WIN32LDAPP@%$WIN32LDAPP%g
7473 s%@TCL_VERSION@%$TCL_VERSION%g
7474 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7475 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7476 s%@TCL_CC@%$TCL_CC%g
7477 s%@TCL_DEFS@%$TCL_DEFS%g
7478 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7479 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7480 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7481 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7482 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7483 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7484 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7485 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7486 s%@TCL_RANLIB@%$TCL_RANLIB%g
7487 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7488 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7489 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7490 s%@TK_VERSION@%$TK_VERSION%g
7491 s%@TK_DEFS@%$TK_DEFS%g
7492 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7493 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7494 s%@TK_XLIBSW@%$TK_XLIBSW%g
7495 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7496 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7497 s%@TCLHDIR@%$TCLHDIR%g
7498 s%@TKHDIR@%$TKHDIR%g
7499 s%@ITCLHDIR@%$ITCLHDIR%g
7500 s%@ITKHDIR@%$ITKHDIR%g
7501 s%@TIXHDIR@%$TIXHDIR%g
7502 s%@ITCL_VERSION@%$ITCL_VERSION%g
7503 s%@ITCL_DEFS@%$ITCL_DEFS%g
7504 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7505 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7506 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7507 s%@ITK_VERSION@%$ITK_VERSION%g
7508 s%@ITK_DEFS@%$ITK_DEFS%g
7509 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7510 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7511 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7512 s%@TIX_VERSION@%$TIX_VERSION%g
7513 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7514 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
7515 s%@X_CFLAGS@%$X_CFLAGS%g
7516 s%@X_LDFLAGS@%$X_LDFLAGS%g
7517 s%@X_LIBS@%$X_LIBS%g
7518 s%@ITCLLIB@%$ITCLLIB%g
7519 s%@ITCL_DEPS@%$ITCL_DEPS%g
7520 s%@ITKLIB@%$ITKLIB%g
7521 s%@ITK_DEPS@%$ITK_DEPS%g
7522 s%@TIXLIB@%$TIXLIB%g
7523 s%@TIX_DEPS@%$TIX_DEPS%g
7524 s%@GDBTKLIBS@%$GDBTKLIBS%g
7525 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7526 s%@IGNORE_SIM@%$IGNORE_SIM%g
7527 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
7528 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7529 s%@CONFIG_OBS@%$CONFIG_OBS%g
7530 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7531 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7532 s%@CONFIG_INITS@%$CONFIG_INITS%g
7533 s%@HLDFLAGS@%$HLDFLAGS%g
7534 s%@HLDENV@%$HLDENV%g
7535 s%@target_subdir@%$target_subdir%g
7536 /@host_makefile_frag@/r $host_makefile_frag
7537 s%@host_makefile_frag@%%g
7538 /@target_makefile_frag@/r $target_makefile_frag
7539 s%@target_makefile_frag@%%g
7541 s%@SUBDIRS@%$SUBDIRS%g
7543 s%@EXEEXT@%$EXEEXT%g
7544 s%@subdirs@%$subdirs%g
7549 cat >> $CONFIG_STATUS <<\EOF
7551 # Split the substitutions into bite-sized pieces for seds with
7552 # small command number limits, like on Digital OSF/1 and HP-UX.
7553 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7554 ac_file
=1 # Number of current file.
7555 ac_beg
=1 # First line for current file.
7556 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7559 while $ac_more_lines; do
7560 if test $ac_beg -gt 1; then
7561 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7563 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7565 if test ! -s conftest.s
$ac_file; then
7567 rm -f conftest.s
$ac_file
7569 if test -z "$ac_sed_cmds"; then
7570 ac_sed_cmds
="sed -f conftest.s$ac_file"
7572 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7574 ac_file
=`expr $ac_file + 1`
7576 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7579 if test -z "$ac_sed_cmds"; then
7584 cat >> $CONFIG_STATUS <<EOF
7586 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
7588 cat >> $CONFIG_STATUS <<\EOF
7589 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7590 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7592 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7593 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7594 *) ac_file_in
="${ac_file}.in" ;;
7597 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7599 # Remove last slash and all that follows it. Not all systems have dirname.
7600 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7601 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7602 # The file is in a subdirectory.
7603 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7604 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7605 # A "../" for each directory in $ac_dir_suffix.
7606 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7608 ac_dir_suffix
= ac_dots
=
7611 case "$ac_given_srcdir" in
7613 if test -z "$ac_dots"; then top_srcdir
=.
7614 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7615 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7617 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7618 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7621 case "$ac_given_INSTALL" in
7622 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7623 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7626 echo creating
"$ac_file"
7628 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7630 *Makefile
*) ac_comsub
="1i\\
7631 # $configure_input" ;;
7635 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7637 s%@configure_input@%$configure_input%g
7638 s%@srcdir@%$srcdir%g
7639 s%@top_srcdir@%$top_srcdir%g
7640 s%@INSTALL@%$INSTALL%g
7641 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7645 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7646 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7648 # ac_d sets the value in "#define NAME VALUE" lines.
7649 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7650 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7653 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7654 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7655 ac_uB
='\([ ]\)%\1#\2define\3'
7658 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7659 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7660 ac_eB
='$%\1#\2define\3'
7664 if test "${CONFIG_HEADERS+set}" != set; then
7666 cat >> $CONFIG_STATUS <<EOF
7667 CONFIG_HEADERS="config.h:config.in"
7669 cat >> $CONFIG_STATUS <<\EOF
7671 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7672 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7674 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7675 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7676 *) ac_file_in
="${ac_file}.in" ;;
7679 echo creating
$ac_file
7681 rm -f conftest.frag conftest.
in conftest.out
7682 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7683 cat $ac_file_inputs > conftest.
in
7687 # Transform confdefs.h into a sed script conftest.vals that substitutes
7688 # the proper values into config.h.in to produce config.h. And first:
7689 # Protect against being on the right side of a sed subst in config.status.
7690 # Protect against being in an unquoted here document in config.status.
7692 cat > conftest.hdr
<<\EOF
7695 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7699 sed -n -f conftest.hdr confdefs.h > conftest.vals
7702 # This sed command replaces #undef with comments. This is necessary, for
7703 # example, in the case of _POSIX_SOURCE, which is predefined and required
7704 # on some systems where configure will not decide to define it.
7705 cat >> conftest.vals <<\EOF
7706 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7709 # Break up conftest.vals because some shells have a limit on
7710 # the size of here documents, and old seds have small limits too.
7715 ac_lines=`grep -c . conftest.vals
`
7716 # grep -c gives empty output for an empty file on some AIX systems.
7717 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7718 # Write a limited-size here document to conftest.frag.
7719 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7720 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7722 sed -f conftest.frag conftest.in > conftest.out
7724 mv conftest.out conftest.in
7726 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7728 mv conftest.tail conftest.vals
7732 cat >> $CONFIG_STATUS <<\EOF
7733 rm -f conftest.frag conftest.h
7734 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7735 cat conftest.in >> conftest.h
7737 if cmp -s $ac_file conftest.h 2>/dev/null; then
7738 echo "$ac_file is unchanged"
7741 # Remove last slash and all that follows it. Not all systems have dirname.
7742 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7743 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7744 # The file is in a subdirectory.
7745 test ! -d "$ac_dir" && mkdir "$ac_dir"
7748 mv conftest.h $ac_file
7754 cat >> $CONFIG_STATUS <<EOF
7759 cat >> $CONFIG_STATUS <<\EOF
7760 srcdir=$ac_given_srcdir
7761 while test -n "$ac_sources"; do
7762 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7763 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7765 echo "linking $srcdir/$ac_source to $ac_dest"
7767 if test ! -r $srcdir/$ac_source; then
7768 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7772 # Make relative symlinks.
7773 # Remove last slash and all that follows it. Not all systems have dirname.
7774 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7775 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7776 # The dest file is in a subdirectory.
7777 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7778 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7779 # A "../" for each directory in $ac_dest_dir_suffix.
7780 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7782 ac_dest_dir_suffix= ac_dots=
7786 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7787 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7790 # Make a symlink if possible; otherwise try a hard link.
7791 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7792 ln $srcdir/$ac_source $ac_dest; then :
7794 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7798 cat >> $CONFIG_STATUS <<EOF
7800 gdb_host_cpu=$gdb_host_cpu
7801 gdb_target_cpu=$gdb_target_cpu
7802 nativefile=$nativefile
7805 cat >> $CONFIG_STATUS <<\EOF
7807 if test "${nativefile}" = ""; then
7808 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
7809 < Makefile > Makefile.tem
7810 mv -f Makefile.tem Makefile
7813 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
7814 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
7815 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
7816 mv -f Makefile.tmp Makefile
7819 case x$CONFIG_HEADERS in
7820 xconfig.h:config.in)
7826 chmod +x $CONFIG_STATUS
7827 rm -fr confdefs* $ac_clean_files
7828 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7830 if test "$no_recursion" != yes; then
7832 # Remove --cache-file and --srcdir arguments so they do not pile up.
7833 ac_sub_configure_args=
7835 for ac_arg in $ac_configure_args; do
7836 if test -n "$ac_prev"; then
7841 -cache-file | --cache-file | --cache-fil | --cache-fi \
7842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7843 ac_prev=cache_file ;;
7844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7847 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7849 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7851 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7855 for ac_config_dir in $configdirs; do
7857 # Do not complain, so a configure script can configure whichever
7858 # parts of a large source tree are present.
7859 if test ! -d $srcdir/$ac_config_dir; then
7863 echo configuring in $ac_config_dir
7868 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7870 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7878 # A "../" for each directory in /$ac_config_dir.
7879 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7882 .) # No --srcdir option. We are building in place.
7883 ac_sub_srcdir=$srcdir ;;
7884 /*) # Absolute path.
7885 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7887 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7890 # Check for guested configure; otherwise get Cygnus style configure.
7891 if test -f $ac_sub_srcdir/configure; then
7892 ac_sub_configure=$ac_sub_srcdir/configure
7893 elif test -f $ac_sub_srcdir/configure.in; then
7894 ac_sub_configure=$ac_configure
7896 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7900 # The recursion is here.
7901 if test -n "$ac_sub_configure"; then
7903 # Make the cache file name correct relative to the subdirectory.
7904 case "$cache_file" in
7905 /*) ac_sub_cache_file=$cache_file ;;
7907 ac_sub_cache_file="$ac_dots$cache_file" ;;
7909 case "$ac_given_INSTALL" in
7910 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7911 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7914 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7915 # The eval makes quoting arguments work.
7916 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7919 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }