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 build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --enable-bfd-assembler use BFD back end for writing object files"
27 targets alternative target configurations besides the primary"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --disable-nls do not use Native Language Support"
33 --with-included-gettext use the GNU gettext library included here"
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file
=.
/config.cache
51 program_transform_name
=s
,x
,x
,
59 bindir
='${exec_prefix}/bin'
60 sbindir
='${exec_prefix}/sbin'
61 libexecdir
='${exec_prefix}/libexec'
62 datadir
='${prefix}/share'
63 sysconfdir
='${prefix}/etc'
64 sharedstatedir
='${prefix}/com'
65 localstatedir
='${prefix}/var'
66 libdir
='${exec_prefix}/lib'
67 includedir
='${prefix}/include'
68 oldincludedir
='/usr/include'
69 infodir
='${prefix}/info'
70 mandir
='${prefix}/man'
72 # Initialize some other variables.
75 SHELL
=${CONFIG_SHELL-/bin/sh}
76 # Maximum number of lines to put in a shell here document.
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
91 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 # Accept the important Cygnus configure options, so we can diagnose typos.
99 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
101 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
102 bindir
="$ac_optarg" ;;
104 -build |
--build |
--buil |
--bui |
--bu)
106 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
107 build
="$ac_optarg" ;;
109 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
110 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
111 ac_prev
=cache_file
;;
112 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
113 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
114 cache_file
="$ac_optarg" ;;
116 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
118 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
120 datadir
="$ac_optarg" ;;
122 -disable-* |
--disable-*)
123 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}=no" ;;
131 -enable-* |
--enable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
144 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
145 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
146 |
--exec |
--exe |
--ex)
147 ac_prev
=exec_prefix
;;
148 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
149 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
150 |
--exec=* |
--exe=* |
--ex=*)
151 exec_prefix
="$ac_optarg" ;;
153 -gas |
--gas |
--ga |
--g)
154 # Obsolete; use --with-gas.
157 -help |
--help |
--hel |
--he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host |
--host |
--hos |
--ho)
214 -host=* |
--host=* |
--hos=* |
--ho=*)
217 -includedir |
--includedir |
--includedi |
--included |
--include \
218 |
--includ |
--inclu |
--incl |
--inc)
219 ac_prev
=includedir
;;
220 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
221 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
222 includedir
="$ac_optarg" ;;
224 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
226 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
227 infodir
="$ac_optarg" ;;
229 -libdir |
--libdir |
--libdi |
--libd)
231 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
232 libdir
="$ac_optarg" ;;
234 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
235 |
--libexe |
--libex |
--libe)
236 ac_prev
=libexecdir
;;
237 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
238 |
--libexe=* |
--libex=* |
--libe=*)
239 libexecdir
="$ac_optarg" ;;
241 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
242 |
--localstate |
--localstat |
--localsta |
--localst \
243 |
--locals |
--local |
--loca |
--loc |
--lo)
244 ac_prev
=localstatedir
;;
245 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
246 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
247 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
248 localstatedir
="$ac_optarg" ;;
250 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
252 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
253 mandir
="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
263 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
264 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
267 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
268 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
269 |
--oldin |
--oldi |
--old |
--ol |
--o)
270 ac_prev
=oldincludedir
;;
271 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
272 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
273 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
274 oldincludedir
="$ac_optarg" ;;
276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
279 prefix
="$ac_optarg" ;;
281 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
282 |
--program-pre |
--program-pr |
--program-p)
283 ac_prev
=program_prefix
;;
284 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
285 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
286 program_prefix
="$ac_optarg" ;;
288 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
289 |
--program-suf |
--program-su |
--program-s)
290 ac_prev
=program_suffix
;;
291 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
292 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
293 program_suffix
="$ac_optarg" ;;
295 -program-transform-name |
--program-transform-name \
296 |
--program-transform-nam |
--program-transform-na \
297 |
--program-transform-n |
--program-transform- \
298 |
--program-transform |
--program-transfor \
299 |
--program-transfo |
--program-transf \
300 |
--program-trans |
--program-tran \
301 |
--progr-tra |
--program-tr |
--program-t)
302 ac_prev
=program_transform_name
;;
303 -program-transform-name=* |
--program-transform-name=* \
304 |
--program-transform-nam=* |
--program-transform-na=* \
305 |
--program-transform-n=* |
--program-transform-=* \
306 |
--program-transform=* |
--program-transfor=* \
307 |
--program-transfo=* |
--program-transf=* \
308 |
--program-trans=* |
--program-tran=* \
309 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
310 program_transform_name
="$ac_optarg" ;;
312 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
313 |
-silent |
--silent |
--silen |
--sile |
--sil)
316 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
318 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
320 sbindir
="$ac_optarg" ;;
322 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
323 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
324 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
326 ac_prev
=sharedstatedir
;;
327 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
328 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
329 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
331 sharedstatedir
="$ac_optarg" ;;
333 -site |
--site |
--sit)
335 -site=* |
--site=* |
--sit=*)
338 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
340 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
341 srcdir
="$ac_optarg" ;;
343 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
344 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
345 ac_prev
=sysconfdir
;;
346 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
347 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
348 sysconfdir
="$ac_optarg" ;;
350 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
352 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
353 target
="$ac_optarg" ;;
355 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
358 -version |
--version |
--versio |
--versi |
--vers)
359 echo "configure generated by autoconf version 2.12.1"
363 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package
=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}='$ac_optarg'" ;;
375 -without-* |
--without-*)
376 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
385 # Obsolete; use --with-x.
388 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
389 |
--x-incl |
--x-inc |
--x-in |
--x-i)
390 ac_prev
=x_includes
;;
391 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
392 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
393 x_includes
="$ac_optarg" ;;
395 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
396 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
397 ac_prev
=x_libraries
;;
398 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
399 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
400 x_libraries
="$ac_optarg" ;;
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 if test "x$nonopt" != xNONE
; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424 # File descriptor usage:
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
450 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
451 |
--no-cr |
--no-c) ;;
452 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
453 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
454 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
461 # Only set these to C if already set. These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
466 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
468 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest
* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481 ac_srcdir_defaulted
=yes
482 # Try the directory containing this script, then its parent.
484 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
487 if test ! -r $srcdir/$ac_unique_file; then
491 ac_srcdir_defaulted
=no
493 if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE
; then
505 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 for ac_site_file
in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
521 echo "creating cache $cache_file"
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp
='$CPP $CPPFLAGS'
528 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
547 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
548 if test -f $ac_dir/install-sh
; then
550 ac_install_sh
="$ac_aux_dir/install-sh -c"
552 elif test -f $ac_dir/install.sh
; then
554 ac_install_sh
="$ac_aux_dir/install.sh -c"
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
561 ac_config_guess
=$ac_aux_dir/config.guess
562 ac_config_sub
=$ac_aux_dir/config.sub
563 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
566 # Do some error checking and defaulting for the host and target type.
568 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
571 # 1. You are not allowed to specify --host, --target, and nonopt at the
573 # 2. Host defaults to nonopt.
574 # 3. If nonopt is not specified, then host defaults to the current host,
575 # as determined by config.guess.
576 # 4. Target and build default to nonopt.
577 # 5. If nonopt is not specified, then target and build default to host.
579 # The aliases save the names the user supplied, while $host etc.
580 # will get canonicalized.
581 case $host---$target---$nonopt in
582 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
583 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
587 # Make sure we can run config.sub.
588 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
589 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
592 echo $ac_n "checking host system type""... $ac_c" 1>&6
593 echo "configure:594: checking host system type" >&5
596 case "$host_alias" in
600 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
601 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
603 *) host_alias
=$nonopt ;;
607 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
608 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
609 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
610 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
611 echo "$ac_t""$host" 1>&6
613 echo $ac_n "checking target system type""... $ac_c" 1>&6
614 echo "configure:615: checking target system type" >&5
617 case "$target_alias" in
620 NONE
) target_alias
=$host_alias ;;
621 *) target_alias
=$nonopt ;;
625 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
626 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
627 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
628 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
629 echo "$ac_t""$target" 1>&6
631 echo $ac_n "checking build system type""... $ac_c" 1>&6
632 echo "configure:633: checking build system type" >&5
635 case "$build_alias" in
638 NONE
) build_alias
=$host_alias ;;
639 *) build_alias
=$nonopt ;;
643 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
644 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$build" 1>&6
649 test "$host_alias" != "$target_alias" &&
650 test "$program_prefix$program_suffix$program_transform_name" = \
652 program_prefix
=${target_alias}-
655 # Find a good install program. We prefer a C program (faster),
656 # so one script is as good as another. But avoid the broken or
657 # incompatible versions:
658 # SysV /etc/install, /usr/sbin/install
659 # SunOS /usr/etc/install
662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
665 # ./install, which can be erroneously created by make from ./install.sh.
666 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
667 echo "configure:668: checking for a BSD compatible install" >&5
668 if test -z "$INSTALL"; then
669 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
673 for ac_dir
in $PATH; do
674 # Account for people who put trailing slashes in PATH elements.
676 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
678 # OSF1 and SCO ODT 3.0 have their own names for install.
679 # Don't use installbsd from OSF since it installs stuff as root
681 for ac_prog
in ginstall scoinst
install; do
682 if test -f $ac_dir/$ac_prog; then
683 if test $ac_prog = install &&
684 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
685 # AIX install. It has an incompatible calling convention.
688 ac_cv_path_install
="$ac_dir/$ac_prog -c"
699 if test "${ac_cv_path_install+set}" = set; then
700 INSTALL
="$ac_cv_path_install"
702 # As a last resort, use the slow shell script. We don't cache a
703 # path for INSTALL within a source directory, because that will
704 # break other packages using the cache if that directory is
705 # removed, or if the path is relative.
706 INSTALL
="$ac_install_sh"
709 echo "$ac_t""$INSTALL" 1>&6
711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
712 # It thinks the first close brace ends the variable substitution.
713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
715 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
720 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
721 echo "configure:722: checking whether build environment is sane" >&5
724 echo timestamp
> conftestfile
725 # Do `set' in a subshell so we don't clobber the current shell's
726 # arguments. Must try -L first in case configure is actually a
727 # symlink; some systems play weird games with the mod time of symlinks
728 # (eg FreeBSD returns the mod time of the symlink's containing
731 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
732 if test "$*" = "X"; then
734 set X
`ls -t $srcdir/configure conftestfile`
736 if test "$*" != "X $srcdir/configure conftestfile" \
737 && test "$*" != "X conftestfile $srcdir/configure"; then
739 # If neither matched, then we have a broken ls. This can happen
740 # if, for instance, CONFIG_SHELL is bash and it inherits a
741 # broken ls alias from the environment. This has actually
742 # happened. Such a system could not be considered "sane".
743 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
744 alias in your environment" 1>&2; exit 1; }
747 test "$2" = conftestfile
753 { echo "configure: error: newly created file is older than distributed files!
754 Check your system clock" 1>&2; exit 1; }
757 echo "$ac_t""yes" 1>&6
758 if test "$program_transform_name" = s
,x
,x
,; then
759 program_transform_name
=
761 # Double any \ or $. echo might interpret backslashes.
762 cat <<\EOF_SED
> conftestsed
763 s
,\\,\\\\,g
; s
,\$
,$$
,g
765 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
768 test "$program_prefix" != NONE
&&
769 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
770 # Use a double $ so make ignores it.
771 test "$program_suffix" != NONE
&&
772 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
774 # sed with no file args requires a program.
775 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
777 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5
779 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
780 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 cat > conftestmake
<<\EOF
785 @
echo 'ac_maketemp="${MAKE}"'
787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
788 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
789 if test -n "$ac_maketemp"; then
790 eval ac_cv_prog_make_
${ac_make}_set
=yes
792 eval ac_cv_prog_make_
${ac_make}_set
=no
796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
800 echo "$ac_t""no" 1>&6
801 SET_MAKE
="MAKE=${MAKE-make}"
809 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
810 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
812 cat >> confdefs.h
<<EOF
813 #define PACKAGE "$PACKAGE"
816 cat >> confdefs.h
<<EOF
817 #define VERSION "$VERSION"
822 missing_dir
=`cd $ac_aux_dir && pwd`
823 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
824 echo "configure:825: checking for working aclocal" >&5
825 # Run test in a subshell; some versions of sh will print an error if
826 # an executable is not found, even if stderr is redirected.
827 # Redirect stdin to placate older versions of autoconf. Sigh.
828 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
830 echo "$ac_t""found" 1>&6
832 ACLOCAL
="$missing_dir/missing aclocal"
833 echo "$ac_t""missing" 1>&6
836 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
837 echo "configure:838: checking for working autoconf" >&5
838 # Run test in a subshell; some versions of sh will print an error if
839 # an executable is not found, even if stderr is redirected.
840 # Redirect stdin to placate older versions of autoconf. Sigh.
841 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
843 echo "$ac_t""found" 1>&6
845 AUTOCONF
="$missing_dir/missing autoconf"
846 echo "$ac_t""missing" 1>&6
849 echo $ac_n "checking for working automake""... $ac_c" 1>&6
850 echo "configure:851: checking for working automake" >&5
851 # Run test in a subshell; some versions of sh will print an error if
852 # an executable is not found, even if stderr is redirected.
853 # Redirect stdin to placate older versions of autoconf. Sigh.
854 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
856 echo "$ac_t""found" 1>&6
858 AUTOMAKE
="$missing_dir/missing automake"
859 echo "$ac_t""missing" 1>&6
862 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
863 echo "configure:864: checking for working autoheader" >&5
864 # Run test in a subshell; some versions of sh will print an error if
865 # an executable is not found, even if stderr is redirected.
866 # Redirect stdin to placate older versions of autoconf. Sigh.
867 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
868 AUTOHEADER
=autoheader
869 echo "$ac_t""found" 1>&6
871 AUTOHEADER
="$missing_dir/missing autoheader"
872 echo "$ac_t""missing" 1>&6
875 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
876 echo "configure:877: checking for working makeinfo" >&5
877 # Run test in a subshell; some versions of sh will print an error if
878 # an executable is not found, even if stderr is redirected.
879 # Redirect stdin to placate older versions of autoconf. Sigh.
880 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
882 echo "$ac_t""found" 1>&6
884 MAKEINFO
="$missing_dir/missing makeinfo"
885 echo "$ac_t""missing" 1>&6
890 # Check whether --enable-shared or --disable-shared was given.
891 if test "${enable_shared+set}" = set; then
892 enableval
="$enable_shared"
895 yes) enable_shared
=yes ;;
896 no
) enable_shared
=no
;;
899 # Look at the argument we got. We use all the common list separators.
900 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
901 for pkg
in $enableval; do
902 if test "X$pkg" = "X$p"; then
913 # Check whether --enable-static or --disable-static was given.
914 if test "${enable_static+set}" = set; then
915 enableval
="$enable_static"
918 yes) enable_static
=yes ;;
919 no
) enable_static
=no
;;
922 # Look at the argument we got. We use all the common list separators.
923 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
924 for pkg
in $enableval; do
925 if test "X$pkg" = "X$p"; then
936 # Extract the first word of "ranlib", so it can be a program name with args.
937 set dummy ranlib
; ac_word
=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
943 if test -n "$RANLIB"; then
944 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
946 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
947 for ac_dir
in $PATH; do
948 test -z "$ac_dir" && ac_dir
=.
949 if test -f $ac_dir/$ac_word; then
950 ac_cv_prog_RANLIB
="ranlib"
955 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
958 RANLIB
="$ac_cv_prog_RANLIB"
959 if test -n "$RANLIB"; then
960 echo "$ac_t""$RANLIB" 1>&6
962 echo "$ac_t""no" 1>&6
965 # Extract the first word of "gcc", so it can be a program name with args.
966 set dummy gcc
; ac_word
=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 if test -n "$CC"; then
973 ac_cv_prog_CC
="$CC" # Let the user override the test.
975 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
976 for ac_dir
in $PATH; do
977 test -z "$ac_dir" && ac_dir
=.
978 if test -f $ac_dir/$ac_word; then
987 if test -n "$CC"; then
988 echo "$ac_t""$CC" 1>&6
990 echo "$ac_t""no" 1>&6
993 if test -z "$CC"; then
994 # Extract the first word of "cc", so it can be a program name with args.
995 set dummy cc
; ac_word
=$2
996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
997 echo "configure:998: checking for $ac_word" >&5
998 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 if test -n "$CC"; then
1002 ac_cv_prog_CC
="$CC" # Let the user override the test.
1004 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1006 for ac_dir
in $PATH; do
1007 test -z "$ac_dir" && ac_dir
=.
1008 if test -f $ac_dir/$ac_word; then
1009 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1010 ac_prog_rejected
=yes
1018 if test $ac_prog_rejected = yes; then
1019 # We found a bogon in the path, so make sure we never use it.
1020 set dummy
$ac_cv_prog_CC
1022 if test $# -gt 0; then
1023 # We chose a different compiler from the bogus one.
1024 # However, it has the same basename, so the bogon will be chosen
1025 # first if we set CC to just the basename; use the full file name.
1027 set dummy
"$ac_dir/$ac_word" "$@"
1035 if test -n "$CC"; then
1036 echo "$ac_t""$CC" 1>&6
1038 echo "$ac_t""no" 1>&6
1041 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1044 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1045 echo "configure:1046: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1049 ac_cpp
='$CPP $CPPFLAGS'
1050 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1051 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1052 cross_compiling
=$ac_cv_prog_cc_cross
1054 cat > conftest.
$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1059 if { (eval echo configure
:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1060 ac_cv_prog_cc_works
=yes
1061 # If we can't run a trivial program, we are probably using a cross compiler.
1062 if (.
/conftest
; exit) 2>/dev
/null
; then
1063 ac_cv_prog_cc_cross
=no
1065 ac_cv_prog_cc_cross
=yes
1068 echo "configure: failed program was:" >&5
1069 cat conftest.
$ac_ext >&5
1070 ac_cv_prog_cc_works
=no
1074 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1075 if test $ac_cv_prog_cc_works = no
; then
1076 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1078 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1079 echo "configure:1080: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1080 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1081 cross_compiling
=$ac_cv_prog_cc_cross
1083 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1084 echo "configure:1085: checking whether we are using GNU C" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 cat > conftest.c
<<EOF
1093 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1100 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1102 if test $ac_cv_prog_gcc = yes; then
1104 ac_test_CFLAGS
="${CFLAGS+set}"
1105 ac_save_CFLAGS
="$CFLAGS"
1107 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1108 echo "configure:1109: checking whether ${CC-cc} accepts -g" >&5
1109 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 echo 'void f(){}' > conftest.c
1113 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1122 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1123 if test "$ac_test_CFLAGS" = set; then
1124 CFLAGS
="$ac_save_CFLAGS"
1125 elif test $ac_cv_prog_cc_g = yes; then
1132 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1135 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1136 if test "${with_gnu_ld+set}" = set; then
1137 withval
="$with_gnu_ld"
1138 test "$withval" = no || with_gnu_ld
=yes
1145 if test "$ac_cv_prog_gcc" = yes; then
1146 # Check if gcc -print-prog-name=ld gives a path.
1147 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1148 echo "configure:1149: checking for ld used by GCC" >&5
1149 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1151 # Accept absolute paths.
1153 test -z "$LD" && LD
="$ac_prog"
1156 # If it fails, then pretend we aren't using GCC.
1160 # If it is relative, then search for the first ld in PATH.
1164 elif test "$with_gnu_ld" = yes; then
1165 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1166 echo "configure:1167: checking for GNU ld" >&5
1168 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1169 echo "configure:1170: checking for non-GNU ld" >&5
1171 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 if test -z "$LD"; then
1175 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1176 for ac_dir
in $PATH; do
1177 test -z "$ac_dir" && ac_dir
=.
1178 if test -f "$ac_dir/$ac_prog"; then
1179 ac_cv_path_LD
="$ac_dir/$ac_prog"
1180 # Check to see if the program is GNU ld. I'd rather use --version,
1181 # but apparently some GNU ld's only accept -v.
1182 # Break only if it was the GNU/non-GNU ld that we prefer.
1183 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1184 test "$with_gnu_ld" != no
&& break
1186 test "$with_gnu_ld" != yes && break
1192 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1197 if test -n "$LD"; then
1198 echo "$ac_t""$LD" 1>&6
1200 echo "$ac_t""no" 1>&6
1202 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1204 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1205 echo "configure:1206: checking if the linker ($LD) is GNU ld" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1210 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1211 ac_cv_prog_gnu_ld
=yes
1213 ac_cv_prog_gnu_ld
=no
1217 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1220 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1221 echo "configure:1222: checking for BSD-compatible nm" >&5
1222 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 if test -z "$NM"; then
1226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1227 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1228 test -z "$ac_dir" && ac_dir
=.
1229 if test -f $ac_dir/nm
; then
1230 # Check to see if the nm accepts a BSD-compat flag.
1231 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1232 # nm: unknown option "B" ignored
1233 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1234 ac_cv_path_NM
="$ac_dir/nm -B"
1235 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1236 ac_cv_path_NM
="$ac_dir/nm -p"
1238 ac_cv_path_NM
="$ac_dir/nm"
1244 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1246 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1251 echo "$ac_t""$NM" 1>&6
1254 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether ln -s works" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1260 if ln -s X conftestdata
2>/dev
/null
1263 ac_cv_prog_LN_S
="ln -s"
1268 LN_S
="$ac_cv_prog_LN_S"
1269 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1270 echo "$ac_t""yes" 1>&6
1272 echo "$ac_t""no" 1>&6
1275 if test $host != $build; then
1276 ac_tool_prefix
=${host_alias}-
1281 # Always use our own libtool.
1282 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1284 # Check for any special flags to pass to ltconfig.
1286 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1287 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1288 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1289 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1290 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1292 # Some flags need to be propagated to the compiler or linker for good
1296 # Find out which ABI we are using.
1297 echo '#line 1298 "configure"' > conftest.
$ac_ext
1298 if { (eval echo configure
:1299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1299 case "`/usr/bin/file conftest.o`" in
1315 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1316 CFLAGS
="$CFLAGS -belf"
1320 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1321 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1323 echo "configure:1324: checking for $ac_word" >&5
1324 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1327 if test -n "$DLLTOOL"; then
1328 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1330 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1331 for ac_dir
in $PATH; do
1332 test -z "$ac_dir" && ac_dir
=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1341 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1342 if test -n "$DLLTOOL"; then
1343 echo "$ac_t""$DLLTOOL" 1>&6
1345 echo "$ac_t""no" 1>&6
1349 if test -z "$ac_cv_prog_DLLTOOL"; then
1350 if test -n "$ac_tool_prefix"; then
1351 # Extract the first word of "dlltool", so it can be a program name with args.
1352 set dummy dlltool
; ac_word
=$2
1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354 echo "configure:1355: checking for $ac_word" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 if test -n "$DLLTOOL"; then
1359 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1361 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1362 for ac_dir
in $PATH; do
1363 test -z "$ac_dir" && ac_dir
=.
1364 if test -f $ac_dir/$ac_word; then
1365 ac_cv_prog_DLLTOOL
="dlltool"
1370 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1373 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1374 if test -n "$DLLTOOL"; then
1375 echo "$ac_t""$DLLTOOL" 1>&6
1377 echo "$ac_t""no" 1>&6
1385 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1386 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1388 echo "configure:1389: checking for $ac_word" >&5
1389 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 if test -n "$AS"; then
1393 ac_cv_prog_AS
="$AS" # Let the user override the test.
1395 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1396 for ac_dir
in $PATH; do
1397 test -z "$ac_dir" && ac_dir
=.
1398 if test -f $ac_dir/$ac_word; then
1399 ac_cv_prog_AS
="${ac_tool_prefix}as"
1407 if test -n "$AS"; then
1408 echo "$ac_t""$AS" 1>&6
1410 echo "$ac_t""no" 1>&6
1414 if test -z "$ac_cv_prog_AS"; then
1415 if test -n "$ac_tool_prefix"; then
1416 # Extract the first word of "as", so it can be a program name with args.
1417 set dummy as
; ac_word
=$2
1418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1419 echo "configure:1420: checking for $ac_word" >&5
1420 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 if test -n "$AS"; then
1424 ac_cv_prog_AS
="$AS" # Let the user override the test.
1426 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1427 for ac_dir
in $PATH; do
1428 test -z "$ac_dir" && ac_dir
=.
1429 if test -f $ac_dir/$ac_word; then
1435 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1439 if test -n "$AS"; then
1440 echo "$ac_t""$AS" 1>&6
1442 echo "$ac_t""no" 1>&6
1455 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1456 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1457 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1458 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1459 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1460 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1461 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1465 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1466 if test "${enable_bfd_assembler+set}" = set; then
1467 enableval
="$enable_bfd_assembler"
1468 case "${enableval}" in
1469 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1470 no
) user_bfd_gas
=no
;;
1471 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1474 # Check whether --enable-targets or --disable-targets was given.
1475 if test "${enable_targets+set}" = set; then
1476 enableval
="$enable_targets"
1477 case "${enableval}" in
1478 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1480 no
) enable_targets
= ;;
1481 *) enable_targets
=$enableval ;;
1484 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1485 if test "${enable_commonbfdlib+set}" = set; then
1486 enableval
="$enable_commonbfdlib"
1487 case "${enableval}" in
1488 yes) commonbfdlib
=true
;;
1489 no
) commonbfdlib
=false
;;
1490 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1494 # Generate a header file
1502 if test -n "$enable_targets" ; then
1503 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1504 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
1505 if test -n "$result" ; then
1506 canon_targets
="$canon_targets $result"
1508 # # Permit "all", etc. We don't support it yet though.
1509 # canon_targets="$canon_targets $t"
1512 _gas_uniq_list
="$canon_targets"
1513 _gas_uniq_newlist
=""
1514 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1515 case $_gas_uniq_i in
1517 *) case " $_gas_uniq_newlist " in
1518 *" $_gas_uniq_i "*) ;;
1519 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1523 canon_targets
=$_gas_uniq_newlist
1529 for this_target
in $target $canon_targets ; do
1531 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1533 # check for architecture variants
1537 alpha
*) cpu_type
=alpha
;;
1538 armeb
) cpu_type
=arm endian
=big
;;
1539 arm
*) cpu_type
=arm endian
=little
;;
1540 thumb
*) cpu_type
=arm endian
=little
;;
1541 hppa
*) cpu_type
=hppa
;;
1542 i
[456]86) cpu_type
=i386
;;
1543 m680
[012346]0) cpu_type
=m68k
;;
1544 m68008
) cpu_type
=m68k
;;
1545 m683??
) cpu_type
=m68k
;;
1546 m8
*) cpu_type
=m88k
;;
1547 mips
*el
) cpu_type
=mips endian
=little
;;
1548 # start-sanitize-r5900
1549 mips
*5900*) cpu_type
=mips endian
=little
;;
1550 # end-sanitize-r5900
1551 mips
*) cpu_type
=mips endian
=big
;;
1552 powerpcle
*) cpu_type
=ppc endian
=little
;;
1553 powerpc
*) cpu_type
=ppc endian
=big
;;
1554 rs6000
*) cpu_type
=ppc
;;
1555 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1556 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1557 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
1558 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
1559 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1560 v850
*) cpu_type
=v850
;;
1561 *) cpu_type
=${cpu} ;;
1564 if test ${this_target} = $target ; then
1565 target_cpu_type
=${cpu_type}
1566 if test x
${endian} = xbig
; then
1567 cat >> confdefs.h
<<\EOF
1568 #define TARGET_BYTES_BIG_ENDIAN 1
1571 elif test x
${endian} = xlittle
; then
1572 cat >> confdefs.h
<<\EOF
1573 #define TARGET_BYTES_BIG_ENDIAN 0
1577 elif test ${target_cpu_type} != ${cpu_type} ; then
1581 generic_target
=${cpu_type}-$vendor-$os
1586 # assign object format
1587 case ${generic_target} in
1588 a29k-
*-coff) fmt=coff
;;
1589 a29k-amd-udi
) fmt=coff
;;
1590 a29k-amd-ebmon
) fmt=coff
;;
1591 a29k-nyu-sym1
) fmt=coff
;;
1592 a29k-
*-vxworks*) fmt=coff
;;
1594 alpha
*-*-*vms
*) fmt=evax
;;
1595 alpha
*-*-netware*) fmt=ecoff
;;
1596 alpha
*-*-openbsd*) fmt=ecoff
;;
1597 alpha
*-*-osf*) fmt=ecoff
;;
1598 alpha
*-*-linuxecoff*) fmt=ecoff
;;
1599 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
1600 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
1602 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1604 arm-
*-riscix*) fmt=aout em
=riscix
;;
1605 arm-
*-aout) fmt=aout
;;
1606 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1607 arm-
*-riscix*) fmt=aout
;;
1608 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
1610 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1611 # start-sanitize-d30v
1612 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1615 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1616 hppa-
*-lites*) fmt=elf em
=hppa
;;
1617 hppa-
*-osf*) fmt=som em
=hppa
;;
1618 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1619 hppa-
*-hpux*) fmt=som em
=hppa
;;
1620 hppa-
*-bsd*) fmt=som em
=hppa
;;
1621 hppa-
*-hiux*) fmt=som em
=hppa
;;
1623 h8300-
*-coff) fmt=coff
;;
1625 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1626 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1627 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1628 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1629 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1630 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1631 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1632 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1633 i386-
*-linux-gnu*) fmt=elf em
=linux
;;
1634 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1635 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
1637 i386-
*-freebsdelf*) fmt=elf
;;
1638 i386-
*-freebsd*) fmt=aout em
=386bsd
;;
1639 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
1641 i386-
*-sco3.2v5
*) fmt=elf
1642 if test ${this_target} = $target; then
1643 cat >> confdefs.h
<<\EOF
1649 i386-
*-sco3.2
*) fmt=coff
;;
1650 i386-
*-vsta) fmt=aout
;;
1651 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
1653 i386-
*-rtems*) fmt=coff
;;
1654 i386-
*-gnu*) fmt=elf
;;
1656 fmt=aout em
=mach bfd_gas
=yes ;;
1657 i386-
*-msdos*) fmt=aout
;;
1658 i386-
*-moss*) fmt=elf
;;
1659 i386-
*-pe) fmt=coff em
=pe
;;
1660 i386-
*-cygwin32*) fmt=coff em
=pe bfd_gas
=yes ;;
1661 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
1662 i386-
*-*nt
*) fmt=coff em
=pe
;;
1663 i960-
*-bout) fmt=bout
;;
1664 i960-
*-coff) fmt=coff em
=ic960
;;
1665 i960-
*-rtems*) fmt=coff em
=ic960
;;
1666 i960-
*-nindy*) fmt=bout
;;
1667 i960-
*-vxworks4*) fmt=bout
;;
1668 i960-
*-vxworks5.0
) fmt=bout
;;
1669 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1670 i960-
*-vxworks*) fmt=bout
;;
1672 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1674 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1676 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1677 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1678 m68k-apollo-
*) fmt=coff em
=apollo
;;
1679 m68k-
*-sysv4*) # must be before -sysv*
1681 m68k-
*-elf*) fmt=elf
;;
1682 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1684 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1685 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1686 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
1687 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1688 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1689 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1690 m68k-apple-aux
*) fmt=coff em
=aux
;;
1691 m68k-
*-psos*) fmt=elf em
=psos
;;
1693 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1694 m88k-
*-coff*) fmt=coff
;;
1696 # don't change em like *-*-bsd does
1697 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1698 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1699 mips-dec-bsd
*) fmt=aout
;;
1700 mips-sony-bsd
*) fmt=ecoff
;;
1701 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1702 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1703 mips-
*-osf*) fmt=ecoff endian
=little
;;
1704 mips-
*-ecoff*) fmt=ecoff
;;
1705 mips-
*-ecoff*) fmt=ecoff
;;
1706 mips-
*-irix6*) fmt=elf
;;
1707 mips-
*-irix5*) fmt=elf
;;
1708 mips-
*-irix*) fmt=ecoff
;;
1709 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1710 mips-
*-riscos*) fmt=ecoff
;;
1711 mips-
*-sysv*) fmt=ecoff
;;
1712 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
1714 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1715 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1716 ppc-
*-pe | ppc-
*-cygwin32 | ppc-
*-winnt*)
1718 ppc-
*-aix*) fmt=coff
;;
1719 ppc-
*-beos*) fmt=coff
;;
1720 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1722 ppc-
*-linux-gnu*) fmt=elf
1725 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
1728 ppc-
*-solaris*) fmt=elf
1729 if test ${this_target} = $target; then
1730 cat >> confdefs.h
<<\EOF
1731 #define TARGET_SOLARIS_COMMENT 1
1735 if test x
${endian} = xbig
; then
1736 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1739 ppc-
*-rtems*) fmt=elf
;;
1740 ppc-
*-macos* | ppc-
*-mpw*)
1741 fmt=coff em
=macos
;;
1742 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1744 sh-
*-elf*) fmt=elf
;;
1745 sh-
*-coff*) fmt=coff
;;
1746 sh-
*-rtems*) fmt=coff
;;
1748 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1749 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1750 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1752 sparc-
*-rtems*) fmt=aout
;;
1753 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1754 sparc-
*-aout | sparc
*-*-vxworks*)
1755 fmt=aout em
=sparcaout
;;
1756 sparc-
*-coff) fmt=coff
;;
1757 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1758 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
1759 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1760 sparc-fujitsu-none
) fmt=aout
;;
1761 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1763 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1764 sparc-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1766 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
1767 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
1768 # start-sanitize-tic80
1769 tic80-
*-*) fmt=coff
;;
1770 # end-sanitize-tic80
1772 # start-sanitize-sky
1773 dvp-
*-*) fmt=elf bfd_gas
=yes ;;
1776 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1778 # start-sanitize-v850e
1779 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
1780 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
1781 # end-sanitize-v850e
1782 vax-
*-bsd* | vax-
*-ultrix*)
1784 vax-
*-vms) fmt=vms
;;
1786 z8k-
*-coff | z8k-
*-sim)
1789 w65-
*-*) fmt=coff
;;
1791 *-*-aout |
*-*-scout)
1797 *-*-generic) fmt=generic
;;
1798 *-*-xray |
*-*-hms) fmt=coff
;;
1799 *-*-sim) fmt=coff
;;
1800 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1801 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1803 *-*-vxworks) fmt=aout
;;
1804 *-*-netware) fmt=elf
;;
1807 case ${cpu_type}-${fmt} in
1808 alpha
*-*) bfd_gas
=yes ;;
1809 arm-
*) bfd_gas
=yes ;;
1811 # i386-aout) bfd_gas=preferred ;;
1812 mips-
*) bfd_gas
=yes ;;
1813 ns32k-
*) bfd_gas
=yes ;;
1814 ppc-
*) bfd_gas
=yes ;;
1815 sparc-
*) bfd_gas
=yes ;;
1816 *-elf) bfd_gas
=yes ;;
1817 *-ecoff) bfd_gas
=yes ;;
1818 *-som) bfd_gas
=yes ;;
1822 # Other random stuff.
1824 # do we need the opcodes library?
1831 case "${enable_shared}" in
1832 yes) shared_opcodes
=true
;;
1833 *opcodes
*) shared_opcodes
=true
;;
1834 *) shared_opcodes
=false
;;
1836 if test "${shared_opcodes}" = "true"; then
1837 # A shared libopcodes must be linked against libbfd.
1845 case ${extra_objects} in
1847 *) extra_objects
="$extra_objects cgen.o"
1848 cat >> confdefs.h
<<\EOF
1849 #define USING_CGEN 1
1857 case ${extra_objects} in
1859 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1864 echo ${extra_objects} |
grep -s "itbl-parse.o"
1865 if test $?
-ne 0 ; then
1866 extra_objects
="$extra_objects itbl-parse.o"
1869 echo ${extra_objects} |
grep -s "itbl-lex.o"
1870 if test $?
-ne 0 ; then
1871 extra_objects
="$extra_objects itbl-lex.o"
1874 echo ${extra_objects} |
grep -s "itbl-ops.o"
1875 if test $?
-ne 0 ; then
1876 extra_objects
="$extra_objects itbl-ops.o"
1881 if test $this_target = $target ; then
1882 cat >> confdefs.h
<<EOF
1883 #define DEFAULT_ARCH "${arch}"
1893 # See if we really can support this configuration with the emulation code.
1895 if test $this_target = $target ; then
1896 primary_bfd_gas
=$bfd_gas
1900 if test $bfd_gas = no
; then
1901 # Can't support other configurations this way.
1904 elif test $bfd_gas = no
; then
1905 # Can't support this configuration.
1909 # From target name and format, produce a list of supported emulations.
1911 case ${generic_target}-${fmt} in
1912 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1913 mips-
*-linux-gnu*-*) case "$endian" in
1914 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1915 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1917 mips-
*-lnews*-ecoff) ;;
1918 mips-
*-*-ecoff) case "$endian" in
1919 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1920 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
1922 mips-
*-*-elf) case "$endian" in
1923 big
) emulation
="mipsbelf mipslelf mipself" ;;
1924 *) emulation
="mipslelf mipsbelf mipself" ;;
1925 # Uncommenting the next line will turn on support for i386 COFF
1926 # in any i386 ELF configuration. This probably doesn't work
1928 # i386-*-*-elf) emulation="i386coff i386elf" ;;
1932 emulations
="$emulations $emulation"
1936 # Assign floating point type. Most processors with FP support
1937 # IEEE FP. On those that don't support FP at all, usually IEEE
1939 case ${target_cpu} in
1940 vax | tahoe
) atof
=${target_cpu} ;;
1944 case "${obj_format}" in
1945 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1949 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
1950 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1953 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
1954 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1957 case ${user_bfd_gas}-${primary_bfd_gas} in
1959 # We didn't override user's choice.
1962 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1974 # User specified nothing.
1978 # Some COFF configurations want these random other flags set.
1979 case ${obj_format} in
1981 case ${target_cpu_type} in
1982 i386
) cat >> confdefs.h
<<\EOF
1986 m68k
) cat >> confdefs.h
<<\EOF
1990 m88k
) cat >> confdefs.h
<<\EOF
1998 # Getting this done right is going to be a bitch. Each configuration specified
1999 # with --enable-targets=... should be checked for environment, format, cpu, and
2002 # For each configuration, the necessary object file support code must be linked
2003 # in. This might be only one, it might be up to four. The necessary emulation
2004 # code needs to be provided, too.
2006 # And then there's "--enable-targets=all"....
2008 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2010 formats
="${obj_format}"
2013 _gas_uniq_list
="$emulations"
2014 _gas_uniq_newlist
=""
2015 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2016 case $_gas_uniq_i in
2018 *) case " $_gas_uniq_newlist " in
2019 *" $_gas_uniq_i "*) ;;
2020 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2024 emulations
=$_gas_uniq_newlist
2026 for em
in .
$emulations ; do
2029 mipsbelf | mipslelf
)
2030 fmt=elf
file=mipself
;;
2031 mipsbecoff | mipslecoff
)
2032 fmt=ecoff
file=mipsecoff
;;
2034 fmt=coff
file=i386coff
;;
2036 fmt=elf
file=i386elf
;;
2038 formats
="$formats $fmt"
2039 emfiles
="$emfiles e-$file.o"
2040 EMULATIONS
="$EMULATIONS &$em,"
2042 _gas_uniq_list
="$formats"
2043 _gas_uniq_newlist
=""
2044 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2045 case $_gas_uniq_i in
2047 *) case " $_gas_uniq_newlist " in
2048 *" $_gas_uniq_i "*) ;;
2049 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2053 formats
=$_gas_uniq_newlist
2055 _gas_uniq_list
="$emfiles"
2056 _gas_uniq_newlist
=""
2057 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2058 case $_gas_uniq_i in
2060 *) case " $_gas_uniq_newlist " in
2061 *" $_gas_uniq_i "*) ;;
2062 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2066 emfiles
=$_gas_uniq_newlist
2068 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2069 for fmt in $formats ; do
2071 aout
) cat >> confdefs.h
<<\EOF
2072 #define OBJ_MAYBE_AOUT 1
2075 bout
) cat >> confdefs.h
<<\EOF
2076 #define OBJ_MAYBE_BOUT 1
2079 coff
) cat >> confdefs.h
<<\EOF
2080 #define OBJ_MAYBE_COFF 1
2083 ecoff
) cat >> confdefs.h
<<\EOF
2084 #define OBJ_MAYBE_ECOFF 1
2087 elf
) cat >> confdefs.h
<<\EOF
2088 #define OBJ_MAYBE_ELF 1
2091 generic
) cat >> confdefs.h
<<\EOF
2092 #define OBJ_MAYBE_GENERIC 1
2095 hp300
) cat >> confdefs.h
<<\EOF
2096 #define OBJ_MAYBE_HP300 1
2099 ieee
) cat >> confdefs.h
<<\EOF
2100 #define OBJ_MAYBE_IEEE 1
2103 som
) cat >> confdefs.h
<<\EOF
2104 #define OBJ_MAYBE_SOM 1
2107 vms
) cat >> confdefs.h
<<\EOF
2108 #define OBJ_MAYBE_VMS 1
2112 extra_objects
="$extra_objects obj-$fmt.o"
2116 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2118 extra_objects
="$extra_objects $emfiles"
2119 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2120 cat >> confdefs.h
<<\EOF
2121 #define USE_EMULATIONS 1
2126 cat >> confdefs.h
<<EOF
2127 #define EMULATIONS $EMULATIONS
2130 cat >> confdefs.h
<<EOF
2131 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2135 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2136 yes-
*-coff) need_bfd
=yes ;;
2137 no-
*-coff) need_bfd
=yes
2138 cat >> confdefs.h
<<\EOF
2139 #define MANY_SEGMENTS 1
2144 reject_dev_configs
=yes
2146 case ${reject_dev_configs}-${dev} in
2148 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2157 case "${primary_bfd_gas}" in
2158 yes) cat >> confdefs.h
<<\EOF
2159 #define BFD_ASSEMBLER 1
2165 # do we need the opcodes library?
2166 case "${need_opcodes}" in
2168 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2172 case "${need_bfd}" in
2174 BFDLIB
=..
/bfd
/libbfd.la
2175 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2184 cat >> confdefs.h
<<EOF
2185 #define TARGET_ALIAS "${target_alias}"
2188 cat >> confdefs.h
<<EOF
2189 #define TARGET_CANONICAL "${target}"
2192 cat >> confdefs.h
<<EOF
2193 #define TARGET_CPU "${target_cpu}"
2196 cat >> confdefs.h
<<EOF
2197 #define TARGET_VENDOR "${target_vendor}"
2200 cat >> confdefs.h
<<EOF
2201 #define TARGET_OS "${target_os}"
2205 # Extract the first word of "gcc", so it can be a program name with args.
2206 set dummy gcc
; ac_word
=$2
2207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2208 echo "configure:2209: checking for $ac_word" >&5
2209 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC
="$CC" # Let the user override the test.
2215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2216 for ac_dir
in $PATH; do
2217 test -z "$ac_dir" && ac_dir
=.
2218 if test -f $ac_dir/$ac_word; then
2227 if test -n "$CC"; then
2228 echo "$ac_t""$CC" 1>&6
2230 echo "$ac_t""no" 1>&6
2233 if test -z "$CC"; then
2234 # Extract the first word of "cc", so it can be a program name with args.
2235 set dummy cc
; ac_word
=$2
2236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2237 echo "configure:2238: checking for $ac_word" >&5
2238 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC
="$CC" # Let the user override the test.
2244 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2246 for ac_dir
in $PATH; do
2247 test -z "$ac_dir" && ac_dir
=.
2248 if test -f $ac_dir/$ac_word; then
2249 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2250 ac_prog_rejected
=yes
2258 if test $ac_prog_rejected = yes; then
2259 # We found a bogon in the path, so make sure we never use it.
2260 set dummy
$ac_cv_prog_CC
2262 if test $# -gt 0; then
2263 # We chose a different compiler from the bogus one.
2264 # However, it has the same basename, so the bogon will be chosen
2265 # first if we set CC to just the basename; use the full file name.
2267 set dummy
"$ac_dir/$ac_word" "$@"
2275 if test -n "$CC"; then
2276 echo "$ac_t""$CC" 1>&6
2278 echo "$ac_t""no" 1>&6
2281 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2284 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2285 echo "configure:2286: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2289 ac_cpp
='$CPP $CPPFLAGS'
2290 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2291 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2292 cross_compiling
=$ac_cv_prog_cc_cross
2294 cat > conftest.
$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2299 if { (eval echo configure
:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2300 ac_cv_prog_cc_works
=yes
2301 # If we can't run a trivial program, we are probably using a cross compiler.
2302 if (.
/conftest
; exit) 2>/dev
/null
; then
2303 ac_cv_prog_cc_cross
=no
2305 ac_cv_prog_cc_cross
=yes
2308 echo "configure: failed program was:" >&5
2309 cat conftest.
$ac_ext >&5
2310 ac_cv_prog_cc_works
=no
2314 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2315 if test $ac_cv_prog_cc_works = no
; then
2316 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2318 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2319 echo "configure:2320: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2320 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2321 cross_compiling
=$ac_cv_prog_cc_cross
2323 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2324 echo "configure:2325: checking whether we are using GNU C" >&5
2325 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.c
<<EOF
2333 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2340 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2342 if test $ac_cv_prog_gcc = yes; then
2344 ac_test_CFLAGS
="${CFLAGS+set}"
2345 ac_save_CFLAGS
="$CFLAGS"
2347 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2348 echo "configure:2349: checking whether ${CC-cc} accepts -g" >&5
2349 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 echo 'void f(){}' > conftest.c
2353 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2362 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2363 if test "$ac_test_CFLAGS" = set; then
2364 CFLAGS
="$ac_save_CFLAGS"
2365 elif test $ac_cv_prog_cc_g = yes; then
2372 test "${CFLAGS+set}" = set || CFLAGS
="-g"
2376 for ac_prog
in 'bison -y' byacc
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy
$ac_prog; ac_word
=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 if test -n "$YACC"; then
2386 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2388 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2389 for ac_dir
in $PATH; do
2390 test -z "$ac_dir" && ac_dir
=.
2391 if test -f $ac_dir/$ac_word; then
2392 ac_cv_prog_YACC
="$ac_prog"
2399 YACC
="$ac_cv_prog_YACC"
2400 if test -n "$YACC"; then
2401 echo "$ac_t""$YACC" 1>&6
2403 echo "$ac_t""no" 1>&6
2406 test -n "$YACC" && break
2408 test -n "$YACC" || YACC
="yacc"
2410 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2411 echo "configure:2412: checking how to run the C preprocessor" >&5
2412 # On Suns, sometimes $CPP names a directory.
2413 if test -n "$CPP" && test -d "$CPP"; then
2416 if test -z "$CPP"; then
2417 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2420 # This must be in double quotes, not single quotes, because CPP may get
2421 # substituted into the Makefile and "${CC-cc}" will confuse make.
2423 # On the NeXT, cc -E runs the code through the compiler's parser,
2424 # not just through cpp.
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2431 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure
:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err
=`grep -v '^ *+' conftest.out`
2434 if test -z "$ac_err"; then
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2441 CPP
="${CC-cc} -E -traditional-cpp"
2442 cat > conftest.
$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2448 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2449 { (eval echo configure
:2450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2450 ac_err
=`grep -v '^ *+' conftest.out`
2451 if test -z "$ac_err"; then
2455 echo "configure: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2463 ac_cv_prog_CPP
="$CPP"
2465 CPP
="$ac_cv_prog_CPP"
2467 ac_cv_prog_CPP
="$CPP"
2469 echo "$ac_t""$CPP" 1>&6
2471 missing_dir
=`cd $ac_aux_dir && pwd`
2472 for ac_prog
in flex
lex
2474 # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy
$ac_prog; ac_word
=$2
2476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_word" >&5
2478 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 if test -n "$LEX"; then
2482 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2484 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2485 for ac_dir
in $PATH; do
2486 test -z "$ac_dir" && ac_dir
=.
2487 if test -f $ac_dir/$ac_word; then
2488 ac_cv_prog_LEX
="$ac_prog"
2495 LEX
="$ac_cv_prog_LEX"
2496 if test -n "$LEX"; then
2497 echo "$ac_t""$LEX" 1>&6
2499 echo "$ac_t""no" 1>&6
2502 test -n "$LEX" && break
2504 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2506 # Extract the first word of "flex", so it can be a program name with args.
2507 set dummy flex
; ac_word
=$2
2508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_word" >&5
2510 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 if test -n "$LEX"; then
2514 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2516 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2517 for ac_dir
in $PATH; do
2518 test -z "$ac_dir" && ac_dir
=.
2519 if test -f $ac_dir/$ac_word; then
2520 ac_cv_prog_LEX
="flex"
2525 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2528 LEX
="$ac_cv_prog_LEX"
2529 if test -n "$LEX"; then
2530 echo "$ac_t""$LEX" 1>&6
2532 echo "$ac_t""no" 1>&6
2535 if test -z "$LEXLIB"
2541 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2542 echo "configure:2543: checking for yywrap in -l$ac_lib" >&5
2543 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 ac_save_LIBS
="$LIBS"
2548 LIBS
="-l$ac_lib $LIBS"
2549 cat > conftest.
$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 /* Override any gcc2 internal prototype to avoid an error. */
2553 /* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2561 if { (eval echo configure
:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2563 eval "ac_cv_lib_$ac_lib_var=yes"
2565 echo "configure: failed program was:" >&5
2566 cat conftest.
$ac_ext >&5
2568 eval "ac_cv_lib_$ac_lib_var=no"
2571 LIBS
="$ac_save_LIBS"
2574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2578 echo "$ac_t""no" 1>&6
2583 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2584 echo "configure:2585: checking lex output file root" >&5
2585 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 # The minimal lex program is just a single line: %%. But some broken lexes
2589 # (Solaris, I think it was) want two %% lines, so accommodate them.
2592 if test -f lex.yy.c
; then
2593 ac_cv_prog_lex_root
=lex.yy
2594 elif test -f lexyy.c
; then
2595 ac_cv_prog_lex_root
=lexyy
2597 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2601 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2602 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2604 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2605 echo "configure:2606: checking whether yytext is a pointer" >&5
2606 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 # POSIX says lex can declare yytext either as a pointer or an array; the
2610 # default is implementation-dependent. Figure out which it is, since
2611 # not all implementations provide the %pointer and %array declarations.
2612 ac_cv_prog_lex_yytext_pointer
=no
2613 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2614 ac_save_LIBS
="$LIBS"
2615 LIBS
="$LIBS $LEXLIB"
2616 cat > conftest.
$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 `cat $LEX_OUTPUT_ROOT.c`
2624 if { (eval echo configure
:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2626 ac_cv_prog_lex_yytext_pointer
=yes
2628 echo "configure: failed program was:" >&5
2629 cat conftest.
$ac_ext >&5
2632 LIBS
="$ac_save_LIBS"
2633 rm -f "${LEX_OUTPUT_ROOT}.c"
2637 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2638 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2639 cat >> confdefs.h
<<\EOF
2640 #define YYTEXT_POINTER 1
2647 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2648 echo "configure:2649: checking for POSIXized ISC" >&5
2649 if test -d /etc
/conf
/kconfig.d
&&
2650 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2652 echo "$ac_t""yes" 1>&6
2653 ISC
=yes # If later tests want to check for ISC.
2654 cat >> confdefs.h
<<\EOF
2655 #define _POSIX_SOURCE 1
2658 if test "$GCC" = yes; then
2664 echo "$ac_t""no" 1>&6
2668 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2669 echo "configure:2670: checking for ANSI C header files" >&5
2670 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 cat > conftest.
$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2681 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2682 { (eval echo configure
:2683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2683 ac_err
=`grep -v '^ *+' conftest.out`
2684 if test -z "$ac_err"; then
2686 ac_cv_header_stdc
=yes
2689 echo "configure: failed program was:" >&5
2690 cat conftest.
$ac_ext >&5
2692 ac_cv_header_stdc
=no
2696 if test $ac_cv_header_stdc = yes; then
2697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2698 cat > conftest.
$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2704 egrep "memchr" >/dev
/null
2>&1; then
2708 ac_cv_header_stdc
=no
2714 if test $ac_cv_header_stdc = yes; then
2715 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2716 cat > conftest.
$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2722 egrep "free" >/dev
/null
2>&1; then
2726 ac_cv_header_stdc
=no
2732 if test $ac_cv_header_stdc = yes; then
2733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2734 if test "$cross_compiling" = yes; then
2737 cat > conftest.
$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2741 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2742 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2744 int main () { int i; for (i = 0; i < 256; i++)
2745 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2749 if { (eval echo configure
:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2753 echo "configure: failed program was:" >&5
2754 cat conftest.
$ac_ext >&5
2756 ac_cv_header_stdc
=no
2764 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2765 if test $ac_cv_header_stdc = yes; then
2766 cat >> confdefs.h
<<\EOF
2767 #define STDC_HEADERS 1
2772 echo $ac_n "checking for working const""... $ac_c" 1>&6
2773 echo "configure:2774: checking for working const" >&5
2774 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 cat > conftest.
$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2783 /* Ultrix mips cc rejects this. */
2784 typedef int charset[2]; const charset x;
2785 /* SunOS 4.1.1 cc rejects this. */
2786 char const *const *ccp;
2788 /* NEC SVR4.0.2 mips cc rejects this. */
2789 struct point {int x, y;};
2790 static struct point const zero = {0,0};
2791 /* AIX XL C 1.02.0.0 rejects this.
2792 It does not let you subtract one const X* pointer from another in an arm
2793 of an if-expression whose if-part is not a constant expression */
2794 const char *g = "string";
2795 ccp = &g + (g ? g-g : 0);
2796 /* HPUX 7.0 cc rejects these. */
2799 ccp = (char const *const *) p;
2800 { /* SCO 3.2v4 cc rejects this. */
2802 char const *s = 0 ? (char *) 0 : (char const *) 0;
2806 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2808 const int *foo = &x[0];
2811 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2812 typedef const int *iptr;
2816 { /* AIX XL C 1.02.0.0 rejects this saying
2817 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2818 struct s { int j; const int *ap[3]; };
2819 struct s *b; b->j = 5;
2821 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2827 if { (eval echo configure
:2828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2831 echo "configure: failed program was:" >&5
2832 cat conftest.
$ac_ext >&5
2839 echo "$ac_t""$ac_cv_c_const" 1>&6
2840 if test $ac_cv_c_const = no
; then
2841 cat >> confdefs.h
<<\EOF
2847 echo $ac_n "checking for inline""... $ac_c" 1>&6
2848 echo "configure:2849: checking for inline" >&5
2849 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2853 for ac_kw
in inline __inline__ __inline
; do
2854 cat > conftest.
$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2862 if { (eval echo configure
:2863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2864 ac_cv_c_inline
=$ac_kw; break
2866 echo "configure: failed program was:" >&5
2867 cat conftest.
$ac_ext >&5
2874 echo "$ac_t""$ac_cv_c_inline" 1>&6
2875 case "$ac_cv_c_inline" in
2877 no
) cat >> confdefs.h
<<\EOF
2881 *) cat >> confdefs.h
<<EOF
2882 #define inline $ac_cv_c_inline
2887 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2888 echo "configure:2889: checking for off_t" >&5
2889 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 cat > conftest.
$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 #include <sys/types.h>
2901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2902 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2904 ac_cv_type_off_t
=yes
2912 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2913 if test $ac_cv_type_off_t = no
; then
2914 cat >> confdefs.h
<<\EOF
2920 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2921 echo "configure:2922: checking for size_t" >&5
2922 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 cat > conftest.
$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2928 #include <sys/types.h>
2934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2935 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2937 ac_cv_type_size_t
=yes
2940 ac_cv_type_size_t
=no
2945 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2946 if test $ac_cv_type_size_t = no
; then
2947 cat >> confdefs.h
<<\EOF
2948 #define size_t unsigned
2953 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2954 # for constant arguments. Useless!
2955 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2956 echo "configure:2957: checking for working alloca.h" >&5
2957 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2965 char *p = alloca(2 * sizeof(int));
2968 if { (eval echo configure
:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2970 ac_cv_header_alloca_h
=yes
2972 echo "configure: failed program was:" >&5
2973 cat conftest.
$ac_ext >&5
2975 ac_cv_header_alloca_h
=no
2980 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2981 if test $ac_cv_header_alloca_h = yes; then
2982 cat >> confdefs.h
<<\EOF
2983 #define HAVE_ALLOCA_H 1
2988 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2989 echo "configure:2990: checking for alloca" >&5
2990 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 cat > conftest.
$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2998 # define alloca __builtin_alloca
3001 # include <alloca.h>
3006 # ifndef alloca /* predefined by HP cc +Olibcalls */
3014 char *p = (char *) alloca(1);
3017 if { (eval echo configure
:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3019 ac_cv_func_alloca_works
=yes
3021 echo "configure: failed program was:" >&5
3022 cat conftest.
$ac_ext >&5
3024 ac_cv_func_alloca_works
=no
3029 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3030 if test $ac_cv_func_alloca_works = yes; then
3031 cat >> confdefs.h
<<\EOF
3032 #define HAVE_ALLOCA 1
3037 if test $ac_cv_func_alloca_works = no
; then
3038 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3039 # that cause trouble. Some versions do not even contain alloca or
3040 # contain a buggy version. If you still want to use their alloca,
3041 # use ar to extract alloca.o from them instead of compiling alloca.c.
3043 cat >> confdefs.h
<<\EOF
3048 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3049 echo "configure:3050: checking whether alloca needs Cray hooks" >&5
3050 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 cat > conftest.
$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 #if defined(CRAY) && ! defined(CRAY2)
3063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3064 egrep "webecray" >/dev
/null
2>&1; then
3075 echo "$ac_t""$ac_cv_os_cray" 1>&6
3076 if test $ac_cv_os_cray = yes; then
3077 for ac_func
in _getb67 GETB67 getb67
; do
3078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3079 echo "configure:3080: checking for $ac_func" >&5
3080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.
$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 /* System header to define __stub macros and hopefully few prototypes,
3087 which can conflict with char $ac_func(); below. */
3089 /* Override any gcc2 internal prototype to avoid an error. */
3090 /* We use char because int might match the return type of a gcc2
3091 builtin and then its argument prototype would still apply. */
3096 /* The GNU C library defines this for functions which it implements
3097 to always fail with ENOSYS. Some functions are actually named
3098 something starting with __ and the normal name is an alias. */
3099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3107 if { (eval echo configure
:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3109 eval "ac_cv_func_$ac_func=yes"
3111 echo "configure: failed program was:" >&5
3112 cat conftest.
$ac_ext >&5
3114 eval "ac_cv_func_$ac_func=no"
3119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3120 echo "$ac_t""yes" 1>&6
3121 cat >> confdefs.h
<<EOF
3122 #define CRAY_STACKSEG_END $ac_func
3127 echo "$ac_t""no" 1>&6
3133 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3134 echo "configure:3135: checking stack direction for C alloca" >&5
3135 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 if test "$cross_compiling" = yes; then
3139 ac_cv_c_stack_direction
=0
3141 cat > conftest.
$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 find_stack_direction ()
3146 static char *addr = 0;
3151 return find_stack_direction ();
3154 return (&dummy > addr) ? 1 : -1;
3158 exit (find_stack_direction() < 0);
3161 if { (eval echo configure
:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3163 ac_cv_c_stack_direction
=1
3165 echo "configure: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3168 ac_cv_c_stack_direction
=-1
3175 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3176 cat >> confdefs.h
<<EOF
3177 #define STACK_DIRECTION $ac_cv_c_stack_direction
3182 for ac_hdr
in unistd.h
3184 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_hdr" >&5
3187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3195 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3196 { (eval echo configure
:3197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3197 ac_err
=`grep -v '^ *+' conftest.out`
3198 if test -z "$ac_err"; then
3200 eval "ac_cv_header_$ac_safe=yes"
3203 echo "configure: failed program was:" >&5
3204 cat conftest.
$ac_ext >&5
3206 eval "ac_cv_header_$ac_safe=no"
3210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3211 echo "$ac_t""yes" 1>&6
3212 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3213 cat >> confdefs.h
<<EOF
3214 #define $ac_tr_hdr 1
3218 echo "$ac_t""no" 1>&6
3222 for ac_func
in getpagesize
3224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_func" >&5
3226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.
$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 /* System header to define __stub macros and hopefully few prototypes,
3233 which can conflict with char $ac_func(); below. */
3235 /* Override any gcc2 internal prototype to avoid an error. */
3236 /* We use char because int might match the return type of a gcc2
3237 builtin and then its argument prototype would still apply. */
3242 /* The GNU C library defines this for functions which it implements
3243 to always fail with ENOSYS. Some functions are actually named
3244 something starting with __ and the normal name is an alias. */
3245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3253 if { (eval echo configure
:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3255 eval "ac_cv_func_$ac_func=yes"
3257 echo "configure: failed program was:" >&5
3258 cat conftest.
$ac_ext >&5
3260 eval "ac_cv_func_$ac_func=no"
3265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3268 cat >> confdefs.h
<<EOF
3269 #define $ac_tr_func 1
3273 echo "$ac_t""no" 1>&6
3277 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3278 echo "configure:3279: checking for working mmap" >&5
3279 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 if test "$cross_compiling" = yes; then
3283 ac_cv_func_mmap_fixed_mapped
=no
3285 cat > conftest.
$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3289 /* Thanks to Mike Haertel and Jim Avera for this test.
3290 Here is a matrix of mmap possibilities:
3291 mmap private not fixed
3292 mmap private fixed at somewhere currently unmapped
3293 mmap private fixed at somewhere already mapped
3294 mmap shared not fixed
3295 mmap shared fixed at somewhere currently unmapped
3296 mmap shared fixed at somewhere already mapped
3297 For private mappings, we should verify that changes cannot be read()
3298 back from the file, nor mmap's back from the file at a different
3299 address. (There have been systems where private was not correctly
3300 implemented like the infamous i386 svr4.0, and systems where the
3301 VM page cache was not coherent with the filesystem buffer cache
3302 like early versions of FreeBSD and possibly contemporary NetBSD.)
3303 For shared mappings, we should conversely verify that changes get
3304 propogated back to all the places they're supposed to be.
3306 Grep wants private fixed already mapped.
3307 The main things grep needs to know about mmap are:
3308 * does it exist and is it safe to write into the mmap'd area
3309 * how to use it (BSD variants) */
3310 #include <sys/types.h>
3312 #include <sys/mman.h>
3314 /* This mess was copied from the GNU getpagesize.h. */
3315 #ifndef HAVE_GETPAGESIZE
3316 # ifdef HAVE_UNISTD_H
3317 # include <unistd.h>
3320 /* Assume that all systems that can run configure have sys/param.h. */
3321 # ifndef HAVE_SYS_PARAM_H
3322 # define HAVE_SYS_PARAM_H 1
3325 # ifdef _SC_PAGESIZE
3326 # define getpagesize() sysconf(_SC_PAGESIZE)
3327 # else /* no _SC_PAGESIZE */
3328 # ifdef HAVE_SYS_PARAM_H
3329 # include <sys/param.h>
3330 # ifdef EXEC_PAGESIZE
3331 # define getpagesize() EXEC_PAGESIZE
3332 # else /* no EXEC_PAGESIZE */
3334 # define getpagesize() NBPG * CLSIZE
3337 # endif /* no CLSIZE */
3338 # else /* no NBPG */
3340 # define getpagesize() NBPC
3341 # else /* no NBPC */
3343 # define getpagesize() PAGESIZE
3344 # endif /* PAGESIZE */
3345 # endif /* no NBPC */
3346 # endif /* no NBPG */
3347 # endif /* no EXEC_PAGESIZE */
3348 # else /* no HAVE_SYS_PARAM_H */
3349 # define getpagesize() 8192 /* punt totally */
3350 # endif /* no HAVE_SYS_PARAM_H */
3351 # endif /* no _SC_PAGESIZE */
3353 #endif /* no HAVE_GETPAGESIZE */
3356 extern "C" { void *malloc(unsigned); }
3364 char *data, *data2, *data3;
3368 pagesize = getpagesize();
3371 * First, make a file with some known garbage in it.
3373 data = malloc(pagesize);
3376 for (i = 0; i < pagesize; ++i)
3377 *(data + i) = rand();
3379 fd = creat("conftestmmap", 0600);
3382 if (write(fd, data, pagesize) != pagesize)
3387 * Next, try to mmap the file at a fixed address which
3388 * already has something else allocated at it. If we can,
3389 * also make sure that we see the same garbage.
3391 fd = open("conftestmmap", O_RDWR);
3394 data2 = malloc(2 * pagesize);
3397 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3398 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3399 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3401 for (i = 0; i < pagesize; ++i)
3402 if (*(data + i) != *(data2 + i))
3406 * Finally, make sure that changes to the mapped area
3407 * do not percolate back to the file as seen by read().
3408 * (This is a bug on some variants of i386 svr4.0.)
3410 for (i = 0; i < pagesize; ++i)
3411 *(data2 + i) = *(data2 + i) + 1;
3412 data3 = malloc(pagesize);
3415 if (read(fd, data3, pagesize) != pagesize)
3417 for (i = 0; i < pagesize; ++i)
3418 if (*(data + i) != *(data3 + i))
3421 unlink("conftestmmap");
3426 if { (eval echo configure
:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3428 ac_cv_func_mmap_fixed_mapped
=yes
3430 echo "configure: failed program was:" >&5
3431 cat conftest.
$ac_ext >&5
3433 ac_cv_func_mmap_fixed_mapped
=no
3440 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3441 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3442 cat >> confdefs.h
<<\EOF
3449 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3450 unistd.h values.h sys
/param.h
3452 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3454 echo "configure:3455: checking for $ac_hdr" >&5
3455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3458 cat > conftest.
$ac_ext <<EOF
3459 #line 3460 "configure"
3460 #include "confdefs.h"
3463 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3464 { (eval echo configure
:3465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3465 ac_err
=`grep -v '^ *+' conftest.out`
3466 if test -z "$ac_err"; then
3468 eval "ac_cv_header_$ac_safe=yes"
3471 echo "configure: failed program was:" >&5
3472 cat conftest.
$ac_ext >&5
3474 eval "ac_cv_header_$ac_safe=no"
3478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3479 echo "$ac_t""yes" 1>&6
3480 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3481 cat >> confdefs.h
<<EOF
3482 #define $ac_tr_hdr 1
3486 echo "$ac_t""no" 1>&6
3490 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3491 __argz_count __argz_stringify __argz_next
3493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3494 echo "configure:3495: checking for $ac_func" >&5
3495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3498 cat > conftest.
$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 /* System header to define __stub macros and hopefully few prototypes,
3502 which can conflict with char $ac_func(); below. */
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3511 /* The GNU C library defines this for functions which it implements
3512 to always fail with ENOSYS. Some functions are actually named
3513 something starting with __ and the normal name is an alias. */
3514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3522 if { (eval echo configure
:3523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3524 eval "ac_cv_func_$ac_func=yes"
3526 echo "configure: failed program was:" >&5
3527 cat conftest.
$ac_ext >&5
3529 eval "ac_cv_func_$ac_func=no"
3534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3537 cat >> confdefs.h
<<EOF
3538 #define $ac_tr_func 1
3542 echo "$ac_t""no" 1>&6
3547 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3548 for ac_func
in stpcpy
3550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3551 echo "configure:3552: checking for $ac_func" >&5
3552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 cat > conftest.
$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* System header to define __stub macros and hopefully few prototypes,
3559 which can conflict with char $ac_func(); below. */
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3568 /* The GNU C library defines this for functions which it implements
3569 to always fail with ENOSYS. Some functions are actually named
3570 something starting with __ and the normal name is an alias. */
3571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3579 if { (eval echo configure
:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3581 eval "ac_cv_func_$ac_func=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.
$ac_ext >&5
3586 eval "ac_cv_func_$ac_func=no"
3591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3594 cat >> confdefs.h
<<EOF
3595 #define $ac_tr_func 1
3599 echo "$ac_t""no" 1>&6
3604 if test "${ac_cv_func_stpcpy}" = "yes"; then
3605 cat >> confdefs.h
<<\EOF
3606 #define HAVE_STPCPY 1
3611 if test $ac_cv_header_locale_h = yes; then
3612 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3613 echo "configure:3614: checking for LC_MESSAGES" >&5
3614 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.
$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3625 if { (eval echo configure
:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3627 am_cv_val_LC_MESSAGES
=yes
3629 echo "configure: failed program was:" >&5
3630 cat conftest.
$ac_ext >&5
3632 am_cv_val_LC_MESSAGES
=no
3637 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3638 if test $am_cv_val_LC_MESSAGES = yes; then
3639 cat >> confdefs.h
<<\EOF
3640 #define HAVE_LC_MESSAGES 1
3645 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3646 echo "configure:3647: checking whether NLS is requested" >&5
3647 # Check whether --enable-nls or --disable-nls was given.
3648 if test "${enable_nls+set}" = set; then
3649 enableval
="$enable_nls"
3655 echo "$ac_t""$USE_NLS" 1>&6
3658 USE_INCLUDED_LIBINTL
=no
3660 if test "$USE_NLS" = "yes"; then
3661 cat >> confdefs.h
<<\EOF
3662 #define ENABLE_NLS 1
3665 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3666 echo "configure:3667: checking whether included gettext is requested" >&5
3667 # Check whether --with-included-gettext or --without-included-gettext was given.
3668 if test "${with_included_gettext+set}" = set; then
3669 withval
="$with_included_gettext"
3670 nls_cv_force_use_gnu_gettext
=$withval
3672 nls_cv_force_use_gnu_gettext
=no
3675 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3677 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3678 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3680 nls_cv_header_libgt
=
3683 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3684 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3685 echo "configure:3686: checking for libintl.h" >&5
3686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.
$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <libintl.h>
3694 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3695 { (eval echo configure
:3696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3696 ac_err
=`grep -v '^ *+' conftest.out`
3697 if test -z "$ac_err"; then
3699 eval "ac_cv_header_$ac_safe=yes"
3702 echo "configure: failed program was:" >&5
3703 cat conftest.
$ac_ext >&5
3705 eval "ac_cv_header_$ac_safe=no"
3709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3710 echo "$ac_t""yes" 1>&6
3711 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3712 echo "configure:3713: checking for gettext in libc" >&5
3713 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 cat > conftest.
$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 #include <libintl.h>
3721 return (int) gettext ("")
3724 if { (eval echo configure
:3725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3726 gt_cv_func_gettext_libc
=yes
3728 echo "configure: failed program was:" >&5
3729 cat conftest.
$ac_ext >&5
3731 gt_cv_func_gettext_libc
=no
3736 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3738 if test "$gt_cv_func_gettext_libc" != "yes"; then
3739 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3740 echo "configure:3741: checking for bindtextdomain in -lintl" >&5
3741 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 ac_save_LIBS
="$LIBS"
3747 cat > conftest.
$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3750 /* Override any gcc2 internal prototype to avoid an error. */
3751 /* We use char because int might match the return type of a gcc2
3752 builtin and then its argument prototype would still apply. */
3753 char bindtextdomain();
3759 if { (eval echo configure
:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3761 eval "ac_cv_lib_$ac_lib_var=yes"
3763 echo "configure: failed program was:" >&5
3764 cat conftest.
$ac_ext >&5
3766 eval "ac_cv_lib_$ac_lib_var=no"
3769 LIBS
="$ac_save_LIBS"
3772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3773 echo "$ac_t""yes" 1>&6
3774 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3775 echo "configure:3776: checking for gettext in libintl" >&5
3776 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3779 cat > conftest.
$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3784 return (int) gettext ("")
3787 if { (eval echo configure
:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3789 gt_cv_func_gettext_libintl
=yes
3791 echo "configure: failed program was:" >&5
3792 cat conftest.
$ac_ext >&5
3794 gt_cv_func_gettext_libintl
=no
3799 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3801 echo "$ac_t""no" 1>&6
3806 if test "$gt_cv_func_gettext_libc" = "yes" \
3807 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3808 cat >> confdefs.h
<<\EOF
3809 #define HAVE_GETTEXT 1
3812 # Extract the first word of "msgfmt", so it can be a program name with args.
3813 set dummy msgfmt
; ac_word
=$2
3814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3815 echo "configure:3816: checking for $ac_word" >&5
3816 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3821 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3824 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3825 for ac_dir
in $PATH; do
3826 test -z "$ac_dir" && ac_dir
=.
3827 if test -f $ac_dir/$ac_word; then
3828 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3829 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3835 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3839 MSGFMT
="$ac_cv_path_MSGFMT"
3840 if test -n "$MSGFMT"; then
3841 echo "$ac_t""$MSGFMT" 1>&6
3843 echo "$ac_t""no" 1>&6
3845 if test "$MSGFMT" != "no"; then
3846 for ac_func
in dcgettext
3848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3849 echo "configure:3850: checking for $ac_func" >&5
3850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 cat > conftest.
$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 /* System header to define __stub macros and hopefully few prototypes,
3857 which can conflict with char $ac_func(); below. */
3859 /* Override any gcc2 internal prototype to avoid an error. */
3860 /* We use char because int might match the return type of a gcc2
3861 builtin and then its argument prototype would still apply. */
3866 /* The GNU C library defines this for functions which it implements
3867 to always fail with ENOSYS. Some functions are actually named
3868 something starting with __ and the normal name is an alias. */
3869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3877 if { (eval echo configure
:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3879 eval "ac_cv_func_$ac_func=yes"
3881 echo "configure: failed program was:" >&5
3882 cat conftest.
$ac_ext >&5
3884 eval "ac_cv_func_$ac_func=no"
3889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3892 cat >> confdefs.h
<<EOF
3893 #define $ac_tr_func 1
3897 echo "$ac_t""no" 1>&6
3901 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3902 set dummy gmsgfmt
; ac_word
=$2
3903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3904 echo "configure:3905: checking for $ac_word" >&5
3905 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3910 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3913 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3916 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3917 for ac_dir
in $PATH; do
3918 test -z "$ac_dir" && ac_dir
=.
3919 if test -f $ac_dir/$ac_word; then
3920 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3925 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3929 GMSGFMT
="$ac_cv_path_GMSGFMT"
3930 if test -n "$GMSGFMT"; then
3931 echo "$ac_t""$GMSGFMT" 1>&6
3933 echo "$ac_t""no" 1>&6
3936 # Extract the first word of "xgettext", so it can be a program name with args.
3937 set dummy xgettext
; ac_word
=$2
3938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3939 echo "configure:3940: checking for $ac_word" >&5
3940 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3945 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3949 for ac_dir
in $PATH; do
3950 test -z "$ac_dir" && ac_dir
=.
3951 if test -f $ac_dir/$ac_word; then
3952 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3953 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3959 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3963 XGETTEXT
="$ac_cv_path_XGETTEXT"
3964 if test -n "$XGETTEXT"; then
3965 echo "$ac_t""$XGETTEXT" 1>&6
3967 echo "$ac_t""no" 1>&6
3970 cat > conftest.
$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3975 extern int _nl_msg_cat_cntr;
3976 return _nl_msg_cat_cntr
3979 if { (eval echo configure
:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3984 echo "configure: failed program was:" >&5
3985 cat conftest.
$ac_ext >&5
3996 echo "$ac_t""no" 1>&6
4001 if test "$CATOBJEXT" = "NONE"; then
4002 nls_cv_use_gnu_gettext
=yes
4006 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4007 INTLOBJS
="\$(GETTOBJS)"
4008 # Extract the first word of "msgfmt", so it can be a program name with args.
4009 set dummy msgfmt
; ac_word
=$2
4010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4011 echo "configure:4012: checking for $ac_word" >&5
4012 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4017 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4020 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4021 for ac_dir
in $PATH; do
4022 test -z "$ac_dir" && ac_dir
=.
4023 if test -f $ac_dir/$ac_word; then
4024 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4025 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4031 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4035 MSGFMT
="$ac_cv_path_MSGFMT"
4036 if test -n "$MSGFMT"; then
4037 echo "$ac_t""$MSGFMT" 1>&6
4039 echo "$ac_t""no" 1>&6
4042 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4043 set dummy gmsgfmt
; ac_word
=$2
4044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4045 echo "configure:4046: checking for $ac_word" >&5
4046 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4051 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4054 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4057 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4058 for ac_dir
in $PATH; do
4059 test -z "$ac_dir" && ac_dir
=.
4060 if test -f $ac_dir/$ac_word; then
4061 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4066 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4070 GMSGFMT
="$ac_cv_path_GMSGFMT"
4071 if test -n "$GMSGFMT"; then
4072 echo "$ac_t""$GMSGFMT" 1>&6
4074 echo "$ac_t""no" 1>&6
4077 # Extract the first word of "xgettext", so it can be a program name with args.
4078 set dummy xgettext
; ac_word
=$2
4079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4080 echo "configure:4081: checking for $ac_word" >&5
4081 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4086 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4089 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4090 for ac_dir
in $PATH; do
4091 test -z "$ac_dir" && ac_dir
=.
4092 if test -f $ac_dir/$ac_word; then
4093 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4094 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4100 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4104 XGETTEXT
="$ac_cv_path_XGETTEXT"
4105 if test -n "$XGETTEXT"; then
4106 echo "$ac_t""$XGETTEXT" 1>&6
4108 echo "$ac_t""no" 1>&6
4112 USE_INCLUDED_LIBINTL
=yes
4116 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4118 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4119 nls_cv_header_intl
=libintl.h
4120 nls_cv_header_libgt
=libgettext.h
4123 if test "$XGETTEXT" != ":"; then
4124 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4127 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4132 # We need to process the po/ directory.
4136 nls_cv_header_intl
=libintl.h
4137 nls_cv_header_libgt
=libgettext.h
4140 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4141 # because some of the sources are only built for this goal.
4142 if test "$PACKAGE" = gettext; then
4144 USE_INCLUDED_LIBINTL
=yes
4147 for lang
in $ALL_LINGUAS; do
4148 GMOFILES
="$GMOFILES $lang.gmo"
4149 POFILES
="$POFILES $lang.po"
4165 if test "x$CATOBJEXT" != "x"; then
4166 if test "x$ALL_LINGUAS" = "x"; then
4169 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4170 echo "configure:4171: checking for catalogs to be installed" >&5
4172 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4173 case "$ALL_LINGUAS" in
4174 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4177 LINGUAS
=$NEW_LINGUAS
4178 echo "$ac_t""$LINGUAS" 1>&6
4181 if test -n "$LINGUAS"; then
4182 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4186 if test $ac_cv_header_locale_h = yes; then
4187 INCLUDE_LOCALE_H
="#include <locale.h>"
4190 /* The system does not provide the header <locale.h>. Take care yourself. */"
4194 if test -f $srcdir/po2tbl.
sed.
in; then
4195 if test "$CATOBJEXT" = ".cat"; then
4196 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4197 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4198 echo "configure:4199: checking for linux/version.h" >&5
4199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4202 cat > conftest.
$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205 #include <linux/version.h>
4207 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4208 { (eval echo configure
:4209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4209 ac_err
=`grep -v '^ *+' conftest.out`
4210 if test -z "$ac_err"; then
4212 eval "ac_cv_header_$ac_safe=yes"
4215 echo "configure: failed program was:" >&5
4216 cat conftest.
$ac_ext >&5
4218 eval "ac_cv_header_$ac_safe=no"
4222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4223 echo "$ac_t""yes" 1>&6
4226 echo "$ac_t""no" 1>&6
4231 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4233 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4234 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4237 if test "$PACKAGE" = "gettext"; then
4247 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4253 if test -d $srcdir/po
; then
4254 test -d po || mkdir po
4255 if test "x$srcdir" != "x."; then
4256 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4257 posrcprefix
="$srcdir/"
4259 posrcprefix
="../$srcdir/"
4265 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4266 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4270 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4271 echo "configure:4272: checking whether to enable maintainer-specific portions of Makefiles" >&5
4272 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4273 if test "${enable_maintainer_mode+set}" = set; then
4274 enableval
="$enable_maintainer_mode"
4275 USE_MAINTAINER_MODE
=$enableval
4277 USE_MAINTAINER_MODE
=no
4280 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4281 if test $USE_MAINTAINER_MODE = yes; then
4288 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
4289 echo "configure:4290: checking for Cygwin32 environment" >&5
4290 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 cat > conftest.
$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4298 return __CYGWIN32__;
4301 if { (eval echo configure
:4302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4305 echo "configure: failed program was:" >&5
4306 cat conftest.
$ac_ext >&5
4314 echo "$ac_t""$am_cv_cygwin32" 1>&6
4316 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
4317 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
4318 echo "configure:4319: checking for Mingw32 environment" >&5
4319 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 cat > conftest.
$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4330 if { (eval echo configure
:4331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4334 echo "configure: failed program was:" >&5
4335 cat conftest.
$ac_ext >&5
4343 echo "$ac_t""$am_cv_mingw32" 1>&6
4345 test "$am_cv_mingw32" = yes && MINGW32
=yes
4348 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4349 echo "configure:4350: checking for executable suffix" >&5
4350 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
4356 cat > am_c_test.c
<< 'EOF'
4358 /* Nothing needed here
*/
4361 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
4363 for file in am_c_test.
*; do
4367 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
4373 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
4376 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
4377 echo "$ac_t""${am_cv_exeext}" 1>&6
4380 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4382 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4384 echo "configure:4385: checking for $ac_hdr" >&5
4385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 cat > conftest.
$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4393 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4394 { (eval echo configure
:4395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4395 ac_err
=`grep -v '^ *+' conftest.out`
4396 if test -z "$ac_err"; then
4398 eval "ac_cv_header_$ac_safe=yes"
4401 echo "configure: failed program was:" >&5
4402 cat conftest.
$ac_ext >&5
4404 eval "ac_cv_header_$ac_safe=no"
4408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4409 echo "$ac_t""yes" 1>&6
4410 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4411 cat >> confdefs.h
<<EOF
4412 #define $ac_tr_hdr 1
4416 echo "$ac_t""no" 1>&6
4421 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4422 # people who are not cross-compiling but are compiling cross-assemblers.
4423 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4424 echo "configure:4425: checking whether compiling a cross-assembler" >&5
4425 if test "${host}" = "${target}"; then
4429 cat >> confdefs.h
<<\EOF
4430 #define CROSS_COMPILE 1
4434 echo "$ac_t""$cross_gas" 1>&6
4436 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4437 # for constant arguments. Useless!
4438 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4439 echo "configure:4440: checking for working alloca.h" >&5
4440 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 cat > conftest.
$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4448 char *p = alloca(2 * sizeof(int));
4451 if { (eval echo configure
:4452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4453 ac_cv_header_alloca_h
=yes
4455 echo "configure: failed program was:" >&5
4456 cat conftest.
$ac_ext >&5
4458 ac_cv_header_alloca_h
=no
4463 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4464 if test $ac_cv_header_alloca_h = yes; then
4465 cat >> confdefs.h
<<\EOF
4466 #define HAVE_ALLOCA_H 1
4471 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4472 echo "configure:4473: checking for alloca" >&5
4473 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 cat > conftest.
$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4481 # define alloca __builtin_alloca
4484 # include <alloca.h>
4489 # ifndef alloca /* predefined by HP cc +Olibcalls */
4497 char *p = (char *) alloca(1);
4500 if { (eval echo configure
:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4502 ac_cv_func_alloca_works
=yes
4504 echo "configure: failed program was:" >&5
4505 cat conftest.
$ac_ext >&5
4507 ac_cv_func_alloca_works
=no
4512 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4513 if test $ac_cv_func_alloca_works = yes; then
4514 cat >> confdefs.h
<<\EOF
4515 #define HAVE_ALLOCA 1
4520 if test $ac_cv_func_alloca_works = no
; then
4521 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4522 # that cause trouble. Some versions do not even contain alloca or
4523 # contain a buggy version. If you still want to use their alloca,
4524 # use ar to extract alloca.o from them instead of compiling alloca.c.
4526 cat >> confdefs.h
<<\EOF
4531 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4532 echo "configure:4533: checking whether alloca needs Cray hooks" >&5
4533 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.
$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 #if defined(CRAY) && ! defined(CRAY2)
4546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4547 egrep "webecray" >/dev
/null
2>&1; then
4558 echo "$ac_t""$ac_cv_os_cray" 1>&6
4559 if test $ac_cv_os_cray = yes; then
4560 for ac_func
in _getb67 GETB67 getb67
; do
4561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4562 echo "configure:4563: checking for $ac_func" >&5
4563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 cat > conftest.
$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 /* System header to define __stub macros and hopefully few prototypes,
4570 which can conflict with char $ac_func(); below. */
4572 /* Override any gcc2 internal prototype to avoid an error. */
4573 /* We use char because int might match the return type of a gcc2
4574 builtin and then its argument prototype would still apply. */
4579 /* The GNU C library defines this for functions which it implements
4580 to always fail with ENOSYS. Some functions are actually named
4581 something starting with __ and the normal name is an alias. */
4582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4590 if { (eval echo configure
:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4592 eval "ac_cv_func_$ac_func=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.
$ac_ext >&5
4597 eval "ac_cv_func_$ac_func=no"
4602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 cat >> confdefs.h
<<EOF
4605 #define CRAY_STACKSEG_END $ac_func
4610 echo "$ac_t""no" 1>&6
4616 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4617 echo "configure:4618: checking stack direction for C alloca" >&5
4618 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 if test "$cross_compiling" = yes; then
4622 ac_cv_c_stack_direction
=0
4624 cat > conftest.
$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 find_stack_direction ()
4629 static char *addr = 0;
4634 return find_stack_direction ();
4637 return (&dummy > addr) ? 1 : -1;
4641 exit (find_stack_direction() < 0);
4644 if { (eval echo configure
:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4646 ac_cv_c_stack_direction
=1
4648 echo "configure: failed program was:" >&5
4649 cat conftest.
$ac_ext >&5
4651 ac_cv_c_stack_direction
=-1
4658 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4659 cat >> confdefs.h
<<EOF
4660 #define STACK_DIRECTION $ac_cv_c_stack_direction
4665 echo $ac_n "checking for inline""... $ac_c" 1>&6
4666 echo "configure:4667: checking for inline" >&5
4667 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4671 for ac_kw
in inline __inline__ __inline
; do
4672 cat > conftest.
$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4680 if { (eval echo configure
:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4682 ac_cv_c_inline
=$ac_kw; break
4684 echo "configure: failed program was:" >&5
4685 cat conftest.
$ac_ext >&5
4692 echo "$ac_t""$ac_cv_c_inline" 1>&6
4693 case "$ac_cv_c_inline" in
4695 no
) cat >> confdefs.h
<<\EOF
4699 *) cat >> confdefs.h
<<EOF
4700 #define inline $ac_cv_c_inline
4706 # VMS doesn't have unlink.
4707 for ac_func
in unlink remove
4709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4710 echo "configure:4711: checking for $ac_func" >&5
4711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4714 cat > conftest.
$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4717 /* System header to define __stub macros and hopefully few prototypes,
4718 which can conflict with char $ac_func(); below. */
4720 /* Override any gcc2 internal prototype to avoid an error. */
4721 /* We use char because int might match the return type of a gcc2
4722 builtin and then its argument prototype would still apply. */
4727 /* The GNU C library defines this for functions which it implements
4728 to always fail with ENOSYS. Some functions are actually named
4729 something starting with __ and the normal name is an alias. */
4730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4738 if { (eval echo configure
:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4740 eval "ac_cv_func_$ac_func=yes"
4742 echo "configure: failed program was:" >&5
4743 cat conftest.
$ac_ext >&5
4745 eval "ac_cv_func_$ac_func=no"
4750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
4752 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4753 cat >> confdefs.h
<<EOF
4754 #define $ac_tr_func 1
4758 echo "$ac_t""no" 1>&6
4763 # Some systems don't have sbrk().
4766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4767 echo "configure:4768: checking for $ac_func" >&5
4768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 cat > conftest.
$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4774 /* System header to define __stub macros and hopefully few prototypes,
4775 which can conflict with char $ac_func(); below. */
4777 /* Override any gcc2 internal prototype to avoid an error. */
4778 /* We use char because int might match the return type of a gcc2
4779 builtin and then its argument prototype would still apply. */
4784 /* The GNU C library defines this for functions which it implements
4785 to always fail with ENOSYS. Some functions are actually named
4786 something starting with __ and the normal name is an alias. */
4787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4795 if { (eval echo configure
:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4797 eval "ac_cv_func_$ac_func=yes"
4799 echo "configure: failed program was:" >&5
4800 cat conftest.
$ac_ext >&5
4802 eval "ac_cv_func_$ac_func=no"
4807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4808 echo "$ac_t""yes" 1>&6
4809 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4810 cat >> confdefs.h
<<EOF
4811 #define $ac_tr_func 1
4815 echo "$ac_t""no" 1>&6
4820 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
4821 # enough, but on some of those systems, the assert macro relies on requoting
4823 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
4824 echo "configure:4825: checking for working assert macro" >&5
4825 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 cat > conftest.
$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4835 /* check for requoting problems */
4836 static int a, b, c, d;
4838 assert (!strcmp(s, "foo bar baz quux"));
4839 /* check for newline handling */
4845 if { (eval echo configure
:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4847 gas_cv_assert_ok
=yes
4849 echo "configure: failed program was:" >&5
4850 cat conftest.
$ac_ext >&5
4856 echo "$ac_t""$gas_cv_assert_ok" 1>&6
4857 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
4858 #define BROKEN_ASSERT 1
4863 # On some systems, the system header files may not declare malloc, realloc,
4864 # and free. There are places where gas needs these functions to have been
4865 # declared -- such as when taking their addresses.
4867 #ifdef HAVE_MEMORY_H
4870 #ifdef HAVE_STRING_H
4873 #ifdef HAVE_STRINGS_H
4874 #include <strings.h>
4877 #ifdef HAVE_STDLIB_H
4880 #ifdef HAVE_UNISTD_H
4885 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
4886 echo "configure:4887: checking whether declaration is required for strstr" >&5
4887 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.
$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4896 typedef char *(*f)();
4902 if { (eval echo configure
:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4904 gas_cv_decl_needed_strstr
=no
4906 echo "configure: failed program was:" >&5
4907 cat conftest.
$ac_ext >&5
4909 gas_cv_decl_needed_strstr
=yes
4913 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
4914 test $gas_cv_decl_needed_strstr = no ||
{
4915 cat >> confdefs.h
<<\EOF
4916 #define NEED_DECLARATION_STRSTR 1
4922 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
4923 echo "configure:4924: checking whether declaration is required for malloc" >&5
4924 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 cat > conftest.
$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4933 typedef char *(*f)();
4939 if { (eval echo configure
:4940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4941 gas_cv_decl_needed_malloc
=no
4943 echo "configure: failed program was:" >&5
4944 cat conftest.
$ac_ext >&5
4946 gas_cv_decl_needed_malloc
=yes
4950 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
4951 test $gas_cv_decl_needed_malloc = no ||
{
4952 cat >> confdefs.h
<<\EOF
4953 #define NEED_DECLARATION_MALLOC 1
4959 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
4960 echo "configure:4961: checking whether declaration is required for free" >&5
4961 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 cat > conftest.
$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4970 typedef void (*f)();
4976 if { (eval echo configure
:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4978 gas_cv_decl_needed_free
=no
4980 echo "configure: failed program was:" >&5
4981 cat conftest.
$ac_ext >&5
4983 gas_cv_decl_needed_free
=yes
4987 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
4988 test $gas_cv_decl_needed_free = no ||
{
4989 cat >> confdefs.h
<<\EOF
4990 #define NEED_DECLARATION_FREE 1
4996 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
4997 echo "configure:4998: checking whether declaration is required for sbrk" >&5
4998 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
4999 echo $ac_n "(cached) $ac_c" 1>&6
5001 cat > conftest.
$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5007 typedef char *(*f)();
5013 if { (eval echo configure
:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5015 gas_cv_decl_needed_sbrk
=no
5017 echo "configure: failed program was:" >&5
5018 cat conftest.
$ac_ext >&5
5020 gas_cv_decl_needed_sbrk
=yes
5024 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5025 test $gas_cv_decl_needed_sbrk = no ||
{
5026 cat >> confdefs.h
<<\EOF
5027 #define NEED_DECLARATION_SBRK 1
5033 # Does errno.h declare errno, or do we have to add a separate declaration
5036 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5037 echo "configure:5038: checking whether declaration is required for errno" >&5
5038 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 cat > conftest.
$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5057 if { (eval echo configure
:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5059 gas_cv_decl_needed_errno
=no
5061 echo "configure: failed program was:" >&5
5062 cat conftest.
$ac_ext >&5
5064 gas_cv_decl_needed_errno
=yes
5068 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5069 test $gas_cv_decl_needed_errno = no ||
{
5070 cat >> confdefs.h
<<\EOF
5071 #define NEED_DECLARATION_ERRNO 1
5080 cat > confcache
<<\EOF
5081 # This file is a shell script that caches the results of configure
5082 # tests run on this system so they can be shared between configure
5083 # scripts and configure runs. It is not useful on other systems.
5084 # If it contains results you don't want to keep, you may remove or edit it.
5086 # By default, configure uses ./config.cache as the cache file,
5087 # creating it if it does not exist already. You can give configure
5088 # the --cache-file=FILE option to use a different cache file; that is
5089 # what configure does when it calls configure scripts in
5090 # subdirectories, so they share the cache.
5091 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5092 # config.status only pays attention to the cache file if you give it the
5093 # --recheck option to rerun configure.
5096 # The following way of writing the cache mishandles newlines in values,
5097 # but we know of no workaround that is simple, portable, and efficient.
5098 # So, don't put newlines in cache variables' values.
5099 # Ultrix sh set writes to stderr and can't be redirected directly,
5100 # and sets the high bit in the cache file unless we assign to the vars.
5102 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5104 # `set' does not quote correctly, so add quotes (double-quote substitution
5105 # turns \\\\ into \\, and sed turns \\ into \).
5107 -e "s/'/'\\\\''/g" \
5108 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5111 # `set' quotes correctly as required by POSIX, so do not add quotes.
5112 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5115 if cmp -s $cache_file confcache
; then
5118 if test -w $cache_file; then
5119 echo "updating cache $cache_file"
5120 cat confcache
> $cache_file
5122 echo "not updating unwritable cache $cache_file"
5127 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5129 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5130 # Let make expand exec_prefix.
5131 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5133 # Any assignment to VPATH causes Sun make to only execute
5134 # the first set of double-colon rules, so remove it if not needed.
5135 # If there is a colon in the path, we need to keep it.
5136 if test "x$srcdir" = x.
; then
5137 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5140 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5142 DEFS
=-DHAVE_CONFIG_H
5144 # Without the "./", some shells look in PATH for config.status.
5145 : ${CONFIG_STATUS=./config.status}
5147 echo creating
$CONFIG_STATUS
5148 rm -f $CONFIG_STATUS
5149 cat > $CONFIG_STATUS <<EOF
5151 # Generated automatically by configure.
5152 # Run this file to recreate the current configuration.
5153 # This directory was configured as follows,
5154 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5156 # $0 $ac_configure_args
5158 # Compiler output produced by configure, useful for debugging
5159 # configure, is in ./config.log if it exists.
5161 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5164 case "\$ac_option" in
5165 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5166 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5167 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5168 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5169 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5171 -help | --help | --hel | --he | --h)
5172 echo "\$ac_cs_usage"; exit 0 ;;
5173 *) echo "\$ac_cs_usage"; exit 1 ;;
5177 ac_given_srcdir=$srcdir
5178 ac_given_INSTALL="$INSTALL"
5180 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
5182 cat >> $CONFIG_STATUS <<EOF
5184 # Protect against being on the right side of a sed subst in config.status.
5185 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5186 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5190 s%@CFLAGS@%$CFLAGS%g
5191 s%@CPPFLAGS@%$CPPFLAGS%g
5192 s%@CXXFLAGS@%$CXXFLAGS%g
5194 s%@LDFLAGS@%$LDFLAGS%g
5196 s%@exec_prefix@%$exec_prefix%g
5197 s%@prefix@%$prefix%g
5198 s%@program_transform_name@%$program_transform_name%g
5199 s%@bindir@%$bindir%g
5200 s%@sbindir@%$sbindir%g
5201 s%@libexecdir@%$libexecdir%g
5202 s%@datadir@%$datadir%g
5203 s%@sysconfdir@%$sysconfdir%g
5204 s%@sharedstatedir@%$sharedstatedir%g
5205 s%@localstatedir@%$localstatedir%g
5206 s%@libdir@%$libdir%g
5207 s%@includedir@%$includedir%g
5208 s%@oldincludedir@%$oldincludedir%g
5209 s%@infodir@%$infodir%g
5210 s%@mandir@%$mandir%g
5212 s%@host_alias@%$host_alias%g
5213 s%@host_cpu@%$host_cpu%g
5214 s%@host_vendor@%$host_vendor%g
5215 s%@host_os@%$host_os%g
5216 s%@target@%$target%g
5217 s%@target_alias@%$target_alias%g
5218 s%@target_cpu@%$target_cpu%g
5219 s%@target_vendor@%$target_vendor%g
5220 s%@target_os@%$target_os%g
5222 s%@build_alias@%$build_alias%g
5223 s%@build_cpu@%$build_cpu%g
5224 s%@build_vendor@%$build_vendor%g
5225 s%@build_os@%$build_os%g
5226 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5227 s%@INSTALL_DATA@%$INSTALL_DATA%g
5228 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5229 s%@PACKAGE@%$PACKAGE%g
5230 s%@VERSION@%$VERSION%g
5231 s%@ACLOCAL@%$ACLOCAL%g
5232 s%@AUTOCONF@%$AUTOCONF%g
5233 s%@AUTOMAKE@%$AUTOMAKE%g
5234 s%@AUTOHEADER@%$AUTOHEADER%g
5235 s%@MAKEINFO@%$MAKEINFO%g
5236 s%@SET_MAKE@%$SET_MAKE%g
5237 s%@RANLIB@%$RANLIB%g
5242 s%@LIBTOOL@%$LIBTOOL%g
5243 s%@DLLTOOL@%$DLLTOOL%g
5245 s%@extra_objects@%$extra_objects%g
5246 s%@target_cpu_type@%$target_cpu_type%g
5247 s%@obj_format@%$obj_format%g
5248 s%@te_file@%$te_file%g
5250 s%@BFDLIB@%$BFDLIB%g
5251 s%@OPCODES_LIB@%$OPCODES_LIB%g
5252 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5255 s%@LEXLIB@%$LEXLIB%g
5257 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5258 s%@ALLOCA@%$ALLOCA%g
5259 s%@USE_NLS@%$USE_NLS%g
5260 s%@MSGFMT@%$MSGFMT%g
5261 s%@GMSGFMT@%$GMSGFMT%g
5262 s%@XGETTEXT@%$XGETTEXT%g
5263 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5264 s%@CATALOGS@%$CATALOGS%g
5265 s%@CATOBJEXT@%$CATOBJEXT%g
5266 s%@DATADIRNAME@%$DATADIRNAME%g
5267 s%@GMOFILES@%$GMOFILES%g
5268 s%@INSTOBJEXT@%$INSTOBJEXT%g
5269 s%@INTLDEPS@%$INTLDEPS%g
5270 s%@INTLLIBS@%$INTLLIBS%g
5271 s%@INTLOBJS@%$INTLOBJS%g
5272 s%@POFILES@%$POFILES%g
5274 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5276 s%@GT_YES@%$GT_YES%g
5277 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5280 s%@EXEEXT@%$EXEEXT%g
5285 cat >> $CONFIG_STATUS <<\EOF
5287 # Split the substitutions into bite-sized pieces for seds with
5288 # small command number limits, like on Digital OSF/1 and HP-UX.
5289 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5290 ac_file
=1 # Number of current file.
5291 ac_beg
=1 # First line for current file.
5292 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5295 while $ac_more_lines; do
5296 if test $ac_beg -gt 1; then
5297 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5299 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5301 if test ! -s conftest.s
$ac_file; then
5303 rm -f conftest.s
$ac_file
5305 if test -z "$ac_sed_cmds"; then
5306 ac_sed_cmds
="sed -f conftest.s$ac_file"
5308 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5310 ac_file
=`expr $ac_file + 1`
5312 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5315 if test -z "$ac_sed_cmds"; then
5320 cat >> $CONFIG_STATUS <<EOF
5322 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"}
5324 cat >> $CONFIG_STATUS <<\EOF
5325 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5326 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5328 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5329 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5330 *) ac_file_in
="${ac_file}.in" ;;
5333 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5335 # Remove last slash and all that follows it. Not all systems have dirname.
5336 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5337 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5338 # The file is in a subdirectory.
5339 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5340 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5341 # A "../" for each directory in $ac_dir_suffix.
5342 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5344 ac_dir_suffix
= ac_dots
=
5347 case "$ac_given_srcdir" in
5349 if test -z "$ac_dots"; then top_srcdir
=.
5350 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5351 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5353 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5354 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5357 case "$ac_given_INSTALL" in
5358 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5359 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5362 echo creating
"$ac_file"
5364 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5366 *Makefile
*) ac_comsub
="1i\\
5367 # $configure_input" ;;
5371 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5373 s%@configure_input@%$configure_input%g
5374 s%@srcdir@%$srcdir%g
5375 s%@top_srcdir@%$top_srcdir%g
5376 s%@INSTALL@%$INSTALL%g
5377 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5381 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5382 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5384 # ac_d sets the value in "#define NAME VALUE" lines.
5385 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5386 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5389 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5390 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5391 ac_uB
='\([ ]\)%\1#\2define\3'
5394 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5395 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5396 ac_eB
='$%\1#\2define\3'
5400 if test "${CONFIG_HEADERS+set}" != set; then
5402 cat >> $CONFIG_STATUS <<EOF
5403 CONFIG_HEADERS="config.h:config.in"
5405 cat >> $CONFIG_STATUS <<\EOF
5407 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5410 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5411 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5412 *) ac_file_in
="${ac_file}.in" ;;
5415 echo creating
$ac_file
5417 rm -f conftest.frag conftest.
in conftest.out
5418 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5419 cat $ac_file_inputs > conftest.
in
5423 # Transform confdefs.h into a sed script conftest.vals that substitutes
5424 # the proper values into config.h.in to produce config.h. And first:
5425 # Protect against being on the right side of a sed subst in config.status.
5426 # Protect against being in an unquoted here document in config.status.
5428 cat > conftest.hdr
<<\EOF
5431 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5435 sed -n -f conftest.hdr confdefs.h > conftest.vals
5438 # This sed command replaces #undef with comments. This is necessary, for
5439 # example, in the case of _POSIX_SOURCE, which is predefined and required
5440 # on some systems where configure will not decide to define it.
5441 cat >> conftest.vals <<\EOF
5442 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5445 # Break up conftest.vals because some shells have a limit on
5446 # the size of here documents, and old seds have small limits too.
5451 ac_lines=`grep -c . conftest.vals
`
5452 # grep -c gives empty output for an empty file on some AIX systems.
5453 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5454 # Write a limited-size here document to conftest.frag.
5455 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5456 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5458 sed -f conftest.frag conftest.in > conftest.out
5460 mv conftest.out conftest.in
5462 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5464 mv conftest.tail conftest.vals
5468 cat >> $CONFIG_STATUS <<\EOF
5469 rm -f conftest.frag conftest.h
5470 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5471 cat conftest.in >> conftest.h
5473 if cmp -s $ac_file conftest.h 2>/dev/null; then
5474 echo "$ac_file is unchanged"
5477 # Remove last slash and all that follows it. Not all systems have dirname.
5478 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5479 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5480 # The file is in a subdirectory.
5481 test ! -d "$ac_dir" && mkdir "$ac_dir"
5484 mv conftest.h $ac_file
5489 cat >> $CONFIG_STATUS <<EOF
5491 target_cpu_type=${target_cpu_type}
5492 obj_format=${obj_format}
5495 cat >> $CONFIG_STATUS <<\EOF
5496 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5497 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
5498 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
5499 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
5500 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
5501 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
5502 case ${target_cpu_type} in
5503 m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
5506 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5509 chmod +x $CONFIG_STATUS
5510 rm -fr confdefs* $ac_clean_files
5511 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1