3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
19 --enable-multi-ice Build the multi-ice-gdb-server"
21 --enable-tui Enable full-screen terminal user interface"
23 --enable-netrom Enable NetROM support"
25 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
27 --with-mmalloc Use memory mapped malloc package"
29 --enable-carp Configure alternative readaptive paradigm "
31 --enable-targets Alternative target configurations"
33 --enable-ide Enable IDE support"
35 --with-foundry-libs=DIR Use the Foundry SDK in DIR"
37 --with-cpu=CPU Set the default CPU variant to debug"
39 --enable-gdbtk Enable GDBTK GUI front end"
41 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
43 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
45 --with-tclinclude=DIR Directory where tcl private headers are"
47 --with-tkinclude=DIR Directory where tk private headers are"
49 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
51 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
53 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
55 --with-x use the X Window System"
57 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
59 --with-sim-funit=DIR Use target FP lib under given DIR"
61 --enable-sim Link gdb with simulator"
63 --enable-shared Use shared libraries"
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file=./config.cache
78 program_transform_name=s,x,x,
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
100 # Initialize some other variables.
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
119 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 # Accept the important Cygnus configure options, so we can diagnose typos.
127 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130 bindir="$ac_optarg" ;;
132 -build | --build | --buil | --bui | --bu)
134 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135 build="$ac_optarg" ;;
137 -cache-file | --cache-file | --cache-fil | --cache-fi \
138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139 ac_prev=cache_file ;;
140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142 cache_file="$ac_optarg" ;;
144 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 datadir="$ac_optarg" ;;
150 -disable-* | --disable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* | --enable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174 | --exec | --exe | --ex)
175 ac_prev=exec_prefix ;;
176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178 | --exec=* | --exe=* | --ex=*)
179 exec_prefix="$ac_optarg" ;;
181 -gas | --gas | --ga | --g)
182 # Obsolete; use --with-gas.
185 -help | --help | --hel | --he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --site-file=FILE use FILE as the site file
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host | --host | --hos | --ho)
243 -host=* | --host=* | --hos=* | --ho=*)
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
258 -libdir | --libdir | --libdi | --libd)
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 sbindir="$ac_optarg" ;;
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 sharedstatedir="$ac_optarg" ;;
362 -site | --site | --sit)
364 -site=* | --site=* | --sit=*)
367 -site-file | --site-file | --site-fil | --site-fi | --site-f)
369 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
370 sitefile="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=main.c
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$sitefile"; then
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE; then
540 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 CONFIG_SITE="$sitefile"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='\c' ac_t=
587 # Extract the first word of "gcc", so it can be a program name with args.
588 set dummy gcc; ac_word=$2
589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
590 echo "configure:591: checking for $ac_word" >&5
591 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 if test -n "$CC"; then
595 ac_cv_prog_CC="$CC" # Let the user override the test.
597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
599 for ac_dir in $ac_dummy; do
600 test -z "$ac_dir" && ac_dir=.
601 if test -f $ac_dir/$ac_word; then
610 if test -n "$CC"; then
611 echo "$ac_t""$CC" 1>&6
613 echo "$ac_t""no" 1>&6
616 if test -z "$CC"; then
617 # Extract the first word of "cc", so it can be a program name with args.
618 set dummy cc; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 if test -n "$CC"; then
625 ac_cv_prog_CC="$CC" # Let the user override the test.
627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
630 for ac_dir in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
633 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
642 if test $ac_prog_rejected = yes; then
643 # We found a bogon in the path, so make sure we never use it.
644 set dummy $ac_cv_prog_CC
646 if test $# -gt 0; then
647 # We chose a different compiler from the bogus one.
648 # However, it has the same basename, so the bogon will be chosen
649 # first if we set CC to just the basename; use the full file name.
651 set dummy "$ac_dir/$ac_word" "$@"
659 if test -n "$CC"; then
660 echo "$ac_t""$CC" 1>&6
662 echo "$ac_t""no" 1>&6
665 if test -z "$CC"; then
668 # Extract the first word of "cl", so it can be a program name with args.
669 set dummy cl; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
680 for ac_dir in $ac_dummy; do
681 test -z "$ac_dir" && ac_dir=.
682 if test -f $ac_dir/$ac_word; then
691 if test -n "$CC"; then
692 echo "$ac_t""$CC" 1>&6
694 echo "$ac_t""no" 1>&6
699 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
703 echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
707 ac_cpp='$CPP $CPPFLAGS'
708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
710 cross_compiling=$ac_cv_prog_cc_cross
712 cat > conftest.$ac_ext << EOF
714 #line 715 "configure"
715 #include "confdefs.h"
719 if { (eval echo configure:720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
720 ac_cv_prog_cc_works=yes
721 # If we can't run a trivial program, we are probably using a cross compiler.
722 if (./conftest; exit) 2>/dev/null; then
723 ac_cv_prog_cc_cross=no
725 ac_cv_prog_cc_cross=yes
728 echo "configure: failed program was:" >&5
729 cat conftest.$ac_ext >&5
730 ac_cv_prog_cc_works=no
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp='$CPP $CPPFLAGS'
736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling=$ac_cv_prog_cc_cross
740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
741 if test $ac_cv_prog_cc_works = no; then
742 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
747 cross_compiling=$ac_cv_prog_cc_cross
749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
750 echo "configure:751: checking whether we are using GNU C" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftest.c <<EOF
759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
766 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
768 if test $ac_cv_prog_gcc = yes; then
774 ac_test_CFLAGS="${CFLAGS+set}"
775 ac_save_CFLAGS="$CFLAGS"
777 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${CC-cc} accepts -g" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 echo 'void f(){}' > conftest.c
783 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
792 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
793 if test "$ac_test_CFLAGS" = set; then
794 CFLAGS="$ac_save_CFLAGS"
795 elif test $ac_cv_prog_cc_g = yes; then
796 if test "$GCC" = yes; then
802 if test "$GCC" = yes; then
809 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
810 echo "configure:811: checking how to run the C preprocessor" >&5
811 # On Suns, sometimes $CPP names a directory.
812 if test -n "$CPP" && test -d "$CPP"; then
815 if test -z "$CPP"; then
816 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 # This must be in double quotes, not single quotes, because CPP may get
820 # substituted into the Makefile and "${CC-cc}" will confuse make.
822 # On the NeXT, cc -E runs the code through the compiler's parser,
823 # not just through cpp.
824 cat > conftest.$ac_ext <<EOF
825 #line 826 "configure"
826 #include "confdefs.h"
830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831 { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
833 if test -z "$ac_err"; then
837 echo "configure: failed program was:" >&5
838 cat conftest.$ac_ext >&5
840 CPP="${CC-cc} -E -traditional-cpp"
841 cat > conftest.$ac_ext <<EOF
842 #line 843 "configure"
843 #include "confdefs.h"
847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
848 { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
850 if test -z "$ac_err"; then
854 echo "configure: failed program was:" >&5
855 cat conftest.$ac_ext >&5
857 CPP="${CC-cc} -nologo -E"
858 cat > conftest.$ac_ext <<EOF
859 #line 860 "configure"
860 #include "confdefs.h"
864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
865 { (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
867 if test -z "$ac_err"; then
871 echo "configure: failed program was:" >&5
872 cat conftest.$ac_ext >&5
881 ac_cv_prog_CPP="$CPP"
883 CPP="$ac_cv_prog_CPP"
885 ac_cv_prog_CPP="$CPP"
887 echo "$ac_t""$CPP" 1>&6
889 echo $ac_n "checking for AIX""... $ac_c" 1>&6
890 echo "configure:891: checking for AIX" >&5
891 cat > conftest.$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
900 egrep "yes" >/dev/null 2>&1; then
902 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
903 #define _ALL_SOURCE 1
908 echo "$ac_t""no" 1>&6
913 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
914 echo "configure:915: checking for POSIXized ISC" >&5
915 if test -d /etc/conf/kconfig.d &&
916 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
918 echo "$ac_t""yes" 1>&6
919 ISC=yes # If later tests want to check for ISC.
920 cat >> confdefs.h <<\EOF
921 #define _POSIX_SOURCE 1
924 if test "$GCC" = yes; then
930 echo "$ac_t""no" 1>&6
937 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
938 echo "configure:939: checking for ${CC-cc} option to accept ANSI C" >&5
939 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 am_cv_prog_cc_stdc=no
944 # Don't try gcc -ansi; that turns off useful extensions and
945 # breaks some systems' header files.
947 # Ultrix and OSF/1 -std1
948 # HP-UX -Aa -D_HPUX_SOURCE
949 # SVR4 -Xc -D__EXTENSIONS__
950 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
952 CC="$ac_save_CC $ac_arg"
953 cat > conftest.$ac_ext <<EOF
954 #line 955 "configure"
955 #include "confdefs.h"
958 #include <sys/types.h>
959 #include <sys/stat.h>
960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
961 struct buf { int x; };
962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
963 static char *e (p, i)
969 static char *f (char * (*g) (char **, int), char **p, ...)
974 s = g (p, va_arg (v,int));
978 int test (int i, double x);
979 struct s1 {int (*f) (int a);};
980 struct s2 {int (*f) (double a);};
981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
991 if { (eval echo configure:992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
993 am_cv_prog_cc_stdc="$ac_arg"; break
995 echo "configure: failed program was:" >&5
996 cat conftest.$ac_ext >&5
1004 if test -z "$am_cv_prog_cc_stdc"; then
1005 echo "$ac_t""none needed" 1>&6
1007 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1009 case "x$am_cv_prog_cc_stdc" in
1011 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1016 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1017 if test -f $ac_dir/install-sh; then
1019 ac_install_sh="$ac_aux_dir/install-sh -c"
1021 elif test -f $ac_dir/install.sh; then
1023 ac_install_sh="$ac_aux_dir/install.sh -c"
1027 if test -z "$ac_aux_dir"; then
1028 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1030 ac_config_guess=$ac_aux_dir/config.guess
1031 ac_config_sub=$ac_aux_dir/config.sub
1032 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1035 # Do some error checking and defaulting for the host and target type.
1037 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1040 # 1. You are not allowed to specify --host, --target, and nonopt at the
1042 # 2. Host defaults to nonopt.
1043 # 3. If nonopt is not specified, then host defaults to the current host,
1044 # as determined by config.guess.
1045 # 4. Target and build default to nonopt.
1046 # 5. If nonopt is not specified, then target and build default to host.
1048 # The aliases save the names the user supplied, while $host etc.
1049 # will get canonicalized.
1050 case $host---$target---$nonopt in
1051 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1052 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1056 # Make sure we can run config.sub.
1057 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1058 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1061 echo $ac_n "checking host system type""... $ac_c" 1>&6
1062 echo "configure:1063: checking host system type" >&5
1065 case "$host_alias" in
1069 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1070 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1072 *) host_alias=$nonopt ;;
1076 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1077 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1078 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1079 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1080 echo "$ac_t""$host" 1>&6
1082 echo $ac_n "checking target system type""... $ac_c" 1>&6
1083 echo "configure:1084: checking target system type" >&5
1085 target_alias=$target
1086 case "$target_alias" in
1089 NONE) target_alias=$host_alias ;;
1090 *) target_alias=$nonopt ;;
1094 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1095 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1096 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1097 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1098 echo "$ac_t""$target" 1>&6
1100 echo $ac_n "checking build system type""... $ac_c" 1>&6
1101 echo "configure:1102: checking build system type" >&5
1104 case "$build_alias" in
1107 NONE) build_alias=$host_alias ;;
1108 *) build_alias=$nonopt ;;
1112 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1113 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1114 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1115 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1116 echo "$ac_t""$build" 1>&6
1118 test "$host_alias" != "$target_alias" &&
1119 test "$program_prefix$program_suffix$program_transform_name" = \
1121 program_prefix=${target_alias}-
1125 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1126 echo "configure:1127: checking whether ${MAKE-make} sets \${MAKE}" >&5
1127 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1128 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 cat > conftestmake <<\EOF
1133 @echo 'ac_maketemp="${MAKE}"'
1135 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1136 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1137 if test -n "$ac_maketemp"; then
1138 eval ac_cv_prog_make_${ac_make}_set=yes
1140 eval ac_cv_prog_make_${ac_make}_set=no
1144 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1145 echo "$ac_t""yes" 1>&6
1148 echo "$ac_t""no" 1>&6
1149 SET_MAKE="MAKE=${MAKE-make}"
1152 # Extract the first word of "ranlib", so it can be a program name with args.
1153 set dummy ranlib; ac_word=$2
1154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1155 echo "configure:1156: checking for $ac_word" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 if test -n "$RANLIB"; then
1160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1164 for ac_dir in $ac_dummy; do
1165 test -z "$ac_dir" && ac_dir=.
1166 if test -f $ac_dir/$ac_word; then
1167 ac_cv_prog_RANLIB="ranlib"
1172 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1175 RANLIB="$ac_cv_prog_RANLIB"
1176 if test -n "$RANLIB"; then
1177 echo "$ac_t""$RANLIB" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1183 echo "configure:1184: checking for ANSI C header files" >&5
1184 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 cat > conftest.$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1196 { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1198 if test -z "$ac_err"; then
1200 ac_cv_header_stdc=yes
1203 echo "configure: failed program was:" >&5
1204 cat conftest.$ac_ext >&5
1206 ac_cv_header_stdc=no
1210 if test $ac_cv_header_stdc = yes; then
1211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1212 cat > conftest.$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1218 egrep "memchr" >/dev/null 2>&1; then
1222 ac_cv_header_stdc=no
1228 if test $ac_cv_header_stdc = yes; then
1229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1230 cat > conftest.$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1236 egrep "free" >/dev/null 2>&1; then
1240 ac_cv_header_stdc=no
1246 if test $ac_cv_header_stdc = yes; then
1247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1248 if test "$cross_compiling" = yes; then
1251 cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1255 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1256 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1258 int main () { int i; for (i = 0; i < 256; i++)
1259 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1263 if { (eval echo configure:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1270 ac_cv_header_stdc=no
1278 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1279 if test $ac_cv_header_stdc = yes; then
1280 cat >> confdefs.h <<\EOF
1281 #define STDC_HEADERS 1
1286 echo $ac_n "checking for working const""... $ac_c" 1>&6
1287 echo "configure:1288: checking for working const" >&5
1288 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1297 /* Ultrix mips cc rejects this. */
1298 typedef int charset[2]; const charset x;
1299 /* SunOS 4.1.1 cc rejects this. */
1300 char const *const *ccp;
1302 /* NEC SVR4.0.2 mips cc rejects this. */
1303 struct point {int x, y;};
1304 static struct point const zero = {0,0};
1305 /* AIX XL C 1.02.0.0 rejects this.
1306 It does not let you subtract one const X* pointer from another in an arm
1307 of an if-expression whose if-part is not a constant expression */
1308 const char *g = "string";
1309 ccp = &g + (g ? g-g : 0);
1310 /* HPUX 7.0 cc rejects these. */
1313 ccp = (char const *const *) p;
1314 { /* SCO 3.2v4 cc rejects this. */
1316 char const *s = 0 ? (char *) 0 : (char const *) 0;
1320 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1322 const int *foo = &x[0];
1325 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1326 typedef const int *iptr;
1330 { /* AIX XL C 1.02.0.0 rejects this saying
1331 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1332 struct s { int j; const int *ap[3]; };
1333 struct s *b; b->j = 5;
1335 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1341 if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1353 echo "$ac_t""$ac_cv_c_const" 1>&6
1354 if test $ac_cv_c_const = no; then
1355 cat >> confdefs.h <<\EOF
1361 echo $ac_n "checking for inline""... $ac_c" 1>&6
1362 echo "configure:1363: checking for inline" >&5
1363 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1367 for ac_kw in inline __inline__ __inline; do
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1376 if { (eval echo configure:1377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378 ac_cv_c_inline=$ac_kw; break
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1388 echo "$ac_t""$ac_cv_c_inline" 1>&6
1389 case "$ac_cv_c_inline" in
1391 no) cat >> confdefs.h <<\EOF
1395 *) cat >> confdefs.h <<EOF
1396 #define inline $ac_cv_c_inline
1401 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1402 echo "configure:1403: checking for off_t" >&5
1403 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 #include <sys/types.h>
1415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1416 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1418 ac_cv_type_off_t=yes
1426 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1427 if test $ac_cv_type_off_t = no; then
1428 cat >> confdefs.h <<\EOF
1434 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1435 echo "configure:1436: checking for size_t" >&5
1436 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1442 #include <sys/types.h>
1448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1449 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1451 ac_cv_type_size_t=yes
1454 ac_cv_type_size_t=no
1459 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1460 if test $ac_cv_type_size_t = no; then
1461 cat >> confdefs.h <<\EOF
1462 #define size_t unsigned
1467 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1468 # for constant arguments. Useless!
1469 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1470 echo "configure:1471: checking for working alloca.h" >&5
1471 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 cat > conftest.$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1479 char *p = alloca(2 * sizeof(int));
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1484 ac_cv_header_alloca_h=yes
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1489 ac_cv_header_alloca_h=no
1494 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1495 if test $ac_cv_header_alloca_h = yes; then
1496 cat >> confdefs.h <<\EOF
1497 #define HAVE_ALLOCA_H 1
1502 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1503 echo "configure:1504: checking for alloca" >&5
1504 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1507 cat > conftest.$ac_ext <<EOF
1508 #line 1509 "configure"
1509 #include "confdefs.h"
1512 # define alloca __builtin_alloca
1515 # include <malloc.h>
1516 # define alloca _alloca
1519 # include <alloca.h>
1524 # ifndef alloca /* predefined by HP cc +Olibcalls */
1533 char *p = (char *) alloca(1);
1536 if { (eval echo configure:1537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1538 ac_cv_func_alloca_works=yes
1540 echo "configure: failed program was:" >&5
1541 cat conftest.$ac_ext >&5
1543 ac_cv_func_alloca_works=no
1548 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1549 if test $ac_cv_func_alloca_works = yes; then
1550 cat >> confdefs.h <<\EOF
1551 #define HAVE_ALLOCA 1
1556 if test $ac_cv_func_alloca_works = no; then
1557 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1558 # that cause trouble. Some versions do not even contain alloca or
1559 # contain a buggy version. If you still want to use their alloca,
1560 # use ar to extract alloca.o from them instead of compiling alloca.c.
1561 ALLOCA=alloca.${ac_objext}
1562 cat >> confdefs.h <<\EOF
1567 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1568 echo "configure:1569: checking whether alloca needs Cray hooks" >&5
1569 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1575 #if defined(CRAY) && ! defined(CRAY2)
1582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1583 egrep "webecray" >/dev/null 2>&1; then
1594 echo "$ac_t""$ac_cv_os_cray" 1>&6
1595 if test $ac_cv_os_cray = yes; then
1596 for ac_func in _getb67 GETB67 getb67; do
1597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1598 echo "configure:1599: checking for $ac_func" >&5
1599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 /* System header to define __stub macros and hopefully few prototypes,
1606 which can conflict with char $ac_func(); below. */
1608 /* Override any gcc2 internal prototype to avoid an error. */
1609 /* We use char because int might match the return type of a gcc2
1610 builtin and then its argument prototype would still apply. */
1615 /* The GNU C library defines this for functions which it implements
1616 to always fail with ENOSYS. Some functions are actually named
1617 something starting with __ and the normal name is an alias. */
1618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1626 if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1628 eval "ac_cv_func_$ac_func=yes"
1630 echo "configure: failed program was:" >&5
1631 cat conftest.$ac_ext >&5
1633 eval "ac_cv_func_$ac_func=no"
1638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1639 echo "$ac_t""yes" 1>&6
1640 cat >> confdefs.h <<EOF
1641 #define CRAY_STACKSEG_END $ac_func
1646 echo "$ac_t""no" 1>&6
1652 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1653 echo "configure:1654: checking stack direction for C alloca" >&5
1654 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 if test "$cross_compiling" = yes; then
1658 ac_cv_c_stack_direction=0
1660 cat > conftest.$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1663 find_stack_direction ()
1665 static char *addr = 0;
1670 return find_stack_direction ();
1673 return (&dummy > addr) ? 1 : -1;
1677 exit (find_stack_direction() < 0);
1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1682 ac_cv_c_stack_direction=1
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1687 ac_cv_c_stack_direction=-1
1694 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1695 cat >> confdefs.h <<EOF
1696 #define STACK_DIRECTION $ac_cv_c_stack_direction
1701 for ac_hdr in unistd.h
1703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1705 echo "configure:1706: checking for $ac_hdr" >&5
1706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1715 { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1717 if test -z "$ac_err"; then
1719 eval "ac_cv_header_$ac_safe=yes"
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1725 eval "ac_cv_header_$ac_safe=no"
1729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1730 echo "$ac_t""yes" 1>&6
1731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1732 cat >> confdefs.h <<EOF
1733 #define $ac_tr_hdr 1
1737 echo "$ac_t""no" 1>&6
1741 for ac_func in getpagesize
1743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_func" >&5
1745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $ac_func(); below. */
1754 /* Override any gcc2 internal prototype to avoid an error. */
1755 /* We use char because int might match the return type of a gcc2
1756 builtin and then its argument prototype would still apply. */
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1772 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1774 eval "ac_cv_func_$ac_func=yes"
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1779 eval "ac_cv_func_$ac_func=no"
1784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1787 cat >> confdefs.h <<EOF
1788 #define $ac_tr_func 1
1792 echo "$ac_t""no" 1>&6
1796 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1797 echo "configure:1798: checking for working mmap" >&5
1798 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 if test "$cross_compiling" = yes; then
1802 ac_cv_func_mmap_fixed_mapped=no
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1808 /* Thanks to Mike Haertel and Jim Avera for this test.
1809 Here is a matrix of mmap possibilities:
1810 mmap private not fixed
1811 mmap private fixed at somewhere currently unmapped
1812 mmap private fixed at somewhere already mapped
1813 mmap shared not fixed
1814 mmap shared fixed at somewhere currently unmapped
1815 mmap shared fixed at somewhere already mapped
1816 For private mappings, we should verify that changes cannot be read()
1817 back from the file, nor mmap's back from the file at a different
1818 address. (There have been systems where private was not correctly
1819 implemented like the infamous i386 svr4.0, and systems where the
1820 VM page cache was not coherent with the filesystem buffer cache
1821 like early versions of FreeBSD and possibly contemporary NetBSD.)
1822 For shared mappings, we should conversely verify that changes get
1823 propogated back to all the places they're supposed to be.
1825 Grep wants private fixed already mapped.
1826 The main things grep needs to know about mmap are:
1827 * does it exist and is it safe to write into the mmap'd area
1828 * how to use it (BSD variants) */
1829 #include <sys/types.h>
1831 #include <sys/mman.h>
1833 /* This mess was copied from the GNU getpagesize.h. */
1834 #ifndef HAVE_GETPAGESIZE
1835 # ifdef HAVE_UNISTD_H
1836 # include <unistd.h>
1839 /* Assume that all systems that can run configure have sys/param.h. */
1840 # ifndef HAVE_SYS_PARAM_H
1841 # define HAVE_SYS_PARAM_H 1
1844 # ifdef _SC_PAGESIZE
1845 # define getpagesize() sysconf(_SC_PAGESIZE)
1846 # else /* no _SC_PAGESIZE */
1847 # ifdef HAVE_SYS_PARAM_H
1848 # include <sys/param.h>
1849 # ifdef EXEC_PAGESIZE
1850 # define getpagesize() EXEC_PAGESIZE
1851 # else /* no EXEC_PAGESIZE */
1853 # define getpagesize() NBPG * CLSIZE
1856 # endif /* no CLSIZE */
1857 # else /* no NBPG */
1859 # define getpagesize() NBPC
1860 # else /* no NBPC */
1862 # define getpagesize() PAGESIZE
1863 # endif /* PAGESIZE */
1864 # endif /* no NBPC */
1865 # endif /* no NBPG */
1866 # endif /* no EXEC_PAGESIZE */
1867 # else /* no HAVE_SYS_PARAM_H */
1868 # define getpagesize() 8192 /* punt totally */
1869 # endif /* no HAVE_SYS_PARAM_H */
1870 # endif /* no _SC_PAGESIZE */
1872 #endif /* no HAVE_GETPAGESIZE */
1875 extern "C" { void *malloc(unsigned); }
1883 char *data, *data2, *data3;
1887 pagesize = getpagesize();
1890 * First, make a file with some known garbage in it.
1892 data = malloc(pagesize);
1895 for (i = 0; i < pagesize; ++i)
1896 *(data + i) = rand();
1898 fd = creat("conftestmmap", 0600);
1901 if (write(fd, data, pagesize) != pagesize)
1906 * Next, try to mmap the file at a fixed address which
1907 * already has something else allocated at it. If we can,
1908 * also make sure that we see the same garbage.
1910 fd = open("conftestmmap", O_RDWR);
1913 data2 = malloc(2 * pagesize);
1916 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1917 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1918 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1920 for (i = 0; i < pagesize; ++i)
1921 if (*(data + i) != *(data2 + i))
1925 * Finally, make sure that changes to the mapped area
1926 * do not percolate back to the file as seen by read().
1927 * (This is a bug on some variants of i386 svr4.0.)
1929 for (i = 0; i < pagesize; ++i)
1930 *(data2 + i) = *(data2 + i) + 1;
1931 data3 = malloc(pagesize);
1934 if (read(fd, data3, pagesize) != pagesize)
1936 for (i = 0; i < pagesize; ++i)
1937 if (*(data + i) != *(data3 + i))
1940 unlink("conftestmmap");
1945 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1947 ac_cv_func_mmap_fixed_mapped=yes
1949 echo "configure: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1952 ac_cv_func_mmap_fixed_mapped=no
1959 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1960 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1961 cat >> confdefs.h <<\EOF
1968 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1969 unistd.h values.h sys/param.h
1971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1973 echo "configure:1974: checking for $ac_hdr" >&5
1974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1983 { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1985 if test -z "$ac_err"; then
1987 eval "ac_cv_header_$ac_safe=yes"
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1993 eval "ac_cv_header_$ac_safe=no"
1997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1998 echo "$ac_t""yes" 1>&6
1999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2000 cat >> confdefs.h <<EOF
2001 #define $ac_tr_hdr 1
2005 echo "$ac_t""no" 1>&6
2009 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2010 __argz_count __argz_stringify __argz_next
2012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2013 echo "configure:2014: checking for $ac_func" >&5
2014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2017 cat > conftest.$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2020 /* System header to define __stub macros and hopefully few prototypes,
2021 which can conflict with char $ac_func(); below. */
2023 /* Override any gcc2 internal prototype to avoid an error. */
2024 /* We use char because int might match the return type of a gcc2
2025 builtin and then its argument prototype would still apply. */
2030 /* The GNU C library defines this for functions which it implements
2031 to always fail with ENOSYS. Some functions are actually named
2032 something starting with __ and the normal name is an alias. */
2033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2041 if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2043 eval "ac_cv_func_$ac_func=yes"
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2048 eval "ac_cv_func_$ac_func=no"
2053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2056 cat >> confdefs.h <<EOF
2057 #define $ac_tr_func 1
2061 echo "$ac_t""no" 1>&6
2066 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2067 for ac_func in stpcpy
2069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2070 echo "configure:2071: checking for $ac_func" >&5
2071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2077 /* System header to define __stub macros and hopefully few prototypes,
2078 which can conflict with char $ac_func(); below. */
2080 /* Override any gcc2 internal prototype to avoid an error. */
2081 /* We use char because int might match the return type of a gcc2
2082 builtin and then its argument prototype would still apply. */
2087 /* The GNU C library defines this for functions which it implements
2088 to always fail with ENOSYS. Some functions are actually named
2089 something starting with __ and the normal name is an alias. */
2090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2098 if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2100 eval "ac_cv_func_$ac_func=yes"
2102 echo "configure: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2105 eval "ac_cv_func_$ac_func=no"
2110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2111 echo "$ac_t""yes" 1>&6
2112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2113 cat >> confdefs.h <<EOF
2114 #define $ac_tr_func 1
2118 echo "$ac_t""no" 1>&6
2123 if test "${ac_cv_func_stpcpy}" = "yes"; then
2124 cat >> confdefs.h <<\EOF
2125 #define HAVE_STPCPY 1
2130 if test $ac_cv_header_locale_h = yes; then
2131 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2132 echo "configure:2133: checking for LC_MESSAGES" >&5
2133 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 cat > conftest.$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2144 if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2146 am_cv_val_LC_MESSAGES=yes
2148 echo "configure: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2151 am_cv_val_LC_MESSAGES=no
2156 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2157 if test $am_cv_val_LC_MESSAGES = yes; then
2158 cat >> confdefs.h <<\EOF
2159 #define HAVE_LC_MESSAGES 1
2164 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2165 echo "configure:2166: checking whether NLS is requested" >&5
2166 # Check whether --enable-nls or --disable-nls was given.
2167 if test "${enable_nls+set}" = set; then
2168 enableval="$enable_nls"
2174 echo "$ac_t""$USE_NLS" 1>&6
2177 USE_INCLUDED_LIBINTL=no
2179 if test "$USE_NLS" = "yes"; then
2180 cat >> confdefs.h <<\EOF
2181 #define ENABLE_NLS 1
2184 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2185 echo "configure:2186: checking whether included gettext is requested" >&5
2186 # Check whether --with-included-gettext or --without-included-gettext was given.
2187 if test "${with_included_gettext+set}" = set; then
2188 withval="$with_included_gettext"
2189 nls_cv_force_use_gnu_gettext=$withval
2191 nls_cv_force_use_gnu_gettext=no
2194 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2196 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2197 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2199 nls_cv_header_libgt=
2202 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2203 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2204 echo "configure:2205: checking for libintl.h" >&5
2205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 cat > conftest.$ac_ext <<EOF
2209 #line 2210 "configure"
2210 #include "confdefs.h"
2211 #include <libintl.h>
2213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2214 { (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2216 if test -z "$ac_err"; then
2218 eval "ac_cv_header_$ac_safe=yes"
2221 echo "configure: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2224 eval "ac_cv_header_$ac_safe=no"
2228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2229 echo "$ac_t""yes" 1>&6
2230 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2231 echo "configure:2232: checking for gettext in libc" >&5
2232 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 cat > conftest.$ac_ext <<EOF
2236 #line 2237 "configure"
2237 #include "confdefs.h"
2238 #include <libintl.h>
2240 return (int) gettext ("")
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2245 gt_cv_func_gettext_libc=yes
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2250 gt_cv_func_gettext_libc=no
2255 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2257 if test "$gt_cv_func_gettext_libc" != "yes"; then
2258 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2259 echo "configure:2260: checking for bindtextdomain in -lintl" >&5
2260 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 ac_save_LIBS="$LIBS"
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2269 /* Override any gcc2 internal prototype to avoid an error. */
2270 /* We use char because int might match the return type of a gcc2
2271 builtin and then its argument prototype would still apply. */
2272 char bindtextdomain();
2278 if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2280 eval "ac_cv_lib_$ac_lib_var=yes"
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2285 eval "ac_cv_lib_$ac_lib_var=no"
2288 LIBS="$ac_save_LIBS"
2291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2292 echo "$ac_t""yes" 1>&6
2293 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2294 echo "configure:2295: checking for gettext in libintl" >&5
2295 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2303 return (int) gettext ("")
2306 if { (eval echo configure:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2308 gt_cv_func_gettext_libintl=yes
2310 echo "configure: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2313 gt_cv_func_gettext_libintl=no
2318 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2320 echo "$ac_t""no" 1>&6
2325 if test "$gt_cv_func_gettext_libc" = "yes" \
2326 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2327 cat >> confdefs.h <<\EOF
2328 #define HAVE_GETTEXT 1
2331 # Extract the first word of "msgfmt", so it can be a program name with args.
2332 set dummy msgfmt; ac_word=$2
2333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2340 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2344 for ac_dir in $PATH; do
2345 test -z "$ac_dir" && ac_dir=.
2346 if test -f $ac_dir/$ac_word; then
2347 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2348 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2354 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2358 MSGFMT="$ac_cv_path_MSGFMT"
2359 if test -n "$MSGFMT"; then
2360 echo "$ac_t""$MSGFMT" 1>&6
2362 echo "$ac_t""no" 1>&6
2364 if test "$MSGFMT" != "no"; then
2365 for ac_func in dcgettext
2367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2368 echo "configure:2369: checking for $ac_func" >&5
2369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 /* System header to define __stub macros and hopefully few prototypes,
2376 which can conflict with char $ac_func(); below. */
2378 /* Override any gcc2 internal prototype to avoid an error. */
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2385 /* The GNU C library defines this for functions which it implements
2386 to always fail with ENOSYS. Some functions are actually named
2387 something starting with __ and the normal name is an alias. */
2388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2396 if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2398 eval "ac_cv_func_$ac_func=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2403 eval "ac_cv_func_$ac_func=no"
2408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_func 1
2416 echo "$ac_t""no" 1>&6
2420 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2421 set dummy gmsgfmt; ac_word=$2
2422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_word" >&5
2424 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2429 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2432 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2437 for ac_dir in $ac_dummy; do
2438 test -z "$ac_dir" && ac_dir=.
2439 if test -f $ac_dir/$ac_word; then
2440 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2445 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2449 GMSGFMT="$ac_cv_path_GMSGFMT"
2450 if test -n "$GMSGFMT"; then
2451 echo "$ac_t""$GMSGFMT" 1>&6
2453 echo "$ac_t""no" 1>&6
2456 # Extract the first word of "xgettext", so it can be a program name with args.
2457 set dummy xgettext; ac_word=$2
2458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2459 echo "configure:2460: checking for $ac_word" >&5
2460 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2465 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2469 for ac_dir in $PATH; do
2470 test -z "$ac_dir" && ac_dir=.
2471 if test -f $ac_dir/$ac_word; then
2472 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2473 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2479 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2483 XGETTEXT="$ac_cv_path_XGETTEXT"
2484 if test -n "$XGETTEXT"; then
2485 echo "$ac_t""$XGETTEXT" 1>&6
2487 echo "$ac_t""no" 1>&6
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2495 extern int _nl_msg_cat_cntr;
2496 return _nl_msg_cat_cntr
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2504 echo "configure: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2516 echo "$ac_t""no" 1>&6
2521 if test "$CATOBJEXT" = "NONE"; then
2522 nls_cv_use_gnu_gettext=yes
2526 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2527 INTLOBJS="\$(GETTOBJS)"
2528 # Extract the first word of "msgfmt", so it can be a program name with args.
2529 set dummy msgfmt; ac_word=$2
2530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2531 echo "configure:2532: checking for $ac_word" >&5
2532 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2537 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2541 for ac_dir in $PATH; do
2542 test -z "$ac_dir" && ac_dir=.
2543 if test -f $ac_dir/$ac_word; then
2544 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2545 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2551 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2555 MSGFMT="$ac_cv_path_MSGFMT"
2556 if test -n "$MSGFMT"; then
2557 echo "$ac_t""$MSGFMT" 1>&6
2559 echo "$ac_t""no" 1>&6
2562 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2563 set dummy gmsgfmt; ac_word=$2
2564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2565 echo "configure:2566: checking for $ac_word" >&5
2566 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2571 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2574 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2579 for ac_dir in $ac_dummy; do
2580 test -z "$ac_dir" && ac_dir=.
2581 if test -f $ac_dir/$ac_word; then
2582 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2587 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2591 GMSGFMT="$ac_cv_path_GMSGFMT"
2592 if test -n "$GMSGFMT"; then
2593 echo "$ac_t""$GMSGFMT" 1>&6
2595 echo "$ac_t""no" 1>&6
2598 # Extract the first word of "xgettext", so it can be a program name with args.
2599 set dummy xgettext; ac_word=$2
2600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2601 echo "configure:2602: checking for $ac_word" >&5
2602 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2607 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2611 for ac_dir in $PATH; do
2612 test -z "$ac_dir" && ac_dir=.
2613 if test -f $ac_dir/$ac_word; then
2614 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2615 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2621 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2625 XGETTEXT="$ac_cv_path_XGETTEXT"
2626 if test -n "$XGETTEXT"; then
2627 echo "$ac_t""$XGETTEXT" 1>&6
2629 echo "$ac_t""no" 1>&6
2633 USE_INCLUDED_LIBINTL=yes
2637 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2639 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2640 nls_cv_header_intl=libintl.h
2641 nls_cv_header_libgt=libgettext.h
2644 if test "$XGETTEXT" != ":"; then
2645 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2648 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2653 # We need to process the po/ directory.
2657 nls_cv_header_intl=libintl.h
2658 nls_cv_header_libgt=libgettext.h
2661 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2662 # because some of the sources are only built for this goal.
2663 if test "$PACKAGE" = gettext; then
2665 USE_INCLUDED_LIBINTL=yes
2668 for lang in $ALL_LINGUAS; do
2669 GMOFILES="$GMOFILES $lang.gmo"
2670 POFILES="$POFILES $lang.po"
2686 if test "x$CATOBJEXT" != "x"; then
2687 if test "x$ALL_LINGUAS" = "x"; then
2690 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2691 echo "configure:2692: checking for catalogs to be installed" >&5
2693 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2694 case "$ALL_LINGUAS" in
2695 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2698 LINGUAS=$NEW_LINGUAS
2699 echo "$ac_t""$LINGUAS" 1>&6
2702 if test -n "$LINGUAS"; then
2703 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2707 if test $ac_cv_header_locale_h = yes; then
2708 INCLUDE_LOCALE_H="#include <locale.h>"
2711 /* The system does not provide the header <locale.h>. Take care yourself. */"
2715 if test -f $srcdir/po2tbl.sed.in; then
2716 if test "$CATOBJEXT" = ".cat"; then
2717 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2718 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2719 echo "configure:2720: checking for linux/version.h" >&5
2720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 #include <linux/version.h>
2728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2729 { (eval echo configure:2730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2731 if test -z "$ac_err"; then
2733 eval "ac_cv_header_$ac_safe=yes"
2736 echo "configure: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2739 eval "ac_cv_header_$ac_safe=no"
2743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2744 echo "$ac_t""yes" 1>&6
2747 echo "$ac_t""no" 1>&6
2752 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2754 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2755 $srcdir/po2tbl.sed.in > po2tbl.sed
2758 if test "$PACKAGE" = "gettext"; then
2768 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2774 if test -d $srcdir/po; then
2775 test -d po || mkdir po
2776 if test "x$srcdir" != "x."; then
2777 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2778 posrcprefix="$srcdir/"
2780 posrcprefix="../$srcdir/"
2786 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2787 < $srcdir/po/POTFILES.in > po/POTFILES
2796 configdirs="doc testsuite"
2798 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2799 if test "${enable_multi_ice+set}" = set; then
2800 enableval="$enable_multi_ice"
2801 case "${enableval}" in
2802 yes ) enable_multi_ice="yes" ;;
2803 no) enable_multi_ice="no" ;;
2804 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2810 if test "${enable_multi_ice}" = "yes"; then
2811 configdirs="${configdirs} multi-ice"
2815 . ${srcdir}/configure.host
2817 . ${srcdir}/configure.tgt
2820 for ac_prog in mawk gawk nawk awk
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2825 echo "configure:2826: checking for $ac_word" >&5
2826 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 if test -n "$AWK"; then
2830 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2834 for ac_dir in $ac_dummy; do
2835 test -z "$ac_dir" && ac_dir=.
2836 if test -f $ac_dir/$ac_word; then
2837 ac_cv_prog_AWK="$ac_prog"
2844 AWK="$ac_cv_prog_AWK"
2845 if test -n "$AWK"; then
2846 echo "$ac_t""$AWK" 1>&6
2848 echo "$ac_t""no" 1>&6
2851 test -n "$AWK" && break
2854 # Find a good install program. We prefer a C program (faster),
2855 # so one script is as good as another. But avoid the broken or
2856 # incompatible versions:
2857 # SysV /etc/install, /usr/sbin/install
2858 # SunOS /usr/etc/install
2859 # IRIX /sbin/install
2861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2864 # ./install, which can be erroneously created by make from ./install.sh.
2865 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2866 echo "configure:2867: checking for a BSD compatible install" >&5
2867 if test -z "$INSTALL"; then
2868 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2872 for ac_dir in $PATH; do
2873 # Account for people who put trailing slashes in PATH elements.
2875 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2877 # OSF1 and SCO ODT 3.0 have their own names for install.
2878 # Don't use installbsd from OSF since it installs stuff as root
2880 for ac_prog in ginstall scoinst install; do
2881 if test -f $ac_dir/$ac_prog; then
2882 if test $ac_prog = install &&
2883 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2884 # AIX install. It has an incompatible calling convention.
2887 ac_cv_path_install="$ac_dir/$ac_prog -c"
2898 if test "${ac_cv_path_install+set}" = set; then
2899 INSTALL="$ac_cv_path_install"
2901 # As a last resort, use the slow shell script. We don't cache a
2902 # path for INSTALL within a source directory, because that will
2903 # break other packages using the cache if that directory is
2904 # removed, or if the path is relative.
2905 INSTALL="$ac_install_sh"
2908 echo "$ac_t""$INSTALL" 1>&6
2910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2911 # It thinks the first close brace ends the variable substitution.
2912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2918 if test $host != $build; then
2919 ac_tool_prefix=${host_alias}-
2924 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2925 set dummy ${ac_tool_prefix}ar; ac_word=$2
2926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2927 echo "configure:2928: checking for $ac_word" >&5
2928 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 if test -n "$AR"; then
2932 ac_cv_prog_AR="$AR" # Let the user override the test.
2934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2936 for ac_dir in $ac_dummy; do
2937 test -z "$ac_dir" && ac_dir=.
2938 if test -f $ac_dir/$ac_word; then
2939 ac_cv_prog_AR="${ac_tool_prefix}ar"
2944 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2948 if test -n "$AR"; then
2949 echo "$ac_t""$AR" 1>&6
2951 echo "$ac_t""no" 1>&6
2956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2959 echo "configure:2960: checking for $ac_word" >&5
2960 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 if test -n "$RANLIB"; then
2964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2968 for ac_dir in $ac_dummy; do
2969 test -z "$ac_dir" && ac_dir=.
2970 if test -f $ac_dir/$ac_word; then
2971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2978 RANLIB="$ac_cv_prog_RANLIB"
2979 if test -n "$RANLIB"; then
2980 echo "$ac_t""$RANLIB" 1>&6
2982 echo "$ac_t""no" 1>&6
2986 if test -z "$ac_cv_prog_RANLIB"; then
2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "ranlib", so it can be a program name with args.
2989 set dummy ranlib; ac_word=$2
2990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_word" >&5
2992 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2995 if test -n "$RANLIB"; then
2996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3000 for ac_dir in $ac_dummy; do
3001 test -z "$ac_dir" && ac_dir=.
3002 if test -f $ac_dir/$ac_word; then
3003 ac_cv_prog_RANLIB="ranlib"
3008 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3011 RANLIB="$ac_cv_prog_RANLIB"
3012 if test -n "$RANLIB"; then
3013 echo "$ac_t""$RANLIB" 1>&6
3015 echo "$ac_t""no" 1>&6
3023 for ac_prog in 'bison -y' byacc
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$YACC"; then
3033 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_YACC="$ac_prog"
3047 YACC="$ac_cv_prog_YACC"
3048 if test -n "$YACC"; then
3049 echo "$ac_t""$YACC" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -n "$YACC" && break
3056 test -n "$YACC" || YACC="yacc"
3059 if test "$program_transform_name" = s,x,x,; then
3060 program_transform_name=
3062 # Double any \ or $. echo might interpret backslashes.
3063 cat <<\EOF_SED > conftestsed
3064 s,\\,\\\\,g; s,\$,$$,g
3066 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
3069 test "$program_prefix" != NONE &&
3070 program_transform_name="s,^,${program_prefix},; $program_transform_name"
3071 # Use a double $ so make ignores it.
3072 test "$program_suffix" != NONE &&
3073 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
3075 # sed with no file args requires a program.
3076 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
3079 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3080 echo "configure:3081: checking return type of signal handlers" >&5
3081 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <sys/types.h>
3093 extern "C" void (*signal (int, void (*)(int)))(int);
3095 void (*signal ()) ();
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3104 ac_cv_type_signal=void
3106 echo "configure: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3109 ac_cv_type_signal=int
3114 echo "$ac_t""$ac_cv_type_signal" 1>&6
3115 cat >> confdefs.h <<EOF
3116 #define RETSIGTYPE $ac_cv_type_signal
3121 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3122 echo "configure:3123: checking for ANSI C header files" >&5
3123 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3135 { (eval echo configure:3136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3137 if test -z "$ac_err"; then
3139 ac_cv_header_stdc=yes
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 ac_cv_header_stdc=no
3149 if test $ac_cv_header_stdc = yes; then
3150 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3157 egrep "memchr" >/dev/null 2>&1; then
3161 ac_cv_header_stdc=no
3167 if test $ac_cv_header_stdc = yes; then
3168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175 egrep "free" >/dev/null 2>&1; then
3179 ac_cv_header_stdc=no
3185 if test $ac_cv_header_stdc = yes; then
3186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3187 if test "$cross_compiling" = yes; then
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3194 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3195 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3197 int main () { int i; for (i = 0; i < 256; i++)
3198 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3202 if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3206 echo "configure: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3209 ac_cv_header_stdc=no
3217 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3218 if test $ac_cv_header_stdc = yes; then
3219 cat >> confdefs.h <<\EOF
3220 #define STDC_HEADERS 1
3226 for ac_hdr in ctype.h curses.h endian.h link.h \
3227 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3228 string.h sys/procfs.h sys/ptrace.h sys/reg.h \
3229 term.h termio.h termios.h unistd.h wait.h sys/wait.h \
3230 wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
3233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3235 echo "configure:3236: checking for $ac_hdr" >&5
3236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3245 { (eval echo configure:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3247 if test -z "$ac_err"; then
3249 eval "ac_cv_header_$ac_safe=yes"
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 eval "ac_cv_header_$ac_safe=no"
3259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3260 echo "$ac_t""yes" 1>&6
3261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3262 cat >> confdefs.h <<EOF
3263 #define $ac_tr_hdr 1
3267 echo "$ac_t""no" 1>&6
3271 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3272 echo "configure:3273: checking whether stat file-mode macros are broken" >&5
3273 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 #include <sys/types.h>
3280 #include <sys/stat.h>
3282 #if defined(S_ISBLK) && defined(S_IFDIR)
3283 # if S_ISBLK (S_IFDIR)
3288 #if defined(S_ISBLK) && defined(S_IFCHR)
3289 # if S_ISBLK (S_IFCHR)
3294 #if defined(S_ISLNK) && defined(S_IFREG)
3295 # if S_ISLNK (S_IFREG)
3300 #if defined(S_ISSOCK) && defined(S_IFREG)
3301 # if S_ISSOCK (S_IFREG)
3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 egrep "You lose" >/dev/null 2>&1; then
3310 ac_cv_header_stat_broken=yes
3313 ac_cv_header_stat_broken=no
3319 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3320 if test $ac_cv_header_stat_broken = yes; then
3321 cat >> confdefs.h <<\EOF
3322 #define STAT_MACROS_BROKEN 1
3328 echo $ac_n "checking for working const""... $ac_c" 1>&6
3329 echo "configure:3330: checking for working const" >&5
3330 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3339 /* Ultrix mips cc rejects this. */
3340 typedef int charset[2]; const charset x;
3341 /* SunOS 4.1.1 cc rejects this. */
3342 char const *const *ccp;
3344 /* NEC SVR4.0.2 mips cc rejects this. */
3345 struct point {int x, y;};
3346 static struct point const zero = {0,0};
3347 /* AIX XL C 1.02.0.0 rejects this.
3348 It does not let you subtract one const X* pointer from another in an arm
3349 of an if-expression whose if-part is not a constant expression */
3350 const char *g = "string";
3351 ccp = &g + (g ? g-g : 0);
3352 /* HPUX 7.0 cc rejects these. */
3355 ccp = (char const *const *) p;
3356 { /* SCO 3.2v4 cc rejects this. */
3358 char const *s = 0 ? (char *) 0 : (char const *) 0;
3362 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3364 const int *foo = &x[0];
3367 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3368 typedef const int *iptr;
3372 { /* AIX XL C 1.02.0.0 rejects this saying
3373 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3374 struct s { int j; const int *ap[3]; };
3375 struct s *b; b->j = 5;
3377 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3383 if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3395 echo "$ac_t""$ac_cv_c_const" 1>&6
3396 if test $ac_cv_c_const = no; then
3397 cat >> confdefs.h <<\EOF
3404 for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3407 echo "configure:3408: checking for $ac_func" >&5
3408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3414 /* System header to define __stub macros and hopefully few prototypes,
3415 which can conflict with char $ac_func(); below. */
3417 /* Override any gcc2 internal prototype to avoid an error. */
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3424 /* The GNU C library defines this for functions which it implements
3425 to always fail with ENOSYS. Some functions are actually named
3426 something starting with __ and the normal name is an alias. */
3427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3437 eval "ac_cv_func_$ac_func=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_func_$ac_func=no"
3447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3448 echo "$ac_t""yes" 1>&6
3449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3450 cat >> confdefs.h <<EOF
3451 #define $ac_tr_func 1
3455 echo "$ac_t""no" 1>&6
3459 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3460 # for constant arguments. Useless!
3461 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3462 echo "configure:3463: checking for working alloca.h" >&5
3463 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3471 char *p = alloca(2 * sizeof(int));
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3476 ac_cv_header_alloca_h=yes
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3481 ac_cv_header_alloca_h=no
3486 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3487 if test $ac_cv_header_alloca_h = yes; then
3488 cat >> confdefs.h <<\EOF
3489 #define HAVE_ALLOCA_H 1
3494 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3495 echo "configure:3496: checking for alloca" >&5
3496 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3504 # define alloca __builtin_alloca
3507 # include <malloc.h>
3508 # define alloca _alloca
3511 # include <alloca.h>
3516 # ifndef alloca /* predefined by HP cc +Olibcalls */
3525 char *p = (char *) alloca(1);
3528 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3530 ac_cv_func_alloca_works=yes
3532 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3535 ac_cv_func_alloca_works=no
3540 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3541 if test $ac_cv_func_alloca_works = yes; then
3542 cat >> confdefs.h <<\EOF
3543 #define HAVE_ALLOCA 1
3548 if test $ac_cv_func_alloca_works = no; then
3549 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3550 # that cause trouble. Some versions do not even contain alloca or
3551 # contain a buggy version. If you still want to use their alloca,
3552 # use ar to extract alloca.o from them instead of compiling alloca.c.
3553 ALLOCA=alloca.${ac_objext}
3554 cat >> confdefs.h <<\EOF
3559 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3560 echo "configure:3561: checking whether alloca needs Cray hooks" >&5
3561 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #if defined(CRAY) && ! defined(CRAY2)
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 egrep "webecray" >/dev/null 2>&1; then
3586 echo "$ac_t""$ac_cv_os_cray" 1>&6
3587 if test $ac_cv_os_cray = yes; then
3588 for ac_func in _getb67 GETB67 getb67; do
3589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3590 echo "configure:3591: checking for $ac_func" >&5
3591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3597 /* System header to define __stub macros and hopefully few prototypes,
3598 which can conflict with char $ac_func(); below. */
3600 /* Override any gcc2 internal prototype to avoid an error. */
3601 /* We use char because int might match the return type of a gcc2
3602 builtin and then its argument prototype would still apply. */
3607 /* The GNU C library defines this for functions which it implements
3608 to always fail with ENOSYS. Some functions are actually named
3609 something starting with __ and the normal name is an alias. */
3610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3618 if { (eval echo configure:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3620 eval "ac_cv_func_$ac_func=yes"
3622 echo "configure: failed program was:" >&5
3623 cat conftest.$ac_ext >&5
3625 eval "ac_cv_func_$ac_func=no"
3630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3631 echo "$ac_t""yes" 1>&6
3632 cat >> confdefs.h <<EOF
3633 #define CRAY_STACKSEG_END $ac_func
3638 echo "$ac_t""no" 1>&6
3644 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3645 echo "configure:3646: checking stack direction for C alloca" >&5
3646 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3649 if test "$cross_compiling" = yes; then
3650 ac_cv_c_stack_direction=0
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 find_stack_direction ()
3657 static char *addr = 0;
3662 return find_stack_direction ();
3665 return (&dummy > addr) ? 1 : -1;
3669 exit (find_stack_direction() < 0);
3672 if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3674 ac_cv_c_stack_direction=1
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3679 ac_cv_c_stack_direction=-1
3686 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3687 cat >> confdefs.h <<EOF
3688 #define STACK_DIRECTION $ac_cv_c_stack_direction
3694 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3695 echo "configure:3696: checking for socketpair in -lsocket" >&5
3696 ac_lib_var=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 ac_save_LIBS="$LIBS"
3701 LIBS="-lsocket $LIBS"
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* Override any gcc2 internal prototype to avoid an error. */
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 eval "ac_cv_lib_$ac_lib_var=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 eval "ac_cv_lib_$ac_lib_var=no"
3724 LIBS="$ac_save_LIBS"
3727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3731 cat >> confdefs.h <<EOF
3732 #define $ac_tr_lib 1
3735 LIBS="-lsocket $LIBS"
3738 echo "$ac_t""no" 1>&6
3741 for ac_func in socketpair
3743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3744 echo "configure:3745: checking for $ac_func" >&5
3745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 /* System header to define __stub macros and hopefully few prototypes,
3752 which can conflict with char $ac_func(); below. */
3754 /* Override any gcc2 internal prototype to avoid an error. */
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3761 /* The GNU C library defines this for functions which it implements
3762 to always fail with ENOSYS. Some functions are actually named
3763 something starting with __ and the normal name is an alias. */
3764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3772 if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3774 eval "ac_cv_func_$ac_func=yes"
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3779 eval "ac_cv_func_$ac_func=no"
3784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3787 cat >> confdefs.h <<EOF
3788 #define $ac_tr_func 1
3792 echo "$ac_t""no" 1>&6
3798 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3799 echo "configure:3800: checking whether malloc must be declared" >&5
3800 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3808 #ifdef HAVE_STRING_H
3811 #ifdef HAVE_STRINGS_H
3812 #include <strings.h>
3815 #ifdef HAVE_STDLIB_H
3818 #ifdef HAVE_UNISTD_H
3822 char *(*pfn) = (char *(*)) malloc
3825 if { (eval echo configure:3826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827 bfd_cv_decl_needed_malloc=no
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 bfd_cv_decl_needed_malloc=yes
3837 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3838 if test $bfd_cv_decl_needed_malloc = yes; then
3839 cat >> confdefs.h <<\EOF
3840 #define NEED_DECLARATION_MALLOC 1
3845 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3846 echo "configure:3847: checking whether realloc must be declared" >&5
3847 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3855 #ifdef HAVE_STRING_H
3858 #ifdef HAVE_STRINGS_H
3859 #include <strings.h>
3862 #ifdef HAVE_STDLIB_H
3865 #ifdef HAVE_UNISTD_H
3869 char *(*pfn) = (char *(*)) realloc
3872 if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3874 bfd_cv_decl_needed_realloc=no
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3879 bfd_cv_decl_needed_realloc=yes
3884 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3885 if test $bfd_cv_decl_needed_realloc = yes; then
3886 cat >> confdefs.h <<\EOF
3887 #define NEED_DECLARATION_REALLOC 1
3892 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3893 echo "configure:3894: checking whether free must be declared" >&5
3894 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3902 #ifdef HAVE_STRING_H
3905 #ifdef HAVE_STRINGS_H
3906 #include <strings.h>
3909 #ifdef HAVE_STDLIB_H
3912 #ifdef HAVE_UNISTD_H
3916 char *(*pfn) = (char *(*)) free
3919 if { (eval echo configure:3920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3921 bfd_cv_decl_needed_free=no
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3926 bfd_cv_decl_needed_free=yes
3931 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3932 if test $bfd_cv_decl_needed_free = yes; then
3933 cat >> confdefs.h <<\EOF
3934 #define NEED_DECLARATION_FREE 1
3939 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3940 echo "configure:3941: checking whether strerror must be declared" >&5
3941 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3949 #ifdef HAVE_STRING_H
3952 #ifdef HAVE_STRINGS_H
3953 #include <strings.h>
3956 #ifdef HAVE_STDLIB_H
3959 #ifdef HAVE_UNISTD_H
3963 char *(*pfn) = (char *(*)) strerror
3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 bfd_cv_decl_needed_strerror=no
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 bfd_cv_decl_needed_strerror=yes
3978 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
3979 if test $bfd_cv_decl_needed_strerror = yes; then
3980 cat >> confdefs.h <<\EOF
3981 #define NEED_DECLARATION_STRERROR 1
3986 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
3987 echo "configure:3988: checking whether strdup must be declared" >&5
3988 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3991 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3996 #ifdef HAVE_STRING_H
3999 #ifdef HAVE_STRINGS_H
4000 #include <strings.h>
4003 #ifdef HAVE_STDLIB_H
4006 #ifdef HAVE_UNISTD_H
4010 char *(*pfn) = (char *(*)) strdup
4013 if { (eval echo configure:4014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4015 bfd_cv_decl_needed_strdup=no
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 bfd_cv_decl_needed_strdup=yes
4025 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4026 if test $bfd_cv_decl_needed_strdup = yes; then
4027 cat >> confdefs.h <<\EOF
4028 #define NEED_DECLARATION_STRDUP 1
4033 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4034 echo "configure:4035: checking whether strstr must be declared" >&5
4035 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4043 #ifdef HAVE_STRING_H
4046 #ifdef HAVE_STRINGS_H
4047 #include <strings.h>
4050 #ifdef HAVE_STDLIB_H
4053 #ifdef HAVE_UNISTD_H
4057 char *(*pfn) = (char *(*)) strstr
4060 if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 bfd_cv_decl_needed_strstr=no
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4067 bfd_cv_decl_needed_strstr=yes
4072 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4073 if test $bfd_cv_decl_needed_strstr = yes; then
4074 cat >> confdefs.h <<\EOF
4075 #define NEED_DECLARATION_STRSTR 1
4082 # The following save_state_t checkery is only necessary for HPUX
4083 # versions earlier than 10.20. When those fade from memory, this
4084 # could be expunged. --jsm 1999-03-22
4086 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4087 echo "configure:4088: checking for HPUX save_state structure" >&5
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 #include <machine/save_state.h>
4093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094 egrep "save_state_t" >/dev/null 2>&1; then
4096 gdb_cv_hpux_savestate=yes
4099 gdb_cv_hpux_savestate=no
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4106 #include <machine/save_state.h>
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 egrep "ss_wide" >/dev/null 2>&1; then
4111 gdb_cv_hpux_sswide=yes
4114 gdb_cv_hpux_sswide=no
4118 if test $gdb_cv_hpux_savestate = yes
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_STRUCT_SAVE_STATE_T 1
4125 if test $gdb_cv_hpux_sswide = yes
4127 cat >> confdefs.h <<\EOF
4128 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4132 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4135 # If we are configured native on GNU/Linux, work around problems with
4137 # Also detect which type of /proc is in use, such as for Unixware.
4139 if test "${target}" = "${host}"; then
4140 gdb_cv_hostos_is_solaris=no
4143 cat >> confdefs.h <<\EOF
4144 #define START_INFERIOR_TRAPS_EXPECTED 2
4147 cat >> confdefs.h <<\EOF
4148 #define sys_quotactl 1
4153 gdb_cv_hostos_is_solaris=yes ;;
4155 echo $ac_n "checking for directory proc entries""... $ac_c" 1>&6
4156 echo "configure:4157: checking for directory proc entries" >&5
4157 # The [gdb_host != sun4sol2] hack is because Solaris does provide the
4158 # multiple procfs files as of Solaris 2.6, but GDB can't use it right now.
4159 if test "$ac_cv_header_sys_procfs_h" = yes -a \
4160 "$gdb_cv_hostos_is_solaris" = no \
4162 -a -f /proc/$$/ctl \
4164 -a -f /proc/$$/map \
4165 -a -f /proc/$$/status; then
4166 echo "$ac_t""yes" 1>&6
4167 cat >> confdefs.h <<\EOF
4168 #define HAVE_MULTIPLE_PROC_FDS 1
4172 echo "$ac_t""no" 1>&6
4176 if test "$ac_cv_header_sys_procfs_h" = yes; then
4177 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4178 echo "configure:4179: checking for pstatus_t in sys/procfs.h" >&5
4179 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <sys/procfs.h>
4190 if { (eval echo configure:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4192 bfd_cv_have_sys_procfs_type_pstatus_t=yes
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 bfd_cv_have_sys_procfs_type_pstatus_t=no
4203 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4204 cat >> confdefs.h <<\EOF
4205 #define HAVE_PSTATUS_T 1
4209 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4211 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4212 echo "configure:4213: checking for prrun_t in sys/procfs.h" >&5
4213 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 #include <sys/procfs.h>
4224 if { (eval echo configure:4225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4226 bfd_cv_have_sys_procfs_type_prrun_t=yes
4228 echo "configure: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4231 bfd_cv_have_sys_procfs_type_prrun_t=no
4237 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4238 cat >> confdefs.h <<\EOF
4239 #define HAVE_PRRUN_T 1
4243 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4245 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4246 echo "configure:4247: checking for gregset_t in sys/procfs.h" >&5
4247 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 #include <sys/procfs.h>
4258 if { (eval echo configure:4259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4260 bfd_cv_have_sys_procfs_type_gregset_t=yes
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4265 bfd_cv_have_sys_procfs_type_gregset_t=no
4271 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4272 cat >> confdefs.h <<\EOF
4273 #define HAVE_GREGSET_T 1
4277 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4279 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4280 echo "configure:4281: checking for fpregset_t in sys/procfs.h" >&5
4281 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 #include <sys/procfs.h>
4292 if { (eval echo configure:4293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4294 bfd_cv_have_sys_procfs_type_fpregset_t=yes
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 bfd_cv_have_sys_procfs_type_fpregset_t=no
4305 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_FPREGSET_T 1
4311 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4315 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4316 echo "configure:4317: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4317 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4324 #include <sys/types.h>
4325 #include <sys/procfs.h>
4330 dummy = ioctl(0, PIOCSET, &dummy);
4334 if { (eval echo configure:4335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4336 gdb_cv_have_procfs_piocset=yes
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4341 gdb_cv_have_procfs_piocset=no
4346 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4347 if test $gdb_cv_have_procfs_piocset = yes; then
4348 cat >> confdefs.h <<\EOF
4349 #define HAVE_PROCFS_PIOCSET 1
4355 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4356 echo "configure:4357: checking for main in -lm" >&5
4357 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 ac_save_LIBS="$LIBS"
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4371 if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4373 eval "ac_cv_lib_$ac_lib_var=yes"
4375 echo "configure: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4378 eval "ac_cv_lib_$ac_lib_var=no"
4381 LIBS="$ac_save_LIBS"
4384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4385 echo "$ac_t""yes" 1>&6
4386 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4387 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4388 cat >> confdefs.h <<EOF
4389 #define $ac_tr_lib 1
4395 echo "$ac_t""no" 1>&6
4399 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4400 echo "configure:4401: checking for wctype in -lc" >&5
4401 ac_lib_var=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 ac_save_LIBS="$LIBS"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421 eval "ac_cv_lib_$ac_lib_var=yes"
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4426 eval "ac_cv_lib_$ac_lib_var=no"
4429 LIBS="$ac_save_LIBS"
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4436 echo "$ac_t""no" 1>&6
4437 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4438 echo "configure:4439: checking for wctype in -lw" >&5
4439 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 ac_save_LIBS="$LIBS"
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 /* We use char because int might match the return type of a gcc2
4450 builtin and then its argument prototype would still apply. */
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4459 eval "ac_cv_lib_$ac_lib_var=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4464 eval "ac_cv_lib_$ac_lib_var=no"
4467 LIBS="$ac_save_LIBS"
4470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4472 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4473 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4474 cat >> confdefs.h <<EOF
4475 #define $ac_tr_lib 1
4481 echo "$ac_t""no" 1>&6
4488 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4489 echo "configure:4490: checking for long long support in compiler" >&5
4490 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4499 extern long long foo;
4500 switch (foo & 2) { case 0: return 1; }
4504 if { (eval echo configure:4505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4506 gdb_cv_c_long_long=yes
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 gdb_cv_c_long_long=no
4516 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4517 if test $gdb_cv_c_long_long = yes; then
4518 cat >> confdefs.h <<\EOF
4519 #define CC_HAS_LONG_LONG 1
4525 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4526 echo "configure:4527: checking for long long support in printf" >&5
4527 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 if test "$cross_compiling" = yes; then
4531 gdb_cv_printf_has_long_long=no
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4540 l = (l << 16) + 0x0123;
4541 l = (l << 16) + 0x4567;
4542 l = (l << 16) + 0x89ab;
4543 l = (l << 16) + 0xcdef;
4544 sprintf (buf, "0x%016llx", l);
4545 return (strcmp ("0x0123456789abcdef", buf));
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4550 gdb_cv_printf_has_long_long=yes
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 gdb_cv_printf_has_long_long=no
4562 if test $gdb_cv_printf_has_long_long = yes; then
4563 cat >> confdefs.h <<\EOF
4564 #define PRINTF_HAS_LONG_LONG 1
4568 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4571 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4572 echo "configure:4573: checking for long double support in compiler" >&5
4573 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4584 if { (eval echo configure:4585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4586 ac_cv_c_long_double=yes
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4591 ac_cv_c_long_double=no
4596 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4597 if test $ac_cv_c_long_double = yes; then
4598 cat >> confdefs.h <<\EOF
4599 #define HAVE_LONG_DOUBLE 1
4605 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4606 echo "configure:4607: checking for long double support in printf" >&5
4607 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4610 if test "$cross_compiling" = yes; then
4611 gdb_cv_printf_has_long_double=no
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4619 long double f = 3.141592653;
4620 sprintf (buf, "%Lg", f);
4621 return (strncmp ("3.14159", buf, 7));
4624 if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4626 gdb_cv_printf_has_long_double=yes
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4631 gdb_cv_printf_has_long_double=no
4638 if test $gdb_cv_printf_has_long_double = yes; then
4639 cat >> confdefs.h <<\EOF
4640 #define PRINTF_HAS_LONG_DOUBLE 1
4644 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4647 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4648 echo "configure:4649: checking for long double support in scanf" >&5
4649 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 if test "$cross_compiling" = yes; then
4653 gdb_cv_scanf_has_long_double=no
4655 cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4660 char *buf = "3.141592653";
4662 sscanf (buf, "%Lg", &f);
4663 return !(f > 3.14159 && f < 3.14160);
4666 if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4668 gdb_cv_scanf_has_long_double=yes
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 gdb_cv_scanf_has_long_double=no
4680 if test $gdb_cv_scanf_has_long_double = yes; then
4681 cat >> confdefs.h <<\EOF
4682 #define SCANF_HAS_LONG_DOUBLE 1
4686 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4688 for ac_hdr in unistd.h
4690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4692 echo "configure:4693: checking for $ac_hdr" >&5
4693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4702 { (eval echo configure:4703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4704 if test -z "$ac_err"; then
4706 eval "ac_cv_header_$ac_safe=yes"
4709 echo "configure: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4712 eval "ac_cv_header_$ac_safe=no"
4716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4717 echo "$ac_t""yes" 1>&6
4718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4719 cat >> confdefs.h <<EOF
4720 #define $ac_tr_hdr 1
4724 echo "$ac_t""no" 1>&6
4728 for ac_func in getpagesize
4730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4731 echo "configure:4732: checking for $ac_func" >&5
4732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 cat > conftest.$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4738 /* System header to define __stub macros and hopefully few prototypes,
4739 which can conflict with char $ac_func(); below. */
4741 /* Override any gcc2 internal prototype to avoid an error. */
4742 /* We use char because int might match the return type of a gcc2
4743 builtin and then its argument prototype would still apply. */
4748 /* The GNU C library defines this for functions which it implements
4749 to always fail with ENOSYS. Some functions are actually named
4750 something starting with __ and the normal name is an alias. */
4751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4759 if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4761 eval "ac_cv_func_$ac_func=yes"
4763 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4766 eval "ac_cv_func_$ac_func=no"
4771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4772 echo "$ac_t""yes" 1>&6
4773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4774 cat >> confdefs.h <<EOF
4775 #define $ac_tr_func 1
4779 echo "$ac_t""no" 1>&6
4783 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4784 echo "configure:4785: checking for working mmap" >&5
4785 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 if test "$cross_compiling" = yes; then
4789 ac_cv_func_mmap_fixed_mapped=no
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4795 /* Thanks to Mike Haertel and Jim Avera for this test.
4796 Here is a matrix of mmap possibilities:
4797 mmap private not fixed
4798 mmap private fixed at somewhere currently unmapped
4799 mmap private fixed at somewhere already mapped
4800 mmap shared not fixed
4801 mmap shared fixed at somewhere currently unmapped
4802 mmap shared fixed at somewhere already mapped
4803 For private mappings, we should verify that changes cannot be read()
4804 back from the file, nor mmap's back from the file at a different
4805 address. (There have been systems where private was not correctly
4806 implemented like the infamous i386 svr4.0, and systems where the
4807 VM page cache was not coherent with the filesystem buffer cache
4808 like early versions of FreeBSD and possibly contemporary NetBSD.)
4809 For shared mappings, we should conversely verify that changes get
4810 propogated back to all the places they're supposed to be.
4812 Grep wants private fixed already mapped.
4813 The main things grep needs to know about mmap are:
4814 * does it exist and is it safe to write into the mmap'd area
4815 * how to use it (BSD variants) */
4816 #include <sys/types.h>
4818 #include <sys/mman.h>
4820 /* This mess was copied from the GNU getpagesize.h. */
4821 #ifndef HAVE_GETPAGESIZE
4822 # ifdef HAVE_UNISTD_H
4823 # include <unistd.h>
4826 /* Assume that all systems that can run configure have sys/param.h. */
4827 # ifndef HAVE_SYS_PARAM_H
4828 # define HAVE_SYS_PARAM_H 1
4831 # ifdef _SC_PAGESIZE
4832 # define getpagesize() sysconf(_SC_PAGESIZE)
4833 # else /* no _SC_PAGESIZE */
4834 # ifdef HAVE_SYS_PARAM_H
4835 # include <sys/param.h>
4836 # ifdef EXEC_PAGESIZE
4837 # define getpagesize() EXEC_PAGESIZE
4838 # else /* no EXEC_PAGESIZE */
4840 # define getpagesize() NBPG * CLSIZE
4843 # endif /* no CLSIZE */
4844 # else /* no NBPG */
4846 # define getpagesize() NBPC
4847 # else /* no NBPC */
4849 # define getpagesize() PAGESIZE
4850 # endif /* PAGESIZE */
4851 # endif /* no NBPC */
4852 # endif /* no NBPG */
4853 # endif /* no EXEC_PAGESIZE */
4854 # else /* no HAVE_SYS_PARAM_H */
4855 # define getpagesize() 8192 /* punt totally */
4856 # endif /* no HAVE_SYS_PARAM_H */
4857 # endif /* no _SC_PAGESIZE */
4859 #endif /* no HAVE_GETPAGESIZE */
4862 extern "C" { void *malloc(unsigned); }
4870 char *data, *data2, *data3;
4874 pagesize = getpagesize();
4877 * First, make a file with some known garbage in it.
4879 data = malloc(pagesize);
4882 for (i = 0; i < pagesize; ++i)
4883 *(data + i) = rand();
4885 fd = creat("conftestmmap", 0600);
4888 if (write(fd, data, pagesize) != pagesize)
4893 * Next, try to mmap the file at a fixed address which
4894 * already has something else allocated at it. If we can,
4895 * also make sure that we see the same garbage.
4897 fd = open("conftestmmap", O_RDWR);
4900 data2 = malloc(2 * pagesize);
4903 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4904 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4905 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4907 for (i = 0; i < pagesize; ++i)
4908 if (*(data + i) != *(data2 + i))
4912 * Finally, make sure that changes to the mapped area
4913 * do not percolate back to the file as seen by read().
4914 * (This is a bug on some variants of i386 svr4.0.)
4916 for (i = 0; i < pagesize; ++i)
4917 *(data2 + i) = *(data2 + i) + 1;
4918 data3 = malloc(pagesize);
4921 if (read(fd, data3, pagesize) != pagesize)
4923 for (i = 0; i < pagesize; ++i)
4924 if (*(data + i) != *(data3 + i))
4927 unlink("conftestmmap");
4932 if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4934 ac_cv_func_mmap_fixed_mapped=yes
4936 echo "configure: failed program was:" >&5
4937 cat conftest.$ac_ext >&5
4939 ac_cv_func_mmap_fixed_mapped=no
4946 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4947 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4948 cat >> confdefs.h <<\EOF
4957 if test ${build} = ${host} -a ${host} = ${target} ; then
4960 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4961 echo "configure:4962: checking for HPUX/OSF thread support" >&5
4962 if test -f /usr/include/dce/cma_config.h ; then
4963 if test "$GCC" = "yes" ; then
4964 echo "$ac_t""yes" 1>&6
4965 cat >> confdefs.h <<\EOF
4966 #define HAVE_HPUX_THREAD_SUPPORT 1
4969 CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
4970 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
4972 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4975 echo "$ac_t""no" 1>&6
4979 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4980 echo "configure:4981: checking for Solaris thread debugging library" >&5
4981 if test -f /usr/lib/libthread_db.so.1 ; then
4982 echo "$ac_t""yes" 1>&6
4983 cat >> confdefs.h <<\EOF
4984 #define HAVE_THREAD_DB_LIB 1
4987 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
4988 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
4989 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4990 echo "configure:4991: checking for dlopen in -ldl" >&5
4991 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4995 ac_save_LIBS="$LIBS"
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 /* Override any gcc2 internal prototype to avoid an error. */
5001 /* We use char because int might match the return type of a gcc2
5002 builtin and then its argument prototype would still apply. */
5009 if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5011 eval "ac_cv_lib_$ac_lib_var=yes"
5013 echo "configure: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5016 eval "ac_cv_lib_$ac_lib_var=no"
5019 LIBS="$ac_save_LIBS"
5022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5025 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5026 cat >> confdefs.h <<EOF
5027 #define $ac_tr_lib 1
5033 echo "$ac_t""no" 1>&6
5036 if test "$GCC" = "yes" ; then
5037 # The GNU linker requires the -export-dynamic option to make
5038 # all symbols visible in the dynamic symbol table.
5039 hold_ldflags=$LDFLAGS
5040 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5041 echo "configure:5042: checking for the ld -export-dynamic flag" >&5
5042 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5051 if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5061 LDFLAGS=$hold_ldflags
5062 echo "$ac_t""$found" 1>&6
5063 if test $found = yes; then
5064 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5067 # Sun randomly tweaked the prototypes in <proc_service.h>
5069 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5070 echo "configure:5071: checking if <proc_service.h> is old" >&5
5071 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5079 #include <proc_service.h>
5081 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5087 if { (eval echo configure:5088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5089 gdb_cv_proc_service_is_old=no
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5094 gdb_cv_proc_service_is_old=yes
5100 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5101 if test $gdb_cv_proc_service_is_old = yes; then
5102 cat >> confdefs.h <<\EOF
5103 #define PROC_SERVICE_IS_OLD 1
5108 echo "$ac_t""no" 1>&6
5117 # Check whether --enable-tui or --disable-tui was given.
5118 if test "${enable_tui+set}" = set; then
5119 enableval="$enable_tui"
5121 case "${enable_tui}" in
5123 "") enable_tui=yes ;;
5125 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5131 case ${enable_tui} in
5133 cat >> confdefs.h <<\EOF
5138 TUI_LIBRARY=tui/libtui.a
5148 # Check whether --enable-netrom or --disable-netrom was given.
5149 if test "${enable_netrom+set}" = set; then
5150 enableval="$enable_netrom"
5151 case "${enableval}" in
5152 yes) enable_netrom=yes ;;
5153 no) enable_netrom=no ;;
5154 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5159 if test "${enable_netrom}" = "yes"; then
5160 CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
5161 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
5164 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5165 if test "${enable_build_warnings+set}" = set; then
5166 enableval="$enable_build_warnings"
5167 build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
5168 case "${enableval}" in
5170 no) build_warnings="-w";;
5171 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5172 build_warnings="${build_warnings} ${t}";;
5173 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5174 build_warnings="${t} ${build_warnings}";;
5175 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5177 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5178 echo "Setting warning flags = $build_warnings" 6>&1
5182 if test "x${build_warnings}" != x -a "x$GCC" = xyes
5184 # Separate out the -Werror flag as some files just cannot be
5185 # compiled with it enabled.
5186 for w in ${build_warnings}; do
5188 -Werr*) WERROR_CFLAGS=-Werror ;;
5189 *) WARN_CFLAGS="${WARN_CFLAGS} $w"
5205 # Check whether --with-mmalloc or --without-mmalloc was given.
5206 if test "${with_mmalloc+set}" = set; then
5207 withval="$with_mmalloc"
5208 case "${withval}" in
5209 yes) want_mmalloc=true ;;
5210 no) want_mmalloc=false;;
5211 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5217 if test x$want_mmalloc = xtrue; then
5218 cat >> confdefs.h <<\EOF
5219 #define USE_MMALLOC 1
5222 cat >> confdefs.h <<\EOF
5223 #define MMCHECK_FORCE 1
5226 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
5227 MMALLOC='../mmalloc/libmmalloc.a'
5231 # In the Cygwin environment, we need some additional flags.
5232 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5233 echo "configure:5357: checking for cygwin" >&5
5234 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5362 "configure"
5239 #include "confdefs.h"
5241 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246 egrep "lose" >/dev/null 2>&1; then
5248 gdb_cv_os_cygwin=yes
5257 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5259 DLLTOOL=${DLLTOOL-dlltool}
5260 WINDRES=${WINDRES-windres}
5264 if test x$gdb_host = xgo32; then
5267 if test x$gdb_cv_os_cygwin = xyes; then
5268 TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5271 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5272 echo "configure:5396: checking for tgetent in -lncurses" >&5
5273 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 ac_save_LIBS="$LIBS"
5278 LIBS="-lncurses $LIBS"
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5404 "configure"
5281 #include "confdefs.h"
5282 /* Override any gcc2 internal prototype to avoid an error. */
5283 /* We use char because int might match the return type of a gcc2
5284 builtin and then its argument prototype would still apply. */
5291 if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5293 eval "ac_cv_lib_$ac_lib_var=yes"
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5298 eval "ac_cv_lib_$ac_lib_var=no"
5301 LIBS="$ac_save_LIBS"
5304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5305 echo "$ac_t""yes" 1>&6
5308 echo "$ac_t""no" 1>&6
5309 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5310 echo "configure:5434: checking for tgetent in -lHcurses" >&5
5311 ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 ac_save_LIBS="$LIBS"
5316 LIBS="-lHcurses $LIBS"
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5442 "configure"
5319 #include "confdefs.h"
5320 /* Override any gcc2 internal prototype to avoid an error. */
5321 /* We use char because int might match the return type of a gcc2
5322 builtin and then its argument prototype would still apply. */
5329 if { (eval echo configure:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5331 eval "ac_cv_lib_$ac_lib_var=yes"
5333 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5336 eval "ac_cv_lib_$ac_lib_var=no"
5339 LIBS="$ac_save_LIBS"
5342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5346 echo "$ac_t""no" 1>&6
5347 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5348 echo "configure:5472: checking for tgetent in -ltermlib" >&5
5349 ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 ac_save_LIBS="$LIBS"
5354 LIBS="-ltermlib $LIBS"
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5480 "configure"
5357 #include "confdefs.h"
5358 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5367 if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5369 eval "ac_cv_lib_$ac_lib_var=yes"
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5374 eval "ac_cv_lib_$ac_lib_var=no"
5377 LIBS="$ac_save_LIBS"
5380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5381 echo "$ac_t""yes" 1>&6
5384 echo "$ac_t""no" 1>&6
5385 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5386 echo "configure:5510: checking for tgetent in -ltermcap" >&5
5387 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5389 echo $ac_n "(cached) $ac_c" 1>&6
5391 ac_save_LIBS="$LIBS"
5392 LIBS="-ltermcap $LIBS"
5393 cat > conftest.$ac_ext <<EOF
5394 #line 5518 "configure"
5395 #include "confdefs.h"
5396 /* Override any gcc2 internal prototype to avoid an error. */
5397 /* We use char because int might match the return type of a gcc2
5398 builtin and then its argument prototype would still apply. */
5405 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5407 eval "ac_cv_lib_$ac_lib_var=yes"
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5412 eval "ac_cv_lib_$ac_lib_var=no"
5415 LIBS="$ac_save_LIBS"
5418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5419 echo "$ac_t""yes" 1>&6
5422 echo "$ac_t""no" 1>&6
5423 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5424 echo "configure:5548: checking for tgetent in -lcurses" >&5
5425 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5429 ac_save_LIBS="$LIBS"
5430 LIBS="-lcurses $LIBS"
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5556 "configure"
5433 #include "confdefs.h"
5434 /* Override any gcc2 internal prototype to avoid an error. */
5435 /* We use char because int might match the return type of a gcc2
5436 builtin and then its argument prototype would still apply. */
5443 if { (eval echo configure:5567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445 eval "ac_cv_lib_$ac_lib_var=yes"
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 eval "ac_cv_lib_$ac_lib_var=no"
5453 LIBS="$ac_save_LIBS"
5456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5457 echo "$ac_t""yes" 1>&6
5460 echo "$ac_t""no" 1>&6
5461 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5462 echo "configure:5586: checking for tgetent in -lterminfo" >&5
5463 ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5467 ac_save_LIBS="$LIBS"
5468 LIBS="-lterminfo $LIBS"
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5594 "configure"
5471 #include "confdefs.h"
5472 /* Override any gcc2 internal prototype to avoid an error. */
5473 /* We use char because int might match the return type of a gcc2
5474 builtin and then its argument prototype would still apply. */
5481 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5483 eval "ac_cv_lib_$ac_lib_var=yes"
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5488 eval "ac_cv_lib_$ac_lib_var=no"
5491 LIBS="$ac_save_LIBS"
5494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5495 echo "$ac_t""yes" 1>&6
5498 echo "$ac_t""no" 1>&6
5512 if test "x$TERM_LIB" = x
5514 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5520 # libreadline needs libuser32.a in a cygwin environment
5522 if test x$gdb_cv_os_cygwin = xyes; then
5523 WIN32LIBS="-luser32"
5528 # If we find X, set shell vars x_includes and x_libraries to the
5529 # paths, otherwise set no_x=yes.
5530 # Uses ac_ vars as temps to allow command line to override cache and checks.
5531 # --without-x overrides everything else, but does not touch the cache.
5532 echo $ac_n "checking for X""... $ac_c" 1>&6
5533 echo "configure:6741: checking for X" >&5
5535 # Check whether --with-x or --without-x was given.
5536 if test "${with_x+set}" = set; then
5541 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5542 if test "x$with_x" = xno; then
5543 # The user explicitly disabled X.
5546 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5547 # Both variables are already set.
5550 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5553 # One or both of the vars are not set, and there is no cached value.
5554 ac_x_includes=NO ac_x_libraries=NO
5556 if mkdir conftestdir; then
5558 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5559 cat > Imakefile <<'EOF'
5561 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5563 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5565 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5566 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5567 for ac_extension in a so sl; do
5568 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5569 test -f $ac_im_libdir/libX11.$ac_extension; then
5570 ac_im_usrlibdir=$ac_im_libdir; break
5573 # Screen out bogus values from the imake configuration. They are
5574 # bogus both because they are the default anyway, and because
5575 # using them would break gcc on systems where it needs fixed includes.
5576 case "$ac_im_incroot" in
5578 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5580 case "$ac_im_usrlibdir" in
5582 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5589 if test "$ac_x_includes" = NO; then
5590 # Guess where to find include files, by looking for this one X11 .h file.
5591 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5593 # First, try using that file with no special directory specified.
5594 cat > conftest.$ac_ext <<EOF
5595 #line 6803 "configure"
5596 #include "confdefs.h"
5597 #include <$x_direct_test_include>
5599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5600 { (eval echo configure:6808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5602 if test -z "$ac_err"; then
5604 # We can compile using X headers with no special include directory.
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5611 # Look for the header file in a standard set of common directories.
5612 # Check X11 before X11Rn because it is often a symlink to the current release.
5615 /usr/X11R6/include \
5616 /usr/X11R5/include \
5617 /usr/X11R4/include \
5620 /usr/include/X11R6 \
5621 /usr/include/X11R5 \
5622 /usr/include/X11R4 \
5624 /usr/local/X11/include \
5625 /usr/local/X11R6/include \
5626 /usr/local/X11R5/include \
5627 /usr/local/X11R4/include \
5629 /usr/local/include/X11 \
5630 /usr/local/include/X11R6 \
5631 /usr/local/include/X11R5 \
5632 /usr/local/include/X11R4 \
5636 /usr/XFree86/include/X11 \
5639 /usr/local/include \
5640 /usr/unsupported/include \
5641 /usr/athena/include \
5642 /usr/local/x11r5/include \
5643 /usr/lpp/Xamples/include \
5645 /usr/openwin/include \
5646 /usr/openwin/share/include \
5649 if test -r "$ac_dir/$x_direct_test_include"; then
5650 ac_x_includes=$ac_dir
5656 fi # $ac_x_includes = NO
5658 if test "$ac_x_libraries" = NO; then
5659 # Check for the libraries.
5661 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5662 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5664 # See if we find them without any special options.
5665 # Don't add to $LIBS permanently.
5666 ac_save_LIBS="$LIBS"
5667 LIBS="-l$x_direct_test_library $LIBS"
5668 cat > conftest.$ac_ext <<EOF
5669 #line 6877 "configure"
5670 #include "confdefs.h"
5673 ${x_direct_test_function}()
5676 if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5678 LIBS="$ac_save_LIBS"
5679 # We can link X programs with no special library path.
5682 echo "configure: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5685 LIBS="$ac_save_LIBS"
5686 # First see if replacing the include by lib works.
5687 # Check X11 before X11Rn because it is often a symlink to the current release.
5688 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5699 /usr/local/X11/lib \
5700 /usr/local/X11R6/lib \
5701 /usr/local/X11R5/lib \
5702 /usr/local/X11R4/lib \
5704 /usr/local/lib/X11 \
5705 /usr/local/lib/X11R6 \
5706 /usr/local/lib/X11R5 \
5707 /usr/local/lib/X11R4 \
5711 /usr/XFree86/lib/X11 \
5715 /usr/unsupported/lib \
5717 /usr/local/x11r5/lib \
5718 /usr/lpp/Xamples/lib \
5722 /usr/openwin/share/lib \
5725 for ac_extension in a so sl; do
5726 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5727 ac_x_libraries=$ac_dir
5734 fi # $ac_x_libraries = NO
5736 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5737 # Didn't find X anywhere. Cache the known absence of X.
5738 ac_cv_have_x="have_x=no"
5740 # Record where we found X for the cache.
5741 ac_cv_have_x="have_x=yes \
5742 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5746 eval "$ac_cv_have_x"
5749 if test "$have_x" != yes; then
5750 echo "$ac_t""$have_x" 1>&6
5753 # If each of the values was on the command line, it overrides each guess.
5754 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5755 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5756 # Update the cache value to reflect the command line values.
5757 ac_cv_have_x="have_x=yes \
5758 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5759 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5764 # Unlike the sim directory, whether a simulator is linked is controlled by
5765 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
5766 # This code just checks for a few cases where we'd like to ignore those
5767 # definitions, even when they're present in the '.mt' file. These cases
5768 # are when --disable-sim is specified, or if the simulator directory is
5769 # not part of the soruce tree.
5771 # Check whether --enable-sim or --disable-sim was given.
5772 if test "${enable_sim+set}" = set; then
5773 enableval="$enable_sim"
5774 echo "enable_sim = $enable_sim";
5775 echo "enableval = ${enableval}";
5776 case "${enableval}" in
5777 yes) ignore_sim=false ;;
5778 no) ignore_sim=true ;;
5779 *) ignore_sim=false ;;
5786 if test ! -d "${srcdir}/../sim"; then
5790 if test "${ignore_sim}" = "true"; then
5792 IGNORE_SIM_OBS="SIM_OBS="
5796 cat >> confdefs.h <<\EOF
5810 # Begin stuff to support --enable-shared
5811 # Check whether --enable-shared or --disable-shared was given.
5812 if test "${enable_shared+set}" = set; then
5813 enableval="$enable_shared"
5814 case "${enableval}" in
5823 # If we have shared libraries, try to set rpath reasonably.
5824 if test "${shared}" = "true"; then
5827 HLDFLAGS='-Wl,+s,+b,$(libdir)'
5829 *-*-irix5* | *-*-irix6*)
5830 HLDFLAGS='-Wl,-rpath,$(libdir)'
5834 *-*-linux* | *-pc-linux-gnu)
5835 HLDFLAGS='-Wl,-rpath,$(libdir)'
5838 HLDFLAGS='-R $(libdir)'
5841 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;'
5846 # On SunOS, if the linker supports the -rpath option, use it to
5847 # prevent ../bfd and ../opcodes from being included in the run time
5851 echo 'main () { }' > conftest.c
5852 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
5853 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
5855 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
5857 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
5859 elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
5861 elif test "${shared}" = "true"; then
5862 HLDFLAGS='-Wl,-rpath=$(libdir)'
5864 HLDFLAGS='-Wl,-rpath='
5866 rm -f conftest.t conftest.c conftest
5871 # End stuff to support --enable-shared
5873 # target_subdir is used by the testsuite to find the target libraries.
5875 if test "${host}" != "${target}"; then
5876 target_subdir="${target_alias}/"
5881 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5882 if test ! -f ${host_makefile_frag}; then
5883 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
5885 frags="$frags $host_makefile_frag"
5887 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5888 if test ! -f ${target_makefile_frag}; then
5889 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
5891 frags="$frags $target_makefile_frag"
5898 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5899 ' ${host_makefile_frag}`
5901 targetfile=`sed -n '
5902 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5903 ' ${target_makefile_frag}`
5905 # these really aren't orthogonal true/false values of the same condition,
5906 # but shells are slow enough that I like to reuse the test conditions
5908 if test "${target}" = "${host}"; then
5909 nativefile=`sed -n '
5910 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5911 ' ${host_makefile_frag}`
5913 # GDBserver is only useful in a "native" enviroment
5914 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5918 SUBDIRS="doc testsuite nlm"
5919 if test "${enable_multi_ice}" = "yes"; then
5920 SUBDIRS="${SUBDIRS} multi-ice"
5925 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5926 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5927 # corresponding links. But we have to remove the xm.h files and tm.h
5928 # files anyway, e.g. when switching from "configure host" to
5934 if test "${hostfile}" != ""; then
5935 files="${files} config/${gdb_host_cpu}/${hostfile}"
5936 links="${links} xm.h"
5939 if test "${targetfile}" != ""; then
5940 files="${files} config/${gdb_target_cpu}/${targetfile}"
5941 links="${links} tm.h"
5944 if test "${nativefile}" != ""; then
5945 files="${files} config/${gdb_host_cpu}/${nativefile}"
5946 links="${links} nm.h"
5948 # A cross-only configuration.
5949 files="${files} config/nm-empty.h"
5950 links="${links} nm.h"
5955 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
5956 echo "configure:7235: checking for Cygwin environment" >&5
5957 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
5958 echo $ac_n "(cached) $ac_c" 1>&6
5960 cat > conftest.$ac_ext <<EOF
5961 #line 7240 "configure"
5962 #include "confdefs.h"
5967 #define __CYGWIN__ __CYGWIN32__
5972 if { (eval echo configure:7251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5985 echo "$ac_t""$ac_cv_cygwin" 1>&6
5987 test "$ac_cv_cygwin" = yes && CYGWIN=yes
5988 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
5989 echo "configure:7268: checking for mingw32 environment" >&5
5990 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 cat > conftest.$ac_ext <<EOF
5994 #line 7273 "configure"
5995 #include "confdefs.h"
6001 if { (eval echo configure:7280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6014 echo "$ac_t""$ac_cv_mingw32" 1>&6
6016 test "$ac_cv_mingw32" = yes && MINGW32=yes
6019 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6020 echo "configure:7299: checking for executable suffix" >&5
6021 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
6028 echo 'int main () { return 0; }' > conftest.$ac_ext
6030 if { (eval echo configure:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
6031 for file in conftest.*; do
6033 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
6034 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
6038 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
6041 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
6046 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
6047 echo "$ac_t""${ac_cv_exeext}" 1>&6
6051 subdirs="$configdirs"
6054 cat > confcache <<\EOF
6055 # This file is a shell script that caches the results of configure
6056 # tests run on this system so they can be shared between configure
6057 # scripts and configure runs. It is not useful on other systems.
6058 # If it contains results you don't want to keep, you may remove or edit it.
6060 # By default, configure uses ./config.cache as the cache file,
6061 # creating it if it does not exist already. You can give configure
6062 # the --cache-file=FILE option to use a different cache file; that is
6063 # what configure does when it calls configure scripts in
6064 # subdirectories, so they share the cache.
6065 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6066 # config.status only pays attention to the cache file if you give it the
6067 # --recheck option to rerun configure.
6070 # The following way of writing the cache mishandles newlines in values,
6071 # but we know of no workaround that is simple, portable, and efficient.
6072 # So, don't put newlines in cache variables' values.
6073 # Ultrix sh set writes to stderr and can't be redirected directly,
6074 # and sets the high bit in the cache file unless we assign to the vars.
6076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6078 # `set' does not quote correctly, so add quotes (double-quote substitution
6079 # turns \\\\ into \\, and sed turns \\ into \).
6081 -e "s/'/'\\\\''/g" \
6082 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6085 # `set' quotes correctly as required by POSIX, so do not add quotes.
6086 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6089 if cmp -s $cache_file confcache; then
6092 if test -w $cache_file; then
6093 echo "updating cache $cache_file"
6094 cat confcache > $cache_file
6096 echo "not updating unwritable cache $cache_file"
6101 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6103 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6104 # Let make expand exec_prefix.
6105 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6107 # Any assignment to VPATH causes Sun make to only execute
6108 # the first set of double-colon rules, so remove it if not needed.
6109 # If there is a colon in the path, we need to keep it.
6110 if test "x$srcdir" = x.; then
6111 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6114 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6116 DEFS=-DHAVE_CONFIG_H
6118 # Without the "./", some shells look in PATH for config.status.
6119 : ${CONFIG_STATUS=./config.status}
6121 echo creating $CONFIG_STATUS
6122 rm -f $CONFIG_STATUS
6123 cat > $CONFIG_STATUS <<EOF
6125 # Generated automatically by configure.
6126 # Run this file to recreate the current configuration.
6127 # This directory was configured as follows,
6128 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6130 # $0 $ac_configure_args
6132 # Compiler output produced by configure, useful for debugging
6133 # configure, is in ./config.log if it exists.
6135 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6138 case "\$ac_option" in
6139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6140 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6141 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6142 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6143 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6145 -help | --help | --hel | --he | --h)
6146 echo "\$ac_cs_usage"; exit 0 ;;
6147 *) echo "\$ac_cs_usage"; exit 1 ;;
6151 ac_given_srcdir=$srcdir
6152 ac_given_INSTALL="$INSTALL"
6154 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6156 cat >> $CONFIG_STATUS <<EOF
6158 # Protect against being on the right side of a sed subst in config.status.
6159 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6160 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6164 s%@CFLAGS@%$CFLAGS%g
6165 s%@CPPFLAGS@%$CPPFLAGS%g
6166 s%@CXXFLAGS@%$CXXFLAGS%g
6167 s%@FFLAGS@%$FFLAGS%g
6169 s%@LDFLAGS@%$LDFLAGS%g
6171 s%@exec_prefix@%$exec_prefix%g
6172 s%@prefix@%$prefix%g
6173 s%@program_transform_name@%$program_transform_name%g
6174 s%@bindir@%$bindir%g
6175 s%@sbindir@%$sbindir%g
6176 s%@libexecdir@%$libexecdir%g
6177 s%@datadir@%$datadir%g
6178 s%@sysconfdir@%$sysconfdir%g
6179 s%@sharedstatedir@%$sharedstatedir%g
6180 s%@localstatedir@%$localstatedir%g
6181 s%@libdir@%$libdir%g
6182 s%@includedir@%$includedir%g
6183 s%@oldincludedir@%$oldincludedir%g
6184 s%@infodir@%$infodir%g
6185 s%@mandir@%$mandir%g
6189 s%@host_alias@%$host_alias%g
6190 s%@host_cpu@%$host_cpu%g
6191 s%@host_vendor@%$host_vendor%g
6192 s%@host_os@%$host_os%g
6193 s%@target@%$target%g
6194 s%@target_alias@%$target_alias%g
6195 s%@target_cpu@%$target_cpu%g
6196 s%@target_vendor@%$target_vendor%g
6197 s%@target_os@%$target_os%g
6199 s%@build_alias@%$build_alias%g
6200 s%@build_cpu@%$build_cpu%g
6201 s%@build_vendor@%$build_vendor%g
6202 s%@build_os@%$build_os%g
6203 s%@SET_MAKE@%$SET_MAKE%g
6204 s%@RANLIB@%$RANLIB%g
6205 s%@ALLOCA@%$ALLOCA%g
6206 s%@USE_NLS@%$USE_NLS%g
6207 s%@MSGFMT@%$MSGFMT%g
6208 s%@GMSGFMT@%$GMSGFMT%g
6209 s%@XGETTEXT@%$XGETTEXT%g
6210 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6211 s%@CATALOGS@%$CATALOGS%g
6212 s%@CATOBJEXT@%$CATOBJEXT%g
6213 s%@DATADIRNAME@%$DATADIRNAME%g
6214 s%@GMOFILES@%$GMOFILES%g
6215 s%@INSTOBJEXT@%$INSTOBJEXT%g
6216 s%@INTLDEPS@%$INTLDEPS%g
6217 s%@INTLLIBS@%$INTLLIBS%g
6218 s%@INTLOBJS@%$INTLOBJS%g
6219 s%@POFILES@%$POFILES%g
6221 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6223 s%@GT_YES@%$GT_YES%g
6224 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6227 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6228 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6229 s%@INSTALL_DATA@%$INSTALL_DATA%g
6232 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6233 s%@BUILD_TUI@%$BUILD_TUI%g
6234 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
6235 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6236 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
6237 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6238 s%@MMALLOC@%$MMALLOC%g
6239 s%@MACHINE_OBS@%$MACHINE_OBS%g
6240 s%@DLLTOOL@%$DLLTOOL%g
6241 s%@WINDRES@%$WINDRES%g
6242 s%@TERM_LIB@%$TERM_LIB%g
6243 s%@WIN32LIBS@%$WIN32LIBS%g
6244 s%@ENABLE_IDE@%$ENABLE_IDE%g
6245 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6246 s%@LIBGUI@%$LIBGUI%g
6247 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6248 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6250 s%@LIBIDETCL@%$LIBIDETCL%g
6251 s%@LIBIDE@%$LIBIDE%g
6252 s%@IDE_DEPS@%$IDE_DEPS%g
6253 s%@WIN32LDAPP@%$WIN32LDAPP%g
6254 s%@TCL_VERSION@%$TCL_VERSION%g
6255 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6256 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6257 s%@TCL_CC@%$TCL_CC%g
6258 s%@TCL_DEFS@%$TCL_DEFS%g
6259 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6260 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6261 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6262 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6263 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6264 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6265 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6266 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6267 s%@TCL_RANLIB@%$TCL_RANLIB%g
6268 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6269 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6270 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6271 s%@TK_VERSION@%$TK_VERSION%g
6272 s%@TK_DEFS@%$TK_DEFS%g
6273 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6274 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6275 s%@TK_XLIBSW@%$TK_XLIBSW%g
6276 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6277 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6278 s%@TCLHDIR@%$TCLHDIR%g
6279 s%@TKHDIR@%$TKHDIR%g
6280 s%@ITCLHDIR@%$ITCLHDIR%g
6281 s%@ITKHDIR@%$ITKHDIR%g
6282 s%@TIXHDIR@%$TIXHDIR%g
6283 s%@ITCL_VERSION@%$ITCL_VERSION%g
6284 s%@ITCL_DEFS@%$ITCL_DEFS%g
6285 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
6286 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
6287 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
6288 s%@ITK_VERSION@%$ITK_VERSION%g
6289 s%@ITK_DEFS@%$ITK_DEFS%g
6290 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
6291 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
6292 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
6293 s%@TIX_VERSION@%$TIX_VERSION%g
6294 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
6295 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6296 s%@X_CFLAGS@%$X_CFLAGS%g
6297 s%@X_LDFLAGS@%$X_LDFLAGS%g
6298 s%@X_LIBS@%$X_LIBS%g
6299 s%@ITCLLIB@%$ITCLLIB%g
6300 s%@ITCL_DEPS@%$ITCL_DEPS%g
6301 s%@ITKLIB@%$ITKLIB%g
6302 s%@ITK_DEPS@%$ITK_DEPS%g
6303 s%@TIXLIB@%$TIXLIB%g
6304 s%@TIX_DEPS@%$TIX_DEPS%g
6305 s%@GDBTKLIBS@%$GDBTKLIBS%g
6306 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
6307 s%@IGNORE_SIM@%$IGNORE_SIM%g
6308 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
6309 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6310 s%@CONFIG_OBS@%$CONFIG_OBS%g
6311 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6312 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6313 s%@HLDFLAGS@%$HLDFLAGS%g
6314 s%@HLDENV@%$HLDENV%g
6315 s%@target_subdir@%$target_subdir%g
6316 /@host_makefile_frag@/r $host_makefile_frag
6317 s%@host_makefile_frag@%%g
6318 /@target_makefile_frag@/r $target_makefile_frag
6319 s%@target_makefile_frag@%%g
6321 s%@SUBDIRS@%$SUBDIRS%g
6323 s%@EXEEXT@%$EXEEXT%g
6324 s%@subdirs@%$subdirs%g
6329 cat >> $CONFIG_STATUS <<\EOF
6331 # Split the substitutions into bite-sized pieces for seds with
6332 # small command number limits, like on Digital OSF/1 and HP-UX.
6333 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6334 ac_file=1 # Number of current file.
6335 ac_beg=1 # First line for current file.
6336 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6339 while $ac_more_lines; do
6340 if test $ac_beg -gt 1; then
6341 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6343 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6345 if test ! -s conftest.s$ac_file; then
6347 rm -f conftest.s$ac_file
6349 if test -z "$ac_sed_cmds"; then
6350 ac_sed_cmds="sed -f conftest.s$ac_file"
6352 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6354 ac_file=`expr $ac_file + 1`
6356 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6359 if test -z "$ac_sed_cmds"; then
6364 cat >> $CONFIG_STATUS <<EOF
6366 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
6368 cat >> $CONFIG_STATUS <<\EOF
6369 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6370 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6372 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6373 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6374 *) ac_file_in="${ac_file}.in" ;;
6377 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6379 # Remove last slash and all that follows it. Not all systems have dirname.
6380 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6381 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6382 # The file is in a subdirectory.
6383 test ! -d "$ac_dir" && mkdir "$ac_dir"
6384 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6385 # A "../" for each directory in $ac_dir_suffix.
6386 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6388 ac_dir_suffix= ac_dots=
6391 case "$ac_given_srcdir" in
6393 if test -z "$ac_dots"; then top_srcdir=.
6394 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6395 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6397 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6398 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6401 case "$ac_given_INSTALL" in
6402 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6403 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6406 echo creating "$ac_file"
6408 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6410 *Makefile*) ac_comsub="1i\\
6411 # $configure_input" ;;
6415 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6417 s%@configure_input@%$configure_input%g
6418 s%@srcdir@%$srcdir%g
6419 s%@top_srcdir@%$top_srcdir%g
6420 s%@INSTALL@%$INSTALL%g
6421 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6425 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6426 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6428 # ac_d sets the value in "#define NAME VALUE" lines.
6429 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6430 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6433 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6434 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6435 ac_uB='\([ ]\)%\1#\2define\3'
6438 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6439 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6440 ac_eB='$%\1#\2define\3'
6444 if test "${CONFIG_HEADERS+set}" != set; then
6446 cat >> $CONFIG_STATUS <<EOF
6447 CONFIG_HEADERS="config.h:config.in"
6449 cat >> $CONFIG_STATUS <<\EOF
6451 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6452 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6454 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6455 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6456 *) ac_file_in="${ac_file}.in" ;;
6459 echo creating $ac_file
6461 rm -f conftest.frag conftest.in conftest.out
6462 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6463 cat $ac_file_inputs > conftest.in
6467 # Transform confdefs.h into a sed script conftest.vals that substitutes
6468 # the proper values into config.h.in to produce config.h. And first:
6469 # Protect against being on the right side of a sed subst in config.status.
6470 # Protect against being in an unquoted here document in config.status.
6472 cat > conftest.hdr <<\EOF
6475 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6479 sed -n -f conftest.hdr confdefs.h > conftest.vals
6482 # This sed command replaces #undef with comments. This is necessary, for
6483 # example, in the case of _POSIX_SOURCE, which is predefined and required
6484 # on some systems where configure will not decide to define it.
6485 cat >> conftest.vals <<\EOF
6486 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6489 # Break up conftest.vals because some shells have a limit on
6490 # the size of here documents, and old seds have small limits too.
6495 ac_lines=`grep -c . conftest.vals`
6496 # grep -c gives empty output for an empty file on some AIX systems.
6497 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6498 # Write a limited-size here document to conftest.frag.
6499 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6500 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6502 sed -f conftest.frag conftest.in > conftest.out
6504 mv conftest.out conftest.in
6506 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6508 mv conftest.tail conftest.vals
6512 cat >> $CONFIG_STATUS <<\EOF
6513 rm -f conftest.frag conftest.h
6514 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6515 cat conftest.in >> conftest.h
6517 if cmp -s $ac_file conftest.h 2>/dev/null; then
6518 echo "$ac_file is unchanged"
6521 # Remove last slash and all that follows it. Not all systems have dirname.
6522 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6523 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6524 # The file is in a subdirectory.
6525 test ! -d "$ac_dir" && mkdir "$ac_dir"
6528 mv conftest.h $ac_file
6534 cat >> $CONFIG_STATUS <<EOF
6539 cat >> $CONFIG_STATUS <<\EOF
6540 srcdir=$ac_given_srcdir
6541 while test -n "$ac_sources"; do
6542 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6543 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6545 echo "linking $srcdir/$ac_source to $ac_dest"
6547 if test ! -r $srcdir/$ac_source; then
6548 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6552 # Make relative symlinks.
6553 # Remove last slash and all that follows it. Not all systems have dirname.
6554 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6555 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6556 # The dest file is in a subdirectory.
6557 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6558 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6559 # A "../" for each directory in $ac_dest_dir_suffix.
6560 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6562 ac_dest_dir_suffix= ac_dots=
6566 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6567 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6570 # Make a symlink if possible; otherwise try a hard link.
6571 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6572 ln $srcdir/$ac_source $ac_dest; then :
6574 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6578 cat >> $CONFIG_STATUS <<EOF
6580 gdb_host_cpu=$gdb_host_cpu
6581 gdb_target_cpu=$gdb_target_cpu
6582 nativefile=$nativefile
6585 cat >> $CONFIG_STATUS <<\EOF
6587 if test "${nativefile}" = ""; then
6588 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6589 < Makefile > Makefile.tem
6590 mv -f Makefile.tem Makefile
6593 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6594 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6595 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6596 mv -f Makefile.tmp Makefile
6599 case x$CONFIG_HEADERS in
6600 xconfig.h:config.in)
6606 chmod +x $CONFIG_STATUS
6607 rm -fr confdefs* $ac_clean_files
6608 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6610 if test "$no_recursion" != yes; then
6612 # Remove --cache-file and --srcdir arguments so they do not pile up.
6613 ac_sub_configure_args=
6615 for ac_arg in $ac_configure_args; do
6616 if test -n "$ac_prev"; then
6621 -cache-file | --cache-file | --cache-fil | --cache-fi \
6622 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6623 ac_prev=cache_file ;;
6624 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6625 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6627 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6629 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6631 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6635 for ac_config_dir in $configdirs; do
6637 # Do not complain, so a configure script can configure whichever
6638 # parts of a large source tree are present.
6639 if test ! -d $srcdir/$ac_config_dir; then
6643 echo configuring in $ac_config_dir
6648 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6650 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6658 # A "../" for each directory in /$ac_config_dir.
6659 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6662 .) # No --srcdir option. We are building in place.
6663 ac_sub_srcdir=$srcdir ;;
6664 /*) # Absolute path.
6665 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6667 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6670 # Check for guested configure; otherwise get Cygnus style configure.
6671 if test -f $ac_sub_srcdir/configure; then
6672 ac_sub_configure=$ac_sub_srcdir/configure
6673 elif test -f $ac_sub_srcdir/configure.in; then
6674 ac_sub_configure=$ac_configure
6676 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6680 # The recursion is here.
6681 if test -n "$ac_sub_configure"; then
6683 # Make the cache file name correct relative to the subdirectory.
6684 case "$cache_file" in
6685 /*) ac_sub_cache_file=$cache_file ;;
6687 ac_sub_cache_file="$ac_dots$cache_file" ;;
6689 case "$ac_given_INSTALL" in
6690 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6691 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6694 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6695 # The eval makes quoting arguments work.
6696 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6699 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }