3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-bfd-assembler use BFD back end for writing object files"
29 targets alternative target configurations besides the primary"
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
33 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
35 --disable-nls do not use Native Language Support"
37 --with-included-gettext use the GNU gettext library included here"
39 --enable-maintainer-mode enable make rules and dependencies not useful
40 (and sometimes confusing) to the casual installer"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file
=.
/config.cache
55 program_transform_name
=s
,x
,x
,
63 bindir
='${exec_prefix}/bin'
64 sbindir
='${exec_prefix}/sbin'
65 libexecdir
='${exec_prefix}/libexec'
66 datadir
='${prefix}/share'
67 sysconfdir
='${prefix}/etc'
68 sharedstatedir
='${prefix}/com'
69 localstatedir
='${prefix}/var'
70 libdir
='${exec_prefix}/lib'
71 includedir
='${prefix}/include'
72 oldincludedir
='/usr/include'
73 infodir
='${prefix}/info'
74 mandir
='${prefix}/man'
76 # Initialize some other variables.
79 SHELL
=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
105 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
106 bindir
="$ac_optarg" ;;
108 -build |
--build |
--buil |
--bui |
--bu)
110 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
111 build
="$ac_optarg" ;;
113 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
114 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
115 ac_prev
=cache_file
;;
116 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
117 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
118 cache_file
="$ac_optarg" ;;
120 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
122 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
124 datadir
="$ac_optarg" ;;
126 -disable-* |
--disable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* |
--enable-*)
136 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
149 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
150 |
--exec |
--exe |
--ex)
151 ac_prev
=exec_prefix
;;
152 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
153 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
154 |
--exec=* |
--exe=* |
--ex=*)
155 exec_prefix
="$ac_optarg" ;;
157 -gas |
--gas |
--ga |
--g)
158 # Obsolete; use --with-gas.
161 -help |
--help |
--hel |
--he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host |
--host |
--hos |
--ho)
218 -host=* |
--host=* |
--hos=* |
--ho=*)
221 -includedir |
--includedir |
--includedi |
--included |
--include \
222 |
--includ |
--inclu |
--incl |
--inc)
223 ac_prev
=includedir
;;
224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
226 includedir
="$ac_optarg" ;;
228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
231 infodir
="$ac_optarg" ;;
233 -libdir |
--libdir |
--libdi |
--libd)
235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
236 libdir
="$ac_optarg" ;;
238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
239 |
--libexe |
--libex |
--libe)
240 ac_prev
=libexecdir
;;
241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
242 |
--libexe=* |
--libex=* |
--libe=*)
243 libexecdir
="$ac_optarg" ;;
245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
246 |
--localstate |
--localstat |
--localsta |
--localst \
247 |
--locals |
--local |
--loca |
--loc |
--lo)
248 ac_prev
=localstatedir
;;
249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
251 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
252 localstatedir
="$ac_optarg" ;;
254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
257 mandir
="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
273 |
--oldin |
--oldi |
--old |
--ol |
--o)
274 ac_prev
=oldincludedir
;;
275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
278 oldincludedir
="$ac_optarg" ;;
280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
283 prefix
="$ac_optarg" ;;
285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
286 |
--program-pre |
--program-pr |
--program-p)
287 ac_prev
=program_prefix
;;
288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
290 program_prefix
="$ac_optarg" ;;
292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
293 |
--program-suf |
--program-su |
--program-s)
294 ac_prev
=program_suffix
;;
295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
297 program_suffix
="$ac_optarg" ;;
299 -program-transform-name |
--program-transform-name \
300 |
--program-transform-nam |
--program-transform-na \
301 |
--program-transform-n |
--program-transform- \
302 |
--program-transform |
--program-transfor \
303 |
--program-transfo |
--program-transf \
304 |
--program-trans |
--program-tran \
305 |
--progr-tra |
--program-tr |
--program-t)
306 ac_prev
=program_transform_name
;;
307 -program-transform-name=* |
--program-transform-name=* \
308 |
--program-transform-nam=* |
--program-transform-na=* \
309 |
--program-transform-n=* |
--program-transform-=* \
310 |
--program-transform=* |
--program-transfor=* \
311 |
--program-transfo=* |
--program-transf=* \
312 |
--program-trans=* |
--program-tran=* \
313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
314 program_transform_name
="$ac_optarg" ;;
316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
317 |
-silent |
--silent |
--silen |
--sile |
--sil)
320 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
322 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
324 sbindir
="$ac_optarg" ;;
326 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
327 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
328 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
330 ac_prev
=sharedstatedir
;;
331 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
332 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
333 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
335 sharedstatedir
="$ac_optarg" ;;
337 -site |
--site |
--sit)
339 -site=* |
--site=* |
--sit=*)
342 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
344 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
345 srcdir
="$ac_optarg" ;;
347 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
348 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
349 ac_prev
=sysconfdir
;;
350 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
351 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
352 sysconfdir
="$ac_optarg" ;;
354 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
356 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
357 target
="$ac_optarg" ;;
359 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
362 -version |
--version |
--versio |
--versi |
--vers)
363 echo "configure generated by autoconf version 2.13"
367 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* |
--without-*)
380 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package
=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
393 |
--x-incl |
--x-inc |
--x-in |
--x-i)
394 ac_prev
=x_includes
;;
395 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
396 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
397 x_includes
="$ac_optarg" ;;
399 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
400 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
401 ac_prev
=x_libraries
;;
402 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
403 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
404 x_libraries
="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE
; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
455 |
--no-cr |
--no-c) ;;
456 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
457 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
458 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest
* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted
=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted
=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE
; then
509 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file
in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp
='$CPP $CPPFLAGS'
532 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling
=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
547 ac_n
= ac_c
='\c' ac_t
=
550 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
551 echo "configure:552: checking for Cygwin environment" >&5
552 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
553 echo $ac_n "(cached) $ac_c" 1>&6
555 cat > conftest.
$ac_ext <<EOF
556 #line 557 "configure"
557 #include "confdefs.h"
562 #define __CYGWIN__ __CYGWIN32__
567 if { (eval echo configure
:568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
571 echo "configure: failed program was:" >&5
572 cat conftest.
$ac_ext >&5
580 echo "$ac_t""$ac_cv_cygwin" 1>&6
582 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
583 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
584 echo "configure:585: checking for mingw32 environment" >&5
585 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 cat > conftest.
$ac_ext <<EOF
589 #line 590 "configure"
590 #include "confdefs.h"
596 if { (eval echo configure
:597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
600 echo "configure: failed program was:" >&5
601 cat conftest.
$ac_ext >&5
609 echo "$ac_t""$ac_cv_mingw32" 1>&6
611 test "$ac_cv_mingw32" = yes && MINGW32
=yes
615 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
616 if test -f $ac_dir/install-sh
; then
618 ac_install_sh
="$ac_aux_dir/install-sh -c"
620 elif test -f $ac_dir/install.sh
; then
622 ac_install_sh
="$ac_aux_dir/install.sh -c"
626 if test -z "$ac_aux_dir"; then
627 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
629 ac_config_guess
=$ac_aux_dir/config.guess
630 ac_config_sub
=$ac_aux_dir/config.sub
631 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
634 # Do some error checking and defaulting for the host and target type.
636 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
639 # 1. You are not allowed to specify --host, --target, and nonopt at the
641 # 2. Host defaults to nonopt.
642 # 3. If nonopt is not specified, then host defaults to the current host,
643 # as determined by config.guess.
644 # 4. Target and build default to nonopt.
645 # 5. If nonopt is not specified, then target and build default to host.
647 # The aliases save the names the user supplied, while $host etc.
648 # will get canonicalized.
649 case $host---$target---$nonopt in
650 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
651 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
655 # Make sure we can run config.sub.
656 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
657 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
660 echo $ac_n "checking host system type""... $ac_c" 1>&6
661 echo "configure:662: checking host system type" >&5
664 case "$host_alias" in
668 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
669 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
671 *) host_alias
=$nonopt ;;
675 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
676 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
677 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
678 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679 echo "$ac_t""$host" 1>&6
681 echo $ac_n "checking target system type""... $ac_c" 1>&6
682 echo "configure:683: checking target system type" >&5
685 case "$target_alias" in
688 NONE
) target_alias
=$host_alias ;;
689 *) target_alias
=$nonopt ;;
693 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
694 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
697 echo "$ac_t""$target" 1>&6
699 echo $ac_n "checking build system type""... $ac_c" 1>&6
700 echo "configure:701: checking build system type" >&5
703 case "$build_alias" in
706 NONE
) build_alias
=$host_alias ;;
707 *) build_alias
=$nonopt ;;
711 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
712 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
713 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
714 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
715 echo "$ac_t""$build" 1>&6
717 test "$host_alias" != "$target_alias" &&
718 test "$program_prefix$program_suffix$program_transform_name" = \
720 program_prefix
=${target_alias}-
723 # Find a good install program. We prefer a C program (faster),
724 # so one script is as good as another. But avoid the broken or
725 # incompatible versions:
726 # SysV /etc/install, /usr/sbin/install
727 # SunOS /usr/etc/install
730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
733 # ./install, which can be erroneously created by make from ./install.sh.
734 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
735 echo "configure:736: checking for a BSD compatible install" >&5
736 if test -z "$INSTALL"; then
737 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
741 for ac_dir
in $PATH; do
742 # Account for people who put trailing slashes in PATH elements.
744 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
746 # OSF1 and SCO ODT 3.0 have their own names for install.
747 # Don't use installbsd from OSF since it installs stuff as root
749 for ac_prog
in ginstall scoinst
install; do
750 if test -f $ac_dir/$ac_prog; then
751 if test $ac_prog = install &&
752 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
753 # AIX install. It has an incompatible calling convention.
756 ac_cv_path_install
="$ac_dir/$ac_prog -c"
767 if test "${ac_cv_path_install+set}" = set; then
768 INSTALL
="$ac_cv_path_install"
770 # As a last resort, use the slow shell script. We don't cache a
771 # path for INSTALL within a source directory, because that will
772 # break other packages using the cache if that directory is
773 # removed, or if the path is relative.
774 INSTALL
="$ac_install_sh"
777 echo "$ac_t""$INSTALL" 1>&6
779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
780 # It thinks the first close brace ends the variable substitution.
781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
785 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
787 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
788 echo "configure:789: checking whether build environment is sane" >&5
791 echo timestamp
> conftestfile
792 # Do `set' in a subshell so we don't clobber the current shell's
793 # arguments. Must try -L first in case configure is actually a
794 # symlink; some systems play weird games with the mod time of symlinks
795 # (eg FreeBSD returns the mod time of the symlink's containing
798 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
799 if test "$*" = "X"; then
801 set X
`ls -t $srcdir/configure conftestfile`
803 if test "$*" != "X $srcdir/configure conftestfile" \
804 && test "$*" != "X conftestfile $srcdir/configure"; then
806 # If neither matched, then we have a broken ls. This can happen
807 # if, for instance, CONFIG_SHELL is bash and it inherits a
808 # broken ls alias from the environment. This has actually
809 # happened. Such a system could not be considered "sane".
810 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
811 alias in your environment" 1>&2; exit 1; }
814 test "$2" = conftestfile
820 { echo "configure: error: newly created file is older than distributed files!
821 Check your system clock" 1>&2; exit 1; }
824 echo "$ac_t""yes" 1>&6
825 if test "$program_transform_name" = s
,x
,x
,; then
826 program_transform_name
=
828 # Double any \ or $. echo might interpret backslashes.
829 cat <<\EOF_SED
> conftestsed
830 s
,\\,\\\\,g
; s
,\$
,$$
,g
832 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
835 test "$program_prefix" != NONE
&&
836 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
837 # Use a double $ so make ignores it.
838 test "$program_suffix" != NONE
&&
839 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
841 # sed with no file args requires a program.
842 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
844 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${MAKE-make} sets \${MAKE}" >&5
846 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
847 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 cat > conftestmake
<<\EOF
852 @
echo 'ac_maketemp="${MAKE}"'
854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
855 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
856 if test -n "$ac_maketemp"; then
857 eval ac_cv_prog_make_
${ac_make}_set
=yes
859 eval ac_cv_prog_make_
${ac_make}_set
=no
863 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
864 echo "$ac_t""yes" 1>&6
867 echo "$ac_t""no" 1>&6
868 SET_MAKE
="MAKE=${MAKE-make}"
876 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
877 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
879 cat >> confdefs.h
<<EOF
880 #define PACKAGE "$PACKAGE"
883 cat >> confdefs.h
<<EOF
884 #define VERSION "$VERSION"
889 missing_dir
=`cd $ac_aux_dir && pwd`
890 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
891 echo "configure:892: checking for working aclocal" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf. Sigh.
895 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
897 echo "$ac_t""found" 1>&6
899 ACLOCAL
="$missing_dir/missing aclocal"
900 echo "$ac_t""missing" 1>&6
903 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
904 echo "configure:905: checking for working autoconf" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf. Sigh.
908 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
910 echo "$ac_t""found" 1>&6
912 AUTOCONF
="$missing_dir/missing autoconf"
913 echo "$ac_t""missing" 1>&6
916 echo $ac_n "checking for working automake""... $ac_c" 1>&6
917 echo "configure:918: checking for working automake" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf. Sigh.
921 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
923 echo "$ac_t""found" 1>&6
925 AUTOMAKE
="$missing_dir/missing automake"
926 echo "$ac_t""missing" 1>&6
929 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
930 echo "configure:931: checking for working autoheader" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf. Sigh.
934 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
935 AUTOHEADER
=autoheader
936 echo "$ac_t""found" 1>&6
938 AUTOHEADER
="$missing_dir/missing autoheader"
939 echo "$ac_t""missing" 1>&6
942 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
943 echo "configure:944: checking for working makeinfo" >&5
944 # Run test in a subshell; some versions of sh will print an error if
945 # an executable is not found, even if stderr is redirected.
946 # Redirect stdin to placate older versions of autoconf. Sigh.
947 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
949 echo "$ac_t""found" 1>&6
951 MAKEINFO
="$missing_dir/missing makeinfo"
952 echo "$ac_t""missing" 1>&6
957 # Check whether --enable-shared or --disable-shared was given.
958 if test "${enable_shared+set}" = set; then
959 enableval
="$enable_shared"
962 yes) enable_shared
=yes ;;
963 no
) enable_shared
=no
;;
966 # Look at the argument we got. We use all the common list separators.
967 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
968 for pkg
in $enableval; do
969 if test "X$pkg" = "X$p"; then
980 # Check whether --enable-static or --disable-static was given.
981 if test "${enable_static+set}" = set; then
982 enableval
="$enable_static"
985 yes) enable_static
=yes ;;
986 no
) enable_static
=no
;;
989 # Look at the argument we got. We use all the common list separators.
990 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
991 for pkg
in $enableval; do
992 if test "X$pkg" = "X$p"; then
1003 # Check whether --enable-fast-install or --disable-fast-install was given.
1004 if test "${enable_fast_install+set}" = set; then
1005 enableval
="$enable_fast_install"
1006 p
=${PACKAGE-default}
1007 case "$enableval" in
1008 yes) enable_fast_install
=yes ;;
1009 no
) enable_fast_install
=no
;;
1011 enable_fast_install
=no
1012 # Look at the argument we got. We use all the common list separators.
1013 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1014 for pkg
in $enableval; do
1015 if test "X$pkg" = "X$p"; then
1016 enable_fast_install
=yes
1023 enable_fast_install
=yes
1026 # Extract the first word of "gcc", so it can be a program name with args.
1027 set dummy gcc
; ac_word
=$2
1028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1029 echo "configure:1030: checking for $ac_word" >&5
1030 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 if test -n "$CC"; then
1034 ac_cv_prog_CC
="$CC" # Let the user override the test.
1036 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1038 for ac_dir
in $ac_dummy; do
1039 test -z "$ac_dir" && ac_dir
=.
1040 if test -f $ac_dir/$ac_word; then
1049 if test -n "$CC"; then
1050 echo "$ac_t""$CC" 1>&6
1052 echo "$ac_t""no" 1>&6
1055 if test -z "$CC"; then
1056 # Extract the first word of "cc", so it can be a program name with args.
1057 set dummy cc
; ac_word
=$2
1058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1059 echo "configure:1060: checking for $ac_word" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 if test -n "$CC"; then
1064 ac_cv_prog_CC
="$CC" # Let the user override the test.
1066 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1069 for ac_dir
in $ac_dummy; do
1070 test -z "$ac_dir" && ac_dir
=.
1071 if test -f $ac_dir/$ac_word; then
1072 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1073 ac_prog_rejected
=yes
1081 if test $ac_prog_rejected = yes; then
1082 # We found a bogon in the path, so make sure we never use it.
1083 set dummy
$ac_cv_prog_CC
1085 if test $# -gt 0; then
1086 # We chose a different compiler from the bogus one.
1087 # However, it has the same basename, so the bogon will be chosen
1088 # first if we set CC to just the basename; use the full file name.
1090 set dummy
"$ac_dir/$ac_word" "$@"
1098 if test -n "$CC"; then
1099 echo "$ac_t""$CC" 1>&6
1101 echo "$ac_t""no" 1>&6
1104 if test -z "$CC"; then
1105 case "`uname -s`" in
1107 # Extract the first word of "cl", so it can be a program name with args.
1108 set dummy cl
; ac_word
=$2
1109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1110 echo "configure:1111: checking for $ac_word" >&5
1111 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1114 if test -n "$CC"; then
1115 ac_cv_prog_CC
="$CC" # Let the user override the test.
1117 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1119 for ac_dir
in $ac_dummy; do
1120 test -z "$ac_dir" && ac_dir
=.
1121 if test -f $ac_dir/$ac_word; then
1130 if test -n "$CC"; then
1131 echo "$ac_t""$CC" 1>&6
1133 echo "$ac_t""no" 1>&6
1138 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1141 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1146 ac_cpp
='$CPP $CPPFLAGS'
1147 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1148 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1149 cross_compiling
=$ac_cv_prog_cc_cross
1151 cat > conftest.
$ac_ext << EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1158 if { (eval echo configure
:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1159 ac_cv_prog_cc_works
=yes
1160 # If we can't run a trivial program, we are probably using a cross compiler.
1161 if (.
/conftest
; exit) 2>/dev
/null
; then
1162 ac_cv_prog_cc_cross
=no
1164 ac_cv_prog_cc_cross
=yes
1167 echo "configure: failed program was:" >&5
1168 cat conftest.
$ac_ext >&5
1169 ac_cv_prog_cc_works
=no
1173 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1174 ac_cpp
='$CPP $CPPFLAGS'
1175 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1176 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1177 cross_compiling
=$ac_cv_prog_cc_cross
1179 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1180 if test $ac_cv_prog_cc_works = no
; then
1181 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1183 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1185 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1186 cross_compiling
=$ac_cv_prog_cc_cross
1188 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether we are using GNU C" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 cat > conftest.c
<<EOF
1198 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1205 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1207 if test $ac_cv_prog_gcc = yes; then
1213 ac_test_CFLAGS
="${CFLAGS+set}"
1214 ac_save_CFLAGS
="$CFLAGS"
1216 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether ${CC-cc} accepts -g" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 echo 'void f(){}' > conftest.c
1222 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1231 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1232 if test "$ac_test_CFLAGS" = set; then
1233 CFLAGS
="$ac_save_CFLAGS"
1234 elif test $ac_cv_prog_cc_g = yes; then
1235 if test "$GCC" = yes; then
1241 if test "$GCC" = yes; then
1248 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1249 if test "${with_gnu_ld+set}" = set; then
1250 withval
="$with_gnu_ld"
1251 test "$withval" = no || with_gnu_ld
=yes
1257 if test "$ac_cv_prog_gcc" = yes; then
1258 # Check if gcc -print-prog-name=ld gives a path.
1259 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1260 echo "configure:1261: checking for ld used by GCC" >&5
1263 # gcc leaves a trailing carriage return which upsets mingw
1264 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1266 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1269 # Accept absolute paths.
1270 [\\/]* |
[A-Za-z
]:[\\/]*)
1271 re_direlt
='/[^/][^/]*/\.\./'
1272 # Canonicalize the path of ld
1273 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1274 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1275 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1277 test -z "$LD" && LD
="$ac_prog"
1280 # If it fails, then pretend we aren't using GCC.
1284 # If it is relative, then search for the first ld in PATH.
1288 elif test "$with_gnu_ld" = yes; then
1289 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1290 echo "configure:1291: checking for GNU ld" >&5
1292 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1293 echo "configure:1294: checking for non-GNU ld" >&5
1295 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 if test -z "$LD"; then
1299 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1300 for ac_dir
in $PATH; do
1301 test -z "$ac_dir" && ac_dir
=.
1302 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1303 ac_cv_path_LD
="$ac_dir/$ac_prog"
1304 # Check to see if the program is GNU ld. I'd rather use --version,
1305 # but apparently some GNU ld's only accept -v.
1306 # Break only if it was the GNU/non-GNU ld that we prefer.
1307 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1308 test "$with_gnu_ld" != no
&& break
1310 test "$with_gnu_ld" != yes && break
1316 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1321 if test -n "$LD"; then
1322 echo "$ac_t""$LD" 1>&6
1324 echo "$ac_t""no" 1>&6
1326 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1327 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1328 echo "configure:1329: checking if the linker ($LD) is GNU ld" >&5
1329 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1333 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1334 ac_cv_prog_gnu_ld
=yes
1336 ac_cv_prog_gnu_ld
=no
1340 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1341 with_gnu_ld
=$ac_cv_prog_gnu_ld
1344 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $LD option to reload object files" >&5
1346 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 lt_cv_ld_reload_flag
='-r'
1352 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1353 reload_flag
=$lt_cv_ld_reload_flag
1354 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1356 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1357 echo "configure:1358: checking for BSD-compatible nm" >&5
1358 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 if test -n "$NM"; then
1362 # Let the user override the test.
1365 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1366 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1367 test -z "$ac_dir" && ac_dir
=.
1368 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1369 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1370 # Check to see if the nm accepts a BSD-compat flag.
1371 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1372 # nm: unknown option "B" ignored
1373 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1374 ac_cv_path_NM
="$tmp_nm -B"
1376 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1377 ac_cv_path_NM
="$tmp_nm -p"
1380 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1381 continue # so that we can try to find one that supports BSD flags
1386 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1391 echo "$ac_t""$NM" 1>&6
1393 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1394 echo "configure:1395: checking whether ln -s works" >&5
1395 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1399 if ln -s X conftestdata
2>/dev
/null
1402 ac_cv_prog_LN_S
="ln -s"
1407 LN_S
="$ac_cv_prog_LN_S"
1408 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1409 echo "$ac_t""yes" 1>&6
1411 echo "$ac_t""no" 1>&6
1414 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1415 echo "configure:1416: checking how to recognise dependant libraries" >&5
1416 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 lt_cv_file_magic_cmd
='${MAGIC}'
1420 lt_cv_file_magic_test_file
=
1421 lt_cv_deplibs_check_method
='unknown'
1422 # Need to set the preceding variable on all platforms that support
1423 # interlibrary dependencies.
1424 # 'none' -- dependencies not supported.
1425 # `unknown' -- same as none, but documents that we really don't know.
1426 # 'pass_all' -- all dependencies passed with no checks.
1427 # 'test_compile' -- check by making test program.
1428 # 'file_magic [regex]' -- check by looking for files in library path
1429 # which responds to the $file_magic_cmd with a given egrep regex.
1430 # If you have `file' or equivalent on your system and you're not sure
1431 # whether `pass_all' will *always* work, you probably want this one.
1435 lt_cv_deplibs_check_method
=pass_all
1439 lt_cv_deplibs_check_method
=pass_all
1443 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1444 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1445 lt_cv_file_magic_test_file
=/shlib
/libc.so
1449 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1450 lt_cv_file_magic_cmd
='${OBJDUMP} -f'
1454 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1457 lt_cv_deplibs_check_method
=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
1458 lt_cv_file_magic_cmd
=/usr
/bin
/file
1459 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1463 lt_cv_deplibs_check_method
=pass_all
1468 lt_cv_deplibs_check_method
=pass_all
1472 # TODO: Does this work for hpux-11 too?
1473 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1474 lt_cv_file_magic_cmd
=/usr
/bin
/file
1475 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1481 # this will be overridden with pass_all, but let us keep it just in case
1482 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1486 *-32|
*"-32 ") libmagic
=32-bit;;
1487 *-n32|
*"-n32 ") libmagic
=N32
;;
1488 *-64|
*"-64 ") libmagic
=64-bit;;
1489 *) libmagic
=never-match
;;
1491 # this will be overridden with pass_all, but let us keep it just in case
1492 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1495 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1496 lt_cv_deplibs_check_method
=pass_all
1499 # This must be Linux ELF.
1502 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1503 lt_cv_deplibs_check_method
=pass_all
;;
1505 # glibc up to 2.1.1 does not perform some relocations on ARM
1506 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1508 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1512 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1514 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1515 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1516 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1520 osf3
* | osf4
* | osf5
*)
1521 # this will be overridden with pass_all, but let us keep it just in case
1522 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1523 lt_cv_file_magic_test_file
=/shlib
/libc.so
1524 lt_cv_deplibs_check_method
=pass_all
1528 lt_cv_deplibs_check_method
=pass_all
1532 lt_cv_deplibs_check_method
=pass_all
1533 lt_cv_file_magic_test_file
=/lib
/libc.so
1536 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1537 case "$host_vendor" in
1539 lt_cv_deplibs_check_method
=pass_all
1542 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1543 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1551 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1552 file_magic_cmd
=$lt_cv_file_magic_cmd
1553 deplibs_check_method
=$lt_cv_deplibs_check_method
1555 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1556 echo "configure:1557: checking for object suffix" >&5
1557 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1561 echo 'int i = 1;' > conftest.
$ac_ext
1562 if { (eval echo configure
:1563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1563 for ac_file
in conftest.
*; do
1566 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1570 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1575 echo "$ac_t""$ac_cv_objext" 1>&6
1576 OBJEXT
=$ac_cv_objext
1577 ac_objext
=$ac_cv_objext
1581 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1582 echo "configure:1583: checking for executable suffix" >&5
1583 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1590 echo 'int main () { return 0; }' > conftest.
$ac_ext
1592 if { (eval echo configure
:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1593 for file in conftest.
*; do
1595 *.c |
*.o |
*.obj
) ;;
1596 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1600 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1603 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1608 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1609 echo "$ac_t""${ac_cv_exeext}" 1>&6
1612 if test $host != $build; then
1613 ac_tool_prefix
=${host_alias}-
1618 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1620 # Only perform the check for file, if the check method requires it
1621 case "$deplibs_check_method" in
1623 if test "$file_magic_cmd" = '${MAGIC}'; then
1624 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1625 echo "configure:1626: checking for ${ac_tool_prefix}file" >&5
1626 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1631 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1634 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1637 ac_save_MAGIC
="$MAGIC"
1638 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1639 ac_dummy
="/usr/bin:$PATH"
1640 for ac_dir
in $ac_dummy; do
1641 test -z "$ac_dir" && ac_dir
=.
1642 if test -f $ac_dir/${ac_tool_prefix}file; then
1643 lt_cv_path_MAGIC
="$ac_dir/${ac_tool_prefix}file"
1644 if test -n "$file_magic_test_file"; then
1645 case "$deplibs_check_method" in
1647 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1648 MAGIC
="$lt_cv_path_MAGIC"
1649 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1650 egrep "$file_magic_regex" > /dev
/null
; then
1655 *** Warning: the command libtool uses to detect shared libraries,
1656 *** $file_magic_cmd, produces output that libtool cannot recognize.
1657 *** The result is that libtool may fail to recognize shared libraries
1658 *** as such. This will affect the creation of libtool libraries that
1659 *** depend on shared libraries, but programs linked with such libtool
1660 *** libraries will work regardless of this problem. Nevertheless, you
1661 *** may want to report the problem to your system manager and/or to
1662 *** bug-libtool@gnu.org
1672 MAGIC
="$ac_save_MAGIC"
1677 MAGIC
="$lt_cv_path_MAGIC"
1678 if test -n "$MAGIC"; then
1679 echo "$ac_t""$MAGIC" 1>&6
1681 echo "$ac_t""no" 1>&6
1684 if test -z "$lt_cv_path_MAGIC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 echo $ac_n "checking for file""... $ac_c" 1>&6
1687 echo "configure:1688: checking for file" >&5
1688 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1693 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1696 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1699 ac_save_MAGIC
="$MAGIC"
1700 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1701 ac_dummy
="/usr/bin:$PATH"
1702 for ac_dir
in $ac_dummy; do
1703 test -z "$ac_dir" && ac_dir
=.
1704 if test -f $ac_dir/file; then
1705 lt_cv_path_MAGIC
="$ac_dir/file"
1706 if test -n "$file_magic_test_file"; then
1707 case "$deplibs_check_method" in
1709 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1710 MAGIC
="$lt_cv_path_MAGIC"
1711 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1712 egrep "$file_magic_regex" > /dev
/null
; then
1717 *** Warning: the command libtool uses to detect shared libraries,
1718 *** $file_magic_cmd, produces output that libtool cannot recognize.
1719 *** The result is that libtool may fail to recognize shared libraries
1720 *** as such. This will affect the creation of libtool libraries that
1721 *** depend on shared libraries, but programs linked with such libtool
1722 *** libraries will work regardless of this problem. Nevertheless, you
1723 *** may want to report the problem to your system manager and/or to
1724 *** bug-libtool@gnu.org
1734 MAGIC
="$ac_save_MAGIC"
1739 MAGIC
="$lt_cv_path_MAGIC"
1740 if test -n "$MAGIC"; then
1741 echo "$ac_t""$MAGIC" 1>&6
1743 echo "$ac_t""no" 1>&6
1755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1756 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1758 echo "configure:1759: checking for $ac_word" >&5
1759 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 if test -n "$RANLIB"; then
1763 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1765 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1767 for ac_dir
in $ac_dummy; do
1768 test -z "$ac_dir" && ac_dir
=.
1769 if test -f $ac_dir/$ac_word; then
1770 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1777 RANLIB
="$ac_cv_prog_RANLIB"
1778 if test -n "$RANLIB"; then
1779 echo "$ac_t""$RANLIB" 1>&6
1781 echo "$ac_t""no" 1>&6
1785 if test -z "$ac_cv_prog_RANLIB"; then
1786 if test -n "$ac_tool_prefix"; then
1787 # Extract the first word of "ranlib", so it can be a program name with args.
1788 set dummy ranlib
; ac_word
=$2
1789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_word" >&5
1791 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 if test -n "$RANLIB"; then
1795 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1797 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1799 for ac_dir
in $ac_dummy; do
1800 test -z "$ac_dir" && ac_dir
=.
1801 if test -f $ac_dir/$ac_word; then
1802 ac_cv_prog_RANLIB
="ranlib"
1807 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1810 RANLIB
="$ac_cv_prog_RANLIB"
1811 if test -n "$RANLIB"; then
1812 echo "$ac_t""$RANLIB" 1>&6
1814 echo "$ac_t""no" 1>&6
1822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1823 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1825 echo "configure:1826: checking for $ac_word" >&5
1826 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 if test -n "$STRIP"; then
1830 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1832 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1834 for ac_dir
in $ac_dummy; do
1835 test -z "$ac_dir" && ac_dir
=.
1836 if test -f $ac_dir/$ac_word; then
1837 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1844 STRIP
="$ac_cv_prog_STRIP"
1845 if test -n "$STRIP"; then
1846 echo "$ac_t""$STRIP" 1>&6
1848 echo "$ac_t""no" 1>&6
1852 if test -z "$ac_cv_prog_STRIP"; then
1853 if test -n "$ac_tool_prefix"; then
1854 # Extract the first word of "strip", so it can be a program name with args.
1855 set dummy strip
; ac_word
=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5
1858 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 if test -n "$STRIP"; then
1862 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1864 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1866 for ac_dir
in $ac_dummy; do
1867 test -z "$ac_dir" && ac_dir
=.
1868 if test -f $ac_dir/$ac_word; then
1869 ac_cv_prog_STRIP
="strip"
1874 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1877 STRIP
="$ac_cv_prog_STRIP"
1878 if test -n "$STRIP"; then
1879 echo "$ac_t""$STRIP" 1>&6
1881 echo "$ac_t""no" 1>&6
1890 # Check for any special flags to pass to ltconfig.
1891 libtool_flags
="--cache-file=$cache_file"
1892 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1893 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1894 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1895 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1896 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1899 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1900 if test "${enable_libtool_lock+set}" = set; then
1901 enableval
="$enable_libtool_lock"
1905 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1906 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1908 # Check whether --with-pic or --without-pic was given.
1909 if test "${with_pic+set}" = set; then
1916 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1917 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1919 # Some flags need to be propagated to the compiler or linker for good
1923 # Find out which ABI we are using.
1924 echo '#line 1925 "configure"' > conftest.
$ac_ext
1925 if { (eval echo configure
:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1926 case "`/usr/bin/file conftest.o`" in
1942 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1943 SAVE_CFLAGS
="$CFLAGS"
1944 CFLAGS
="$CFLAGS -belf"
1945 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1946 echo "configure:1947: checking whether the C compiler needs -belf" >&5
1947 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1953 ac_cpp
='$CPP $CPPFLAGS'
1954 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1955 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1956 cross_compiling
=$ac_cv_prog_cc_cross
1958 cat > conftest.
$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1966 if { (eval echo configure
:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1968 lt_cv_cc_needs_belf
=yes
1970 echo "configure: failed program was:" >&5
1971 cat conftest.
$ac_ext >&5
1973 lt_cv_cc_needs_belf
=no
1977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1978 ac_cpp
='$CPP $CPPFLAGS'
1979 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1980 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1981 cross_compiling
=$ac_cv_prog_cc_cross
1985 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1986 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1987 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1988 CFLAGS
="$SAVE_CFLAGS"
1996 # Save cache, so that ltconfig can load it
1997 cat > confcache
<<\EOF
1998 # This file is a shell script that caches the results of configure
1999 # tests run on this system so they can be shared between configure
2000 # scripts and configure runs. It is not useful on other systems.
2001 # If it contains results you don't want to keep, you may remove or edit it.
2003 # By default, configure uses ./config.cache as the cache file,
2004 # creating it if it does not exist already. You can give configure
2005 # the --cache-file=FILE option to use a different cache file; that is
2006 # what configure does when it calls configure scripts in
2007 # subdirectories, so they share the cache.
2008 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2009 # config.status only pays attention to the cache file if you give it the
2010 # --recheck option to rerun configure.
2013 # The following way of writing the cache mishandles newlines in values,
2014 # but we know of no workaround that is simple, portable, and efficient.
2015 # So, don't put newlines in cache variables' values.
2016 # Ultrix sh set writes to stderr and can't be redirected directly,
2017 # and sets the high bit in the cache file unless we assign to the vars.
2019 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2021 # `set' does not quote correctly, so add quotes (double-quote substitution
2022 # turns \\\\ into \\, and sed turns \\ into \).
2024 -e "s/'/'\\\\''/g" \
2025 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2028 # `set' quotes correctly as required by POSIX, so do not add quotes.
2029 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2032 if cmp -s $cache_file confcache
; then
2035 if test -w $cache_file; then
2036 echo "updating cache $cache_file"
2037 cat confcache
> $cache_file
2039 echo "not updating unwritable cache $cache_file"
2045 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2046 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2047 MAGIC
="$MAGIC" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2048 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2049 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2050 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2051 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2052 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2053 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2054 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2056 # Reload cache, that may have been modified by ltconfig
2057 if test -r "$cache_file"; then
2058 echo "loading cache $cache_file"
2061 echo "creating cache $cache_file"
2066 # This can be used to rebuild libtool when needed
2067 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2069 # Always use our own libtool.
2070 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2072 # Redirect the config.log output again, so that the ltconfig log is not
2073 # clobbered by the next message.
2074 exec 5>>.
/config.log
2083 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
2084 if test "${enable_bfd_assembler+set}" = set; then
2085 enableval
="$enable_bfd_assembler"
2086 case "${enableval}" in
2087 yes) need_bfd
=yes user_bfd_gas
=yes ;;
2088 no
) user_bfd_gas
=no
;;
2089 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
2092 # Check whether --enable-targets or --disable-targets was given.
2093 if test "${enable_targets+set}" = set; then
2094 enableval
="$enable_targets"
2095 case "${enableval}" in
2096 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2098 no
) enable_targets
= ;;
2099 *) enable_targets
=$enableval ;;
2102 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2103 if test "${enable_commonbfdlib+set}" = set; then
2104 enableval
="$enable_commonbfdlib"
2105 case "${enableval}" in
2106 yes) commonbfdlib
=true
;;
2107 no
) commonbfdlib
=false
;;
2108 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2114 build_warnings
="-W -Wall"
2115 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2116 if test "${enable_build_warnings+set}" = set; then
2117 enableval
="$enable_build_warnings"
2118 case "${enableval}" in
2120 no
) build_warnings
="-w";;
2121 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2122 build_warnings
="${build_warnings} ${t}";;
2123 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2124 build_warnings
="${t} ${build_warnings}";;
2125 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2127 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2128 echo "Setting warning flags = $build_warnings" 6>&1
2132 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2133 WARN_CFLAGS
="${build_warnings}"
2137 # Generate a header file
2142 # If we are on a DOS filesystem, we must use gdb.ini rather than
2146 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
2154 # Makefile target for installing gas in $(tooldir)/bin.
2155 install_tooldir
=install-exec-tooldir
2159 if test -n "$enable_targets" ; then
2160 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
2161 if test $t = "all"; then
2165 result
=`$ac_config_sub $t 2>/dev/null`
2166 if test -n "$result" ; then
2167 canon_targets
="$canon_targets $result"
2169 # # Permit "all", etc. We don't support it yet though.
2170 # canon_targets="$canon_targets $t"
2173 _gas_uniq_list
="$canon_targets"
2174 _gas_uniq_newlist
=""
2175 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2176 case $_gas_uniq_i in
2178 *) case " $_gas_uniq_newlist " in
2179 *" $_gas_uniq_i "*) ;;
2180 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2184 canon_targets
=$_gas_uniq_newlist
2190 for this_target
in $target $canon_targets ; do
2192 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
2194 # check for architecture variants
2198 alpha
*) cpu_type
=alpha
;;
2199 armeb
) cpu_type
=arm endian
=big
;;
2200 arm
*) cpu_type
=arm endian
=little
;;
2201 armb
*) cpu_type
=arm endian
=little
;;
2202 armv
*l
) cpu_type
=arm endian
=little
;;
2203 armv
*b
) cpu_type
=arm endian
=big
;;
2204 strongarm
*) cpu_type
=arm endian
=little
;;
2205 thumb
*) cpu_type
=arm endian
=little
;;
2206 hppa
*) cpu_type
=hppa
;;
2207 i
[456]86) cpu_type
=i386
;;
2208 ia64
) cpu_type
=ia64
;;
2209 m6811|m6812
) cpu_type
=m68hc11
;;
2210 m680
[012346]0) cpu_type
=m68k
;;
2211 m68008
) cpu_type
=m68k
;;
2212 m683??
) cpu_type
=m68k
;;
2213 m5200
) cpu_type
=m68k
;;
2214 m8
*) cpu_type
=m88k
;;
2215 mips
*el
) cpu_type
=mips endian
=little
;;
2216 mips
*) cpu_type
=mips endian
=big
;;
2217 pjl
*) cpu_type
=pj endian
=little
;;
2218 pj
*) cpu_type
=pj endian
=big
;;
2219 powerpcle
*) cpu_type
=ppc endian
=little
;;
2220 powerpc
*) cpu_type
=ppc endian
=big
;;
2221 rs6000
*) cpu_type
=ppc
;;
2222 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
2223 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
2224 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
2225 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
2226 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
2227 v850
*) cpu_type
=v850
;;
2228 *) cpu_type
=${cpu} ;;
2231 if test ${this_target} = $target ; then
2232 target_cpu_type
=${cpu_type}
2233 elif test ${target_cpu_type} != ${cpu_type} ; then
2237 generic_target
=${cpu_type}-$vendor-$os
2242 # assign object format
2243 case ${generic_target} in
2244 a29k-
*-coff) fmt=coff
;;
2245 a29k-amd-udi
) fmt=coff
;;
2246 a29k-amd-ebmon
) fmt=coff
;;
2247 a29k-nyu-sym1
) fmt=coff
;;
2248 a29k-
*-vxworks*) fmt=coff
;;
2250 alpha
*-*-*vms
*) fmt=evax
;;
2251 alpha
*-*-netware*) fmt=ecoff
;;
2252 alpha
*-*-openbsd*) fmt=ecoff
;;
2253 alpha
*-*-osf*) fmt=ecoff
;;
2254 alpha
*-*-linuxecoff*) fmt=ecoff
;;
2255 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
2256 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
2258 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
2260 arm-
*-aout) fmt=aout
;;
2261 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
2262 arm-
*-elf | thumb-
*-elf) fmt=elf
;;
2263 arm
*-*-conix*) fmt=elf
;;
2264 arm-
*-linux*aout
*) fmt=aout em
=linux
;;
2265 arm
*-*-linux-gnu*) fmt=elf em
=linux
;;
2266 arm-
*-netbsd*) fmt=aout em
=nbsd
;;
2267 arm-
*-oabi | thumb-
*-oabi) fmt=elf
;;
2268 arm-epoc-pe | thumb-epoc-pe
) fmt=coff em
=epoc-pe
;;
2269 arm-
*-wince) fmt=coff em
=wince-pe
;;
2270 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
2271 arm-
*-riscix*) fmt=aout em
=riscix
;;
2273 avr-
*-*) fmt=elf bfd_gas
=yes ;;
2275 cris-
*-*) fmt=multi bfd_gas
=yes ;;
2277 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
2278 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
2281 fr30-
*-*) fmt=elf bfd_gas
=yes ;;
2283 hppa-
*-linux-gnu*) case ${cpu} in
2285 fmt=elf em
=hppalinux64
;;
2289 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
2290 hppa-
*-lites*) fmt=elf em
=hppa
;;
2291 hppa-
*-osf*) fmt=som em
=hppa
;;
2292 hppa-
*-rtems*) fmt=elf em
=hppa
;;
2293 hppa-
*-hpux11*) case ${cpu} in
2295 fmt=elf em
=hppa64
;;
2299 hppa-
*-hpux*) fmt=som em
=hppa
;;
2300 hppa-
*-mpeix*) fmt=som em
=hppa
;;
2301 hppa-
*-bsd*) fmt=som em
=hppa
;;
2302 hppa-
*-hiux*) fmt=som em
=hppa
;;
2304 h8300-
*-coff) fmt=coff
;;
2306 i370-
*-elf* | i370-
*-linux*) fmt=elf
;;
2307 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
2308 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
2309 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
2310 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
2311 i386-
*-bsd*) fmt=aout em
=386bsd
;;
2312 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
2313 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
2314 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
2315 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
2316 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
2317 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
2318 i386-
*-lynxos*) fmt=coff em
=lynx
;;
2319 i386-
*-sysv[45]* | i386-
*-solaris* | i386-
*-elf)
2320 fmt=elf bfd_gas
=yes ;;
2321 i386-
*-freebsdaout* | i386-
*-freebsd[12].
* | i386-
*-freebsd[12])
2322 fmt=aout em
=386bsd
;;
2323 i386-
*-freebsd*) fmt=elf bfd_gas
=yes ;;
2324 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
2326 i386-
*-sco3.2v5
*) fmt=elf
2327 if test ${this_target} = $target; then
2328 cat >> confdefs.h
<<\EOF
2334 i386-
*-sco3.2
*) fmt=coff
;;
2335 i386-
*-vsta) fmt=aout
;;
2336 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
2338 cat >> confdefs.h
<<\EOF
2339 #define STRICTCOFF 1
2343 i386-
*-rtemself*) fmt=elf
;;
2344 i386-
*-rtems*) fmt=coff
;;
2345 i386-
*-gnu*) fmt=elf
;;
2347 fmt=aout em
=mach bfd_gas
=yes ;;
2348 i386-
*-msdos*) fmt=aout
;;
2349 i386-
*-moss*) fmt=elf
;;
2350 i386-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
2351 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
2352 i386-
*-interix*) fmt=coff em
=interix bfd_gas
=yes ;;
2353 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
2354 i386-
*-*nt
*) fmt=coff em
=pe bfd_gas
=yes ;;
2355 i386-
*-vxworks*) fmt=aout
;;
2356 i860-stardent-sysv4
* | i860-stardent-elf
*)
2357 fmt=elf bfd_gas
=yes endian
=little
2358 echo "configure: warning: GAS support for ${generic_target} is preliminary and a work in progress" 1>&2 ;;
2359 i960-
*-bout) fmt=bout
;;
2360 i960-
*-coff) fmt=coff em
=ic960
;;
2361 i960-
*-rtems*) fmt=coff em
=ic960
;;
2362 i960-
*-nindy*) fmt=bout
;;
2363 i960-
*-vxworks4*) fmt=bout
;;
2364 i960-
*-vxworks5.0
) fmt=bout
;;
2365 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
2366 i960-
*-vxworks*) fmt=bout
;;
2367 i960-
*-elf*) fmt=elf
;;
2369 ia64-
*-elf*) fmt=elf
;;
2370 ia64-
*-linux-gnu*) fmt=elf em
=linux
;;
2372 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
2374 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)fmt=elf bfd_gas
=yes ;;
2376 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
2378 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
2379 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
2380 m68k-apollo-
*) fmt=coff em
=apollo
;;
2381 m68k-
*-sysv4*) # must be before -sysv*
2383 m68k-
*-elf*) fmt=elf
;;
2384 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
2386 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
2387 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
2388 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
2389 m68k-
*-gnu*) fmt=elf
;;
2390 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
2391 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
2392 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
2393 m68k-apple-aux
*) fmt=coff em
=aux
;;
2394 m68k-
*-psos*) fmt=elf em
=psos
;;
2396 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
2397 m88k-
*-coff*) fmt=coff
;;
2399 mcore-
*-elf) fmt=elf bfd_gas
=yes ;;
2400 mcore-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
2402 # don't change em like *-*-bsd does
2403 mips-dec-netbsd
*) fmt=elf endian
=little
;;
2404 mips-dec-openbsd
*) fmt=elf endian
=little
;;
2405 mips-dec-bsd
*) fmt=aout endian
=little
;;
2406 mips-sony-bsd
*) fmt=ecoff
;;
2407 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2408 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
2409 mips-
*-osf*) fmt=ecoff endian
=little
;;
2410 mips-
*-ecoff*) fmt=ecoff
;;
2411 mips-
*-ecoff*) fmt=ecoff
;;
2412 mips-
*-pe*) fmt=coff endian
=little em
=pe
;;
2413 mips-
*-irix6*) fmt=elf
;;
2414 mips-
*-irix5*) fmt=elf
;;
2415 mips-
*-irix*) fmt=ecoff
;;
2416 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
2417 mips-
*-riscos*) fmt=ecoff
;;
2418 mips-
*-sysv4*MP
*) fmt=elf em
=tmips
;;
2419 mips-
*-sysv*) fmt=ecoff
;;
2420 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
2422 mips-
*-vxworks*) fmt=elf
2423 cat >> confdefs.h
<<\EOF
2424 #define MIPS_STABS_ELF 1
2428 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
2429 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
2431 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
2433 ppc-
*-aix*) fmt=coff
;;
2434 ppc-
*-beos*) fmt=coff
;;
2435 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
2437 ppc-
*-linux-gnu*) fmt=elf
2440 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2443 ppc-
*-solaris*) fmt=elf
2444 if test ${this_target} = $target; then
2445 cat >> confdefs.h
<<\EOF
2446 #define TARGET_SOLARIS_COMMENT 1
2450 if test x
${endian} = xbig
; then
2451 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2454 ppc-
*-rtems*) fmt=elf
;;
2455 ppc-
*-macos* | ppc-
*-mpw*)
2456 fmt=coff em
=macos
;;
2457 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
2458 ppc-
*-vxworks*) fmt=elf
;;
2460 sh-
*-elf*) fmt=elf
;;
2461 sh-
*-coff*) fmt=coff
;;
2462 sh-
*-pe*) fmt=coff em
=pe bfd_gas
=yes;;
2463 sh-
*-rtemself*) fmt=elf
;;
2464 sh-
*-rtems*) fmt=coff
;;
2466 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
2467 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
2468 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
2470 sparc-
*-rtems*) fmt=aout
;;
2471 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
2472 sparc-
*-aout | sparc
*-*-vxworks*)
2473 fmt=aout em
=sparcaout
;;
2474 sparc-
*-coff) fmt=coff
;;
2475 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
2476 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
2477 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
2478 sparc-fujitsu-none
) fmt=aout
;;
2479 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
2481 sparc-
*-netbsd*) em
=nbsd bfd_gas
=yes
2483 sparc
) case ${os} in
2490 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
2492 strongarm-
*-coff) fmt=coff
;;
2493 strongarm-
*-elf) fmt=elf
;;
2495 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
2496 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
2497 tic54x-
*-* | c54x
*-*-*)
2498 fmt=coff bfd_gas
=yes need_libm
=yes;;
2499 tic80-
*-*) fmt=coff
;;
2501 v850-
*-*) fmt=elf bfd_gas
=yes ;;
2502 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
2503 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
2505 vax-
*-bsd* | vax-
*-ultrix*)
2507 vax-
*-vms) fmt=vms
;;
2510 z8k-
*-coff | z8k-
*-sim)
2513 w65-
*-*) fmt=coff
;;
2515 *-*-aout |
*-*-scout)
2521 *-*-generic) fmt=generic
;;
2522 *-*-xray |
*-*-hms) fmt=coff
;;
2523 *-*-sim) fmt=coff
;;
2524 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
2525 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
2527 *-*-vxworks) fmt=aout
;;
2528 *-*-netware) fmt=elf
;;
2531 if test ${this_target} = $target ; then
2533 if test x
${endian} = xbig
; then
2535 elif test x
${endian} = xlittle
; then
2538 if test x
${endian_def} != x
; then
2539 cat >> confdefs.h
<<EOF
2540 #define TARGET_BYTES_BIG_ENDIAN $endian_def
2546 case ${cpu_type}-${fmt} in
2547 alpha
*-*) bfd_gas
=yes ;;
2548 arm-
*) bfd_gas
=yes ;;
2550 # i386-aout) bfd_gas=preferred ;;
2551 ia64
*-*) bfd_gas
=yes ;;
2552 mips-
*) bfd_gas
=yes ;;
2553 ns32k-
*) bfd_gas
=yes ;;
2554 ppc-
*) bfd_gas
=yes ;;
2555 sparc-
*) bfd_gas
=yes ;;
2556 strongarm-
*) bfd_gas
=yes ;;
2557 *-elf) bfd_gas
=yes ;;
2558 *-ecoff) bfd_gas
=yes ;;
2559 *-som) bfd_gas
=yes ;;
2560 #enable bfd for coff and aout to allow testing if a bfd target is
2561 #the primary target, but not for coff or aout as the primary target
2562 i386-coff
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
2563 i386-aout
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
2567 # Other random stuff.
2569 # Do we need the opcodes library?
2577 case "${enable_shared}" in
2578 yes) shared_opcodes
=true
;;
2579 *opcodes
*) shared_opcodes
=true
;;
2580 *) shared_opcodes
=false
;;
2582 if test "${shared_opcodes}" = "true"; then
2583 # A shared libopcodes must be linked against libbfd.
2589 # Any other special object files needed ?
2596 case ${extra_objects} in
2598 *) extra_objects
="$extra_objects m68k-parse.o" ;;
2603 echo ${extra_objects} |
grep -s "itbl-parse.o"
2604 if test $?
-ne 0 ; then
2605 extra_objects
="$extra_objects itbl-parse.o"
2608 echo ${extra_objects} |
grep -s "itbl-lex.o"
2609 if test $?
-ne 0 ; then
2610 extra_objects
="$extra_objects itbl-lex.o"
2613 echo ${extra_objects} |
grep -s "itbl-ops.o"
2614 if test $?
-ne 0 ; then
2615 extra_objects
="$extra_objects itbl-ops.o"
2620 if test $this_target = $target ; then
2621 cat >> confdefs.h
<<EOF
2622 #define DEFAULT_ARCH "${arch}"
2631 if test $using_cgen = yes ; then
2632 case "x${extra_objects}" in
2634 *) extra_objects
="$extra_objects cgen.o" ;;
2638 # See if we really can support this configuration with the emulation code.
2640 if test $this_target = $target ; then
2641 primary_bfd_gas
=$bfd_gas
2645 if test $bfd_gas = no
; then
2646 # Can't support other configurations this way.
2649 elif test $bfd_gas = no
; then
2650 # Can't support this configuration.
2654 # From target name and format, produce a list of supported emulations.
2656 case ${generic_target}-${fmt} in
2657 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2658 mips-
*-linux-gnu*-*) case "$endian" in
2659 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2660 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2662 mips-
*-lnews*-ecoff) ;;
2663 mips-
*-*-ecoff) case "$endian" in
2664 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
2665 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
2667 mips-
*-*-elf) case "$endian" in
2668 big
) emulation
="mipsbelf mipslelf mipself" ;;
2669 *) emulation
="mipslelf mipsbelf mipself" ;;
2671 mips-
*-sysv4*MP
*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2672 # i386-pc-pe-coff != i386-pc-coff.
2674 # Uncommenting the next line will turn on support for i386 AOUT
2675 # for the default linux configuration
2676 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
2678 i386-
*-aout) emulation
="i386aout" ;;
2679 i386-
*-coff) emulation
="i386coff" ;;
2680 i386-
*-elf) emulation
="i386elf" ;;
2682 # Always all formats. Having a.out first makes it the default.
2683 cris-
*-*) emulation
="crisaout criself" ;;
2686 emulations
="$emulations $emulation"
2690 # Turn on all targets if possible
2691 if test ${all_targets} = "yes"; then
2692 case ${target_cpu_type} in
2694 case ${obj_format} in
2696 emulations
="$emulations i386coff i386elf"
2699 emulations
="$emulations i386aout i386elf"
2702 emulations
="$emulations i386aout i386coff"
2709 # Assign floating point type. Most processors with FP support
2710 # IEEE FP. On those that don't support FP at all, usually IEEE
2712 case ${target_cpu} in
2713 vax | tahoe
) atof
=${target_cpu} ;;
2717 case "${obj_format}" in
2718 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2721 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2723 if test $using_cgen = yes ; then
2724 case ${target_cpu} in
2725 *) cgen_cpu_prefix
=${target_cpu} ;;
2728 cat >> confdefs.h
<<\EOF
2729 #define USING_CGEN 1
2735 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2736 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2739 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2740 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2743 case ${user_bfd_gas}-${primary_bfd_gas} in
2745 # We didn't override user's choice.
2748 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2760 # User specified nothing.
2764 # Some COFF configurations want these random other flags set.
2765 case ${obj_format} in
2767 case ${target_cpu_type} in
2768 i386
) cat >> confdefs.h
<<\EOF
2772 m68k
) cat >> confdefs.h
<<\EOF
2776 m88k
) cat >> confdefs.h
<<\EOF
2784 # Getting this done right is going to be a bitch. Each configuration specified
2785 # with --enable-targets=... should be checked for environment, format, cpu, and
2788 # For each configuration, the necessary object file support code must be linked
2789 # in. This might be only one, it might be up to four. The necessary emulation
2790 # code needs to be provided, too.
2792 # And then there's "--enable-targets=all"....
2794 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2796 formats
="${obj_format}"
2799 _gas_uniq_list
="$emulations"
2800 _gas_uniq_newlist
=""
2801 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2802 case $_gas_uniq_i in
2804 *) case " $_gas_uniq_newlist " in
2805 *" $_gas_uniq_i "*) ;;
2806 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2810 emulations
=$_gas_uniq_newlist
2812 for em
in .
$emulations ; do
2815 mipsbelf | mipslelf
)
2816 fmt=elf
file=mipself
;;
2817 mipsbecoff | mipslecoff
)
2818 fmt=ecoff
file=mipsecoff
;;
2820 fmt=coff
file=$em ;;
2822 fmt=aout
file=$em ;;
2826 formats
="$formats $fmt"
2827 emfiles
="$emfiles e-$file.o"
2828 EMULATIONS
="$EMULATIONS &$em,"
2830 _gas_uniq_list
="$formats"
2831 _gas_uniq_newlist
=""
2832 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2833 case $_gas_uniq_i in
2835 *) case " $_gas_uniq_newlist " in
2836 *" $_gas_uniq_i "*) ;;
2837 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2841 formats
=$_gas_uniq_newlist
2843 _gas_uniq_list
="$emfiles"
2844 _gas_uniq_newlist
=""
2845 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2846 case $_gas_uniq_i in
2848 *) case " $_gas_uniq_newlist " in
2849 *" $_gas_uniq_i "*) ;;
2850 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2854 emfiles
=$_gas_uniq_newlist
2856 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2857 for fmt in $formats ; do
2859 aout
) cat >> confdefs.h
<<\EOF
2860 #define OBJ_MAYBE_AOUT 1
2863 bout
) cat >> confdefs.h
<<\EOF
2864 #define OBJ_MAYBE_BOUT 1
2867 coff
) cat >> confdefs.h
<<\EOF
2868 #define OBJ_MAYBE_COFF 1
2871 ecoff
) cat >> confdefs.h
<<\EOF
2872 #define OBJ_MAYBE_ECOFF 1
2875 elf
) cat >> confdefs.h
<<\EOF
2876 #define OBJ_MAYBE_ELF 1
2879 generic
) cat >> confdefs.h
<<\EOF
2880 #define OBJ_MAYBE_GENERIC 1
2883 hp300
) cat >> confdefs.h
<<\EOF
2884 #define OBJ_MAYBE_HP300 1
2887 ieee
) cat >> confdefs.h
<<\EOF
2888 #define OBJ_MAYBE_IEEE 1
2891 som
) cat >> confdefs.h
<<\EOF
2892 #define OBJ_MAYBE_SOM 1
2895 vms
) cat >> confdefs.h
<<\EOF
2896 #define OBJ_MAYBE_VMS 1
2900 extra_objects
="$extra_objects obj-$fmt.o"
2904 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2905 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2906 # e-mips* has more than one emulation per file, e-i386* has just one at the
2907 # moment. If only one emulation is specified, then don't define
2908 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
2909 case "${obj_format}${emfiles}" in
2911 extra_objects
="$extra_objects $emfiles"
2912 cat >> confdefs.h
<<\EOF
2913 #define USE_EMULATIONS 1
2919 cat >> confdefs.h
<<EOF
2920 #define EMULATIONS $EMULATIONS
2923 cat >> confdefs.h
<<EOF
2924 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2928 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2929 yes-
*-coff) need_bfd
=yes ;;
2930 no-
*-coff) need_bfd
=yes
2931 cat >> confdefs.h
<<\EOF
2932 #define MANY_SEGMENTS 1
2937 reject_dev_configs
=yes
2939 case ${reject_dev_configs}-${dev} in
2941 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2951 case "${primary_bfd_gas}" in
2952 yes) cat >> confdefs.h
<<\EOF
2953 #define BFD_ASSEMBLER 1
2959 # do we need the opcodes library?
2960 case "${need_opcodes}" in
2962 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2966 case "${need_bfd}" in
2968 BFDLIB
=..
/bfd
/libbfd.la
2969 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2978 cat >> confdefs.h
<<EOF
2979 #define TARGET_ALIAS "${target_alias}"
2982 cat >> confdefs.h
<<EOF
2983 #define TARGET_CANONICAL "${target}"
2986 cat >> confdefs.h
<<EOF
2987 #define TARGET_CPU "${target_cpu}"
2990 cat >> confdefs.h
<<EOF
2991 #define TARGET_VENDOR "${target_vendor}"
2994 cat >> confdefs.h
<<EOF
2995 #define TARGET_OS "${target_os}"
2999 # Extract the first word of "gcc", so it can be a program name with args.
3000 set dummy gcc
; ac_word
=$2
3001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_word" >&5
3003 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 if test -n "$CC"; then
3007 ac_cv_prog_CC
="$CC" # Let the user override the test.
3009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3011 for ac_dir
in $ac_dummy; do
3012 test -z "$ac_dir" && ac_dir
=.
3013 if test -f $ac_dir/$ac_word; then
3022 if test -n "$CC"; then
3023 echo "$ac_t""$CC" 1>&6
3025 echo "$ac_t""no" 1>&6
3028 if test -z "$CC"; then
3029 # Extract the first word of "cc", so it can be a program name with args.
3030 set dummy cc
; ac_word
=$2
3031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_word" >&5
3033 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC
="$CC" # Let the user override the test.
3039 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3042 for ac_dir
in $ac_dummy; do
3043 test -z "$ac_dir" && ac_dir
=.
3044 if test -f $ac_dir/$ac_word; then
3045 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3046 ac_prog_rejected
=yes
3054 if test $ac_prog_rejected = yes; then
3055 # We found a bogon in the path, so make sure we never use it.
3056 set dummy
$ac_cv_prog_CC
3058 if test $# -gt 0; then
3059 # We chose a different compiler from the bogus one.
3060 # However, it has the same basename, so the bogon will be chosen
3061 # first if we set CC to just the basename; use the full file name.
3063 set dummy
"$ac_dir/$ac_word" "$@"
3071 if test -n "$CC"; then
3072 echo "$ac_t""$CC" 1>&6
3074 echo "$ac_t""no" 1>&6
3077 if test -z "$CC"; then
3078 case "`uname -s`" in
3080 # Extract the first word of "cl", so it can be a program name with args.
3081 set dummy cl
; ac_word
=$2
3082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_word" >&5
3084 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC
="$CC" # Let the user override the test.
3090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3092 for ac_dir
in $ac_dummy; do
3093 test -z "$ac_dir" && ac_dir
=.
3094 if test -f $ac_dir/$ac_word; then
3103 if test -n "$CC"; then
3104 echo "$ac_t""$CC" 1>&6
3106 echo "$ac_t""no" 1>&6
3111 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3114 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3115 echo "configure:3116: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
3118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3119 ac_cpp
='$CPP $CPPFLAGS'
3120 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3121 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3122 cross_compiling
=$ac_cv_prog_cc_cross
3124 cat > conftest.
$ac_ext << EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3131 if { (eval echo configure
:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3132 ac_cv_prog_cc_works
=yes
3133 # If we can't run a trivial program, we are probably using a cross compiler.
3134 if (.
/conftest
; exit) 2>/dev
/null
; then
3135 ac_cv_prog_cc_cross
=no
3137 ac_cv_prog_cc_cross
=yes
3140 echo "configure: failed program was:" >&5
3141 cat conftest.
$ac_ext >&5
3142 ac_cv_prog_cc_works
=no
3146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3147 ac_cpp
='$CPP $CPPFLAGS'
3148 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3149 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3150 cross_compiling
=$ac_cv_prog_cc_cross
3152 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3153 if test $ac_cv_prog_cc_works = no
; then
3154 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3156 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3157 echo "configure:3158: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
3158 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3159 cross_compiling
=$ac_cv_prog_cc_cross
3161 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3162 echo "configure:3163: checking whether we are using GNU C" >&5
3163 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 cat > conftest.c
<<EOF
3171 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:3172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
3178 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3180 if test $ac_cv_prog_gcc = yes; then
3186 ac_test_CFLAGS
="${CFLAGS+set}"
3187 ac_save_CFLAGS
="$CFLAGS"
3189 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3190 echo "configure:3191: checking whether ${CC-cc} accepts -g" >&5
3191 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 echo 'void f(){}' > conftest.c
3195 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3204 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3205 if test "$ac_test_CFLAGS" = set; then
3206 CFLAGS
="$ac_save_CFLAGS"
3207 elif test $ac_cv_prog_cc_g = yes; then
3208 if test "$GCC" = yes; then
3214 if test "$GCC" = yes; then
3222 for ac_prog
in 'bison -y' byacc
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy
$ac_prog; ac_word
=$2
3226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_word" >&5
3228 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 if test -n "$YACC"; then
3232 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3234 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3236 for ac_dir
in $ac_dummy; do
3237 test -z "$ac_dir" && ac_dir
=.
3238 if test -f $ac_dir/$ac_word; then
3239 ac_cv_prog_YACC
="$ac_prog"
3246 YACC
="$ac_cv_prog_YACC"
3247 if test -n "$YACC"; then
3248 echo "$ac_t""$YACC" 1>&6
3250 echo "$ac_t""no" 1>&6
3253 test -n "$YACC" && break
3255 test -n "$YACC" || YACC
="yacc"
3257 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3258 echo "configure:3259: checking how to run the C preprocessor" >&5
3259 # On Suns, sometimes $CPP names a directory.
3260 if test -n "$CPP" && test -d "$CPP"; then
3263 if test -z "$CPP"; then
3264 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 # This must be in double quotes, not single quotes, because CPP may get
3268 # substituted into the Makefile and "${CC-cc}" will confuse make.
3270 # On the NeXT, cc -E runs the code through the compiler's parser,
3271 # not just through cpp.
3272 cat > conftest.
$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3278 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3279 { (eval echo configure
:3280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3280 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3281 if test -z "$ac_err"; then
3285 echo "configure: failed program was:" >&5
3286 cat conftest.
$ac_ext >&5
3288 CPP
="${CC-cc} -E -traditional-cpp"
3289 cat > conftest.
$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3295 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3296 { (eval echo configure
:3297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3297 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3298 if test -z "$ac_err"; then
3302 echo "configure: failed program was:" >&5
3303 cat conftest.
$ac_ext >&5
3305 CPP
="${CC-cc} -nologo -E"
3306 cat > conftest.
$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3312 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3313 { (eval echo configure
:3314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3314 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3315 if test -z "$ac_err"; then
3319 echo "configure: failed program was:" >&5
3320 cat conftest.
$ac_ext >&5
3329 ac_cv_prog_CPP
="$CPP"
3331 CPP
="$ac_cv_prog_CPP"
3333 ac_cv_prog_CPP
="$CPP"
3335 echo "$ac_t""$CPP" 1>&6
3337 missing_dir
=`cd $ac_aux_dir && pwd`
3338 for ac_prog
in flex
lex
3340 # Extract the first word of "$ac_prog", so it can be a program name with args.
3341 set dummy
$ac_prog; ac_word
=$2
3342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3343 echo "configure:3344: checking for $ac_word" >&5
3344 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 if test -n "$LEX"; then
3348 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3350 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3352 for ac_dir
in $ac_dummy; do
3353 test -z "$ac_dir" && ac_dir
=.
3354 if test -f $ac_dir/$ac_word; then
3355 ac_cv_prog_LEX
="$ac_prog"
3362 LEX
="$ac_cv_prog_LEX"
3363 if test -n "$LEX"; then
3364 echo "$ac_t""$LEX" 1>&6
3366 echo "$ac_t""no" 1>&6
3369 test -n "$LEX" && break
3371 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3373 # Extract the first word of "flex", so it can be a program name with args.
3374 set dummy flex
; ac_word
=$2
3375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3376 echo "configure:3377: checking for $ac_word" >&5
3377 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 if test -n "$LEX"; then
3381 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3383 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3385 for ac_dir
in $ac_dummy; do
3386 test -z "$ac_dir" && ac_dir
=.
3387 if test -f $ac_dir/$ac_word; then
3388 ac_cv_prog_LEX
="flex"
3393 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3396 LEX
="$ac_cv_prog_LEX"
3397 if test -n "$LEX"; then
3398 echo "$ac_t""$LEX" 1>&6
3400 echo "$ac_t""no" 1>&6
3403 if test -z "$LEXLIB"
3409 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3410 echo "configure:3411: checking for yywrap in -l$ac_lib" >&5
3411 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 ac_save_LIBS
="$LIBS"
3416 LIBS
="-l$ac_lib $LIBS"
3417 cat > conftest.
$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 /* Override any gcc2 internal prototype to avoid an error. */
3421 /* We use char because int might match the return type of a gcc2
3422 builtin and then its argument prototype would still apply. */
3429 if { (eval echo configure
:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3431 eval "ac_cv_lib_$ac_lib_var=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.
$ac_ext >&5
3436 eval "ac_cv_lib_$ac_lib_var=no"
3439 LIBS
="$ac_save_LIBS"
3442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3443 echo "$ac_t""yes" 1>&6
3446 echo "$ac_t""no" 1>&6
3451 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3452 echo "configure:3453: checking lex output file root" >&5
3453 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3456 # The minimal lex program is just a single line: %%. But some broken lexes
3457 # (Solaris, I think it was) want two %% lines, so accommodate them.
3460 if test -f lex.yy.c
; then
3461 ac_cv_prog_lex_root
=lex.yy
3462 elif test -f lexyy.c
; then
3463 ac_cv_prog_lex_root
=lexyy
3465 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3469 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3470 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3472 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3473 echo "configure:3474: checking whether yytext is a pointer" >&5
3474 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 # POSIX says lex can declare yytext either as a pointer or an array; the
3478 # default is implementation-dependent. Figure out which it is, since
3479 # not all implementations provide the %pointer and %array declarations.
3480 ac_cv_prog_lex_yytext_pointer
=no
3481 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3482 ac_save_LIBS
="$LIBS"
3483 LIBS
="$LIBS $LEXLIB"
3484 cat > conftest.
$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 `cat $LEX_OUTPUT_ROOT.c`
3492 if { (eval echo configure
:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3494 ac_cv_prog_lex_yytext_pointer
=yes
3496 echo "configure: failed program was:" >&5
3497 cat conftest.
$ac_ext >&5
3500 LIBS
="$ac_save_LIBS"
3501 rm -f "${LEX_OUTPUT_ROOT}.c"
3505 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3506 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3507 cat >> confdefs.h
<<\EOF
3508 #define YYTEXT_POINTER 1
3515 # Extract the first word of "ranlib", so it can be a program name with args.
3516 set dummy ranlib
; ac_word
=$2
3517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3518 echo "configure:3519: checking for $ac_word" >&5
3519 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 if test -n "$RANLIB"; then
3523 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3525 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3527 for ac_dir
in $ac_dummy; do
3528 test -z "$ac_dir" && ac_dir
=.
3529 if test -f $ac_dir/$ac_word; then
3530 ac_cv_prog_RANLIB
="ranlib"
3535 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3538 RANLIB
="$ac_cv_prog_RANLIB"
3539 if test -n "$RANLIB"; then
3540 echo "$ac_t""$RANLIB" 1>&6
3542 echo "$ac_t""no" 1>&6
3545 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3546 echo "configure:3547: checking for POSIXized ISC" >&5
3547 if test -d /etc
/conf
/kconfig.d
&&
3548 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
3550 echo "$ac_t""yes" 1>&6
3551 ISC
=yes # If later tests want to check for ISC.
3552 cat >> confdefs.h
<<\EOF
3553 #define _POSIX_SOURCE 1
3556 if test "$GCC" = yes; then
3562 echo "$ac_t""no" 1>&6
3566 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3567 echo "configure:3568: checking for ANSI C header files" >&5
3568 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 cat > conftest.
$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3579 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3580 { (eval echo configure
:3581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3581 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3582 if test -z "$ac_err"; then
3584 ac_cv_header_stdc
=yes
3587 echo "configure: failed program was:" >&5
3588 cat conftest.
$ac_ext >&5
3590 ac_cv_header_stdc
=no
3594 if test $ac_cv_header_stdc = yes; then
3595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3596 cat > conftest.
$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3602 egrep "memchr" >/dev
/null
2>&1; then
3606 ac_cv_header_stdc
=no
3612 if test $ac_cv_header_stdc = yes; then
3613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3614 cat > conftest.
$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 egrep "free" >/dev
/null
2>&1; then
3624 ac_cv_header_stdc
=no
3630 if test $ac_cv_header_stdc = yes; then
3631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3632 if test "$cross_compiling" = yes; then
3635 cat > conftest.
$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3639 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3640 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3642 int main () { int i; for (i = 0; i < 256; i++)
3643 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3647 if { (eval echo configure
:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3651 echo "configure: failed program was:" >&5
3652 cat conftest.
$ac_ext >&5
3654 ac_cv_header_stdc
=no
3662 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3663 if test $ac_cv_header_stdc = yes; then
3664 cat >> confdefs.h
<<\EOF
3665 #define STDC_HEADERS 1
3670 echo $ac_n "checking for working const""... $ac_c" 1>&6
3671 echo "configure:3672: checking for working const" >&5
3672 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 cat > conftest.
$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3681 /* Ultrix mips cc rejects this. */
3682 typedef int charset[2]; const charset x;
3683 /* SunOS 4.1.1 cc rejects this. */
3684 char const *const *ccp;
3686 /* NEC SVR4.0.2 mips cc rejects this. */
3687 struct point {int x, y;};
3688 static struct point const zero = {0,0};
3689 /* AIX XL C 1.02.0.0 rejects this.
3690 It does not let you subtract one const X* pointer from another in an arm
3691 of an if-expression whose if-part is not a constant expression */
3692 const char *g = "string";
3693 ccp = &g + (g ? g-g : 0);
3694 /* HPUX 7.0 cc rejects these. */
3697 ccp = (char const *const *) p;
3698 { /* SCO 3.2v4 cc rejects this. */
3700 char const *s = 0 ? (char *) 0 : (char const *) 0;
3704 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3706 const int *foo = &x[0];
3709 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3710 typedef const int *iptr;
3714 { /* AIX XL C 1.02.0.0 rejects this saying
3715 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3716 struct s { int j; const int *ap[3]; };
3717 struct s *b; b->j = 5;
3719 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3725 if { (eval echo configure
:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3729 echo "configure: failed program was:" >&5
3730 cat conftest.
$ac_ext >&5
3737 echo "$ac_t""$ac_cv_c_const" 1>&6
3738 if test $ac_cv_c_const = no
; then
3739 cat >> confdefs.h
<<\EOF
3745 echo $ac_n "checking for inline""... $ac_c" 1>&6
3746 echo "configure:3747: checking for inline" >&5
3747 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3751 for ac_kw
in inline __inline__ __inline
; do
3752 cat > conftest.
$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3760 if { (eval echo configure
:3761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3762 ac_cv_c_inline
=$ac_kw; break
3764 echo "configure: failed program was:" >&5
3765 cat conftest.
$ac_ext >&5
3772 echo "$ac_t""$ac_cv_c_inline" 1>&6
3773 case "$ac_cv_c_inline" in
3775 no
) cat >> confdefs.h
<<\EOF
3779 *) cat >> confdefs.h
<<EOF
3780 #define inline $ac_cv_c_inline
3785 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3786 echo "configure:3787: checking for off_t" >&5
3787 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 #include <sys/types.h>
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3802 ac_cv_type_off_t
=yes
3810 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3811 if test $ac_cv_type_off_t = no
; then
3812 cat >> confdefs.h
<<\EOF
3818 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3819 echo "configure:3820: checking for size_t" >&5
3820 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3823 cat > conftest.
$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 #include <sys/types.h>
3832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3835 ac_cv_type_size_t
=yes
3838 ac_cv_type_size_t
=no
3843 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3844 if test $ac_cv_type_size_t = no
; then
3845 cat >> confdefs.h
<<\EOF
3846 #define size_t unsigned
3851 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3852 # for constant arguments. Useless!
3853 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3854 echo "configure:3855: checking for working alloca.h" >&5
3855 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.
$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3863 char *p = alloca(2 * sizeof(int));
3866 if { (eval echo configure
:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3868 ac_cv_header_alloca_h
=yes
3870 echo "configure: failed program was:" >&5
3871 cat conftest.
$ac_ext >&5
3873 ac_cv_header_alloca_h
=no
3878 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3879 if test $ac_cv_header_alloca_h = yes; then
3880 cat >> confdefs.h
<<\EOF
3881 #define HAVE_ALLOCA_H 1
3886 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3887 echo "configure:3888: checking for alloca" >&5
3888 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 cat > conftest.
$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3896 # define alloca __builtin_alloca
3899 # include <malloc.h>
3900 # define alloca _alloca
3903 # include <alloca.h>
3908 # ifndef alloca /* predefined by HP cc +Olibcalls */
3917 char *p = (char *) alloca(1);
3920 if { (eval echo configure
:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3922 ac_cv_func_alloca_works
=yes
3924 echo "configure: failed program was:" >&5
3925 cat conftest.
$ac_ext >&5
3927 ac_cv_func_alloca_works
=no
3932 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3933 if test $ac_cv_func_alloca_works = yes; then
3934 cat >> confdefs.h
<<\EOF
3935 #define HAVE_ALLOCA 1
3940 if test $ac_cv_func_alloca_works = no
; then
3941 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3942 # that cause trouble. Some versions do not even contain alloca or
3943 # contain a buggy version. If you still want to use their alloca,
3944 # use ar to extract alloca.o from them instead of compiling alloca.c.
3945 ALLOCA
=alloca.
${ac_objext}
3946 cat >> confdefs.h
<<\EOF
3951 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3952 echo "configure:3953: checking whether alloca needs Cray hooks" >&5
3953 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 #if defined(CRAY) && ! defined(CRAY2)
3966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3967 egrep "webecray" >/dev
/null
2>&1; then
3978 echo "$ac_t""$ac_cv_os_cray" 1>&6
3979 if test $ac_cv_os_cray = yes; then
3980 for ac_func
in _getb67 GETB67 getb67
; do
3981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3982 echo "configure:3983: checking for $ac_func" >&5
3983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3986 cat > conftest.
$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3989 /* System header to define __stub macros and hopefully few prototypes,
3990 which can conflict with char $ac_func(); below. */
3992 /* Override any gcc2 internal prototype to avoid an error. */
3993 /* We use char because int might match the return type of a gcc2
3994 builtin and then its argument prototype would still apply. */
3999 /* The GNU C library defines this for functions which it implements
4000 to always fail with ENOSYS. Some functions are actually named
4001 something starting with __ and the normal name is an alias. */
4002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4010 if { (eval echo configure
:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4012 eval "ac_cv_func_$ac_func=yes"
4014 echo "configure: failed program was:" >&5
4015 cat conftest.
$ac_ext >&5
4017 eval "ac_cv_func_$ac_func=no"
4022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6
4024 cat >> confdefs.h
<<EOF
4025 #define CRAY_STACKSEG_END $ac_func
4030 echo "$ac_t""no" 1>&6
4036 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4037 echo "configure:4038: checking stack direction for C alloca" >&5
4038 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 if test "$cross_compiling" = yes; then
4042 ac_cv_c_stack_direction
=0
4044 cat > conftest.
$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 find_stack_direction ()
4049 static char *addr = 0;
4054 return find_stack_direction ();
4057 return (&dummy > addr) ? 1 : -1;
4061 exit (find_stack_direction() < 0);
4064 if { (eval echo configure
:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4066 ac_cv_c_stack_direction
=1
4068 echo "configure: failed program was:" >&5
4069 cat conftest.
$ac_ext >&5
4071 ac_cv_c_stack_direction
=-1
4078 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4079 cat >> confdefs.h
<<EOF
4080 #define STACK_DIRECTION $ac_cv_c_stack_direction
4085 for ac_hdr
in unistd.h
4087 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4089 echo "configure:4090: checking for $ac_hdr" >&5
4090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 cat > conftest.
$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4098 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4099 { (eval echo configure
:4100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4100 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4101 if test -z "$ac_err"; then
4103 eval "ac_cv_header_$ac_safe=yes"
4106 echo "configure: failed program was:" >&5
4107 cat conftest.
$ac_ext >&5
4109 eval "ac_cv_header_$ac_safe=no"
4113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4116 cat >> confdefs.h
<<EOF
4117 #define $ac_tr_hdr 1
4121 echo "$ac_t""no" 1>&6
4125 for ac_func
in getpagesize
4127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_func" >&5
4129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 cat > conftest.
$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func(); below. */
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4156 if { (eval echo configure
:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4158 eval "ac_cv_func_$ac_func=yes"
4160 echo "configure: failed program was:" >&5
4161 cat conftest.
$ac_ext >&5
4163 eval "ac_cv_func_$ac_func=no"
4168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4171 cat >> confdefs.h
<<EOF
4172 #define $ac_tr_func 1
4176 echo "$ac_t""no" 1>&6
4180 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4181 echo "configure:4182: checking for working mmap" >&5
4182 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 if test "$cross_compiling" = yes; then
4186 ac_cv_func_mmap_fixed_mapped
=no
4188 cat > conftest.
$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4192 /* Thanks to Mike Haertel and Jim Avera for this test.
4193 Here is a matrix of mmap possibilities:
4194 mmap private not fixed
4195 mmap private fixed at somewhere currently unmapped
4196 mmap private fixed at somewhere already mapped
4197 mmap shared not fixed
4198 mmap shared fixed at somewhere currently unmapped
4199 mmap shared fixed at somewhere already mapped
4200 For private mappings, we should verify that changes cannot be read()
4201 back from the file, nor mmap's back from the file at a different
4202 address. (There have been systems where private was not correctly
4203 implemented like the infamous i386 svr4.0, and systems where the
4204 VM page cache was not coherent with the filesystem buffer cache
4205 like early versions of FreeBSD and possibly contemporary NetBSD.)
4206 For shared mappings, we should conversely verify that changes get
4207 propogated back to all the places they're supposed to be.
4209 Grep wants private fixed already mapped.
4210 The main things grep needs to know about mmap are:
4211 * does it exist and is it safe to write into the mmap'd area
4212 * how to use it (BSD variants) */
4213 #include <sys/types.h>
4215 #include <sys/mman.h>
4217 /* This mess was copied from the GNU getpagesize.h. */
4218 #ifndef HAVE_GETPAGESIZE
4219 # ifdef HAVE_UNISTD_H
4220 # include <unistd.h>
4223 /* Assume that all systems that can run configure have sys/param.h. */
4224 # ifndef HAVE_SYS_PARAM_H
4225 # define HAVE_SYS_PARAM_H 1
4228 # ifdef _SC_PAGESIZE
4229 # define getpagesize() sysconf(_SC_PAGESIZE)
4230 # else /* no _SC_PAGESIZE */
4231 # ifdef HAVE_SYS_PARAM_H
4232 # include <sys/param.h>
4233 # ifdef EXEC_PAGESIZE
4234 # define getpagesize() EXEC_PAGESIZE
4235 # else /* no EXEC_PAGESIZE */
4237 # define getpagesize() NBPG * CLSIZE
4240 # endif /* no CLSIZE */
4241 # else /* no NBPG */
4243 # define getpagesize() NBPC
4244 # else /* no NBPC */
4246 # define getpagesize() PAGESIZE
4247 # endif /* PAGESIZE */
4248 # endif /* no NBPC */
4249 # endif /* no NBPG */
4250 # endif /* no EXEC_PAGESIZE */
4251 # else /* no HAVE_SYS_PARAM_H */
4252 # define getpagesize() 8192 /* punt totally */
4253 # endif /* no HAVE_SYS_PARAM_H */
4254 # endif /* no _SC_PAGESIZE */
4256 #endif /* no HAVE_GETPAGESIZE */
4259 extern "C" { void *malloc(unsigned); }
4267 char *data, *data2, *data3;
4271 pagesize = getpagesize();
4274 * First, make a file with some known garbage in it.
4276 data = malloc(pagesize);
4279 for (i = 0; i < pagesize; ++i)
4280 *(data + i) = rand();
4282 fd = creat("conftestmmap", 0600);
4285 if (write(fd, data, pagesize) != pagesize)
4290 * Next, try to mmap the file at a fixed address which
4291 * already has something else allocated at it. If we can,
4292 * also make sure that we see the same garbage.
4294 fd = open("conftestmmap", O_RDWR);
4297 data2 = malloc(2 * pagesize);
4300 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4301 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4302 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4304 for (i = 0; i < pagesize; ++i)
4305 if (*(data + i) != *(data2 + i))
4309 * Finally, make sure that changes to the mapped area
4310 * do not percolate back to the file as seen by read().
4311 * (This is a bug on some variants of i386 svr4.0.)
4313 for (i = 0; i < pagesize; ++i)
4314 *(data2 + i) = *(data2 + i) + 1;
4315 data3 = malloc(pagesize);
4318 if (read(fd, data3, pagesize) != pagesize)
4320 for (i = 0; i < pagesize; ++i)
4321 if (*(data + i) != *(data3 + i))
4324 unlink("conftestmmap");
4329 if { (eval echo configure
:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4331 ac_cv_func_mmap_fixed_mapped
=yes
4333 echo "configure: failed program was:" >&5
4334 cat conftest.
$ac_ext >&5
4336 ac_cv_func_mmap_fixed_mapped
=no
4343 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4344 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4345 cat >> confdefs.h
<<\EOF
4352 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4353 unistd.h values.h sys
/param.h
4355 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4357 echo "configure:4358: checking for $ac_hdr" >&5
4358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 cat > conftest.
$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4366 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4367 { (eval echo configure
:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4368 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4369 if test -z "$ac_err"; then
4371 eval "ac_cv_header_$ac_safe=yes"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.
$ac_ext >&5
4377 eval "ac_cv_header_$ac_safe=no"
4381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4384 cat >> confdefs.h
<<EOF
4385 #define $ac_tr_hdr 1
4389 echo "$ac_t""no" 1>&6
4393 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4394 __argz_count __argz_stringify __argz_next
4396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4397 echo "configure:4398: checking for $ac_func" >&5
4398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 cat > conftest.
$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 /* System header to define __stub macros and hopefully few prototypes,
4405 which can conflict with char $ac_func(); below. */
4407 /* Override any gcc2 internal prototype to avoid an error. */
4408 /* We use char because int might match the return type of a gcc2
4409 builtin and then its argument prototype would still apply. */
4414 /* The GNU C library defines this for functions which it implements
4415 to always fail with ENOSYS. Some functions are actually named
4416 something starting with __ and the normal name is an alias. */
4417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4425 if { (eval echo configure
:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4427 eval "ac_cv_func_$ac_func=yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.
$ac_ext >&5
4432 eval "ac_cv_func_$ac_func=no"
4437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4440 cat >> confdefs.h
<<EOF
4441 #define $ac_tr_func 1
4445 echo "$ac_t""no" 1>&6
4450 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4451 for ac_func
in stpcpy
4453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_func" >&5
4455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.
$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* System header to define __stub macros and hopefully few prototypes,
4462 which can conflict with char $ac_func(); below. */
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4471 /* The GNU C library defines this for functions which it implements
4472 to always fail with ENOSYS. Some functions are actually named
4473 something starting with __ and the normal name is an alias. */
4474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4482 if { (eval echo configure
:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4484 eval "ac_cv_func_$ac_func=yes"
4486 echo "configure: failed program was:" >&5
4487 cat conftest.
$ac_ext >&5
4489 eval "ac_cv_func_$ac_func=no"
4494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4497 cat >> confdefs.h
<<EOF
4498 #define $ac_tr_func 1
4502 echo "$ac_t""no" 1>&6
4507 if test "${ac_cv_func_stpcpy}" = "yes"; then
4508 cat >> confdefs.h
<<\EOF
4509 #define HAVE_STPCPY 1
4514 if test $ac_cv_header_locale_h = yes; then
4515 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4516 echo "configure:4517: checking for LC_MESSAGES" >&5
4517 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 cat > conftest.
$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4528 if { (eval echo configure
:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4530 am_cv_val_LC_MESSAGES
=yes
4532 echo "configure: failed program was:" >&5
4533 cat conftest.
$ac_ext >&5
4535 am_cv_val_LC_MESSAGES
=no
4540 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4541 if test $am_cv_val_LC_MESSAGES = yes; then
4542 cat >> confdefs.h
<<\EOF
4543 #define HAVE_LC_MESSAGES 1
4548 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4549 echo "configure:4550: checking whether NLS is requested" >&5
4550 # Check whether --enable-nls or --disable-nls was given.
4551 if test "${enable_nls+set}" = set; then
4552 enableval
="$enable_nls"
4558 echo "$ac_t""$USE_NLS" 1>&6
4561 USE_INCLUDED_LIBINTL
=no
4563 if test "$USE_NLS" = "yes"; then
4564 cat >> confdefs.h
<<\EOF
4565 #define ENABLE_NLS 1
4568 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4569 echo "configure:4570: checking whether included gettext is requested" >&5
4570 # Check whether --with-included-gettext or --without-included-gettext was given.
4571 if test "${with_included_gettext+set}" = set; then
4572 withval
="$with_included_gettext"
4573 nls_cv_force_use_gnu_gettext
=$withval
4575 nls_cv_force_use_gnu_gettext
=no
4578 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4580 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4581 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4583 nls_cv_header_libgt
=
4586 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4587 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4588 echo "configure:4589: checking for libintl.h" >&5
4589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.
$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 #include <libintl.h>
4597 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4598 { (eval echo configure
:4599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4599 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4600 if test -z "$ac_err"; then
4602 eval "ac_cv_header_$ac_safe=yes"
4605 echo "configure: failed program was:" >&5
4606 cat conftest.
$ac_ext >&5
4608 eval "ac_cv_header_$ac_safe=no"
4612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4613 echo "$ac_t""yes" 1>&6
4614 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4615 echo "configure:4616: checking for gettext in libc" >&5
4616 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 cat > conftest.
$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 #include <libintl.h>
4624 return (int) gettext ("")
4627 if { (eval echo configure
:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4629 gt_cv_func_gettext_libc
=yes
4631 echo "configure: failed program was:" >&5
4632 cat conftest.
$ac_ext >&5
4634 gt_cv_func_gettext_libc
=no
4639 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4641 if test "$gt_cv_func_gettext_libc" != "yes"; then
4642 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4643 echo "configure:4644: checking for bindtextdomain in -lintl" >&5
4644 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 ac_save_LIBS
="$LIBS"
4650 cat > conftest.
$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 /* Override any gcc2 internal prototype to avoid an error. */
4654 /* We use char because int might match the return type of a gcc2
4655 builtin and then its argument prototype would still apply. */
4656 char bindtextdomain();
4662 if { (eval echo configure
:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4664 eval "ac_cv_lib_$ac_lib_var=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.
$ac_ext >&5
4669 eval "ac_cv_lib_$ac_lib_var=no"
4672 LIBS
="$ac_save_LIBS"
4675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4677 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4678 echo "configure:4679: checking for gettext in libintl" >&5
4679 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.
$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4687 return (int) gettext ("")
4690 if { (eval echo configure
:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4692 gt_cv_func_gettext_libintl
=yes
4694 echo "configure: failed program was:" >&5
4695 cat conftest.
$ac_ext >&5
4697 gt_cv_func_gettext_libintl
=no
4702 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4704 echo "$ac_t""no" 1>&6
4709 if test "$gt_cv_func_gettext_libc" = "yes" \
4710 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4711 cat >> confdefs.h
<<\EOF
4712 #define HAVE_GETTEXT 1
4715 # Extract the first word of "msgfmt", so it can be a program name with args.
4716 set dummy msgfmt
; ac_word
=$2
4717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4718 echo "configure:4719: checking for $ac_word" >&5
4719 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4724 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4727 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4728 for ac_dir
in $PATH; do
4729 test -z "$ac_dir" && ac_dir
=.
4730 if test -f $ac_dir/$ac_word; then
4731 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4732 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4738 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4742 MSGFMT
="$ac_cv_path_MSGFMT"
4743 if test -n "$MSGFMT"; then
4744 echo "$ac_t""$MSGFMT" 1>&6
4746 echo "$ac_t""no" 1>&6
4748 if test "$MSGFMT" != "no"; then
4749 for ac_func
in dcgettext
4751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4752 echo "configure:4753: checking for $ac_func" >&5
4753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 cat > conftest.
$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4759 /* System header to define __stub macros and hopefully few prototypes,
4760 which can conflict with char $ac_func(); below. */
4762 /* Override any gcc2 internal prototype to avoid an error. */
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4769 /* The GNU C library defines this for functions which it implements
4770 to always fail with ENOSYS. Some functions are actually named
4771 something starting with __ and the normal name is an alias. */
4772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4780 if { (eval echo configure
:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4782 eval "ac_cv_func_$ac_func=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.
$ac_ext >&5
4787 eval "ac_cv_func_$ac_func=no"
4792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4795 cat >> confdefs.h
<<EOF
4796 #define $ac_tr_func 1
4800 echo "$ac_t""no" 1>&6
4804 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4805 set dummy gmsgfmt
; ac_word
=$2
4806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4807 echo "configure:4808: checking for $ac_word" >&5
4808 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4813 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4816 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4819 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4821 for ac_dir
in $ac_dummy; do
4822 test -z "$ac_dir" && ac_dir
=.
4823 if test -f $ac_dir/$ac_word; then
4824 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4829 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4833 GMSGFMT
="$ac_cv_path_GMSGFMT"
4834 if test -n "$GMSGFMT"; then
4835 echo "$ac_t""$GMSGFMT" 1>&6
4837 echo "$ac_t""no" 1>&6
4840 # Extract the first word of "xgettext", so it can be a program name with args.
4841 set dummy xgettext
; ac_word
=$2
4842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4843 echo "configure:4844: checking for $ac_word" >&5
4844 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4845 echo $ac_n "(cached) $ac_c" 1>&6
4849 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4852 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4853 for ac_dir
in $PATH; do
4854 test -z "$ac_dir" && ac_dir
=.
4855 if test -f $ac_dir/$ac_word; then
4856 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4857 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4863 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4867 XGETTEXT
="$ac_cv_path_XGETTEXT"
4868 if test -n "$XGETTEXT"; then
4869 echo "$ac_t""$XGETTEXT" 1>&6
4871 echo "$ac_t""no" 1>&6
4874 cat > conftest.
$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4879 extern int _nl_msg_cat_cntr;
4880 return _nl_msg_cat_cntr
4883 if { (eval echo configure
:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4888 echo "configure: failed program was:" >&5
4889 cat conftest.
$ac_ext >&5
4900 echo "$ac_t""no" 1>&6
4905 if test "$CATOBJEXT" = "NONE"; then
4906 nls_cv_use_gnu_gettext
=yes
4910 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4911 INTLOBJS
="\$(GETTOBJS)"
4912 # Extract the first word of "msgfmt", so it can be a program name with args.
4913 set dummy msgfmt
; ac_word
=$2
4914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4915 echo "configure:4916: checking for $ac_word" >&5
4916 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4921 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4924 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4925 for ac_dir
in $PATH; do
4926 test -z "$ac_dir" && ac_dir
=.
4927 if test -f $ac_dir/$ac_word; then
4928 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4929 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4935 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4939 MSGFMT
="$ac_cv_path_MSGFMT"
4940 if test -n "$MSGFMT"; then
4941 echo "$ac_t""$MSGFMT" 1>&6
4943 echo "$ac_t""no" 1>&6
4946 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4947 set dummy gmsgfmt
; ac_word
=$2
4948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_word" >&5
4950 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4955 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4958 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4961 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4963 for ac_dir
in $ac_dummy; do
4964 test -z "$ac_dir" && ac_dir
=.
4965 if test -f $ac_dir/$ac_word; then
4966 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4971 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4975 GMSGFMT
="$ac_cv_path_GMSGFMT"
4976 if test -n "$GMSGFMT"; then
4977 echo "$ac_t""$GMSGFMT" 1>&6
4979 echo "$ac_t""no" 1>&6
4982 # Extract the first word of "xgettext", so it can be a program name with args.
4983 set dummy xgettext
; ac_word
=$2
4984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4985 echo "configure:4986: checking for $ac_word" >&5
4986 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4991 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4995 for ac_dir
in $PATH; do
4996 test -z "$ac_dir" && ac_dir
=.
4997 if test -f $ac_dir/$ac_word; then
4998 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4999 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5005 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5009 XGETTEXT
="$ac_cv_path_XGETTEXT"
5010 if test -n "$XGETTEXT"; then
5011 echo "$ac_t""$XGETTEXT" 1>&6
5013 echo "$ac_t""no" 1>&6
5017 USE_INCLUDED_LIBINTL
=yes
5021 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5023 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5024 nls_cv_header_intl
=libintl.h
5025 nls_cv_header_libgt
=libgettext.h
5028 if test "$XGETTEXT" != ":"; then
5029 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5032 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
5037 # We need to process the po/ directory.
5041 nls_cv_header_intl
=libintl.h
5042 nls_cv_header_libgt
=libgettext.h
5045 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5046 # because some of the sources are only built for this goal.
5047 if test "$PACKAGE" = gettext; then
5049 USE_INCLUDED_LIBINTL
=yes
5052 for lang
in $ALL_LINGUAS; do
5053 GMOFILES
="$GMOFILES $lang.gmo"
5054 POFILES
="$POFILES $lang.po"
5070 if test "x$CATOBJEXT" != "x"; then
5071 if test "x$ALL_LINGUAS" = "x"; then
5074 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5075 echo "configure:5076: checking for catalogs to be installed" >&5
5077 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5078 case "$ALL_LINGUAS" in
5079 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5082 LINGUAS
=$NEW_LINGUAS
5083 echo "$ac_t""$LINGUAS" 1>&6
5086 if test -n "$LINGUAS"; then
5087 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5091 if test $ac_cv_header_locale_h = yes; then
5092 INCLUDE_LOCALE_H
="#include <locale.h>"
5095 /* The system does not provide the header <locale.h>. Take care yourself. */"
5099 if test -f $srcdir/po2tbl.
sed.
in; then
5100 if test "$CATOBJEXT" = ".cat"; then
5101 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5102 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5103 echo "configure:5104: checking for linux/version.h" >&5
5104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5105 echo $ac_n "(cached) $ac_c" 1>&6
5107 cat > conftest.
$ac_ext <<EOF
5108 #line 5109 "configure"
5109 #include "confdefs.h"
5110 #include <linux/version.h>
5112 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5113 { (eval echo configure
:5114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5114 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5115 if test -z "$ac_err"; then
5117 eval "ac_cv_header_$ac_safe=yes"
5120 echo "configure: failed program was:" >&5
5121 cat conftest.
$ac_ext >&5
5123 eval "ac_cv_header_$ac_safe=no"
5127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5131 echo "$ac_t""no" 1>&6
5136 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5138 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5139 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5142 if test "$PACKAGE" = "gettext"; then
5152 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5158 if test -d $srcdir/po
; then
5159 test -d po || mkdir po
5160 if test "x$srcdir" != "x."; then
5161 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5162 posrcprefix
="$srcdir/"
5164 posrcprefix
="../$srcdir/"
5170 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5171 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5175 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
5176 echo "configure:5177: checking whether to enable maintainer-specific portions of Makefiles" >&5
5177 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5178 if test "${enable_maintainer_mode+set}" = set; then
5179 enableval
="$enable_maintainer_mode"
5180 USE_MAINTAINER_MODE
=$enableval
5182 USE_MAINTAINER_MODE
=no
5185 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5188 if test $USE_MAINTAINER_MODE = yes; then
5189 MAINTAINER_MODE_TRUE
=
5190 MAINTAINER_MODE_FALSE
='#'
5192 MAINTAINER_MODE_TRUE
='#'
5193 MAINTAINER_MODE_FALSE
=
5195 MAINT
=$MAINTAINER_MODE_TRUE
5200 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5201 echo "configure:5202: checking for executable suffix" >&5
5202 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5205 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
5209 echo 'int main () { return 0; }' > conftest.
$ac_ext
5211 if { (eval echo configure
:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5212 for file in conftest.
*; do
5214 *.c |
*.o |
*.obj
) ;;
5215 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
5219 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5222 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
5227 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
5228 echo "$ac_t""${ac_cv_exeext}" 1>&6
5232 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
5234 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5236 echo "configure:5237: checking for $ac_hdr" >&5
5237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 cat > conftest.
$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5246 { (eval echo configure
:5247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5248 if test -z "$ac_err"; then
5250 eval "ac_cv_header_$ac_safe=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.
$ac_ext >&5
5256 eval "ac_cv_header_$ac_safe=no"
5260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5262 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5263 cat >> confdefs.h
<<EOF
5264 #define $ac_tr_hdr 1
5268 echo "$ac_t""no" 1>&6
5273 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
5274 # people who are not cross-compiling but are compiling cross-assemblers.
5275 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
5276 echo "configure:5277: checking whether compiling a cross-assembler" >&5
5277 if test "${host}" = "${target}"; then
5281 cat >> confdefs.h
<<\EOF
5282 #define CROSS_COMPILE 1
5286 echo "$ac_t""$cross_gas" 1>&6
5288 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5289 # for constant arguments. Useless!
5290 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5291 echo "configure:5292: checking for working alloca.h" >&5
5292 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5295 cat > conftest.
$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5300 char *p = alloca(2 * sizeof(int));
5303 if { (eval echo configure
:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5305 ac_cv_header_alloca_h
=yes
5307 echo "configure: failed program was:" >&5
5308 cat conftest.
$ac_ext >&5
5310 ac_cv_header_alloca_h
=no
5315 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5316 if test $ac_cv_header_alloca_h = yes; then
5317 cat >> confdefs.h
<<\EOF
5318 #define HAVE_ALLOCA_H 1
5323 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5324 echo "configure:5325: checking for alloca" >&5
5325 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5328 cat > conftest.
$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5333 # define alloca __builtin_alloca
5336 # include <malloc.h>
5337 # define alloca _alloca
5340 # include <alloca.h>
5345 # ifndef alloca /* predefined by HP cc +Olibcalls */
5354 char *p = (char *) alloca(1);
5357 if { (eval echo configure
:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5359 ac_cv_func_alloca_works
=yes
5361 echo "configure: failed program was:" >&5
5362 cat conftest.
$ac_ext >&5
5364 ac_cv_func_alloca_works
=no
5369 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5370 if test $ac_cv_func_alloca_works = yes; then
5371 cat >> confdefs.h
<<\EOF
5372 #define HAVE_ALLOCA 1
5377 if test $ac_cv_func_alloca_works = no
; then
5378 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5379 # that cause trouble. Some versions do not even contain alloca or
5380 # contain a buggy version. If you still want to use their alloca,
5381 # use ar to extract alloca.o from them instead of compiling alloca.c.
5382 ALLOCA
=alloca.
${ac_objext}
5383 cat >> confdefs.h
<<\EOF
5388 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5389 echo "configure:5390: checking whether alloca needs Cray hooks" >&5
5390 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 cat > conftest.
$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5396 #if defined(CRAY) && ! defined(CRAY2)
5403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5404 egrep "webecray" >/dev
/null
2>&1; then
5415 echo "$ac_t""$ac_cv_os_cray" 1>&6
5416 if test $ac_cv_os_cray = yes; then
5417 for ac_func
in _getb67 GETB67 getb67
; do
5418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5419 echo "configure:5420: checking for $ac_func" >&5
5420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5423 cat > conftest.
$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 /* System header to define __stub macros and hopefully few prototypes,
5427 which can conflict with char $ac_func(); below. */
5429 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */
5436 /* The GNU C library defines this for functions which it implements
5437 to always fail with ENOSYS. Some functions are actually named
5438 something starting with __ and the normal name is an alias. */
5439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5447 if { (eval echo configure
:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5449 eval "ac_cv_func_$ac_func=yes"
5451 echo "configure: failed program was:" >&5
5452 cat conftest.
$ac_ext >&5
5454 eval "ac_cv_func_$ac_func=no"
5459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5460 echo "$ac_t""yes" 1>&6
5461 cat >> confdefs.h
<<EOF
5462 #define CRAY_STACKSEG_END $ac_func
5467 echo "$ac_t""no" 1>&6
5473 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5474 echo "configure:5475: checking stack direction for C alloca" >&5
5475 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5478 if test "$cross_compiling" = yes; then
5479 ac_cv_c_stack_direction
=0
5481 cat > conftest.
$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 find_stack_direction ()
5486 static char *addr = 0;
5491 return find_stack_direction ();
5494 return (&dummy > addr) ? 1 : -1;
5498 exit (find_stack_direction() < 0);
5501 if { (eval echo configure
:5502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5503 ac_cv_c_stack_direction
=1
5505 echo "configure: failed program was:" >&5
5506 cat conftest.
$ac_ext >&5
5508 ac_cv_c_stack_direction
=-1
5515 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5516 cat >> confdefs.h
<<EOF
5517 #define STACK_DIRECTION $ac_cv_c_stack_direction
5522 echo $ac_n "checking for inline""... $ac_c" 1>&6
5523 echo "configure:5524: checking for inline" >&5
5524 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5528 for ac_kw
in inline __inline__ __inline
; do
5529 cat > conftest.
$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5537 if { (eval echo configure
:5538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5539 ac_cv_c_inline
=$ac_kw; break
5541 echo "configure: failed program was:" >&5
5542 cat conftest.
$ac_ext >&5
5549 echo "$ac_t""$ac_cv_c_inline" 1>&6
5550 case "$ac_cv_c_inline" in
5552 no
) cat >> confdefs.h
<<\EOF
5556 *) cat >> confdefs.h
<<EOF
5557 #define inline $ac_cv_c_inline
5563 # VMS doesn't have unlink.
5564 for ac_func
in unlink remove
5566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5567 echo "configure:5568: checking for $ac_func" >&5
5568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 cat > conftest.
$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 /* System header to define __stub macros and hopefully few prototypes,
5575 which can conflict with char $ac_func(); below. */
5577 /* Override any gcc2 internal prototype to avoid an error. */
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5584 /* The GNU C library defines this for functions which it implements
5585 to always fail with ENOSYS. Some functions are actually named
5586 something starting with __ and the normal name is an alias. */
5587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5595 if { (eval echo configure
:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5597 eval "ac_cv_func_$ac_func=yes"
5599 echo "configure: failed program was:" >&5
5600 cat conftest.
$ac_ext >&5
5602 eval "ac_cv_func_$ac_func=no"
5607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5608 echo "$ac_t""yes" 1>&6
5609 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5610 cat >> confdefs.h
<<EOF
5611 #define $ac_tr_func 1
5615 echo "$ac_t""no" 1>&6
5620 # Some systems don't have sbrk().
5623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5624 echo "configure:5625: checking for $ac_func" >&5
5625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5628 cat > conftest.
$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5631 /* System header to define __stub macros and hopefully few prototypes,
5632 which can conflict with char $ac_func(); below. */
5634 /* Override any gcc2 internal prototype to avoid an error. */
5635 /* We use char because int might match the return type of a gcc2
5636 builtin and then its argument prototype would still apply. */
5641 /* The GNU C library defines this for functions which it implements
5642 to always fail with ENOSYS. Some functions are actually named
5643 something starting with __ and the normal name is an alias. */
5644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5652 if { (eval echo configure
:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5654 eval "ac_cv_func_$ac_func=yes"
5656 echo "configure: failed program was:" >&5
5657 cat conftest.
$ac_ext >&5
5659 eval "ac_cv_func_$ac_func=no"
5664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5665 echo "$ac_t""yes" 1>&6
5666 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5667 cat >> confdefs.h
<<EOF
5668 #define $ac_tr_func 1
5672 echo "$ac_t""no" 1>&6
5677 # do we need the math library?
5678 case "${need_libm}" in
5682 *-*-beos* |
*-*-cygwin*)
5683 # These system don't have libm
5686 echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6
5687 echo "configure:5688: checking for _mwvalidcheckl in -lmw" >&5
5688 ac_lib_var
=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'`
5689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5692 ac_save_LIBS
="$LIBS"
5694 cat > conftest.
$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5697 /* Override any gcc2 internal prototype to avoid an error. */
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5700 char _mwvalidcheckl();
5706 if { (eval echo configure
:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5708 eval "ac_cv_lib_$ac_lib_var=yes"
5710 echo "configure: failed program was:" >&5
5711 cat conftest.
$ac_ext >&5
5713 eval "ac_cv_lib_$ac_lib_var=no"
5716 LIBS
="$ac_save_LIBS"
5719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5720 echo "$ac_t""yes" 1>&6
5723 echo "$ac_t""no" 1>&6
5726 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5727 echo "configure:5728: checking for main in -lm" >&5
5728 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5730 echo $ac_n "(cached) $ac_c" 1>&6
5732 ac_save_LIBS
="$LIBS"
5734 cat > conftest.
$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5742 if { (eval echo configure
:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5744 eval "ac_cv_lib_$ac_lib_var=yes"
5746 echo "configure: failed program was:" >&5
5747 cat conftest.
$ac_ext >&5
5749 eval "ac_cv_lib_$ac_lib_var=no"
5752 LIBS
="$ac_save_LIBS"
5755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5756 echo "$ac_t""yes" 1>&6
5759 echo "$ac_t""no" 1>&6
5764 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5765 echo "configure:5766: checking for main in -lm" >&5
5766 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5770 ac_save_LIBS
="$LIBS"
5772 cat > conftest.
$ac_ext <<EOF
5773 #line 5774 "configure"
5774 #include "confdefs.h"
5780 if { (eval echo configure
:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5782 eval "ac_cv_lib_$ac_lib_var=yes"
5784 echo "configure: failed program was:" >&5
5785 cat conftest.
$ac_ext >&5
5787 eval "ac_cv_lib_$ac_lib_var=no"
5790 LIBS
="$ac_save_LIBS"
5793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5797 echo "$ac_t""no" 1>&6
5807 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5808 # enough, but on some of those systems, the assert macro relies on requoting
5810 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5811 echo "configure:5812: checking for working assert macro" >&5
5812 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 cat > conftest.
$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5822 /* check for requoting problems */
5823 static int a, b, c, d;
5825 assert (!strcmp(s, "foo bar baz quux"));
5826 /* check for newline handling */
5832 if { (eval echo configure
:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5834 gas_cv_assert_ok
=yes
5836 echo "configure: failed program was:" >&5
5837 cat conftest.
$ac_ext >&5
5843 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5844 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
5845 #define BROKEN_ASSERT 1
5850 # On some systems, the system header files may not declare malloc, realloc,
5851 # and free. There are places where gas needs these functions to have been
5852 # declared -- such as when taking their addresses.
5854 #ifdef HAVE_MEMORY_H
5857 #ifdef HAVE_STRING_H
5860 #ifdef HAVE_STRINGS_H
5861 #include <strings.h>
5864 #ifdef HAVE_STDLIB_H
5867 #ifdef HAVE_UNISTD_H
5872 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5873 echo "configure:5874: checking whether declaration is required for strstr" >&5
5874 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 cat > conftest.
$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5883 typedef char *(*f)();
5889 if { (eval echo configure
:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5891 gas_cv_decl_needed_strstr
=no
5893 echo "configure: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5896 gas_cv_decl_needed_strstr
=yes
5900 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5901 if test $gas_cv_decl_needed_strstr = yes; then
5902 cat >> confdefs.h
<<\EOF
5903 #define NEED_DECLARATION_STRSTR 1
5909 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5910 echo "configure:5911: checking whether declaration is required for malloc" >&5
5911 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5912 echo $ac_n "(cached) $ac_c" 1>&6
5914 cat > conftest.
$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5920 typedef char *(*f)();
5926 if { (eval echo configure
:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5928 gas_cv_decl_needed_malloc
=no
5930 echo "configure: failed program was:" >&5
5931 cat conftest.
$ac_ext >&5
5933 gas_cv_decl_needed_malloc
=yes
5937 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5938 if test $gas_cv_decl_needed_malloc = yes; then
5939 cat >> confdefs.h
<<\EOF
5940 #define NEED_DECLARATION_MALLOC 1
5946 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5947 echo "configure:5948: checking whether declaration is required for free" >&5
5948 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5951 cat > conftest.
$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5957 typedef void (*f)();
5963 if { (eval echo configure
:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5965 gas_cv_decl_needed_free
=no
5967 echo "configure: failed program was:" >&5
5968 cat conftest.
$ac_ext >&5
5970 gas_cv_decl_needed_free
=yes
5974 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5975 if test $gas_cv_decl_needed_free = yes; then
5976 cat >> confdefs.h
<<\EOF
5977 #define NEED_DECLARATION_FREE 1
5983 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5984 echo "configure:5985: checking whether declaration is required for sbrk" >&5
5985 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5988 cat > conftest.
$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5994 typedef char *(*f)();
6000 if { (eval echo configure
:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6002 gas_cv_decl_needed_sbrk
=no
6004 echo "configure: failed program was:" >&5
6005 cat conftest.
$ac_ext >&5
6007 gas_cv_decl_needed_sbrk
=yes
6011 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
6012 if test $gas_cv_decl_needed_sbrk = yes; then
6013 cat >> confdefs.h
<<\EOF
6014 #define NEED_DECLARATION_SBRK 1
6020 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
6021 echo "configure:6022: checking whether declaration is required for environ" >&5
6022 if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6025 cat > conftest.
$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6037 if { (eval echo configure
:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6039 gas_cv_decl_needed_environ
=no
6041 echo "configure: failed program was:" >&5
6042 cat conftest.
$ac_ext >&5
6044 gas_cv_decl_needed_environ
=yes
6048 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
6049 if test $gas_cv_decl_needed_environ = yes; then
6050 cat >> confdefs.h
<<\EOF
6051 #define NEED_DECLARATION_ENVIRON 1
6057 # Does errno.h declare errno, or do we have to add a separate declaration
6060 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
6061 echo "configure:6062: checking whether declaration is required for errno" >&5
6062 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6065 cat > conftest.
$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6081 if { (eval echo configure
:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6083 gas_cv_decl_needed_errno
=no
6085 echo "configure: failed program was:" >&5
6086 cat conftest.
$ac_ext >&5
6088 gas_cv_decl_needed_errno
=yes
6092 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
6093 if test $gas_cv_decl_needed_errno = yes; then
6094 cat >> confdefs.h
<<\EOF
6095 #define NEED_DECLARATION_ERRNO 1
6104 cat > confcache
<<\EOF
6105 # This file is a shell script that caches the results of configure
6106 # tests run on this system so they can be shared between configure
6107 # scripts and configure runs. It is not useful on other systems.
6108 # If it contains results you don't want to keep, you may remove or edit it.
6110 # By default, configure uses ./config.cache as the cache file,
6111 # creating it if it does not exist already. You can give configure
6112 # the --cache-file=FILE option to use a different cache file; that is
6113 # what configure does when it calls configure scripts in
6114 # subdirectories, so they share the cache.
6115 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6116 # config.status only pays attention to the cache file if you give it the
6117 # --recheck option to rerun configure.
6120 # The following way of writing the cache mishandles newlines in values,
6121 # but we know of no workaround that is simple, portable, and efficient.
6122 # So, don't put newlines in cache variables' values.
6123 # Ultrix sh set writes to stderr and can't be redirected directly,
6124 # and sets the high bit in the cache file unless we assign to the vars.
6126 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6128 # `set' does not quote correctly, so add quotes (double-quote substitution
6129 # turns \\\\ into \\, and sed turns \\ into \).
6131 -e "s/'/'\\\\''/g" \
6132 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6135 # `set' quotes correctly as required by POSIX, so do not add quotes.
6136 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6139 if cmp -s $cache_file confcache
; then
6142 if test -w $cache_file; then
6143 echo "updating cache $cache_file"
6144 cat confcache
> $cache_file
6146 echo "not updating unwritable cache $cache_file"
6151 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6153 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6154 # Let make expand exec_prefix.
6155 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6157 # Any assignment to VPATH causes Sun make to only execute
6158 # the first set of double-colon rules, so remove it if not needed.
6159 # If there is a colon in the path, we need to keep it.
6160 if test "x$srcdir" = x.
; then
6161 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6164 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6166 DEFS
=-DHAVE_CONFIG_H
6168 # Without the "./", some shells look in PATH for config.status.
6169 : ${CONFIG_STATUS=./config.status}
6171 echo creating
$CONFIG_STATUS
6172 rm -f $CONFIG_STATUS
6173 cat > $CONFIG_STATUS <<EOF
6175 # Generated automatically by configure.
6176 # Run this file to recreate the current configuration.
6177 # This directory was configured as follows,
6178 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6180 # $0 $ac_configure_args
6182 # Compiler output produced by configure, useful for debugging
6183 # configure, is in ./config.log if it exists.
6185 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6188 case "\$ac_option" in
6189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6190 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6191 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6192 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6193 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6195 -help | --help | --hel | --he | --h)
6196 echo "\$ac_cs_usage"; exit 0 ;;
6197 *) echo "\$ac_cs_usage"; exit 1 ;;
6201 ac_given_srcdir=$srcdir
6202 ac_given_INSTALL="$INSTALL"
6204 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
6206 cat >> $CONFIG_STATUS <<EOF
6208 # Protect against being on the right side of a sed subst in config.status.
6209 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6210 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6214 s%@CFLAGS@%$CFLAGS%g
6215 s%@CPPFLAGS@%$CPPFLAGS%g
6216 s%@CXXFLAGS@%$CXXFLAGS%g
6217 s%@FFLAGS@%$FFLAGS%g
6219 s%@LDFLAGS@%$LDFLAGS%g
6221 s%@exec_prefix@%$exec_prefix%g
6222 s%@prefix@%$prefix%g
6223 s%@program_transform_name@%$program_transform_name%g
6224 s%@bindir@%$bindir%g
6225 s%@sbindir@%$sbindir%g
6226 s%@libexecdir@%$libexecdir%g
6227 s%@datadir@%$datadir%g
6228 s%@sysconfdir@%$sysconfdir%g
6229 s%@sharedstatedir@%$sharedstatedir%g
6230 s%@localstatedir@%$localstatedir%g
6231 s%@libdir@%$libdir%g
6232 s%@includedir@%$includedir%g
6233 s%@oldincludedir@%$oldincludedir%g
6234 s%@infodir@%$infodir%g
6235 s%@mandir@%$mandir%g
6237 s%@host_alias@%$host_alias%g
6238 s%@host_cpu@%$host_cpu%g
6239 s%@host_vendor@%$host_vendor%g
6240 s%@host_os@%$host_os%g
6241 s%@target@%$target%g
6242 s%@target_alias@%$target_alias%g
6243 s%@target_cpu@%$target_cpu%g
6244 s%@target_vendor@%$target_vendor%g
6245 s%@target_os@%$target_os%g
6247 s%@build_alias@%$build_alias%g
6248 s%@build_cpu@%$build_cpu%g
6249 s%@build_vendor@%$build_vendor%g
6250 s%@build_os@%$build_os%g
6251 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6252 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6253 s%@INSTALL_DATA@%$INSTALL_DATA%g
6254 s%@PACKAGE@%$PACKAGE%g
6255 s%@VERSION@%$VERSION%g
6256 s%@ACLOCAL@%$ACLOCAL%g
6257 s%@AUTOCONF@%$AUTOCONF%g
6258 s%@AUTOMAKE@%$AUTOMAKE%g
6259 s%@AUTOHEADER@%$AUTOHEADER%g
6260 s%@MAKEINFO@%$MAKEINFO%g
6261 s%@SET_MAKE@%$SET_MAKE%g
6264 s%@OBJEXT@%$OBJEXT%g
6265 s%@EXEEXT@%$EXEEXT%g
6266 s%@RANLIB@%$RANLIB%g
6268 s%@LIBTOOL@%$LIBTOOL%g
6269 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6270 s%@GDBINIT@%$GDBINIT%g
6271 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
6272 s%@extra_objects@%$extra_objects%g
6273 s%@target_cpu_type@%$target_cpu_type%g
6274 s%@obj_format@%$obj_format%g
6275 s%@te_file@%$te_file%g
6276 s%@install_tooldir@%$install_tooldir%g
6278 s%@BFDLIB@%$BFDLIB%g
6279 s%@OPCODES_LIB@%$OPCODES_LIB%g
6280 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
6283 s%@LEXLIB@%$LEXLIB%g
6285 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6286 s%@ALLOCA@%$ALLOCA%g
6287 s%@USE_NLS@%$USE_NLS%g
6288 s%@MSGFMT@%$MSGFMT%g
6289 s%@GMSGFMT@%$GMSGFMT%g
6290 s%@XGETTEXT@%$XGETTEXT%g
6291 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6292 s%@CATALOGS@%$CATALOGS%g
6293 s%@CATOBJEXT@%$CATOBJEXT%g
6294 s%@DATADIRNAME@%$DATADIRNAME%g
6295 s%@GMOFILES@%$GMOFILES%g
6296 s%@INSTOBJEXT@%$INSTOBJEXT%g
6297 s%@INTLDEPS@%$INTLDEPS%g
6298 s%@INTLLIBS@%$INTLLIBS%g
6299 s%@INTLOBJS@%$INTLOBJS%g
6300 s%@POFILES@%$POFILES%g
6302 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6304 s%@GT_YES@%$GT_YES%g
6305 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6307 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6308 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6315 cat >> $CONFIG_STATUS <<\EOF
6317 # Split the substitutions into bite-sized pieces for seds with
6318 # small command number limits, like on Digital OSF/1 and HP-UX.
6319 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6320 ac_file
=1 # Number of current file.
6321 ac_beg
=1 # First line for current file.
6322 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6325 while $ac_more_lines; do
6326 if test $ac_beg -gt 1; then
6327 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6329 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6331 if test ! -s conftest.s
$ac_file; then
6333 rm -f conftest.s
$ac_file
6335 if test -z "$ac_sed_cmds"; then
6336 ac_sed_cmds
="sed -f conftest.s$ac_file"
6338 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6340 ac_file
=`expr $ac_file + 1`
6342 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6345 if test -z "$ac_sed_cmds"; then
6350 cat >> $CONFIG_STATUS <<EOF
6352 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
6354 cat >> $CONFIG_STATUS <<\EOF
6355 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6356 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6358 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6359 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6360 *) ac_file_in
="${ac_file}.in" ;;
6363 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6365 # Remove last slash and all that follows it. Not all systems have dirname.
6366 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6367 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6368 # The file is in a subdirectory.
6369 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6370 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6371 # A "../" for each directory in $ac_dir_suffix.
6372 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6374 ac_dir_suffix
= ac_dots
=
6377 case "$ac_given_srcdir" in
6379 if test -z "$ac_dots"; then top_srcdir
=.
6380 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6381 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6383 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6384 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6387 case "$ac_given_INSTALL" in
6388 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6389 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6392 echo creating
"$ac_file"
6394 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6396 *Makefile
*) ac_comsub
="1i\\
6397 # $configure_input" ;;
6401 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6403 s%@configure_input@%$configure_input%g
6404 s%@srcdir@%$srcdir%g
6405 s%@top_srcdir@%$top_srcdir%g
6406 s%@INSTALL@%$INSTALL%g
6407 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6411 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6412 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6414 # ac_d sets the value in "#define NAME VALUE" lines.
6415 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6416 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6419 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6420 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6421 ac_uB
='\([ ]\)%\1#\2define\3'
6424 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6425 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6426 ac_eB
='$%\1#\2define\3'
6430 if test "${CONFIG_HEADERS+set}" != set; then
6432 cat >> $CONFIG_STATUS <<EOF
6433 CONFIG_HEADERS="config.h:config.in"
6435 cat >> $CONFIG_STATUS <<\EOF
6437 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6440 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6441 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6442 *) ac_file_in
="${ac_file}.in" ;;
6445 echo creating
$ac_file
6447 rm -f conftest.frag conftest.
in conftest.out
6448 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6449 cat $ac_file_inputs > conftest.
in
6453 # Transform confdefs.h into a sed script conftest.vals that substitutes
6454 # the proper values into config.h.in to produce config.h. And first:
6455 # Protect against being on the right side of a sed subst in config.status.
6456 # Protect against being in an unquoted here document in config.status.
6458 cat > conftest.hdr
<<\EOF
6461 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6465 sed -n -f conftest.hdr confdefs.h > conftest.vals
6468 # This sed command replaces #undef with comments. This is necessary, for
6469 # example, in the case of _POSIX_SOURCE, which is predefined and required
6470 # on some systems where configure will not decide to define it.
6471 cat >> conftest.vals <<\EOF
6472 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6475 # Break up conftest.vals because some shells have a limit on
6476 # the size of here documents, and old seds have small limits too.
6481 ac_lines=`grep -c . conftest.vals
`
6482 # grep -c gives empty output for an empty file on some AIX systems.
6483 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6484 # Write a limited-size here document to conftest.frag.
6485 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6486 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6488 sed -f conftest.frag conftest.in > conftest.out
6490 mv conftest.out conftest.in
6492 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6494 mv conftest.tail conftest.vals
6498 cat >> $CONFIG_STATUS <<\EOF
6499 rm -f conftest.frag conftest.h
6500 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6501 cat conftest.in >> conftest.h
6503 if cmp -s $ac_file conftest.h 2>/dev/null; then
6504 echo "$ac_file is unchanged"
6507 # Remove last slash and all that follows it. Not all systems have dirname.
6508 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6509 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6510 # The file is in a subdirectory.
6511 test ! -d "$ac_dir" && mkdir "$ac_dir"
6514 mv conftest.h $ac_file
6519 cat >> $CONFIG_STATUS <<EOF
6521 target_cpu_type=${target_cpu_type}
6522 cgen_cpu_prefix=${cgen_cpu_prefix}
6523 obj_format=${obj_format}
6526 cat >> $CONFIG_STATUS <<\EOF
6527 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6528 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6529 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6530 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6531 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6532 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6533 if test "x$cgen_cpu_prefix" != x ; then
6534 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6537 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6540 chmod +x $CONFIG_STATUS
6541 rm -fr confdefs* $ac_clean_files
6542 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1