3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
21 --enable-bfd-assembler use BFD back end for writing object files"
23 targets alternative target configurations besides the primary"
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
27 --disable-nls do not use Native Language Support"
29 --with-included-gettext use the GNU gettext library included here"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file
=.
/config.cache
47 program_transform_name
=s
,x
,x
,
55 bindir
='${exec_prefix}/bin'
56 sbindir
='${exec_prefix}/sbin'
57 libexecdir
='${exec_prefix}/libexec'
58 datadir
='${prefix}/share'
59 sysconfdir
='${prefix}/etc'
60 sharedstatedir
='${prefix}/com'
61 localstatedir
='${prefix}/var'
62 libdir
='${exec_prefix}/lib'
63 includedir
='${prefix}/include'
64 oldincludedir
='/usr/include'
65 infodir
='${prefix}/info'
66 mandir
='${prefix}/man'
68 # Initialize some other variables.
71 SHELL
=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
97 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
98 bindir
="$ac_optarg" ;;
100 -build |
--build |
--buil |
--bui |
--bu)
102 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
103 build
="$ac_optarg" ;;
105 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
106 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
107 ac_prev
=cache_file
;;
108 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
109 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
110 cache_file
="$ac_optarg" ;;
112 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
114 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
116 datadir
="$ac_optarg" ;;
118 -disable-* |
--disable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* |
--enable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
142 |
--exec |
--exe |
--ex)
143 ac_prev
=exec_prefix
;;
144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
146 |
--exec=* |
--exe=* |
--ex=*)
147 exec_prefix
="$ac_optarg" ;;
149 -gas |
--gas |
--ga |
--g)
150 # Obsolete; use --with-gas.
153 -help |
--help |
--hel |
--he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host |
--host |
--hos |
--ho)
210 -host=* |
--host=* |
--hos=* |
--ho=*)
213 -includedir |
--includedir |
--includedi |
--included |
--include \
214 |
--includ |
--inclu |
--incl |
--inc)
215 ac_prev
=includedir
;;
216 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
217 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
218 includedir
="$ac_optarg" ;;
220 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
222 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
223 infodir
="$ac_optarg" ;;
225 -libdir |
--libdir |
--libdi |
--libd)
227 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
228 libdir
="$ac_optarg" ;;
230 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
231 |
--libexe |
--libex |
--libe)
232 ac_prev
=libexecdir
;;
233 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
234 |
--libexe=* |
--libex=* |
--libe=*)
235 libexecdir
="$ac_optarg" ;;
237 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
238 |
--localstate |
--localstat |
--localsta |
--localst \
239 |
--locals |
--local |
--loca |
--loc |
--lo)
240 ac_prev
=localstatedir
;;
241 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
242 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
243 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
244 localstatedir
="$ac_optarg" ;;
246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
249 mandir
="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
265 |
--oldin |
--oldi |
--old |
--ol |
--o)
266 ac_prev
=oldincludedir
;;
267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
270 oldincludedir
="$ac_optarg" ;;
272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
275 prefix
="$ac_optarg" ;;
277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
278 |
--program-pre |
--program-pr |
--program-p)
279 ac_prev
=program_prefix
;;
280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
282 program_prefix
="$ac_optarg" ;;
284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
285 |
--program-suf |
--program-su |
--program-s)
286 ac_prev
=program_suffix
;;
287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
289 program_suffix
="$ac_optarg" ;;
291 -program-transform-name |
--program-transform-name \
292 |
--program-transform-nam |
--program-transform-na \
293 |
--program-transform-n |
--program-transform- \
294 |
--program-transform |
--program-transfor \
295 |
--program-transfo |
--program-transf \
296 |
--program-trans |
--program-tran \
297 |
--progr-tra |
--program-tr |
--program-t)
298 ac_prev
=program_transform_name
;;
299 -program-transform-name=* |
--program-transform-name=* \
300 |
--program-transform-nam=* |
--program-transform-na=* \
301 |
--program-transform-n=* |
--program-transform-=* \
302 |
--program-transform=* |
--program-transfor=* \
303 |
--program-transfo=* |
--program-transf=* \
304 |
--program-trans=* |
--program-tran=* \
305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
306 program_transform_name
="$ac_optarg" ;;
308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
309 |
-silent |
--silent |
--silen |
--sile |
--sil)
312 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
314 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
316 sbindir
="$ac_optarg" ;;
318 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
319 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
320 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
322 ac_prev
=sharedstatedir
;;
323 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
324 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
325 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
327 sharedstatedir
="$ac_optarg" ;;
329 -site |
--site |
--sit)
331 -site=* |
--site=* |
--sit=*)
334 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
336 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
337 srcdir
="$ac_optarg" ;;
339 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
340 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
341 ac_prev
=sysconfdir
;;
342 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
343 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
344 sysconfdir
="$ac_optarg" ;;
346 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
348 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
349 target
="$ac_optarg" ;;
351 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
354 -version |
--version |
--versio |
--versi |
--vers)
355 echo "configure generated by autoconf version 2.12.1"
359 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* |
--without-*)
372 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
385 |
--x-incl |
--x-inc |
--x-in |
--x-i)
386 ac_prev
=x_includes
;;
387 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
388 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
389 x_includes
="$ac_optarg" ;;
391 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
392 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
393 ac_prev
=x_libraries
;;
394 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
395 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
396 x_libraries
="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE
; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
447 |
--no-cr |
--no-c) ;;
448 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
449 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
450 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest
* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted
=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted
=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE
; then
501 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file
in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp
='$CPP $CPPFLAGS'
524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling
=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
537 ac_n
= ac_c
='\c' ac_t
=
543 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
544 if test -f $ac_dir/install-sh
; then
546 ac_install_sh
="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh
; then
550 ac_install_sh
="$ac_aux_dir/install.sh -c"
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557 ac_config_guess
=$ac_aux_dir/config.guess
558 ac_config_sub
=$ac_aux_dir/config.sub
559 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
562 # Do some error checking and defaulting for the host and target type.
564 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
567 # 1. You are not allowed to specify --host, --target, and nonopt at the
569 # 2. Host defaults to nonopt.
570 # 3. If nonopt is not specified, then host defaults to the current host,
571 # as determined by config.guess.
572 # 4. Target and build default to nonopt.
573 # 5. If nonopt is not specified, then target and build default to host.
575 # The aliases save the names the user supplied, while $host etc.
576 # will get canonicalized.
577 case $host---$target---$nonopt in
578 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
579 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
583 # Make sure we can run config.sub.
584 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
585 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
588 echo $ac_n "checking host system type""... $ac_c" 1>&6
589 echo "configure:590: checking host system type" >&5
592 case "$host_alias" in
596 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
597 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599 *) host_alias
=$nonopt ;;
603 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
604 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607 echo "$ac_t""$host" 1>&6
609 echo $ac_n "checking target system type""... $ac_c" 1>&6
610 echo "configure:611: checking target system type" >&5
613 case "$target_alias" in
616 NONE
) target_alias
=$host_alias ;;
617 *) target_alias
=$nonopt ;;
621 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
622 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$target" 1>&6
627 echo $ac_n "checking build system type""... $ac_c" 1>&6
628 echo "configure:629: checking build system type" >&5
631 case "$build_alias" in
634 NONE
) build_alias
=$host_alias ;;
635 *) build_alias
=$nonopt ;;
639 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
640 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$build" 1>&6
645 test "$host_alias" != "$target_alias" &&
646 test "$program_prefix$program_suffix$program_transform_name" = \
648 program_prefix
=${target_alias}-
651 # Find a good install program. We prefer a C program (faster),
652 # so one script is as good as another. But avoid the broken or
653 # incompatible versions:
654 # SysV /etc/install, /usr/sbin/install
655 # SunOS /usr/etc/install
658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
661 # ./install, which can be erroneously created by make from ./install.sh.
662 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
663 echo "configure:664: checking for a BSD compatible install" >&5
664 if test -z "$INSTALL"; then
665 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
669 for ac_dir
in $PATH; do
670 # Account for people who put trailing slashes in PATH elements.
672 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
674 # OSF1 and SCO ODT 3.0 have their own names for install.
675 # Don't use installbsd from OSF since it installs stuff as root
677 for ac_prog
in ginstall scoinst
install; do
678 if test -f $ac_dir/$ac_prog; then
679 if test $ac_prog = install &&
680 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
681 # AIX install. It has an incompatible calling convention.
684 ac_cv_path_install
="$ac_dir/$ac_prog -c"
695 if test "${ac_cv_path_install+set}" = set; then
696 INSTALL
="$ac_cv_path_install"
698 # As a last resort, use the slow shell script. We don't cache a
699 # path for INSTALL within a source directory, because that will
700 # break other packages using the cache if that directory is
701 # removed, or if the path is relative.
702 INSTALL
="$ac_install_sh"
705 echo "$ac_t""$INSTALL" 1>&6
707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
708 # It thinks the first close brace ends the variable substitution.
709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
711 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
714 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
716 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
717 echo "configure:718: checking whether build environment is sane" >&5
720 echo timestamp
> conftestfile
721 # Do `set' in a subshell so we don't clobber the current shell's
722 # arguments. Must try -L first in case configure is actually a
723 # symlink; some systems play weird games with the mod time of symlinks
724 # (eg FreeBSD returns the mod time of the symlink's containing
727 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
728 if test "$*" = "X"; then
730 set X
`ls -t $srcdir/configure conftestfile`
732 if test "$*" != "X $srcdir/configure conftestfile" \
733 && test "$*" != "X conftestfile $srcdir/configure"; then
735 # If neither matched, then we have a broken ls. This can happen
736 # if, for instance, CONFIG_SHELL is bash and it inherits a
737 # broken ls alias from the environment. This has actually
738 # happened. Such a system could not be considered "sane".
739 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
740 alias in your environment" 1>&2; exit 1; }
743 test "$2" = conftestfile
749 { echo "configure: error: newly created file is older than distributed files!
750 Check your system clock" 1>&2; exit 1; }
753 echo "$ac_t""yes" 1>&6
754 if test "$program_transform_name" = s
,x
,x
,; then
755 program_transform_name
=
757 # Double any \ or $. echo might interpret backslashes.
758 cat <<\EOF_SED
> conftestsed
759 s
,\\,\\\\,g
; s
,\$
,$$
,g
761 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
764 test "$program_prefix" != NONE
&&
765 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
766 # Use a double $ so make ignores it.
767 test "$program_suffix" != NONE
&&
768 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
770 # sed with no file args requires a program.
771 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
773 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${MAKE-make} sets \${MAKE}" >&5
775 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
776 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftestmake
<<\EOF
781 @
echo 'ac_maketemp="${MAKE}"'
783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
784 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
785 if test -n "$ac_maketemp"; then
786 eval ac_cv_prog_make_
${ac_make}_set
=yes
788 eval ac_cv_prog_make_
${ac_make}_set
=no
792 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
793 echo "$ac_t""yes" 1>&6
796 echo "$ac_t""no" 1>&6
797 SET_MAKE
="MAKE=${MAKE-make}"
805 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
806 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
808 cat >> confdefs.h
<<EOF
809 #define PACKAGE "$PACKAGE"
812 cat >> confdefs.h
<<EOF
813 #define VERSION "$VERSION"
818 missing_dir
=`cd $ac_aux_dir && pwd`
819 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
820 echo "configure:821: checking for working aclocal" >&5
821 # Run test in a subshell; some versions of sh will print an error if
822 # an executable is not found, even if stderr is redirected.
823 # Redirect stdin to placate older versions of autoconf. Sigh.
824 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
826 echo "$ac_t""found" 1>&6
828 ACLOCAL
="$missing_dir/missing aclocal"
829 echo "$ac_t""missing" 1>&6
832 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
833 echo "configure:834: checking for working autoconf" >&5
834 # Run test in a subshell; some versions of sh will print an error if
835 # an executable is not found, even if stderr is redirected.
836 # Redirect stdin to placate older versions of autoconf. Sigh.
837 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
839 echo "$ac_t""found" 1>&6
841 AUTOCONF
="$missing_dir/missing autoconf"
842 echo "$ac_t""missing" 1>&6
845 echo $ac_n "checking for working automake""... $ac_c" 1>&6
846 echo "configure:847: checking for working automake" >&5
847 # Run test in a subshell; some versions of sh will print an error if
848 # an executable is not found, even if stderr is redirected.
849 # Redirect stdin to placate older versions of autoconf. Sigh.
850 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
852 echo "$ac_t""found" 1>&6
854 AUTOMAKE
="$missing_dir/missing automake"
855 echo "$ac_t""missing" 1>&6
858 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
859 echo "configure:860: checking for working autoheader" >&5
860 # Run test in a subshell; some versions of sh will print an error if
861 # an executable is not found, even if stderr is redirected.
862 # Redirect stdin to placate older versions of autoconf. Sigh.
863 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
864 AUTOHEADER
=autoheader
865 echo "$ac_t""found" 1>&6
867 AUTOHEADER
="$missing_dir/missing autoheader"
868 echo "$ac_t""missing" 1>&6
871 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
872 echo "configure:873: checking for working makeinfo" >&5
873 # Run test in a subshell; some versions of sh will print an error if
874 # an executable is not found, even if stderr is redirected.
875 # Redirect stdin to placate older versions of autoconf. Sigh.
876 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
878 echo "$ac_t""found" 1>&6
880 MAKEINFO
="$missing_dir/missing makeinfo"
881 echo "$ac_t""missing" 1>&6
886 # Check whether --enable-shared or --disable-shared was given.
887 if test "${enable_shared+set}" = set; then
888 enableval
="$enable_shared"
891 yes) enable_shared
=yes ;;
892 no
) enable_shared
=no
;;
895 # Look at the argument we got. We use all the common list separators.
896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
897 for pkg
in $enableval; do
898 if test "X$pkg" = "X$p"; then
909 # Check whether --enable-static or --disable-static was given.
910 if test "${enable_static+set}" = set; then
911 enableval
="$enable_static"
914 yes) enable_static
=yes ;;
915 no
) enable_static
=no
;;
918 # Look at the argument we got. We use all the common list separators.
919 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
920 for pkg
in $enableval; do
921 if test "X$pkg" = "X$p"; then
932 # Extract the first word of "ranlib", so it can be a program name with args.
933 set dummy ranlib
; ac_word
=$2
934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
935 echo "configure:936: checking for $ac_word" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 if test -n "$RANLIB"; then
940 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
942 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
943 for ac_dir
in $PATH; do
944 test -z "$ac_dir" && ac_dir
=.
945 if test -f $ac_dir/$ac_word; then
946 ac_cv_prog_RANLIB
="ranlib"
951 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
954 RANLIB
="$ac_cv_prog_RANLIB"
955 if test -n "$RANLIB"; then
956 echo "$ac_t""$RANLIB" 1>&6
958 echo "$ac_t""no" 1>&6
961 # Extract the first word of "gcc", so it can be a program name with args.
962 set dummy gcc
; ac_word
=$2
963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
964 echo "configure:965: checking for $ac_word" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 if test -n "$CC"; then
969 ac_cv_prog_CC
="$CC" # Let the user override the test.
971 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
972 for ac_dir
in $PATH; do
973 test -z "$ac_dir" && ac_dir
=.
974 if test -f $ac_dir/$ac_word; then
983 if test -n "$CC"; then
984 echo "$ac_t""$CC" 1>&6
986 echo "$ac_t""no" 1>&6
989 if test -z "$CC"; then
990 # Extract the first word of "cc", so it can be a program name with args.
991 set dummy cc
; ac_word
=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$CC"; then
998 ac_cv_prog_CC
="$CC" # Let the user override the test.
1000 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1002 for ac_dir
in $PATH; do
1003 test -z "$ac_dir" && ac_dir
=.
1004 if test -f $ac_dir/$ac_word; then
1005 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1006 ac_prog_rejected
=yes
1014 if test $ac_prog_rejected = yes; then
1015 # We found a bogon in the path, so make sure we never use it.
1016 set dummy
$ac_cv_prog_CC
1018 if test $# -gt 0; then
1019 # We chose a different compiler from the bogus one.
1020 # However, it has the same basename, so the bogon will be chosen
1021 # first if we set CC to just the basename; use the full file name.
1023 set dummy
"$ac_dir/$ac_word" "$@"
1031 if test -n "$CC"; then
1032 echo "$ac_t""$CC" 1>&6
1034 echo "$ac_t""no" 1>&6
1037 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1040 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1041 echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1045 ac_cpp
='$CPP $CPPFLAGS'
1046 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1047 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1048 cross_compiling
=$ac_cv_prog_cc_cross
1050 cat > conftest.
$ac_ext <<EOF
1051 #line 1052 "configure"
1052 #include "confdefs.h"
1055 if { (eval echo configure
:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1056 ac_cv_prog_cc_works
=yes
1057 # If we can't run a trivial program, we are probably using a cross compiler.
1058 if (.
/conftest
; exit) 2>/dev
/null
; then
1059 ac_cv_prog_cc_cross
=no
1061 ac_cv_prog_cc_cross
=yes
1064 echo "configure: failed program was:" >&5
1065 cat conftest.
$ac_ext >&5
1066 ac_cv_prog_cc_works
=no
1070 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1071 if test $ac_cv_prog_cc_works = no
; then
1072 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1074 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1075 echo "configure:1076: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1076 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1077 cross_compiling
=$ac_cv_prog_cc_cross
1079 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether we are using GNU C" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1084 cat > conftest.c
<<EOF
1089 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1096 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1098 if test $ac_cv_prog_gcc = yes; then
1100 ac_test_CFLAGS
="${CFLAGS+set}"
1101 ac_save_CFLAGS
="$CFLAGS"
1103 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether ${CC-cc} accepts -g" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 echo 'void f(){}' > conftest.c
1109 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1118 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1119 if test "$ac_test_CFLAGS" = set; then
1120 CFLAGS
="$ac_save_CFLAGS"
1121 elif test $ac_cv_prog_cc_g = yes; then
1128 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1131 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1132 if test "${with_gnu_ld+set}" = set; then
1133 withval
="$with_gnu_ld"
1134 test "$withval" = no || with_gnu_ld
=yes
1141 if test "$ac_cv_prog_gcc" = yes; then
1142 # Check if gcc -print-prog-name=ld gives a path.
1143 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1144 echo "configure:1145: checking for ld used by GCC" >&5
1145 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1147 # Accept absolute paths.
1149 test -z "$LD" && LD
="$ac_prog"
1152 # If it fails, then pretend we aren't using GCC.
1156 # If it is relative, then search for the first ld in PATH.
1160 elif test "$with_gnu_ld" = yes; then
1161 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1162 echo "configure:1163: checking for GNU ld" >&5
1164 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1165 echo "configure:1166: checking for non-GNU ld" >&5
1167 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 if test -z "$LD"; then
1171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1172 for ac_dir
in $PATH; do
1173 test -z "$ac_dir" && ac_dir
=.
1174 if test -f "$ac_dir/$ac_prog"; then
1175 ac_cv_path_LD
="$ac_dir/$ac_prog"
1176 # Check to see if the program is GNU ld. I'd rather use --version,
1177 # but apparently some GNU ld's only accept -v.
1178 # Break only if it was the GNU/non-GNU ld that we prefer.
1179 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1180 test "$with_gnu_ld" != no
&& break
1182 test "$with_gnu_ld" != yes && break
1188 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1193 if test -n "$LD"; then
1194 echo "$ac_t""$LD" 1>&6
1196 echo "$ac_t""no" 1>&6
1198 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1200 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1201 echo "configure:1202: checking if the linker ($LD) is GNU ld" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1206 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1207 ac_cv_prog_gnu_ld
=yes
1209 ac_cv_prog_gnu_ld
=no
1213 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1216 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1217 echo "configure:1218: checking for BSD-compatible nm" >&5
1218 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 if test -n "$NM"; then
1222 # Let the user override the test.
1225 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1226 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1227 test -z "$ac_dir" && ac_dir
=.
1228 if test -f $ac_dir/nm
; then
1229 # Check to see if the nm accepts a BSD-compat flag.
1230 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1231 # nm: unknown option "B" ignored
1232 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1233 ac_cv_path_NM
="$ac_dir/nm -B"
1234 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1235 ac_cv_path_NM
="$ac_dir/nm -p"
1237 ac_cv_path_NM
="$ac_dir/nm"
1243 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1248 echo "$ac_t""$NM" 1>&6
1251 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether ln -s works" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1257 if ln -s X conftestdata
2>/dev
/null
1260 ac_cv_prog_LN_S
="ln -s"
1265 LN_S
="$ac_cv_prog_LN_S"
1266 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1267 echo "$ac_t""yes" 1>&6
1269 echo "$ac_t""no" 1>&6
1272 if test $host != $build; then
1273 ac_tool_prefix
=${host_alias}-
1278 # Always use our own libtool.
1279 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1281 # Check for any special flags to pass to ltconfig.
1283 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1284 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1285 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1286 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1287 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1289 # Some flags need to be propagated to the compiler or linker for good
1293 # Find out which ABI we are using.
1294 echo '#line 1295 "configure"' > conftest.
$ac_ext
1295 if { (eval echo configure
:1296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1296 case "`/usr/bin/file conftest.o`" in
1312 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1313 CFLAGS
="$CFLAGS -belf"
1317 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1318 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1320 echo "configure:1321: checking for $ac_word" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 if test -n "$DLLTOOL"; then
1325 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1327 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1328 for ac_dir
in $PATH; do
1329 test -z "$ac_dir" && ac_dir
=.
1330 if test -f $ac_dir/$ac_word; then
1331 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1338 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1339 if test -n "$DLLTOOL"; then
1340 echo "$ac_t""$DLLTOOL" 1>&6
1342 echo "$ac_t""no" 1>&6
1346 if test -z "$ac_cv_prog_DLLTOOL"; then
1347 if test -n "$ac_tool_prefix"; then
1348 # Extract the first word of "dlltool", so it can be a program name with args.
1349 set dummy dlltool
; ac_word
=$2
1350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_word" >&5
1352 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 if test -n "$DLLTOOL"; then
1356 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1358 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1359 for ac_dir
in $PATH; do
1360 test -z "$ac_dir" && ac_dir
=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_DLLTOOL
="dlltool"
1367 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1370 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1371 if test -n "$DLLTOOL"; then
1372 echo "$ac_t""$DLLTOOL" 1>&6
1374 echo "$ac_t""no" 1>&6
1382 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1383 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1385 echo "configure:1386: checking for $ac_word" >&5
1386 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 if test -n "$AS"; then
1390 ac_cv_prog_AS
="$AS" # Let the user override the test.
1392 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1393 for ac_dir
in $PATH; do
1394 test -z "$ac_dir" && ac_dir
=.
1395 if test -f $ac_dir/$ac_word; then
1396 ac_cv_prog_AS
="${ac_tool_prefix}as"
1404 if test -n "$AS"; then
1405 echo "$ac_t""$AS" 1>&6
1407 echo "$ac_t""no" 1>&6
1411 if test -z "$ac_cv_prog_AS"; then
1412 if test -n "$ac_tool_prefix"; then
1413 # Extract the first word of "as", so it can be a program name with args.
1414 set dummy as
; ac_word
=$2
1415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1416 echo "configure:1417: checking for $ac_word" >&5
1417 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 if test -n "$AS"; then
1421 ac_cv_prog_AS
="$AS" # Let the user override the test.
1423 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1424 for ac_dir
in $PATH; do
1425 test -z "$ac_dir" && ac_dir
=.
1426 if test -f $ac_dir/$ac_word; then
1432 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1436 if test -n "$AS"; then
1437 echo "$ac_t""$AS" 1>&6
1439 echo "$ac_t""no" 1>&6
1452 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1453 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1454 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1455 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1456 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1457 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1458 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1460 # Redirect the config.log output again, so that the ltconfig log is not
1461 # clobbered by the next message.
1462 exec 5>>.
/config.log
1466 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1467 if test "${enable_bfd_assembler+set}" = set; then
1468 enableval
="$enable_bfd_assembler"
1469 case "${enableval}" in
1470 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1471 no
) user_bfd_gas
=no
;;
1472 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1475 # Check whether --enable-targets or --disable-targets was given.
1476 if test "${enable_targets+set}" = set; then
1477 enableval
="$enable_targets"
1478 case "${enableval}" in
1479 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1481 no
) enable_targets
= ;;
1482 *) enable_targets
=$enableval ;;
1485 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1486 if test "${enable_commonbfdlib+set}" = set; then
1487 enableval
="$enable_commonbfdlib"
1488 case "${enableval}" in
1489 yes) commonbfdlib
=true
;;
1490 no
) commonbfdlib
=false
;;
1491 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1495 # Generate a header file
1503 if test -n "$enable_targets" ; then
1504 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1505 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
1506 if test -n "$result" ; then
1507 canon_targets
="$canon_targets $result"
1509 # # Permit "all", etc. We don't support it yet though.
1510 # canon_targets="$canon_targets $t"
1513 _gas_uniq_list
="$canon_targets"
1514 _gas_uniq_newlist
=""
1515 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1516 case $_gas_uniq_i in
1518 *) case " $_gas_uniq_newlist " in
1519 *" $_gas_uniq_i "*) ;;
1520 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1524 canon_targets
=$_gas_uniq_newlist
1530 for this_target
in $target $canon_targets ; do
1532 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1534 # check for architecture variants
1538 alpha
*) cpu_type
=alpha
;;
1539 armeb
) cpu_type
=arm endian
=big
;;
1540 arm
*) cpu_type
=arm endian
=little
;;
1541 thumb
*) cpu_type
=arm endian
=little
;;
1542 hppa
*) cpu_type
=hppa
;;
1543 i
[456]86) cpu_type
=i386
;;
1544 m680
[012346]0) cpu_type
=m68k
;;
1545 m68008
) cpu_type
=m68k
;;
1546 m683??
) cpu_type
=m68k
;;
1547 m5200
) cpu_type
=m68k
;;
1548 m8
*) cpu_type
=m88k
;;
1549 mips
*el
) cpu_type
=mips endian
=little
;;
1550 # start-sanitize-r5900
1551 mips
*5900*) cpu_type
=mips endian
=little
;;
1552 # end-sanitize-r5900
1553 mips
*) cpu_type
=mips endian
=big
;;
1554 powerpcle
*) cpu_type
=ppc endian
=little
;;
1555 powerpc
*) cpu_type
=ppc endian
=big
;;
1556 rs6000
*) cpu_type
=ppc
;;
1557 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1558 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1559 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
1560 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
1561 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1562 v850
*) cpu_type
=v850
;;
1563 *) cpu_type
=${cpu} ;;
1566 if test ${this_target} = $target ; then
1567 target_cpu_type
=${cpu_type}
1568 if test x
${endian} = xbig
; then
1569 cat >> confdefs.h
<<\EOF
1570 #define TARGET_BYTES_BIG_ENDIAN 1
1573 elif test x
${endian} = xlittle
; then
1574 cat >> confdefs.h
<<\EOF
1575 #define TARGET_BYTES_BIG_ENDIAN 0
1579 elif test ${target_cpu_type} != ${cpu_type} ; then
1583 generic_target
=${cpu_type}-$vendor-$os
1588 # assign object format
1589 case ${generic_target} in
1590 a29k-
*-coff) fmt=coff
;;
1591 a29k-amd-udi
) fmt=coff
;;
1592 a29k-amd-ebmon
) fmt=coff
;;
1593 a29k-nyu-sym1
) fmt=coff
;;
1594 a29k-
*-vxworks*) fmt=coff
;;
1596 alpha
*-*-*vms
*) fmt=evax
;;
1597 alpha
*-*-netware*) fmt=ecoff
;;
1598 alpha
*-*-openbsd*) fmt=ecoff
;;
1599 alpha
*-*-osf*) fmt=ecoff
;;
1600 alpha
*-*-linuxecoff*) fmt=ecoff
;;
1601 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
1602 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
1604 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1606 arm-
*-riscix*) fmt=aout em
=riscix
;;
1607 arm-
*-aout) fmt=aout
;;
1608 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1609 arm-
*-riscix*) fmt=aout
;;
1610 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
1612 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1613 # start-sanitize-d30v
1614 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1617 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1618 hppa-
*-lites*) fmt=elf em
=hppa
;;
1619 hppa-
*-osf*) fmt=som em
=hppa
;;
1620 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1621 hppa-
*-hpux*) fmt=som em
=hppa
;;
1622 hppa-
*-bsd*) fmt=som em
=hppa
;;
1623 hppa-
*-hiux*) fmt=som em
=hppa
;;
1625 h8300-
*-coff) fmt=coff
;;
1627 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1628 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1629 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
1630 i386-
*-beoself* | i386-
*-beos*) fmt=elf
;;
1631 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1632 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1633 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1634 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1635 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1636 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1637 i386-
*-linux-gnu*) fmt=elf em
=linux
;;
1638 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1639 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
1641 i386-
*-freebsdelf*) fmt=elf
;;
1642 i386-
*-freebsd*) fmt=aout em
=386bsd
;;
1643 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
1645 i386-
*-sco3.2v5
*) fmt=elf
1646 if test ${this_target} = $target; then
1647 cat >> confdefs.h
<<\EOF
1653 i386-
*-sco3.2
*) fmt=coff
;;
1654 i386-
*-vsta) fmt=aout
;;
1655 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
1657 i386-
*-rtems*) fmt=coff
;;
1658 i386-
*-gnu*) fmt=elf
;;
1660 fmt=aout em
=mach bfd_gas
=yes ;;
1661 i386-
*-msdos*) fmt=aout
;;
1662 i386-
*-moss*) fmt=elf
;;
1663 i386-
*-pe) fmt=coff em
=pe
;;
1664 i386-
*-cygwin32*) fmt=coff em
=pe bfd_gas
=yes ;;
1665 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
1666 i386-
*-*nt
*) fmt=coff em
=pe
;;
1667 i960-
*-bout) fmt=bout
;;
1668 i960-
*-coff) fmt=coff em
=ic960
;;
1669 i960-
*-rtems*) fmt=coff em
=ic960
;;
1670 i960-
*-nindy*) fmt=bout
;;
1671 i960-
*-vxworks4*) fmt=bout
;;
1672 i960-
*-vxworks5.0
) fmt=bout
;;
1673 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1674 i960-
*-vxworks*) fmt=bout
;;
1676 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1678 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1680 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1681 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1682 m68k-apollo-
*) fmt=coff em
=apollo
;;
1683 m68k-
*-sysv4*) # must be before -sysv*
1685 m68k-
*-elf*) fmt=elf
;;
1686 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1688 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1689 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1690 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
1691 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1692 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1693 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1694 m68k-apple-aux
*) fmt=coff em
=aux
;;
1695 m68k-
*-psos*) fmt=elf em
=psos
;;
1697 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1698 m88k-
*-coff*) fmt=coff
;;
1700 # don't change em like *-*-bsd does
1701 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1702 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1703 mips-dec-bsd
*) fmt=aout
;;
1704 mips-sony-bsd
*) fmt=ecoff
;;
1705 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1706 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1707 mips-
*-osf*) fmt=ecoff endian
=little
;;
1708 mips-
*-ecoff*) fmt=ecoff
;;
1709 mips-
*-ecoff*) fmt=ecoff
;;
1710 mips-
*-irix6*) fmt=elf
;;
1711 mips-
*-irix5*) fmt=elf
;;
1712 mips-
*-irix*) fmt=ecoff
;;
1713 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1714 mips-
*-riscos*) fmt=ecoff
;;
1715 mips-
*-sysv*) fmt=ecoff
;;
1716 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
1718 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1719 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1720 ppc-
*-pe | ppc-
*-cygwin32 | ppc-
*-winnt*)
1722 ppc-
*-aix*) fmt=coff
;;
1723 ppc-
*-beos*) fmt=coff
;;
1724 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1726 ppc-
*-linux-gnu*) fmt=elf
1729 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
1732 ppc-
*-solaris*) fmt=elf
1733 if test ${this_target} = $target; then
1734 cat >> confdefs.h
<<\EOF
1735 #define TARGET_SOLARIS_COMMENT 1
1739 if test x
${endian} = xbig
; then
1740 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1743 ppc-
*-rtems*) fmt=elf
;;
1744 ppc-
*-macos* | ppc-
*-mpw*)
1745 fmt=coff em
=macos
;;
1746 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1748 sh-
*-elf*) fmt=elf
;;
1749 sh-
*-coff*) fmt=coff
;;
1750 sh-
*-rtems*) fmt=coff
;;
1752 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1753 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1754 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1756 sparc-
*-rtems*) fmt=aout
;;
1757 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1758 sparc-
*-aout | sparc
*-*-vxworks*)
1759 fmt=aout em
=sparcaout
;;
1760 sparc-
*-coff) fmt=coff
;;
1761 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1762 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
1763 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1764 sparc-fujitsu-none
) fmt=aout
;;
1765 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1767 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1768 sparc-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1770 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
1771 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
1772 # start-sanitize-tic80
1773 tic80-
*-*) fmt=coff
;;
1774 # end-sanitize-tic80
1776 # start-sanitize-sky
1777 dvp-
*-*) fmt=elf bfd_gas
=yes ;;
1780 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1782 # start-sanitize-v850e
1783 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
1784 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
1785 # end-sanitize-v850e
1786 vax-
*-bsd* | vax-
*-ultrix*)
1788 vax-
*-vms) fmt=vms
;;
1790 z8k-
*-coff | z8k-
*-sim)
1793 w65-
*-*) fmt=coff
;;
1795 *-*-aout |
*-*-scout)
1801 *-*-generic) fmt=generic
;;
1802 *-*-xray |
*-*-hms) fmt=coff
;;
1803 *-*-sim) fmt=coff
;;
1804 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1805 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1807 *-*-vxworks) fmt=aout
;;
1808 *-*-netware) fmt=elf
;;
1811 case ${cpu_type}-${fmt} in
1812 alpha
*-*) bfd_gas
=yes ;;
1813 arm-
*) bfd_gas
=yes ;;
1815 # i386-aout) bfd_gas=preferred ;;
1816 mips-
*) bfd_gas
=yes ;;
1817 ns32k-
*) bfd_gas
=yes ;;
1818 ppc-
*) bfd_gas
=yes ;;
1819 sparc-
*) bfd_gas
=yes ;;
1820 *-elf) bfd_gas
=yes ;;
1821 *-ecoff) bfd_gas
=yes ;;
1822 *-som) bfd_gas
=yes ;;
1826 # Other random stuff.
1828 # do we need the opcodes library?
1835 case "${enable_shared}" in
1836 yes) shared_opcodes
=true
;;
1837 *opcodes
*) shared_opcodes
=true
;;
1838 *) shared_opcodes
=false
;;
1840 if test "${shared_opcodes}" = "true"; then
1841 # A shared libopcodes must be linked against libbfd.
1849 case "x${extra_objects}" in
1851 *) extra_objects
="$extra_objects cgen.o"
1852 cat >> confdefs.h
<<\EOF
1853 #define USING_CGEN 1
1861 case ${extra_objects} in
1863 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1868 echo ${extra_objects} |
grep -s "itbl-parse.o"
1869 if test $?
-ne 0 ; then
1870 extra_objects
="$extra_objects itbl-parse.o"
1873 echo ${extra_objects} |
grep -s "itbl-lex.o"
1874 if test $?
-ne 0 ; then
1875 extra_objects
="$extra_objects itbl-lex.o"
1878 echo ${extra_objects} |
grep -s "itbl-ops.o"
1879 if test $?
-ne 0 ; then
1880 extra_objects
="$extra_objects itbl-ops.o"
1885 if test $this_target = $target ; then
1886 cat >> confdefs.h
<<EOF
1887 #define DEFAULT_ARCH "${arch}"
1897 # See if we really can support this configuration with the emulation code.
1899 if test $this_target = $target ; then
1900 primary_bfd_gas
=$bfd_gas
1904 if test $bfd_gas = no
; then
1905 # Can't support other configurations this way.
1908 elif test $bfd_gas = no
; then
1909 # Can't support this configuration.
1913 # From target name and format, produce a list of supported emulations.
1915 case ${generic_target}-${fmt} in
1916 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1917 mips-
*-linux-gnu*-*) case "$endian" in
1918 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1919 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1921 mips-
*-lnews*-ecoff) ;;
1922 mips-
*-*-ecoff) case "$endian" in
1923 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1924 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
1926 mips-
*-*-elf) case "$endian" in
1927 big
) emulation
="mipsbelf mipslelf mipself" ;;
1928 *) emulation
="mipslelf mipsbelf mipself" ;;
1929 # Uncommenting the next line will turn on support for i386 COFF
1930 # in any i386 ELF configuration. This probably doesn't work
1932 # i386-*-*-elf) emulation="i386coff i386elf" ;;
1936 emulations
="$emulations $emulation"
1940 # Assign floating point type. Most processors with FP support
1941 # IEEE FP. On those that don't support FP at all, usually IEEE
1943 case ${target_cpu} in
1944 vax | tahoe
) atof
=${target_cpu} ;;
1948 case "${obj_format}" in
1949 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1952 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
1954 case "x${extra_objects}" in
1956 case ${target_cpu} in
1957 *) cgen_cpu_prefix
=${target_cpu} ;;
1964 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
1965 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1968 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
1969 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1972 case ${user_bfd_gas}-${primary_bfd_gas} in
1974 # We didn't override user's choice.
1977 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1989 # User specified nothing.
1993 # Some COFF configurations want these random other flags set.
1994 case ${obj_format} in
1996 case ${target_cpu_type} in
1997 i386
) cat >> confdefs.h
<<\EOF
2001 m68k
) cat >> confdefs.h
<<\EOF
2005 m88k
) cat >> confdefs.h
<<\EOF
2013 # Getting this done right is going to be a bitch. Each configuration specified
2014 # with --enable-targets=... should be checked for environment, format, cpu, and
2017 # For each configuration, the necessary object file support code must be linked
2018 # in. This might be only one, it might be up to four. The necessary emulation
2019 # code needs to be provided, too.
2021 # And then there's "--enable-targets=all"....
2023 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2025 formats
="${obj_format}"
2028 _gas_uniq_list
="$emulations"
2029 _gas_uniq_newlist
=""
2030 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2031 case $_gas_uniq_i in
2033 *) case " $_gas_uniq_newlist " in
2034 *" $_gas_uniq_i "*) ;;
2035 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2039 emulations
=$_gas_uniq_newlist
2041 for em
in .
$emulations ; do
2044 mipsbelf | mipslelf
)
2045 fmt=elf
file=mipself
;;
2046 mipsbecoff | mipslecoff
)
2047 fmt=ecoff
file=mipsecoff
;;
2049 fmt=coff
file=i386coff
;;
2051 fmt=elf
file=i386elf
;;
2053 formats
="$formats $fmt"
2054 emfiles
="$emfiles e-$file.o"
2055 EMULATIONS
="$EMULATIONS &$em,"
2057 _gas_uniq_list
="$formats"
2058 _gas_uniq_newlist
=""
2059 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2060 case $_gas_uniq_i in
2062 *) case " $_gas_uniq_newlist " in
2063 *" $_gas_uniq_i "*) ;;
2064 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2068 formats
=$_gas_uniq_newlist
2070 _gas_uniq_list
="$emfiles"
2071 _gas_uniq_newlist
=""
2072 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2073 case $_gas_uniq_i in
2075 *) case " $_gas_uniq_newlist " in
2076 *" $_gas_uniq_i "*) ;;
2077 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2081 emfiles
=$_gas_uniq_newlist
2083 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2084 for fmt in $formats ; do
2086 aout
) cat >> confdefs.h
<<\EOF
2087 #define OBJ_MAYBE_AOUT 1
2090 bout
) cat >> confdefs.h
<<\EOF
2091 #define OBJ_MAYBE_BOUT 1
2094 coff
) cat >> confdefs.h
<<\EOF
2095 #define OBJ_MAYBE_COFF 1
2098 ecoff
) cat >> confdefs.h
<<\EOF
2099 #define OBJ_MAYBE_ECOFF 1
2102 elf
) cat >> confdefs.h
<<\EOF
2103 #define OBJ_MAYBE_ELF 1
2106 generic
) cat >> confdefs.h
<<\EOF
2107 #define OBJ_MAYBE_GENERIC 1
2110 hp300
) cat >> confdefs.h
<<\EOF
2111 #define OBJ_MAYBE_HP300 1
2114 ieee
) cat >> confdefs.h
<<\EOF
2115 #define OBJ_MAYBE_IEEE 1
2118 som
) cat >> confdefs.h
<<\EOF
2119 #define OBJ_MAYBE_SOM 1
2122 vms
) cat >> confdefs.h
<<\EOF
2123 #define OBJ_MAYBE_VMS 1
2127 extra_objects
="$extra_objects obj-$fmt.o"
2131 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2133 extra_objects
="$extra_objects $emfiles"
2134 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2135 cat >> confdefs.h
<<\EOF
2136 #define USE_EMULATIONS 1
2141 cat >> confdefs.h
<<EOF
2142 #define EMULATIONS $EMULATIONS
2145 cat >> confdefs.h
<<EOF
2146 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2150 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2151 yes-
*-coff) need_bfd
=yes ;;
2152 no-
*-coff) need_bfd
=yes
2153 cat >> confdefs.h
<<\EOF
2154 #define MANY_SEGMENTS 1
2159 reject_dev_configs
=yes
2161 case ${reject_dev_configs}-${dev} in
2163 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2172 case "${primary_bfd_gas}" in
2173 yes) cat >> confdefs.h
<<\EOF
2174 #define BFD_ASSEMBLER 1
2180 # do we need the opcodes library?
2181 case "${need_opcodes}" in
2183 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2187 case "${need_bfd}" in
2189 BFDLIB
=..
/bfd
/libbfd.la
2190 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2199 cat >> confdefs.h
<<EOF
2200 #define TARGET_ALIAS "${target_alias}"
2203 cat >> confdefs.h
<<EOF
2204 #define TARGET_CANONICAL "${target}"
2207 cat >> confdefs.h
<<EOF
2208 #define TARGET_CPU "${target_cpu}"
2211 cat >> confdefs.h
<<EOF
2212 #define TARGET_VENDOR "${target_vendor}"
2215 cat >> confdefs.h
<<EOF
2216 #define TARGET_OS "${target_os}"
2220 # Extract the first word of "gcc", so it can be a program name with args.
2221 set dummy gcc
; ac_word
=$2
2222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2223 echo "configure:2224: checking for $ac_word" >&5
2224 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC
="$CC" # Let the user override the test.
2230 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2231 for ac_dir
in $PATH; do
2232 test -z "$ac_dir" && ac_dir
=.
2233 if test -f $ac_dir/$ac_word; then
2242 if test -n "$CC"; then
2243 echo "$ac_t""$CC" 1>&6
2245 echo "$ac_t""no" 1>&6
2248 if test -z "$CC"; then
2249 # Extract the first word of "cc", so it can be a program name with args.
2250 set dummy cc
; ac_word
=$2
2251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_word" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 if test -n "$CC"; then
2257 ac_cv_prog_CC
="$CC" # Let the user override the test.
2259 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2261 for ac_dir
in $PATH; do
2262 test -z "$ac_dir" && ac_dir
=.
2263 if test -f $ac_dir/$ac_word; then
2264 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2265 ac_prog_rejected
=yes
2273 if test $ac_prog_rejected = yes; then
2274 # We found a bogon in the path, so make sure we never use it.
2275 set dummy
$ac_cv_prog_CC
2277 if test $# -gt 0; then
2278 # We chose a different compiler from the bogus one.
2279 # However, it has the same basename, so the bogon will be chosen
2280 # first if we set CC to just the basename; use the full file name.
2282 set dummy
"$ac_dir/$ac_word" "$@"
2290 if test -n "$CC"; then
2291 echo "$ac_t""$CC" 1>&6
2293 echo "$ac_t""no" 1>&6
2296 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2299 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2300 echo "configure:2301: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2303 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2304 ac_cpp
='$CPP $CPPFLAGS'
2305 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2306 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2307 cross_compiling
=$ac_cv_prog_cc_cross
2309 cat > conftest.
$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2314 if { (eval echo configure
:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2315 ac_cv_prog_cc_works
=yes
2316 # If we can't run a trivial program, we are probably using a cross compiler.
2317 if (.
/conftest
; exit) 2>/dev
/null
; then
2318 ac_cv_prog_cc_cross
=no
2320 ac_cv_prog_cc_cross
=yes
2323 echo "configure: failed program was:" >&5
2324 cat conftest.
$ac_ext >&5
2325 ac_cv_prog_cc_works
=no
2329 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2330 if test $ac_cv_prog_cc_works = no
; then
2331 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2333 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2334 echo "configure:2335: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2335 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2336 cross_compiling
=$ac_cv_prog_cc_cross
2338 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2339 echo "configure:2340: checking whether we are using GNU C" >&5
2340 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.c
<<EOF
2348 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2355 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2357 if test $ac_cv_prog_gcc = yes; then
2359 ac_test_CFLAGS
="${CFLAGS+set}"
2360 ac_save_CFLAGS
="$CFLAGS"
2362 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2363 echo "configure:2364: checking whether ${CC-cc} accepts -g" >&5
2364 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 echo 'void f(){}' > conftest.c
2368 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2377 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2378 if test "$ac_test_CFLAGS" = set; then
2379 CFLAGS
="$ac_save_CFLAGS"
2380 elif test $ac_cv_prog_cc_g = yes; then
2387 test "${CFLAGS+set}" = set || CFLAGS
="-g"
2391 for ac_prog
in 'bison -y' byacc
2393 # Extract the first word of "$ac_prog", so it can be a program name with args.
2394 set dummy
$ac_prog; ac_word
=$2
2395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_word" >&5
2397 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 if test -n "$YACC"; then
2401 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2403 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2404 for ac_dir
in $PATH; do
2405 test -z "$ac_dir" && ac_dir
=.
2406 if test -f $ac_dir/$ac_word; then
2407 ac_cv_prog_YACC
="$ac_prog"
2414 YACC
="$ac_cv_prog_YACC"
2415 if test -n "$YACC"; then
2416 echo "$ac_t""$YACC" 1>&6
2418 echo "$ac_t""no" 1>&6
2421 test -n "$YACC" && break
2423 test -n "$YACC" || YACC
="yacc"
2425 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2426 echo "configure:2427: checking how to run the C preprocessor" >&5
2427 # On Suns, sometimes $CPP names a directory.
2428 if test -n "$CPP" && test -d "$CPP"; then
2431 if test -z "$CPP"; then
2432 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 # This must be in double quotes, not single quotes, because CPP may get
2436 # substituted into the Makefile and "${CC-cc}" will confuse make.
2438 # On the NeXT, cc -E runs the code through the compiler's parser,
2439 # not just through cpp.
2440 cat > conftest.
$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2446 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2447 { (eval echo configure
:2448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2448 ac_err
=`grep -v '^ *+' conftest.out`
2449 if test -z "$ac_err"; then
2453 echo "configure: failed program was:" >&5
2454 cat conftest.
$ac_ext >&5
2456 CPP
="${CC-cc} -E -traditional-cpp"
2457 cat > conftest.
$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2463 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2464 { (eval echo configure
:2465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2465 ac_err
=`grep -v '^ *+' conftest.out`
2466 if test -z "$ac_err"; then
2470 echo "configure: failed program was:" >&5
2471 cat conftest.
$ac_ext >&5
2478 ac_cv_prog_CPP
="$CPP"
2480 CPP
="$ac_cv_prog_CPP"
2482 ac_cv_prog_CPP
="$CPP"
2484 echo "$ac_t""$CPP" 1>&6
2486 missing_dir
=`cd $ac_aux_dir && pwd`
2487 for ac_prog
in flex
lex
2489 # Extract the first word of "$ac_prog", so it can be a program name with args.
2490 set dummy
$ac_prog; ac_word
=$2
2491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2492 echo "configure:2493: checking for $ac_word" >&5
2493 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 if test -n "$LEX"; then
2497 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2499 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2500 for ac_dir
in $PATH; do
2501 test -z "$ac_dir" && ac_dir
=.
2502 if test -f $ac_dir/$ac_word; then
2503 ac_cv_prog_LEX
="$ac_prog"
2510 LEX
="$ac_cv_prog_LEX"
2511 if test -n "$LEX"; then
2512 echo "$ac_t""$LEX" 1>&6
2514 echo "$ac_t""no" 1>&6
2517 test -n "$LEX" && break
2519 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2521 # Extract the first word of "flex", so it can be a program name with args.
2522 set dummy flex
; ac_word
=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_word" >&5
2525 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 if test -n "$LEX"; then
2529 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2531 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2532 for ac_dir
in $PATH; do
2533 test -z "$ac_dir" && ac_dir
=.
2534 if test -f $ac_dir/$ac_word; then
2535 ac_cv_prog_LEX
="flex"
2540 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2543 LEX
="$ac_cv_prog_LEX"
2544 if test -n "$LEX"; then
2545 echo "$ac_t""$LEX" 1>&6
2547 echo "$ac_t""no" 1>&6
2550 if test -z "$LEXLIB"
2556 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2557 echo "configure:2558: checking for yywrap in -l$ac_lib" >&5
2558 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 ac_save_LIBS
="$LIBS"
2563 LIBS
="-l$ac_lib $LIBS"
2564 cat > conftest.
$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2567 /* Override any gcc2 internal prototype to avoid an error. */
2568 /* We use char because int might match the return type of a gcc2
2569 builtin and then its argument prototype would still apply. */
2576 if { (eval echo configure
:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2578 eval "ac_cv_lib_$ac_lib_var=yes"
2580 echo "configure: failed program was:" >&5
2581 cat conftest.
$ac_ext >&5
2583 eval "ac_cv_lib_$ac_lib_var=no"
2586 LIBS
="$ac_save_LIBS"
2589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2593 echo "$ac_t""no" 1>&6
2598 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2599 echo "configure:2600: checking lex output file root" >&5
2600 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2603 # The minimal lex program is just a single line: %%. But some broken lexes
2604 # (Solaris, I think it was) want two %% lines, so accommodate them.
2607 if test -f lex.yy.c
; then
2608 ac_cv_prog_lex_root
=lex.yy
2609 elif test -f lexyy.c
; then
2610 ac_cv_prog_lex_root
=lexyy
2612 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2616 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2617 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2619 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2620 echo "configure:2621: checking whether yytext is a pointer" >&5
2621 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 # POSIX says lex can declare yytext either as a pointer or an array; the
2625 # default is implementation-dependent. Figure out which it is, since
2626 # not all implementations provide the %pointer and %array declarations.
2627 ac_cv_prog_lex_yytext_pointer
=no
2628 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2629 ac_save_LIBS
="$LIBS"
2630 LIBS
="$LIBS $LEXLIB"
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 `cat $LEX_OUTPUT_ROOT.c`
2639 if { (eval echo configure
:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2641 ac_cv_prog_lex_yytext_pointer
=yes
2643 echo "configure: failed program was:" >&5
2644 cat conftest.
$ac_ext >&5
2647 LIBS
="$ac_save_LIBS"
2648 rm -f "${LEX_OUTPUT_ROOT}.c"
2652 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2653 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2654 cat >> confdefs.h
<<\EOF
2655 #define YYTEXT_POINTER 1
2662 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2663 echo "configure:2664: checking for POSIXized ISC" >&5
2664 if test -d /etc
/conf
/kconfig.d
&&
2665 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2667 echo "$ac_t""yes" 1>&6
2668 ISC
=yes # If later tests want to check for ISC.
2669 cat >> confdefs.h
<<\EOF
2670 #define _POSIX_SOURCE 1
2673 if test "$GCC" = yes; then
2679 echo "$ac_t""no" 1>&6
2683 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2684 echo "configure:2685: checking for ANSI C header files" >&5
2685 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 cat > conftest.
$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2696 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2697 { (eval echo configure
:2698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2698 ac_err
=`grep -v '^ *+' conftest.out`
2699 if test -z "$ac_err"; then
2701 ac_cv_header_stdc
=yes
2704 echo "configure: failed program was:" >&5
2705 cat conftest.
$ac_ext >&5
2707 ac_cv_header_stdc
=no
2711 if test $ac_cv_header_stdc = yes; then
2712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2719 egrep "memchr" >/dev
/null
2>&1; then
2723 ac_cv_header_stdc
=no
2729 if test $ac_cv_header_stdc = yes; then
2730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2731 cat > conftest.
$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2737 egrep "free" >/dev
/null
2>&1; then
2741 ac_cv_header_stdc
=no
2747 if test $ac_cv_header_stdc = yes; then
2748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2749 if test "$cross_compiling" = yes; then
2752 cat > conftest.
$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2756 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2757 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2759 int main () { int i; for (i = 0; i < 256; i++)
2760 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2764 if { (eval echo configure
:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2768 echo "configure: failed program was:" >&5
2769 cat conftest.
$ac_ext >&5
2771 ac_cv_header_stdc
=no
2779 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2780 if test $ac_cv_header_stdc = yes; then
2781 cat >> confdefs.h
<<\EOF
2782 #define STDC_HEADERS 1
2787 echo $ac_n "checking for working const""... $ac_c" 1>&6
2788 echo "configure:2789: checking for working const" >&5
2789 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.
$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2798 /* Ultrix mips cc rejects this. */
2799 typedef int charset[2]; const charset x;
2800 /* SunOS 4.1.1 cc rejects this. */
2801 char const *const *ccp;
2803 /* NEC SVR4.0.2 mips cc rejects this. */
2804 struct point {int x, y;};
2805 static struct point const zero = {0,0};
2806 /* AIX XL C 1.02.0.0 rejects this.
2807 It does not let you subtract one const X* pointer from another in an arm
2808 of an if-expression whose if-part is not a constant expression */
2809 const char *g = "string";
2810 ccp = &g + (g ? g-g : 0);
2811 /* HPUX 7.0 cc rejects these. */
2814 ccp = (char const *const *) p;
2815 { /* SCO 3.2v4 cc rejects this. */
2817 char const *s = 0 ? (char *) 0 : (char const *) 0;
2821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2823 const int *foo = &x[0];
2826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2827 typedef const int *iptr;
2831 { /* AIX XL C 1.02.0.0 rejects this saying
2832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2833 struct s { int j; const int *ap[3]; };
2834 struct s *b; b->j = 5;
2836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2842 if { (eval echo configure
:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2846 echo "configure: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2854 echo "$ac_t""$ac_cv_c_const" 1>&6
2855 if test $ac_cv_c_const = no
; then
2856 cat >> confdefs.h
<<\EOF
2862 echo $ac_n "checking for inline""... $ac_c" 1>&6
2863 echo "configure:2864: checking for inline" >&5
2864 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2868 for ac_kw
in inline __inline__ __inline
; do
2869 cat > conftest.
$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2877 if { (eval echo configure
:2878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2879 ac_cv_c_inline
=$ac_kw; break
2881 echo "configure: failed program was:" >&5
2882 cat conftest.
$ac_ext >&5
2889 echo "$ac_t""$ac_cv_c_inline" 1>&6
2890 case "$ac_cv_c_inline" in
2892 no
) cat >> confdefs.h
<<\EOF
2896 *) cat >> confdefs.h
<<EOF
2897 #define inline $ac_cv_c_inline
2902 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2903 echo "configure:2904: checking for off_t" >&5
2904 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 cat > conftest.
$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 #include <sys/types.h>
2916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2917 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2919 ac_cv_type_off_t
=yes
2927 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2928 if test $ac_cv_type_off_t = no
; then
2929 cat >> confdefs.h
<<\EOF
2935 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2936 echo "configure:2937: checking for size_t" >&5
2937 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 cat > conftest.
$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2943 #include <sys/types.h>
2949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2950 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2952 ac_cv_type_size_t
=yes
2955 ac_cv_type_size_t
=no
2960 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2961 if test $ac_cv_type_size_t = no
; then
2962 cat >> confdefs.h
<<\EOF
2963 #define size_t unsigned
2968 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2969 # for constant arguments. Useless!
2970 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2971 echo "configure:2972: checking for working alloca.h" >&5
2972 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.
$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 char *p = alloca(2 * sizeof(int));
2983 if { (eval echo configure
:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2985 ac_cv_header_alloca_h
=yes
2987 echo "configure: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2990 ac_cv_header_alloca_h
=no
2995 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2996 if test $ac_cv_header_alloca_h = yes; then
2997 cat >> confdefs.h
<<\EOF
2998 #define HAVE_ALLOCA_H 1
3003 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3004 echo "configure:3005: checking for alloca" >&5
3005 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 cat > conftest.
$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3013 # define alloca __builtin_alloca
3016 # include <alloca.h>
3021 # ifndef alloca /* predefined by HP cc +Olibcalls */
3029 char *p = (char *) alloca(1);
3032 if { (eval echo configure
:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3034 ac_cv_func_alloca_works
=yes
3036 echo "configure: failed program was:" >&5
3037 cat conftest.
$ac_ext >&5
3039 ac_cv_func_alloca_works
=no
3044 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3045 if test $ac_cv_func_alloca_works = yes; then
3046 cat >> confdefs.h
<<\EOF
3047 #define HAVE_ALLOCA 1
3052 if test $ac_cv_func_alloca_works = no
; then
3053 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3054 # that cause trouble. Some versions do not even contain alloca or
3055 # contain a buggy version. If you still want to use their alloca,
3056 # use ar to extract alloca.o from them instead of compiling alloca.c.
3058 cat >> confdefs.h
<<\EOF
3063 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3064 echo "configure:3065: checking whether alloca needs Cray hooks" >&5
3065 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 cat > conftest.
$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 #if defined(CRAY) && ! defined(CRAY2)
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079 egrep "webecray" >/dev
/null
2>&1; then
3090 echo "$ac_t""$ac_cv_os_cray" 1>&6
3091 if test $ac_cv_os_cray = yes; then
3092 for ac_func
in _getb67 GETB67 getb67
; do
3093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3094 echo "configure:3095: checking for $ac_func" >&5
3095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 cat > conftest.
$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 /* System header to define __stub macros and hopefully few prototypes,
3102 which can conflict with char $ac_func(); below. */
3104 /* Override any gcc2 internal prototype to avoid an error. */
3105 /* We use char because int might match the return type of a gcc2
3106 builtin and then its argument prototype would still apply. */
3111 /* The GNU C library defines this for functions which it implements
3112 to always fail with ENOSYS. Some functions are actually named
3113 something starting with __ and the normal name is an alias. */
3114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3122 if { (eval echo configure
:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3124 eval "ac_cv_func_$ac_func=yes"
3126 echo "configure: failed program was:" >&5
3127 cat conftest.
$ac_ext >&5
3129 eval "ac_cv_func_$ac_func=no"
3134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 cat >> confdefs.h
<<EOF
3137 #define CRAY_STACKSEG_END $ac_func
3142 echo "$ac_t""no" 1>&6
3148 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3149 echo "configure:3150: checking stack direction for C alloca" >&5
3150 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 if test "$cross_compiling" = yes; then
3154 ac_cv_c_stack_direction
=0
3156 cat > conftest.
$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 find_stack_direction ()
3161 static char *addr = 0;
3166 return find_stack_direction ();
3169 return (&dummy > addr) ? 1 : -1;
3173 exit (find_stack_direction() < 0);
3176 if { (eval echo configure
:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3178 ac_cv_c_stack_direction
=1
3180 echo "configure: failed program was:" >&5
3181 cat conftest.
$ac_ext >&5
3183 ac_cv_c_stack_direction
=-1
3190 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3191 cat >> confdefs.h
<<EOF
3192 #define STACK_DIRECTION $ac_cv_c_stack_direction
3197 for ac_hdr
in unistd.h
3199 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3201 echo "configure:3202: checking for $ac_hdr" >&5
3202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 cat > conftest.
$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3210 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3211 { (eval echo configure
:3212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3212 ac_err
=`grep -v '^ *+' conftest.out`
3213 if test -z "$ac_err"; then
3215 eval "ac_cv_header_$ac_safe=yes"
3218 echo "configure: failed program was:" >&5
3219 cat conftest.
$ac_ext >&5
3221 eval "ac_cv_header_$ac_safe=no"
3225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3227 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3228 cat >> confdefs.h
<<EOF
3229 #define $ac_tr_hdr 1
3233 echo "$ac_t""no" 1>&6
3237 for ac_func
in getpagesize
3239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3240 echo "configure:3241: checking for $ac_func" >&5
3241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 cat > conftest.
$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 /* System header to define __stub macros and hopefully few prototypes,
3248 which can conflict with char $ac_func(); below. */
3250 /* Override any gcc2 internal prototype to avoid an error. */
3251 /* We use char because int might match the return type of a gcc2
3252 builtin and then its argument prototype would still apply. */
3257 /* The GNU C library defines this for functions which it implements
3258 to always fail with ENOSYS. Some functions are actually named
3259 something starting with __ and the normal name is an alias. */
3260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3268 if { (eval echo configure
:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3270 eval "ac_cv_func_$ac_func=yes"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3275 eval "ac_cv_func_$ac_func=no"
3280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3281 echo "$ac_t""yes" 1>&6
3282 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3283 cat >> confdefs.h
<<EOF
3284 #define $ac_tr_func 1
3288 echo "$ac_t""no" 1>&6
3292 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3293 echo "configure:3294: checking for working mmap" >&5
3294 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 if test "$cross_compiling" = yes; then
3298 ac_cv_func_mmap_fixed_mapped
=no
3300 cat > conftest.
$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3304 /* Thanks to Mike Haertel and Jim Avera for this test.
3305 Here is a matrix of mmap possibilities:
3306 mmap private not fixed
3307 mmap private fixed at somewhere currently unmapped
3308 mmap private fixed at somewhere already mapped
3309 mmap shared not fixed
3310 mmap shared fixed at somewhere currently unmapped
3311 mmap shared fixed at somewhere already mapped
3312 For private mappings, we should verify that changes cannot be read()
3313 back from the file, nor mmap's back from the file at a different
3314 address. (There have been systems where private was not correctly
3315 implemented like the infamous i386 svr4.0, and systems where the
3316 VM page cache was not coherent with the filesystem buffer cache
3317 like early versions of FreeBSD and possibly contemporary NetBSD.)
3318 For shared mappings, we should conversely verify that changes get
3319 propogated back to all the places they're supposed to be.
3321 Grep wants private fixed already mapped.
3322 The main things grep needs to know about mmap are:
3323 * does it exist and is it safe to write into the mmap'd area
3324 * how to use it (BSD variants) */
3325 #include <sys/types.h>
3327 #include <sys/mman.h>
3329 /* This mess was copied from the GNU getpagesize.h. */
3330 #ifndef HAVE_GETPAGESIZE
3331 # ifdef HAVE_UNISTD_H
3332 # include <unistd.h>
3335 /* Assume that all systems that can run configure have sys/param.h. */
3336 # ifndef HAVE_SYS_PARAM_H
3337 # define HAVE_SYS_PARAM_H 1
3340 # ifdef _SC_PAGESIZE
3341 # define getpagesize() sysconf(_SC_PAGESIZE)
3342 # else /* no _SC_PAGESIZE */
3343 # ifdef HAVE_SYS_PARAM_H
3344 # include <sys/param.h>
3345 # ifdef EXEC_PAGESIZE
3346 # define getpagesize() EXEC_PAGESIZE
3347 # else /* no EXEC_PAGESIZE */
3349 # define getpagesize() NBPG * CLSIZE
3352 # endif /* no CLSIZE */
3353 # else /* no NBPG */
3355 # define getpagesize() NBPC
3356 # else /* no NBPC */
3358 # define getpagesize() PAGESIZE
3359 # endif /* PAGESIZE */
3360 # endif /* no NBPC */
3361 # endif /* no NBPG */
3362 # endif /* no EXEC_PAGESIZE */
3363 # else /* no HAVE_SYS_PARAM_H */
3364 # define getpagesize() 8192 /* punt totally */
3365 # endif /* no HAVE_SYS_PARAM_H */
3366 # endif /* no _SC_PAGESIZE */
3368 #endif /* no HAVE_GETPAGESIZE */
3371 extern "C" { void *malloc(unsigned); }
3379 char *data, *data2, *data3;
3383 pagesize = getpagesize();
3386 * First, make a file with some known garbage in it.
3388 data = malloc(pagesize);
3391 for (i = 0; i < pagesize; ++i)
3392 *(data + i) = rand();
3394 fd = creat("conftestmmap", 0600);
3397 if (write(fd, data, pagesize) != pagesize)
3402 * Next, try to mmap the file at a fixed address which
3403 * already has something else allocated at it. If we can,
3404 * also make sure that we see the same garbage.
3406 fd = open("conftestmmap", O_RDWR);
3409 data2 = malloc(2 * pagesize);
3412 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3413 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3414 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3416 for (i = 0; i < pagesize; ++i)
3417 if (*(data + i) != *(data2 + i))
3421 * Finally, make sure that changes to the mapped area
3422 * do not percolate back to the file as seen by read().
3423 * (This is a bug on some variants of i386 svr4.0.)
3425 for (i = 0; i < pagesize; ++i)
3426 *(data2 + i) = *(data2 + i) + 1;
3427 data3 = malloc(pagesize);
3430 if (read(fd, data3, pagesize) != pagesize)
3432 for (i = 0; i < pagesize; ++i)
3433 if (*(data + i) != *(data3 + i))
3436 unlink("conftestmmap");
3441 if { (eval echo configure
:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3443 ac_cv_func_mmap_fixed_mapped
=yes
3445 echo "configure: failed program was:" >&5
3446 cat conftest.
$ac_ext >&5
3448 ac_cv_func_mmap_fixed_mapped
=no
3455 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3456 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3457 cat >> confdefs.h
<<\EOF
3464 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3465 unistd.h values.h sys
/param.h
3467 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3469 echo "configure:3470: checking for $ac_hdr" >&5
3470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 cat > conftest.
$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3478 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3479 { (eval echo configure
:3480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3480 ac_err
=`grep -v '^ *+' conftest.out`
3481 if test -z "$ac_err"; then
3483 eval "ac_cv_header_$ac_safe=yes"
3486 echo "configure: failed program was:" >&5
3487 cat conftest.
$ac_ext >&5
3489 eval "ac_cv_header_$ac_safe=no"
3493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3496 cat >> confdefs.h
<<EOF
3497 #define $ac_tr_hdr 1
3501 echo "$ac_t""no" 1>&6
3505 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3506 __argz_count __argz_stringify __argz_next
3508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3509 echo "configure:3510: checking for $ac_func" >&5
3510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 cat > conftest.
$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 /* System header to define __stub macros and hopefully few prototypes,
3517 which can conflict with char $ac_func(); below. */
3519 /* Override any gcc2 internal prototype to avoid an error. */
3520 /* We use char because int might match the return type of a gcc2
3521 builtin and then its argument prototype would still apply. */
3526 /* The GNU C library defines this for functions which it implements
3527 to always fail with ENOSYS. Some functions are actually named
3528 something starting with __ and the normal name is an alias. */
3529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3537 if { (eval echo configure
:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3539 eval "ac_cv_func_$ac_func=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.
$ac_ext >&5
3544 eval "ac_cv_func_$ac_func=no"
3549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3550 echo "$ac_t""yes" 1>&6
3551 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3552 cat >> confdefs.h
<<EOF
3553 #define $ac_tr_func 1
3557 echo "$ac_t""no" 1>&6
3562 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3563 for ac_func
in stpcpy
3565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3566 echo "configure:3567: checking for $ac_func" >&5
3567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.
$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* System header to define __stub macros and hopefully few prototypes,
3574 which can conflict with char $ac_func(); below. */
3576 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3583 /* The GNU C library defines this for functions which it implements
3584 to always fail with ENOSYS. Some functions are actually named
3585 something starting with __ and the normal name is an alias. */
3586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3594 if { (eval echo configure
:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3596 eval "ac_cv_func_$ac_func=yes"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3601 eval "ac_cv_func_$ac_func=no"
3606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3609 cat >> confdefs.h
<<EOF
3610 #define $ac_tr_func 1
3614 echo "$ac_t""no" 1>&6
3619 if test "${ac_cv_func_stpcpy}" = "yes"; then
3620 cat >> confdefs.h
<<\EOF
3621 #define HAVE_STPCPY 1
3626 if test $ac_cv_header_locale_h = yes; then
3627 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3628 echo "configure:3629: checking for LC_MESSAGES" >&5
3629 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 cat > conftest.
$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3640 if { (eval echo configure
:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3642 am_cv_val_LC_MESSAGES
=yes
3644 echo "configure: failed program was:" >&5
3645 cat conftest.
$ac_ext >&5
3647 am_cv_val_LC_MESSAGES
=no
3652 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3653 if test $am_cv_val_LC_MESSAGES = yes; then
3654 cat >> confdefs.h
<<\EOF
3655 #define HAVE_LC_MESSAGES 1
3660 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3661 echo "configure:3662: checking whether NLS is requested" >&5
3662 # Check whether --enable-nls or --disable-nls was given.
3663 if test "${enable_nls+set}" = set; then
3664 enableval
="$enable_nls"
3670 echo "$ac_t""$USE_NLS" 1>&6
3673 USE_INCLUDED_LIBINTL
=no
3675 if test "$USE_NLS" = "yes"; then
3676 cat >> confdefs.h
<<\EOF
3677 #define ENABLE_NLS 1
3680 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3681 echo "configure:3682: checking whether included gettext is requested" >&5
3682 # Check whether --with-included-gettext or --without-included-gettext was given.
3683 if test "${with_included_gettext+set}" = set; then
3684 withval
="$with_included_gettext"
3685 nls_cv_force_use_gnu_gettext
=$withval
3687 nls_cv_force_use_gnu_gettext
=no
3690 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3692 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3693 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3695 nls_cv_header_libgt
=
3698 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3699 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3700 echo "configure:3701: checking for libintl.h" >&5
3701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 cat > conftest.
$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <libintl.h>
3709 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3710 { (eval echo configure
:3711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3711 ac_err
=`grep -v '^ *+' conftest.out`
3712 if test -z "$ac_err"; then
3714 eval "ac_cv_header_$ac_safe=yes"
3717 echo "configure: failed program was:" >&5
3718 cat conftest.
$ac_ext >&5
3720 eval "ac_cv_header_$ac_safe=no"
3724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3725 echo "$ac_t""yes" 1>&6
3726 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3727 echo "configure:3728: checking for gettext in libc" >&5
3728 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 cat > conftest.
$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <libintl.h>
3736 return (int) gettext ("")
3739 if { (eval echo configure
:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3741 gt_cv_func_gettext_libc
=yes
3743 echo "configure: failed program was:" >&5
3744 cat conftest.
$ac_ext >&5
3746 gt_cv_func_gettext_libc
=no
3751 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3753 if test "$gt_cv_func_gettext_libc" != "yes"; then
3754 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3755 echo "configure:3756: checking for bindtextdomain in -lintl" >&5
3756 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 ac_save_LIBS
="$LIBS"
3762 cat > conftest.
$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3768 char bindtextdomain();
3774 if { (eval echo configure
:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3776 eval "ac_cv_lib_$ac_lib_var=yes"
3778 echo "configure: failed program was:" >&5
3779 cat conftest.
$ac_ext >&5
3781 eval "ac_cv_lib_$ac_lib_var=no"
3784 LIBS
="$ac_save_LIBS"
3787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3788 echo "$ac_t""yes" 1>&6
3789 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3790 echo "configure:3791: checking for gettext in libintl" >&5
3791 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 cat > conftest.
$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3799 return (int) gettext ("")
3802 if { (eval echo configure
:3803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3804 gt_cv_func_gettext_libintl
=yes
3806 echo "configure: failed program was:" >&5
3807 cat conftest.
$ac_ext >&5
3809 gt_cv_func_gettext_libintl
=no
3814 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3816 echo "$ac_t""no" 1>&6
3821 if test "$gt_cv_func_gettext_libc" = "yes" \
3822 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3823 cat >> confdefs.h
<<\EOF
3824 #define HAVE_GETTEXT 1
3827 # Extract the first word of "msgfmt", so it can be a program name with args.
3828 set dummy msgfmt
; ac_word
=$2
3829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3830 echo "configure:3831: checking for $ac_word" >&5
3831 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3836 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3839 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3840 for ac_dir
in $PATH; do
3841 test -z "$ac_dir" && ac_dir
=.
3842 if test -f $ac_dir/$ac_word; then
3843 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3844 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3850 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3854 MSGFMT
="$ac_cv_path_MSGFMT"
3855 if test -n "$MSGFMT"; then
3856 echo "$ac_t""$MSGFMT" 1>&6
3858 echo "$ac_t""no" 1>&6
3860 if test "$MSGFMT" != "no"; then
3861 for ac_func
in dcgettext
3863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3864 echo "configure:3865: checking for $ac_func" >&5
3865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* System header to define __stub macros and hopefully few prototypes,
3872 which can conflict with char $ac_func(); below. */
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3881 /* The GNU C library defines this for functions which it implements
3882 to always fail with ENOSYS. Some functions are actually named
3883 something starting with __ and the normal name is an alias. */
3884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3892 if { (eval echo configure
:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3894 eval "ac_cv_func_$ac_func=yes"
3896 echo "configure: failed program was:" >&5
3897 cat conftest.
$ac_ext >&5
3899 eval "ac_cv_func_$ac_func=no"
3904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3905 echo "$ac_t""yes" 1>&6
3906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3907 cat >> confdefs.h
<<EOF
3908 #define $ac_tr_func 1
3912 echo "$ac_t""no" 1>&6
3916 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3917 set dummy gmsgfmt
; ac_word
=$2
3918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3919 echo "configure:3920: checking for $ac_word" >&5
3920 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3925 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3928 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3931 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3932 for ac_dir
in $PATH; do
3933 test -z "$ac_dir" && ac_dir
=.
3934 if test -f $ac_dir/$ac_word; then
3935 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3940 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3944 GMSGFMT
="$ac_cv_path_GMSGFMT"
3945 if test -n "$GMSGFMT"; then
3946 echo "$ac_t""$GMSGFMT" 1>&6
3948 echo "$ac_t""no" 1>&6
3951 # Extract the first word of "xgettext", so it can be a program name with args.
3952 set dummy xgettext
; ac_word
=$2
3953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3954 echo "configure:3955: checking for $ac_word" >&5
3955 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3960 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3963 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3964 for ac_dir
in $PATH; do
3965 test -z "$ac_dir" && ac_dir
=.
3966 if test -f $ac_dir/$ac_word; then
3967 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3968 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3974 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3978 XGETTEXT
="$ac_cv_path_XGETTEXT"
3979 if test -n "$XGETTEXT"; then
3980 echo "$ac_t""$XGETTEXT" 1>&6
3982 echo "$ac_t""no" 1>&6
3985 cat > conftest.
$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3990 extern int _nl_msg_cat_cntr;
3991 return _nl_msg_cat_cntr
3994 if { (eval echo configure
:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3999 echo "configure: failed program was:" >&5
4000 cat conftest.
$ac_ext >&5
4011 echo "$ac_t""no" 1>&6
4016 if test "$CATOBJEXT" = "NONE"; then
4017 nls_cv_use_gnu_gettext
=yes
4021 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4022 INTLOBJS
="\$(GETTOBJS)"
4023 # Extract the first word of "msgfmt", so it can be a program name with args.
4024 set dummy msgfmt
; ac_word
=$2
4025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4026 echo "configure:4027: checking for $ac_word" >&5
4027 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4032 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4035 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4036 for ac_dir
in $PATH; do
4037 test -z "$ac_dir" && ac_dir
=.
4038 if test -f $ac_dir/$ac_word; then
4039 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4040 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4046 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4050 MSGFMT
="$ac_cv_path_MSGFMT"
4051 if test -n "$MSGFMT"; then
4052 echo "$ac_t""$MSGFMT" 1>&6
4054 echo "$ac_t""no" 1>&6
4057 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4058 set dummy gmsgfmt
; ac_word
=$2
4059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4060 echo "configure:4061: checking for $ac_word" >&5
4061 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4066 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4069 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4072 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4073 for ac_dir
in $PATH; do
4074 test -z "$ac_dir" && ac_dir
=.
4075 if test -f $ac_dir/$ac_word; then
4076 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4081 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4085 GMSGFMT
="$ac_cv_path_GMSGFMT"
4086 if test -n "$GMSGFMT"; then
4087 echo "$ac_t""$GMSGFMT" 1>&6
4089 echo "$ac_t""no" 1>&6
4092 # Extract the first word of "xgettext", so it can be a program name with args.
4093 set dummy xgettext
; ac_word
=$2
4094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4095 echo "configure:4096: checking for $ac_word" >&5
4096 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4101 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4104 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4105 for ac_dir
in $PATH; do
4106 test -z "$ac_dir" && ac_dir
=.
4107 if test -f $ac_dir/$ac_word; then
4108 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4109 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4115 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4119 XGETTEXT
="$ac_cv_path_XGETTEXT"
4120 if test -n "$XGETTEXT"; then
4121 echo "$ac_t""$XGETTEXT" 1>&6
4123 echo "$ac_t""no" 1>&6
4127 USE_INCLUDED_LIBINTL
=yes
4131 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4133 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4134 nls_cv_header_intl
=libintl.h
4135 nls_cv_header_libgt
=libgettext.h
4138 if test "$XGETTEXT" != ":"; then
4139 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4142 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4147 # We need to process the po/ directory.
4151 nls_cv_header_intl
=libintl.h
4152 nls_cv_header_libgt
=libgettext.h
4155 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4156 # because some of the sources are only built for this goal.
4157 if test "$PACKAGE" = gettext; then
4159 USE_INCLUDED_LIBINTL
=yes
4162 for lang
in $ALL_LINGUAS; do
4163 GMOFILES
="$GMOFILES $lang.gmo"
4164 POFILES
="$POFILES $lang.po"
4180 if test "x$CATOBJEXT" != "x"; then
4181 if test "x$ALL_LINGUAS" = "x"; then
4184 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4185 echo "configure:4186: checking for catalogs to be installed" >&5
4187 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4188 case "$ALL_LINGUAS" in
4189 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4192 LINGUAS
=$NEW_LINGUAS
4193 echo "$ac_t""$LINGUAS" 1>&6
4196 if test -n "$LINGUAS"; then
4197 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4201 if test $ac_cv_header_locale_h = yes; then
4202 INCLUDE_LOCALE_H
="#include <locale.h>"
4205 /* The system does not provide the header <locale.h>. Take care yourself. */"
4209 if test -f $srcdir/po2tbl.
sed.
in; then
4210 if test "$CATOBJEXT" = ".cat"; then
4211 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4212 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4213 echo "configure:4214: checking for linux/version.h" >&5
4214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4217 cat > conftest.
$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4220 #include <linux/version.h>
4222 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4223 { (eval echo configure
:4224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4224 ac_err
=`grep -v '^ *+' conftest.out`
4225 if test -z "$ac_err"; then
4227 eval "ac_cv_header_$ac_safe=yes"
4230 echo "configure: failed program was:" >&5
4231 cat conftest.
$ac_ext >&5
4233 eval "ac_cv_header_$ac_safe=no"
4237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4238 echo "$ac_t""yes" 1>&6
4241 echo "$ac_t""no" 1>&6
4246 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4248 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4249 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4252 if test "$PACKAGE" = "gettext"; then
4262 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4268 if test -d $srcdir/po
; then
4269 test -d po || mkdir po
4270 if test "x$srcdir" != "x."; then
4271 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4272 posrcprefix
="$srcdir/"
4274 posrcprefix
="../$srcdir/"
4280 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4281 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4285 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4286 echo "configure:4287: checking whether to enable maintainer-specific portions of Makefiles" >&5
4287 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4288 if test "${enable_maintainer_mode+set}" = set; then
4289 enableval
="$enable_maintainer_mode"
4290 USE_MAINTAINER_MODE
=$enableval
4292 USE_MAINTAINER_MODE
=no
4295 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4296 if test $USE_MAINTAINER_MODE = yes; then
4303 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
4304 echo "configure:4305: checking for Cygwin32 environment" >&5
4305 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 cat > conftest.
$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4313 return __CYGWIN32__;
4316 if { (eval echo configure
:4317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4320 echo "configure: failed program was:" >&5
4321 cat conftest.
$ac_ext >&5
4329 echo "$ac_t""$am_cv_cygwin32" 1>&6
4331 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
4332 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
4333 echo "configure:4334: checking for Mingw32 environment" >&5
4334 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 cat > conftest.
$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4345 if { (eval echo configure
:4346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4349 echo "configure: failed program was:" >&5
4350 cat conftest.
$ac_ext >&5
4358 echo "$ac_t""$am_cv_mingw32" 1>&6
4360 test "$am_cv_mingw32" = yes && MINGW32
=yes
4363 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4364 echo "configure:4365: checking for executable suffix" >&5
4365 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
4371 cat > am_c_test.c
<< 'EOF'
4373 /* Nothing needed here
*/
4376 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
4378 for file in am_c_test.
*; do
4382 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
4388 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
4391 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
4392 echo "$ac_t""${am_cv_exeext}" 1>&6
4395 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4397 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4399 echo "configure:4400: checking for $ac_hdr" >&5
4400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 cat > conftest.
$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4408 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4409 { (eval echo configure
:4410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4410 ac_err
=`grep -v '^ *+' conftest.out`
4411 if test -z "$ac_err"; then
4413 eval "ac_cv_header_$ac_safe=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.
$ac_ext >&5
4419 eval "ac_cv_header_$ac_safe=no"
4423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4424 echo "$ac_t""yes" 1>&6
4425 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4426 cat >> confdefs.h
<<EOF
4427 #define $ac_tr_hdr 1
4431 echo "$ac_t""no" 1>&6
4436 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4437 # people who are not cross-compiling but are compiling cross-assemblers.
4438 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4439 echo "configure:4440: checking whether compiling a cross-assembler" >&5
4440 if test "${host}" = "${target}"; then
4444 cat >> confdefs.h
<<\EOF
4445 #define CROSS_COMPILE 1
4449 echo "$ac_t""$cross_gas" 1>&6
4451 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4452 # for constant arguments. Useless!
4453 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4454 echo "configure:4455: checking for working alloca.h" >&5
4455 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.
$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4463 char *p = alloca(2 * sizeof(int));
4466 if { (eval echo configure
:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4468 ac_cv_header_alloca_h
=yes
4470 echo "configure: failed program was:" >&5
4471 cat conftest.
$ac_ext >&5
4473 ac_cv_header_alloca_h
=no
4478 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4479 if test $ac_cv_header_alloca_h = yes; then
4480 cat >> confdefs.h
<<\EOF
4481 #define HAVE_ALLOCA_H 1
4486 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4487 echo "configure:4488: checking for alloca" >&5
4488 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.
$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 # define alloca __builtin_alloca
4499 # include <alloca.h>
4504 # ifndef alloca /* predefined by HP cc +Olibcalls */
4512 char *p = (char *) alloca(1);
4515 if { (eval echo configure
:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4517 ac_cv_func_alloca_works
=yes
4519 echo "configure: failed program was:" >&5
4520 cat conftest.
$ac_ext >&5
4522 ac_cv_func_alloca_works
=no
4527 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4528 if test $ac_cv_func_alloca_works = yes; then
4529 cat >> confdefs.h
<<\EOF
4530 #define HAVE_ALLOCA 1
4535 if test $ac_cv_func_alloca_works = no
; then
4536 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4537 # that cause trouble. Some versions do not even contain alloca or
4538 # contain a buggy version. If you still want to use their alloca,
4539 # use ar to extract alloca.o from them instead of compiling alloca.c.
4541 cat >> confdefs.h
<<\EOF
4546 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4547 echo "configure:4548: checking whether alloca needs Cray hooks" >&5
4548 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4551 cat > conftest.
$ac_ext <<EOF
4552 #line 4553 "configure"
4553 #include "confdefs.h"
4554 #if defined(CRAY) && ! defined(CRAY2)
4561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4562 egrep "webecray" >/dev
/null
2>&1; then
4573 echo "$ac_t""$ac_cv_os_cray" 1>&6
4574 if test $ac_cv_os_cray = yes; then
4575 for ac_func
in _getb67 GETB67 getb67
; do
4576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_func" >&5
4578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.
$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char $ac_func(); below. */
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4594 /* The GNU C library defines this for functions which it implements
4595 to always fail with ENOSYS. Some functions are actually named
4596 something starting with __ and the normal name is an alias. */
4597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4605 if { (eval echo configure
:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4607 eval "ac_cv_func_$ac_func=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.
$ac_ext >&5
4612 eval "ac_cv_func_$ac_func=no"
4617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4618 echo "$ac_t""yes" 1>&6
4619 cat >> confdefs.h
<<EOF
4620 #define CRAY_STACKSEG_END $ac_func
4625 echo "$ac_t""no" 1>&6
4631 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4632 echo "configure:4633: checking stack direction for C alloca" >&5
4633 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4636 if test "$cross_compiling" = yes; then
4637 ac_cv_c_stack_direction
=0
4639 cat > conftest.
$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 find_stack_direction ()
4644 static char *addr = 0;
4649 return find_stack_direction ();
4652 return (&dummy > addr) ? 1 : -1;
4656 exit (find_stack_direction() < 0);
4659 if { (eval echo configure
:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4661 ac_cv_c_stack_direction
=1
4663 echo "configure: failed program was:" >&5
4664 cat conftest.
$ac_ext >&5
4666 ac_cv_c_stack_direction
=-1
4673 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4674 cat >> confdefs.h
<<EOF
4675 #define STACK_DIRECTION $ac_cv_c_stack_direction
4680 echo $ac_n "checking for inline""... $ac_c" 1>&6
4681 echo "configure:4682: checking for inline" >&5
4682 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4686 for ac_kw
in inline __inline__ __inline
; do
4687 cat > conftest.
$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4695 if { (eval echo configure
:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4697 ac_cv_c_inline
=$ac_kw; break
4699 echo "configure: failed program was:" >&5
4700 cat conftest.
$ac_ext >&5
4707 echo "$ac_t""$ac_cv_c_inline" 1>&6
4708 case "$ac_cv_c_inline" in
4710 no
) cat >> confdefs.h
<<\EOF
4714 *) cat >> confdefs.h
<<EOF
4715 #define inline $ac_cv_c_inline
4721 # VMS doesn't have unlink.
4722 for ac_func
in unlink remove
4724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4725 echo "configure:4726: checking for $ac_func" >&5
4726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4729 cat > conftest.
$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 /* System header to define __stub macros and hopefully few prototypes,
4733 which can conflict with char $ac_func(); below. */
4735 /* Override any gcc2 internal prototype to avoid an error. */
4736 /* We use char because int might match the return type of a gcc2
4737 builtin and then its argument prototype would still apply. */
4742 /* The GNU C library defines this for functions which it implements
4743 to always fail with ENOSYS. Some functions are actually named
4744 something starting with __ and the normal name is an alias. */
4745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4753 if { (eval echo configure
:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4755 eval "ac_cv_func_$ac_func=yes"
4757 echo "configure: failed program was:" >&5
4758 cat conftest.
$ac_ext >&5
4760 eval "ac_cv_func_$ac_func=no"
4765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4766 echo "$ac_t""yes" 1>&6
4767 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4768 cat >> confdefs.h
<<EOF
4769 #define $ac_tr_func 1
4773 echo "$ac_t""no" 1>&6
4778 # Some systems don't have sbrk().
4781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4782 echo "configure:4783: checking for $ac_func" >&5
4783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 cat > conftest.
$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 /* System header to define __stub macros and hopefully few prototypes,
4790 which can conflict with char $ac_func(); below. */
4792 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4799 /* The GNU C library defines this for functions which it implements
4800 to always fail with ENOSYS. Some functions are actually named
4801 something starting with __ and the normal name is an alias. */
4802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4810 if { (eval echo configure
:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4812 eval "ac_cv_func_$ac_func=yes"
4814 echo "configure: failed program was:" >&5
4815 cat conftest.
$ac_ext >&5
4817 eval "ac_cv_func_$ac_func=no"
4822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4825 cat >> confdefs.h
<<EOF
4826 #define $ac_tr_func 1
4830 echo "$ac_t""no" 1>&6
4835 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
4836 # enough, but on some of those systems, the assert macro relies on requoting
4838 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
4839 echo "configure:4840: checking for working assert macro" >&5
4840 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
4841 echo $ac_n "(cached) $ac_c" 1>&6
4843 cat > conftest.
$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4850 /* check for requoting problems */
4851 static int a, b, c, d;
4853 assert (!strcmp(s, "foo bar baz quux"));
4854 /* check for newline handling */
4860 if { (eval echo configure
:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4862 gas_cv_assert_ok
=yes
4864 echo "configure: failed program was:" >&5
4865 cat conftest.
$ac_ext >&5
4871 echo "$ac_t""$gas_cv_assert_ok" 1>&6
4872 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
4873 #define BROKEN_ASSERT 1
4878 # On some systems, the system header files may not declare malloc, realloc,
4879 # and free. There are places where gas needs these functions to have been
4880 # declared -- such as when taking their addresses.
4882 #ifdef HAVE_MEMORY_H
4885 #ifdef HAVE_STRING_H
4888 #ifdef HAVE_STRINGS_H
4889 #include <strings.h>
4892 #ifdef HAVE_STDLIB_H
4895 #ifdef HAVE_UNISTD_H
4900 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
4901 echo "configure:4902: checking whether declaration is required for strstr" >&5
4902 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 cat > conftest.
$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4911 typedef char *(*f)();
4917 if { (eval echo configure
:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4919 gas_cv_decl_needed_strstr
=no
4921 echo "configure: failed program was:" >&5
4922 cat conftest.
$ac_ext >&5
4924 gas_cv_decl_needed_strstr
=yes
4928 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
4929 test $gas_cv_decl_needed_strstr = no ||
{
4930 cat >> confdefs.h
<<\EOF
4931 #define NEED_DECLARATION_STRSTR 1
4937 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
4938 echo "configure:4939: checking whether declaration is required for malloc" >&5
4939 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 cat > conftest.
$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4948 typedef char *(*f)();
4954 if { (eval echo configure
:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4956 gas_cv_decl_needed_malloc
=no
4958 echo "configure: failed program was:" >&5
4959 cat conftest.
$ac_ext >&5
4961 gas_cv_decl_needed_malloc
=yes
4965 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
4966 test $gas_cv_decl_needed_malloc = no ||
{
4967 cat >> confdefs.h
<<\EOF
4968 #define NEED_DECLARATION_MALLOC 1
4974 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
4975 echo "configure:4976: checking whether declaration is required for free" >&5
4976 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
4977 echo $ac_n "(cached) $ac_c" 1>&6
4979 cat > conftest.
$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4985 typedef void (*f)();
4991 if { (eval echo configure
:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4993 gas_cv_decl_needed_free
=no
4995 echo "configure: failed program was:" >&5
4996 cat conftest.
$ac_ext >&5
4998 gas_cv_decl_needed_free
=yes
5002 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5003 test $gas_cv_decl_needed_free = no ||
{
5004 cat >> confdefs.h
<<\EOF
5005 #define NEED_DECLARATION_FREE 1
5011 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5012 echo "configure:5013: checking whether declaration is required for sbrk" >&5
5013 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 cat > conftest.
$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5022 typedef char *(*f)();
5028 if { (eval echo configure
:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5030 gas_cv_decl_needed_sbrk
=no
5032 echo "configure: failed program was:" >&5
5033 cat conftest.
$ac_ext >&5
5035 gas_cv_decl_needed_sbrk
=yes
5039 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5040 test $gas_cv_decl_needed_sbrk = no ||
{
5041 cat >> confdefs.h
<<\EOF
5042 #define NEED_DECLARATION_SBRK 1
5048 # Does errno.h declare errno, or do we have to add a separate declaration
5051 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5052 echo "configure:5053: checking whether declaration is required for errno" >&5
5053 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 cat > conftest.
$ac_ext <<EOF
5057 #line 5058 "configure"
5058 #include "confdefs.h"
5072 if { (eval echo configure
:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5074 gas_cv_decl_needed_errno
=no
5076 echo "configure: failed program was:" >&5
5077 cat conftest.
$ac_ext >&5
5079 gas_cv_decl_needed_errno
=yes
5083 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5084 test $gas_cv_decl_needed_errno = no ||
{
5085 cat >> confdefs.h
<<\EOF
5086 #define NEED_DECLARATION_ERRNO 1
5095 cat > confcache
<<\EOF
5096 # This file is a shell script that caches the results of configure
5097 # tests run on this system so they can be shared between configure
5098 # scripts and configure runs. It is not useful on other systems.
5099 # If it contains results you don't want to keep, you may remove or edit it.
5101 # By default, configure uses ./config.cache as the cache file,
5102 # creating it if it does not exist already. You can give configure
5103 # the --cache-file=FILE option to use a different cache file; that is
5104 # what configure does when it calls configure scripts in
5105 # subdirectories, so they share the cache.
5106 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5107 # config.status only pays attention to the cache file if you give it the
5108 # --recheck option to rerun configure.
5111 # The following way of writing the cache mishandles newlines in values,
5112 # but we know of no workaround that is simple, portable, and efficient.
5113 # So, don't put newlines in cache variables' values.
5114 # Ultrix sh set writes to stderr and can't be redirected directly,
5115 # and sets the high bit in the cache file unless we assign to the vars.
5117 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5119 # `set' does not quote correctly, so add quotes (double-quote substitution
5120 # turns \\\\ into \\, and sed turns \\ into \).
5122 -e "s/'/'\\\\''/g" \
5123 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5126 # `set' quotes correctly as required by POSIX, so do not add quotes.
5127 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5130 if cmp -s $cache_file confcache
; then
5133 if test -w $cache_file; then
5134 echo "updating cache $cache_file"
5135 cat confcache
> $cache_file
5137 echo "not updating unwritable cache $cache_file"
5142 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5144 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5145 # Let make expand exec_prefix.
5146 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5148 # Any assignment to VPATH causes Sun make to only execute
5149 # the first set of double-colon rules, so remove it if not needed.
5150 # If there is a colon in the path, we need to keep it.
5151 if test "x$srcdir" = x.
; then
5152 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5155 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5157 DEFS
=-DHAVE_CONFIG_H
5159 # Without the "./", some shells look in PATH for config.status.
5160 : ${CONFIG_STATUS=./config.status}
5162 echo creating
$CONFIG_STATUS
5163 rm -f $CONFIG_STATUS
5164 cat > $CONFIG_STATUS <<EOF
5166 # Generated automatically by configure.
5167 # Run this file to recreate the current configuration.
5168 # This directory was configured as follows,
5169 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5171 # $0 $ac_configure_args
5173 # Compiler output produced by configure, useful for debugging
5174 # configure, is in ./config.log if it exists.
5176 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5179 case "\$ac_option" in
5180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5181 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5182 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5183 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5184 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5186 -help | --help | --hel | --he | --h)
5187 echo "\$ac_cs_usage"; exit 0 ;;
5188 *) echo "\$ac_cs_usage"; exit 1 ;;
5192 ac_given_srcdir=$srcdir
5193 ac_given_INSTALL="$INSTALL"
5195 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5197 cat >> $CONFIG_STATUS <<EOF
5199 # Protect against being on the right side of a sed subst in config.status.
5200 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5201 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5205 s%@CFLAGS@%$CFLAGS%g
5206 s%@CPPFLAGS@%$CPPFLAGS%g
5207 s%@CXXFLAGS@%$CXXFLAGS%g
5209 s%@LDFLAGS@%$LDFLAGS%g
5211 s%@exec_prefix@%$exec_prefix%g
5212 s%@prefix@%$prefix%g
5213 s%@program_transform_name@%$program_transform_name%g
5214 s%@bindir@%$bindir%g
5215 s%@sbindir@%$sbindir%g
5216 s%@libexecdir@%$libexecdir%g
5217 s%@datadir@%$datadir%g
5218 s%@sysconfdir@%$sysconfdir%g
5219 s%@sharedstatedir@%$sharedstatedir%g
5220 s%@localstatedir@%$localstatedir%g
5221 s%@libdir@%$libdir%g
5222 s%@includedir@%$includedir%g
5223 s%@oldincludedir@%$oldincludedir%g
5224 s%@infodir@%$infodir%g
5225 s%@mandir@%$mandir%g
5227 s%@host_alias@%$host_alias%g
5228 s%@host_cpu@%$host_cpu%g
5229 s%@host_vendor@%$host_vendor%g
5230 s%@host_os@%$host_os%g
5231 s%@target@%$target%g
5232 s%@target_alias@%$target_alias%g
5233 s%@target_cpu@%$target_cpu%g
5234 s%@target_vendor@%$target_vendor%g
5235 s%@target_os@%$target_os%g
5237 s%@build_alias@%$build_alias%g
5238 s%@build_cpu@%$build_cpu%g
5239 s%@build_vendor@%$build_vendor%g
5240 s%@build_os@%$build_os%g
5241 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5242 s%@INSTALL_DATA@%$INSTALL_DATA%g
5243 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5244 s%@PACKAGE@%$PACKAGE%g
5245 s%@VERSION@%$VERSION%g
5246 s%@ACLOCAL@%$ACLOCAL%g
5247 s%@AUTOCONF@%$AUTOCONF%g
5248 s%@AUTOMAKE@%$AUTOMAKE%g
5249 s%@AUTOHEADER@%$AUTOHEADER%g
5250 s%@MAKEINFO@%$MAKEINFO%g
5251 s%@SET_MAKE@%$SET_MAKE%g
5252 s%@RANLIB@%$RANLIB%g
5257 s%@LIBTOOL@%$LIBTOOL%g
5258 s%@DLLTOOL@%$DLLTOOL%g
5260 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5261 s%@extra_objects@%$extra_objects%g
5262 s%@target_cpu_type@%$target_cpu_type%g
5263 s%@obj_format@%$obj_format%g
5264 s%@te_file@%$te_file%g
5266 s%@BFDLIB@%$BFDLIB%g
5267 s%@OPCODES_LIB@%$OPCODES_LIB%g
5268 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5271 s%@LEXLIB@%$LEXLIB%g
5273 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5274 s%@ALLOCA@%$ALLOCA%g
5275 s%@USE_NLS@%$USE_NLS%g
5276 s%@MSGFMT@%$MSGFMT%g
5277 s%@GMSGFMT@%$GMSGFMT%g
5278 s%@XGETTEXT@%$XGETTEXT%g
5279 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5280 s%@CATALOGS@%$CATALOGS%g
5281 s%@CATOBJEXT@%$CATOBJEXT%g
5282 s%@DATADIRNAME@%$DATADIRNAME%g
5283 s%@GMOFILES@%$GMOFILES%g
5284 s%@INSTOBJEXT@%$INSTOBJEXT%g
5285 s%@INTLDEPS@%$INTLDEPS%g
5286 s%@INTLLIBS@%$INTLLIBS%g
5287 s%@INTLOBJS@%$INTLOBJS%g
5288 s%@POFILES@%$POFILES%g
5290 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5292 s%@GT_YES@%$GT_YES%g
5293 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5296 s%@EXEEXT@%$EXEEXT%g
5301 cat >> $CONFIG_STATUS <<\EOF
5303 # Split the substitutions into bite-sized pieces for seds with
5304 # small command number limits, like on Digital OSF/1 and HP-UX.
5305 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5306 ac_file
=1 # Number of current file.
5307 ac_beg
=1 # First line for current file.
5308 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5311 while $ac_more_lines; do
5312 if test $ac_beg -gt 1; then
5313 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5315 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5317 if test ! -s conftest.s
$ac_file; then
5319 rm -f conftest.s
$ac_file
5321 if test -z "$ac_sed_cmds"; then
5322 ac_sed_cmds
="sed -f conftest.s$ac_file"
5324 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5326 ac_file
=`expr $ac_file + 1`
5328 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5331 if test -z "$ac_sed_cmds"; then
5336 cat >> $CONFIG_STATUS <<EOF
5338 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"}
5340 cat >> $CONFIG_STATUS <<\EOF
5341 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5344 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5345 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5346 *) ac_file_in
="${ac_file}.in" ;;
5349 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5351 # Remove last slash and all that follows it. Not all systems have dirname.
5352 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5353 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5354 # The file is in a subdirectory.
5355 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5356 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5357 # A "../" for each directory in $ac_dir_suffix.
5358 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5360 ac_dir_suffix
= ac_dots
=
5363 case "$ac_given_srcdir" in
5365 if test -z "$ac_dots"; then top_srcdir
=.
5366 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5367 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5369 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5370 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5373 case "$ac_given_INSTALL" in
5374 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5375 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5378 echo creating
"$ac_file"
5380 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5382 *Makefile
*) ac_comsub
="1i\\
5383 # $configure_input" ;;
5387 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5389 s%@configure_input@%$configure_input%g
5390 s%@srcdir@%$srcdir%g
5391 s%@top_srcdir@%$top_srcdir%g
5392 s%@INSTALL@%$INSTALL%g
5393 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5397 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5398 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5400 # ac_d sets the value in "#define NAME VALUE" lines.
5401 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5402 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5405 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5406 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5407 ac_uB
='\([ ]\)%\1#\2define\3'
5410 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5411 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5412 ac_eB
='$%\1#\2define\3'
5416 if test "${CONFIG_HEADERS+set}" != set; then
5418 cat >> $CONFIG_STATUS <<EOF
5419 CONFIG_HEADERS="config.h:config.in"
5421 cat >> $CONFIG_STATUS <<\EOF
5423 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5426 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5427 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5428 *) ac_file_in
="${ac_file}.in" ;;
5431 echo creating
$ac_file
5433 rm -f conftest.frag conftest.
in conftest.out
5434 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5435 cat $ac_file_inputs > conftest.
in
5439 # Transform confdefs.h into a sed script conftest.vals that substitutes
5440 # the proper values into config.h.in to produce config.h. And first:
5441 # Protect against being on the right side of a sed subst in config.status.
5442 # Protect against being in an unquoted here document in config.status.
5444 cat > conftest.hdr
<<\EOF
5447 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5451 sed -n -f conftest.hdr confdefs.h > conftest.vals
5454 # This sed command replaces #undef with comments. This is necessary, for
5455 # example, in the case of _POSIX_SOURCE, which is predefined and required
5456 # on some systems where configure will not decide to define it.
5457 cat >> conftest.vals <<\EOF
5458 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5461 # Break up conftest.vals because some shells have a limit on
5462 # the size of here documents, and old seds have small limits too.
5467 ac_lines=`grep -c . conftest.vals
`
5468 # grep -c gives empty output for an empty file on some AIX systems.
5469 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5470 # Write a limited-size here document to conftest.frag.
5471 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5472 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5474 sed -f conftest.frag conftest.in > conftest.out
5476 mv conftest.out conftest.in
5478 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5480 mv conftest.tail conftest.vals
5484 cat >> $CONFIG_STATUS <<\EOF
5485 rm -f conftest.frag conftest.h
5486 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5487 cat conftest.in >> conftest.h
5489 if cmp -s $ac_file conftest.h 2>/dev/null; then
5490 echo "$ac_file is unchanged"
5493 # Remove last slash and all that follows it. Not all systems have dirname.
5494 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5495 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5496 # The file is in a subdirectory.
5497 test ! -d "$ac_dir" && mkdir "$ac_dir"
5500 mv conftest.h $ac_file
5505 cat >> $CONFIG_STATUS <<EOF
5507 target_cpu_type=${target_cpu_type}
5508 obj_format=${obj_format}
5511 cat >> $CONFIG_STATUS <<\EOF
5512 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5513 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
5514 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
5515 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
5516 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
5517 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
5518 case ${target_cpu_type} in
5519 m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
5522 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5525 chmod +x $CONFIG_STATUS
5526 rm -fr confdefs* $ac_clean_files
5527 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1