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-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
33 --disable-nls do not use Native Language Support"
35 --with-included-gettext use the GNU gettext library included here"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 SHELL
=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
104 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
105 bindir
="$ac_optarg" ;;
107 -build |
--build |
--buil |
--bui |
--bu)
109 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
110 build
="$ac_optarg" ;;
112 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
113 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
114 ac_prev
=cache_file
;;
115 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
116 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
117 cache_file
="$ac_optarg" ;;
119 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
121 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
123 datadir
="$ac_optarg" ;;
125 -disable-* |
--disable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* |
--enable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
148 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
149 |
--exec |
--exe |
--ex)
150 ac_prev
=exec_prefix
;;
151 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
152 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
153 |
--exec=* |
--exe=* |
--ex=*)
154 exec_prefix
="$ac_optarg" ;;
156 -gas |
--gas |
--ga |
--g)
157 # Obsolete; use --with-gas.
160 -help |
--help |
--hel |
--he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --site-file=FILE use FILE as the site file
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 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
344 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
345 sitefile
="$ac_optarg" ;;
347 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
349 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
350 srcdir
="$ac_optarg" ;;
352 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
353 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
354 ac_prev
=sysconfdir
;;
355 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
356 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
357 sysconfdir
="$ac_optarg" ;;
359 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
361 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
362 target
="$ac_optarg" ;;
364 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
367 -version |
--version |
--versio |
--versi |
--vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* |
--without-*)
385 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
398 |
--x-incl |
--x-inc |
--x-in |
--x-i)
399 ac_prev
=x_includes
;;
400 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
401 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
402 x_includes
="$ac_optarg" ;;
404 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
405 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
406 ac_prev
=x_libraries
;;
407 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
408 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
409 x_libraries
="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE
; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
460 |
--no-cr |
--no-c) ;;
461 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
462 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
463 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest
* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted
=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted
=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$sitefile"; then
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE
; then
515 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
517 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 CONFIG_SITE
="$sitefile"
523 for ac_site_file
in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp
='$CPP $CPPFLAGS'
541 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling
=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
556 ac_n
= ac_c
='\c' ac_t
=
559 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
560 echo "configure:561: checking for Cygwin environment" >&5
561 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
564 cat > conftest.
$ac_ext <<EOF
565 #line 566 "configure"
566 #include "confdefs.h"
571 #define __CYGWIN__ __CYGWIN32__
576 if { (eval echo configure
:577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
580 echo "configure: failed program was:" >&5
581 cat conftest.
$ac_ext >&5
589 echo "$ac_t""$ac_cv_cygwin" 1>&6
591 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
592 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
593 echo "configure:594: checking for mingw32 environment" >&5
594 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
597 cat > conftest.
$ac_ext <<EOF
598 #line 599 "configure"
599 #include "confdefs.h"
605 if { (eval echo configure
:606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
609 echo "configure: failed program was:" >&5
610 cat conftest.
$ac_ext >&5
618 echo "$ac_t""$ac_cv_mingw32" 1>&6
620 test "$ac_cv_mingw32" = yes && MINGW32
=yes
624 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
625 if test -f $ac_dir/install-sh
; then
627 ac_install_sh
="$ac_aux_dir/install-sh -c"
629 elif test -f $ac_dir/install.sh
; then
631 ac_install_sh
="$ac_aux_dir/install.sh -c"
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
638 ac_config_guess
=$ac_aux_dir/config.guess
639 ac_config_sub
=$ac_aux_dir/config.sub
640 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
643 # Do some error checking and defaulting for the host and target type.
645 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
648 # 1. You are not allowed to specify --host, --target, and nonopt at the
650 # 2. Host defaults to nonopt.
651 # 3. If nonopt is not specified, then host defaults to the current host,
652 # as determined by config.guess.
653 # 4. Target and build default to nonopt.
654 # 5. If nonopt is not specified, then target and build default to host.
656 # The aliases save the names the user supplied, while $host etc.
657 # will get canonicalized.
658 case $host---$target---$nonopt in
659 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
660 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
664 # Make sure we can run config.sub.
665 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
666 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
669 echo $ac_n "checking host system type""... $ac_c" 1>&6
670 echo "configure:671: checking host system type" >&5
673 case "$host_alias" in
677 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
678 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
680 *) host_alias
=$nonopt ;;
684 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
685 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo "$ac_t""$host" 1>&6
690 echo $ac_n "checking target system type""... $ac_c" 1>&6
691 echo "configure:692: checking target system type" >&5
694 case "$target_alias" in
697 NONE
) target_alias
=$host_alias ;;
698 *) target_alias
=$nonopt ;;
702 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
703 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo "$ac_t""$target" 1>&6
708 echo $ac_n "checking build system type""... $ac_c" 1>&6
709 echo "configure:710: checking build system type" >&5
712 case "$build_alias" in
715 NONE
) build_alias
=$host_alias ;;
716 *) build_alias
=$nonopt ;;
720 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
721 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$build" 1>&6
726 test "$host_alias" != "$target_alias" &&
727 test "$program_prefix$program_suffix$program_transform_name" = \
729 program_prefix
=${target_alias}-
732 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
733 echo "configure:734: checking for strerror in -lcposix" >&5
734 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
739 LIBS
="-lcposix $LIBS"
740 cat > conftest.
$ac_ext <<EOF
741 #line 742 "configure"
742 #include "confdefs.h"
743 /* Override any gcc2 internal prototype to avoid an error. */
744 /* We use char because int might match the return type of a gcc2
745 builtin and then its argument prototype would still apply. */
752 if { (eval echo configure
:753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
754 eval "ac_cv_lib_$ac_lib_var=yes"
756 echo "configure: failed program was:" >&5
757 cat conftest.
$ac_ext >&5
759 eval "ac_cv_lib_$ac_lib_var=no"
765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
767 LIBS
="$LIBS -lcposix"
769 echo "$ac_t""no" 1>&6
775 BFD_VERSION
=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
776 # Find a good install program. We prefer a C program (faster),
777 # so one script is as good as another. But avoid the broken or
778 # incompatible versions:
779 # SysV /etc/install, /usr/sbin/install
780 # SunOS /usr/etc/install
783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
786 # ./install, which can be erroneously created by make from ./install.sh.
787 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
788 echo "configure:789: checking for a BSD compatible install" >&5
789 if test -z "$INSTALL"; then
790 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
794 for ac_dir
in $PATH; do
795 # Account for people who put trailing slashes in PATH elements.
797 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
799 # OSF1 and SCO ODT 3.0 have their own names for install.
800 # Don't use installbsd from OSF since it installs stuff as root
802 for ac_prog
in ginstall scoinst
install; do
803 if test -f $ac_dir/$ac_prog; then
804 if test $ac_prog = install &&
805 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
806 # AIX install. It has an incompatible calling convention.
809 ac_cv_path_install
="$ac_dir/$ac_prog -c"
820 if test "${ac_cv_path_install+set}" = set; then
821 INSTALL
="$ac_cv_path_install"
823 # As a last resort, use the slow shell script. We don't cache a
824 # path for INSTALL within a source directory, because that will
825 # break other packages using the cache if that directory is
826 # removed, or if the path is relative.
827 INSTALL
="$ac_install_sh"
830 echo "$ac_t""$INSTALL" 1>&6
832 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
833 # It thinks the first close brace ends the variable substitution.
834 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
836 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
838 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
840 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
841 echo "configure:842: checking whether build environment is sane" >&5
844 echo timestamp
> conftestfile
845 # Do `set' in a subshell so we don't clobber the current shell's
846 # arguments. Must try -L first in case configure is actually a
847 # symlink; some systems play weird games with the mod time of symlinks
848 # (eg FreeBSD returns the mod time of the symlink's containing
851 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
852 if test "$*" = "X"; then
854 set X
`ls -t $srcdir/configure conftestfile`
856 if test "$*" != "X $srcdir/configure conftestfile" \
857 && test "$*" != "X conftestfile $srcdir/configure"; then
859 # If neither matched, then we have a broken ls. This can happen
860 # if, for instance, CONFIG_SHELL is bash and it inherits a
861 # broken ls alias from the environment. This has actually
862 # happened. Such a system could not be considered "sane".
863 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
864 alias in your environment" 1>&2; exit 1; }
867 test "$2" = conftestfile
873 { echo "configure: error: newly created file is older than distributed files!
874 Check your system clock" 1>&2; exit 1; }
877 echo "$ac_t""yes" 1>&6
878 if test "$program_transform_name" = s
,x
,x
,; then
879 program_transform_name
=
881 # Double any \ or $. echo might interpret backslashes.
882 cat <<\EOF_SED
> conftestsed
883 s
,\\,\\\\,g
; s
,\$
,$$
,g
885 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
888 test "$program_prefix" != NONE
&&
889 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
890 # Use a double $ so make ignores it.
891 test "$program_suffix" != NONE
&&
892 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
894 # sed with no file args requires a program.
895 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
897 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
898 echo "configure:899: checking whether ${MAKE-make} sets \${MAKE}" >&5
899 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
900 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 cat > conftestmake
<<\EOF
905 @
echo 'ac_maketemp="${MAKE}"'
907 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
908 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
909 if test -n "$ac_maketemp"; then
910 eval ac_cv_prog_make_
${ac_make}_set
=yes
912 eval ac_cv_prog_make_
${ac_make}_set
=no
916 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
917 echo "$ac_t""yes" 1>&6
920 echo "$ac_t""no" 1>&6
921 SET_MAKE
="MAKE=${MAKE-make}"
927 VERSION
=${BFD_VERSION}
929 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
930 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
932 cat >> confdefs.h
<<EOF
933 #define PACKAGE "$PACKAGE"
936 cat >> confdefs.h
<<EOF
937 #define VERSION "$VERSION"
942 missing_dir
=`cd $ac_aux_dir && pwd`
943 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
944 echo "configure:945: checking for working aclocal" >&5
945 # Run test in a subshell; some versions of sh will print an error if
946 # an executable is not found, even if stderr is redirected.
947 # Redirect stdin to placate older versions of autoconf. Sigh.
948 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
950 echo "$ac_t""found" 1>&6
952 ACLOCAL
="$missing_dir/missing aclocal"
953 echo "$ac_t""missing" 1>&6
956 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
957 echo "configure:958: checking for working autoconf" >&5
958 # Run test in a subshell; some versions of sh will print an error if
959 # an executable is not found, even if stderr is redirected.
960 # Redirect stdin to placate older versions of autoconf. Sigh.
961 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
963 echo "$ac_t""found" 1>&6
965 AUTOCONF
="$missing_dir/missing autoconf"
966 echo "$ac_t""missing" 1>&6
969 echo $ac_n "checking for working automake""... $ac_c" 1>&6
970 echo "configure:971: checking for working automake" >&5
971 # Run test in a subshell; some versions of sh will print an error if
972 # an executable is not found, even if stderr is redirected.
973 # Redirect stdin to placate older versions of autoconf. Sigh.
974 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
976 echo "$ac_t""found" 1>&6
978 AUTOMAKE
="$missing_dir/missing automake"
979 echo "$ac_t""missing" 1>&6
982 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
983 echo "configure:984: checking for working autoheader" >&5
984 # Run test in a subshell; some versions of sh will print an error if
985 # an executable is not found, even if stderr is redirected.
986 # Redirect stdin to placate older versions of autoconf. Sigh.
987 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
988 AUTOHEADER
=autoheader
989 echo "$ac_t""found" 1>&6
991 AUTOHEADER
="$missing_dir/missing autoheader"
992 echo "$ac_t""missing" 1>&6
995 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
996 echo "configure:997: checking for working makeinfo" >&5
997 # Run test in a subshell; some versions of sh will print an error if
998 # an executable is not found, even if stderr is redirected.
999 # Redirect stdin to placate older versions of autoconf. Sigh.
1000 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1002 echo "$ac_t""found" 1>&6
1004 MAKEINFO
="$missing_dir/missing makeinfo"
1005 echo "$ac_t""missing" 1>&6
1010 # Check whether --enable-shared or --disable-shared was given.
1011 if test "${enable_shared+set}" = set; then
1012 enableval
="$enable_shared"
1013 p
=${PACKAGE-default}
1015 yes) enable_shared
=yes ;;
1016 no
) enable_shared
=no
;;
1019 # Look at the argument we got. We use all the common list separators.
1020 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1021 for pkg
in $enableval; do
1022 if test "X$pkg" = "X$p"; then
1033 # Check whether --enable-static or --disable-static was given.
1034 if test "${enable_static+set}" = set; then
1035 enableval
="$enable_static"
1036 p
=${PACKAGE-default}
1038 yes) enable_static
=yes ;;
1039 no
) enable_static
=no
;;
1042 # Look at the argument we got. We use all the common list separators.
1043 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1044 for pkg
in $enableval; do
1045 if test "X$pkg" = "X$p"; then
1056 # Check whether --enable-fast-install or --disable-fast-install was given.
1057 if test "${enable_fast_install+set}" = set; then
1058 enableval
="$enable_fast_install"
1059 p
=${PACKAGE-default}
1061 yes) enable_fast_install
=yes ;;
1062 no
) enable_fast_install
=no
;;
1064 enable_fast_install
=no
1065 # Look at the argument we got. We use all the common list separators.
1066 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1067 for pkg
in $enableval; do
1068 if test "X$pkg" = "X$p"; then
1069 enable_fast_install
=yes
1076 enable_fast_install
=yes
1079 # Extract the first word of "gcc", so it can be a program name with args.
1080 set dummy gcc
; ac_word
=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 if test -n "$CC"; then
1087 ac_cv_prog_CC
="$CC" # Let the user override the test.
1089 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1091 for ac_dir
in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir
=.
1093 if test -f $ac_dir/$ac_word; then
1102 if test -n "$CC"; then
1103 echo "$ac_t""$CC" 1>&6
1105 echo "$ac_t""no" 1>&6
1108 if test -z "$CC"; then
1109 # Extract the first word of "cc", so it can be a program name with args.
1110 set dummy cc
; ac_word
=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$CC"; then
1117 ac_cv_prog_CC
="$CC" # Let the user override the test.
1119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1122 for ac_dir
in $ac_dummy; do
1123 test -z "$ac_dir" && ac_dir
=.
1124 if test -f $ac_dir/$ac_word; then
1125 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1126 ac_prog_rejected
=yes
1134 if test $ac_prog_rejected = yes; then
1135 # We found a bogon in the path, so make sure we never use it.
1136 set dummy
$ac_cv_prog_CC
1138 if test $# -gt 0; then
1139 # We chose a different compiler from the bogus one.
1140 # However, it has the same basename, so the bogon will be chosen
1141 # first if we set CC to just the basename; use the full file name.
1143 set dummy
"$ac_dir/$ac_word" "$@"
1151 if test -n "$CC"; then
1152 echo "$ac_t""$CC" 1>&6
1154 echo "$ac_t""no" 1>&6
1157 if test -z "$CC"; then
1158 case "`uname -s`" in
1160 # Extract the first word of "cl", so it can be a program name with args.
1161 set dummy cl
; ac_word
=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 if test -n "$CC"; then
1168 ac_cv_prog_CC
="$CC" # Let the user override the test.
1170 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1172 for ac_dir
in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir
=.
1174 if test -f $ac_dir/$ac_word; then
1183 if test -n "$CC"; then
1184 echo "$ac_t""$CC" 1>&6
1186 echo "$ac_t""no" 1>&6
1191 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1194 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1199 ac_cpp
='$CPP $CPPFLAGS'
1200 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1201 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1202 cross_compiling
=$ac_cv_prog_cc_cross
1204 cat > conftest.
$ac_ext << EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1211 if { (eval echo configure
:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1212 ac_cv_prog_cc_works
=yes
1213 # If we can't run a trivial program, we are probably using a cross compiler.
1214 if (.
/conftest
; exit) 2>/dev
/null
; then
1215 ac_cv_prog_cc_cross
=no
1217 ac_cv_prog_cc_cross
=yes
1220 echo "configure: failed program was:" >&5
1221 cat conftest.
$ac_ext >&5
1222 ac_cv_prog_cc_works
=no
1226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1227 ac_cpp
='$CPP $CPPFLAGS'
1228 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1229 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1230 cross_compiling
=$ac_cv_prog_cc_cross
1232 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1233 if test $ac_cv_prog_cc_works = no
; then
1234 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1236 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1237 echo "configure:1238: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1238 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1239 cross_compiling
=$ac_cv_prog_cc_cross
1241 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether we are using GNU C" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 cat > conftest.c
<<EOF
1251 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1258 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1260 if test $ac_cv_prog_gcc = yes; then
1266 ac_test_CFLAGS
="${CFLAGS+set}"
1267 ac_save_CFLAGS
="$CFLAGS"
1269 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether ${CC-cc} accepts -g" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 echo 'void f(){}' > conftest.c
1275 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1284 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1285 if test "$ac_test_CFLAGS" = set; then
1286 CFLAGS
="$ac_save_CFLAGS"
1287 elif test $ac_cv_prog_cc_g = yes; then
1288 if test "$GCC" = yes; then
1294 if test "$GCC" = yes; then
1301 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1302 if test "${with_gnu_ld+set}" = set; then
1303 withval
="$with_gnu_ld"
1304 test "$withval" = no || with_gnu_ld
=yes
1310 if test "$GCC" = yes; then
1311 # Check if gcc -print-prog-name=ld gives a path.
1312 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1313 echo "configure:1314: checking for ld used by GCC" >&5
1316 # gcc leaves a trailing carriage return which upsets mingw
1317 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1319 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1322 # Accept absolute paths.
1323 [\\/]* |
[A-Za-z
]:[\\/]*)
1324 re_direlt
='/[^/][^/]*/\.\./'
1325 # Canonicalize the path of ld
1326 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1327 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1328 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1330 test -z "$LD" && LD
="$ac_prog"
1333 # If it fails, then pretend we aren't using GCC.
1337 # If it is relative, then search for the first ld in PATH.
1341 elif test "$with_gnu_ld" = yes; then
1342 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1343 echo "configure:1344: checking for GNU ld" >&5
1345 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1346 echo "configure:1347: checking for non-GNU ld" >&5
1348 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 if test -z "$LD"; then
1352 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1353 for ac_dir
in $PATH; do
1354 test -z "$ac_dir" && ac_dir
=.
1355 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1356 lt_cv_path_LD
="$ac_dir/$ac_prog"
1357 # Check to see if the program is GNU ld. I'd rather use --version,
1358 # but apparently some GNU ld's only accept -v.
1359 # Break only if it was the GNU/non-GNU ld that we prefer.
1360 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1361 test "$with_gnu_ld" != no
&& break
1363 test "$with_gnu_ld" != yes && break
1369 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1374 if test -n "$LD"; then
1375 echo "$ac_t""$LD" 1>&6
1377 echo "$ac_t""no" 1>&6
1379 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1380 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1381 echo "configure:1382: checking if the linker ($LD) is GNU ld" >&5
1382 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1386 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1387 lt_cv_prog_gnu_ld
=yes
1389 lt_cv_prog_gnu_ld
=no
1393 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1394 with_gnu_ld
=$lt_cv_prog_gnu_ld
1397 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1398 echo "configure:1399: checking for $LD option to reload object files" >&5
1399 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 lt_cv_ld_reload_flag
='-r'
1405 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1406 reload_flag
=$lt_cv_ld_reload_flag
1407 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1409 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1410 echo "configure:1411: checking for BSD-compatible nm" >&5
1411 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 if test -n "$NM"; then
1415 # Let the user override the test.
1418 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1419 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1420 test -z "$ac_dir" && ac_dir
=.
1421 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1422 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1423 # Check to see if the nm accepts a BSD-compat flag.
1424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1425 # nm: unknown option "B" ignored
1426 # Tru64's nm complains that /dev/null is an invalid object file
1427 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1428 lt_cv_path_NM
="$tmp_nm -B"
1430 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1431 lt_cv_path_NM
="$tmp_nm -p"
1434 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1435 continue # so that we can try to find one that supports BSD flags
1440 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1445 echo "$ac_t""$NM" 1>&6
1447 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1448 echo "configure:1449: checking whether ln -s works" >&5
1449 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1453 if ln -s X conftestdata
2>/dev
/null
1456 ac_cv_prog_LN_S
="ln -s"
1461 LN_S
="$ac_cv_prog_LN_S"
1462 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1463 echo "$ac_t""yes" 1>&6
1465 echo "$ac_t""no" 1>&6
1468 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1469 echo "configure:1470: checking how to recognise dependant libraries" >&5
1470 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1474 lt_cv_file_magic_test_file
=
1475 lt_cv_deplibs_check_method
='unknown'
1476 # Need to set the preceding variable on all platforms that support
1477 # interlibrary dependencies.
1478 # 'none' -- dependencies not supported.
1479 # `unknown' -- same as none, but documents that we really don't know.
1480 # 'pass_all' -- all dependencies passed with no checks.
1481 # 'test_compile' -- check by making test program.
1482 # 'file_magic [regex]' -- check by looking for files in library path
1483 # which responds to the $file_magic_cmd with a given egrep regex.
1484 # If you have `file' or equivalent on your system and you're not sure
1485 # whether `pass_all' will *always* work, you probably want this one.
1489 lt_cv_deplibs_check_method
=pass_all
1493 lt_cv_deplibs_check_method
=pass_all
1497 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1498 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1499 lt_cv_file_magic_test_file
=/shlib
/libc.so
1502 cygwin
* | mingw
* |pw32
*)
1503 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1504 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1507 darwin
* | rhapsody
*)
1508 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1509 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1511 rhapsody
* | darwin1.012
)
1512 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1515 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1521 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1524 # Not sure whether the presence of OpenBSD here was a mistake.
1525 # Let's accept both of them until this is cleared up.
1526 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1527 lt_cv_file_magic_cmd
=/usr
/bin
/file
1528 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1532 lt_cv_deplibs_check_method
=pass_all
1537 lt_cv_deplibs_check_method
=pass_all
1543 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1544 lt_cv_file_magic_cmd
=/usr
/bin
/file
1545 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1548 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1549 lt_cv_file_magic_cmd
=/usr
/bin
/file
1550 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1558 # this will be overridden with pass_all, but let us keep it just in case
1559 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1563 *-32|
*"-32 ") libmagic
=32-bit;;
1564 *-n32|
*"-n32 ") libmagic
=N32
;;
1565 *-64|
*"-64 ") libmagic
=64-bit;;
1566 *) libmagic
=never-match
;;
1568 # this will be overridden with pass_all, but let us keep it just in case
1569 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1572 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1573 lt_cv_deplibs_check_method
=pass_all
1576 # This must be Linux ELF.
1579 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1580 lt_cv_deplibs_check_method
=pass_all
;;
1582 # glibc up to 2.1.1 does not perform some relocations on ARM
1583 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1585 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1589 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1590 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1592 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1597 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1598 lt_cv_file_magic_cmd
=/usr
/bin
/file
1599 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1602 osf3
* | osf4
* | osf5
*)
1603 # this will be overridden with pass_all, but let us keep it just in case
1604 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1605 lt_cv_file_magic_test_file
=/shlib
/libc.so
1606 lt_cv_deplibs_check_method
=pass_all
1610 lt_cv_deplibs_check_method
=pass_all
1614 lt_cv_deplibs_check_method
=pass_all
1615 lt_cv_file_magic_test_file
=/lib
/libc.so
1618 sysv5uw
[78]* | sysv4
*uw2
*)
1619 lt_cv_deplibs_check_method
=pass_all
1622 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1623 case $host_vendor in
1625 lt_cv_deplibs_check_method
=pass_all
1628 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]'
1629 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1637 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1638 file_magic_cmd
=$lt_cv_file_magic_cmd
1639 deplibs_check_method
=$lt_cv_deplibs_check_method
1641 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1642 echo "configure:1643: checking for object suffix" >&5
1643 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1647 echo 'int i = 1;' > conftest.
$ac_ext
1648 if { (eval echo configure
:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1649 for ac_file
in conftest.
*; do
1652 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1656 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1661 echo "$ac_t""$ac_cv_objext" 1>&6
1662 OBJEXT
=$ac_cv_objext
1663 ac_objext
=$ac_cv_objext
1667 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1668 echo "configure:1669: checking for executable suffix" >&5
1669 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1672 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1676 echo 'int main () { return 0; }' > conftest.
$ac_ext
1678 if { (eval echo configure
:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1679 for file in conftest.
*; do
1681 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1682 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1686 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1689 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1694 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1695 echo "$ac_t""${ac_cv_exeext}" 1>&6
1698 if test $host != $build; then
1699 ac_tool_prefix
=${host_alias}-
1704 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1706 # Only perform the check for file, if the check method requires it
1707 case $deplibs_check_method in
1709 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1710 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1711 echo "configure:1712: checking for ${ac_tool_prefix}file" >&5
1712 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1717 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1720 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1723 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1724 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1725 ac_dummy
="/usr/bin:$PATH"
1726 for ac_dir
in $ac_dummy; do
1727 test -z "$ac_dir" && ac_dir
=.
1728 if test -f $ac_dir/${ac_tool_prefix}file; then
1729 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1730 if test -n "$file_magic_test_file"; then
1731 case $deplibs_check_method in
1733 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1734 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1735 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1736 egrep "$file_magic_regex" > /dev
/null
; then
1741 *** Warning: the command libtool uses to detect shared libraries,
1742 *** $file_magic_cmd, produces output that libtool cannot recognize.
1743 *** The result is that libtool may fail to recognize shared libraries
1744 *** as such. This will affect the creation of libtool libraries that
1745 *** depend on shared libraries, but programs linked with such libtool
1746 *** libraries will work regardless of this problem. Nevertheless, you
1747 *** may want to report the problem to your system manager and/or to
1748 *** bug-libtool@gnu.org
1758 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1763 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1764 if test -n "$MAGIC_CMD"; then
1765 echo "$ac_t""$MAGIC_CMD" 1>&6
1767 echo "$ac_t""no" 1>&6
1770 if test -z "$lt_cv_path_MAGIC_CMD"; then
1771 if test -n "$ac_tool_prefix"; then
1772 echo $ac_n "checking for file""... $ac_c" 1>&6
1773 echo "configure:1774: checking for file" >&5
1774 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1779 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1782 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1785 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1786 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1787 ac_dummy
="/usr/bin:$PATH"
1788 for ac_dir
in $ac_dummy; do
1789 test -z "$ac_dir" && ac_dir
=.
1790 if test -f $ac_dir/file; then
1791 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1792 if test -n "$file_magic_test_file"; then
1793 case $deplibs_check_method in
1795 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1796 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1797 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1798 egrep "$file_magic_regex" > /dev
/null
; then
1803 *** Warning: the command libtool uses to detect shared libraries,
1804 *** $file_magic_cmd, produces output that libtool cannot recognize.
1805 *** The result is that libtool may fail to recognize shared libraries
1806 *** as such. This will affect the creation of libtool libraries that
1807 *** depend on shared libraries, but programs linked with such libtool
1808 *** libraries will work regardless of this problem. Nevertheless, you
1809 *** may want to report the problem to your system manager and/or to
1810 *** bug-libtool@gnu.org
1820 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1825 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1826 if test -n "$MAGIC_CMD"; then
1827 echo "$ac_t""$MAGIC_CMD" 1>&6
1829 echo "$ac_t""no" 1>&6
1841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1842 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_word" >&5
1845 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 if test -n "$RANLIB"; then
1849 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1851 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1853 for ac_dir
in $ac_dummy; do
1854 test -z "$ac_dir" && ac_dir
=.
1855 if test -f $ac_dir/$ac_word; then
1856 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1863 RANLIB
="$ac_cv_prog_RANLIB"
1864 if test -n "$RANLIB"; then
1865 echo "$ac_t""$RANLIB" 1>&6
1867 echo "$ac_t""no" 1>&6
1871 if test -z "$ac_cv_prog_RANLIB"; then
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "ranlib", so it can be a program name with args.
1874 set dummy ranlib
; ac_word
=$2
1875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_word" >&5
1877 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 if test -n "$RANLIB"; then
1881 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1883 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1885 for ac_dir
in $ac_dummy; do
1886 test -z "$ac_dir" && ac_dir
=.
1887 if test -f $ac_dir/$ac_word; then
1888 ac_cv_prog_RANLIB
="ranlib"
1893 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1896 RANLIB
="$ac_cv_prog_RANLIB"
1897 if test -n "$RANLIB"; then
1898 echo "$ac_t""$RANLIB" 1>&6
1900 echo "$ac_t""no" 1>&6
1908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1909 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 if test -n "$STRIP"; then
1916 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1918 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1920 for ac_dir
in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir
=.
1922 if test -f $ac_dir/$ac_word; then
1923 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1930 STRIP
="$ac_cv_prog_STRIP"
1931 if test -n "$STRIP"; then
1932 echo "$ac_t""$STRIP" 1>&6
1934 echo "$ac_t""no" 1>&6
1938 if test -z "$ac_cv_prog_STRIP"; then
1939 if test -n "$ac_tool_prefix"; then
1940 # Extract the first word of "strip", so it can be a program name with args.
1941 set dummy strip
; ac_word
=$2
1942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1943 echo "configure:1944: checking for $ac_word" >&5
1944 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 if test -n "$STRIP"; then
1948 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1950 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1952 for ac_dir
in $ac_dummy; do
1953 test -z "$ac_dir" && ac_dir
=.
1954 if test -f $ac_dir/$ac_word; then
1955 ac_cv_prog_STRIP
="strip"
1960 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1963 STRIP
="$ac_cv_prog_STRIP"
1964 if test -n "$STRIP"; then
1965 echo "$ac_t""$STRIP" 1>&6
1967 echo "$ac_t""no" 1>&6
1976 # Check for any special flags to pass to ltconfig.
1977 libtool_flags
="--cache-file=$cache_file"
1978 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1979 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1980 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1981 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
1982 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1985 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1986 if test "${enable_libtool_lock+set}" = set; then
1987 enableval
="$enable_libtool_lock"
1991 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1992 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1994 # Check whether --with-pic or --without-pic was given.
1995 if test "${with_pic+set}" = set; then
2002 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2003 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2005 # Some flags need to be propagated to the compiler or linker for good
2009 # Find out which ABI we are using.
2010 echo '#line 2011 "configure"' > conftest.
$ac_ext
2011 if { (eval echo configure
:2012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2012 if test "$lt_cv_prog_gnu_ld" = yes; then
2013 case `/usr/bin/file conftest.$ac_objext` in
2015 LD
="${LD-ld} -melf32bsmip"
2018 LD
="${LD-ld} -melf32bmipn32"
2021 LD
="${LD-ld} -melf64bmip"
2025 case `/usr/bin/file conftest.$ac_objext` in
2042 # Find out which ABI we are using.
2043 echo 'int i;' > conftest.
$ac_ext
2044 if { (eval echo configure
:2045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2045 case "`/usr/bin/file conftest.o`" in
2058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2059 SAVE_CFLAGS
="$CFLAGS"
2060 CFLAGS
="$CFLAGS -belf"
2061 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2062 echo "configure:2063: checking whether the C compiler needs -belf" >&5
2063 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2069 ac_cpp
='$CPP $CPPFLAGS'
2070 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2071 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2072 cross_compiling
=$ac_cv_prog_cc_cross
2074 cat > conftest.
$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2082 if { (eval echo configure
:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2084 lt_cv_cc_needs_belf
=yes
2086 echo "configure: failed program was:" >&5
2087 cat conftest.
$ac_ext >&5
2089 lt_cv_cc_needs_belf
=no
2093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2094 ac_cpp
='$CPP $CPPFLAGS'
2095 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2096 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2097 cross_compiling
=$ac_cv_prog_cc_cross
2101 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2102 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2103 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2104 CFLAGS
="$SAVE_CFLAGS"
2112 # Save cache, so that ltconfig can load it
2113 cat > confcache
<<\EOF
2114 # This file is a shell script that caches the results of configure
2115 # tests run on this system so they can be shared between configure
2116 # scripts and configure runs. It is not useful on other systems.
2117 # If it contains results you don't want to keep, you may remove or edit it.
2119 # By default, configure uses ./config.cache as the cache file,
2120 # creating it if it does not exist already. You can give configure
2121 # the --cache-file=FILE option to use a different cache file; that is
2122 # what configure does when it calls configure scripts in
2123 # subdirectories, so they share the cache.
2124 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2125 # config.status only pays attention to the cache file if you give it the
2126 # --recheck option to rerun configure.
2129 # The following way of writing the cache mishandles newlines in values,
2130 # but we know of no workaround that is simple, portable, and efficient.
2131 # So, don't put newlines in cache variables' values.
2132 # Ultrix sh set writes to stderr and can't be redirected directly,
2133 # and sets the high bit in the cache file unless we assign to the vars.
2135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2137 # `set' does not quote correctly, so add quotes (double-quote substitution
2138 # turns \\\\ into \\, and sed turns \\ into \).
2140 -e "s/'/'\\\\''/g" \
2141 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2144 # `set' quotes correctly as required by POSIX, so do not add quotes.
2145 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2148 if cmp -s $cache_file confcache
; then
2151 if test -w $cache_file; then
2152 echo "updating cache $cache_file"
2153 cat confcache
> $cache_file
2155 echo "not updating unwritable cache $cache_file"
2161 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2162 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2163 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2164 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2165 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2166 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2167 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2168 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2169 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2170 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2172 # Reload cache, that may have been modified by ltconfig
2173 if test -r "$cache_file"; then
2174 echo "loading cache $cache_file"
2177 echo "creating cache $cache_file"
2182 # This can be used to rebuild libtool when needed
2183 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2185 # Always use our own libtool.
2186 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2188 # Redirect the config.log output again, so that the ltconfig log is not
2189 # clobbered by the next message.
2190 exec 5>>.
/config.log
2198 # Check whether --enable-targets or --disable-targets was given.
2199 if test "${enable_targets+set}" = set; then
2200 enableval
="$enable_targets"
2201 case "${enableval}" in
2202 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2204 no
) enable_targets
= ;;
2205 *) enable_targets
=$enableval ;;
2208 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2209 if test "${enable_commonbfdlib+set}" = set; then
2210 enableval
="$enable_commonbfdlib"
2211 case "${enableval}" in
2212 yes) commonbfdlib
=true
;;
2213 no
) commonbfdlib
=false
;;
2214 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2218 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2219 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2220 if test "${enable_build_warnings+set}" = set; then
2221 enableval
="$enable_build_warnings"
2222 case "${enableval}" in
2224 no
) build_warnings
="-w";;
2225 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2226 build_warnings
="${build_warnings} ${t}";;
2227 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2228 build_warnings
="${t} ${build_warnings}";;
2229 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2231 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2232 echo "Setting warning flags = $build_warnings" 6>&1
2236 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2237 WARN_CFLAGS
="${build_warnings}"
2245 if test -z "$target" ; then
2246 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2248 if test -z "$host" ; then
2249 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2252 # Extract the first word of "gcc", so it can be a program name with args.
2253 set dummy gcc
; ac_word
=$2
2254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2255 echo "configure:2256: checking for $ac_word" >&5
2256 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC
="$CC" # Let the user override the test.
2262 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2264 for ac_dir
in $ac_dummy; do
2265 test -z "$ac_dir" && ac_dir
=.
2266 if test -f $ac_dir/$ac_word; then
2275 if test -n "$CC"; then
2276 echo "$ac_t""$CC" 1>&6
2278 echo "$ac_t""no" 1>&6
2281 if test -z "$CC"; then
2282 # Extract the first word of "cc", so it can be a program name with args.
2283 set dummy cc
; ac_word
=$2
2284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2285 echo "configure:2286: checking for $ac_word" >&5
2286 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC
="$CC" # Let the user override the test.
2292 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2295 for ac_dir
in $ac_dummy; do
2296 test -z "$ac_dir" && ac_dir
=.
2297 if test -f $ac_dir/$ac_word; then
2298 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2299 ac_prog_rejected
=yes
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy
$ac_cv_prog_CC
2311 if test $# -gt 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2316 set dummy
"$ac_dir/$ac_word" "$@"
2324 if test -n "$CC"; then
2325 echo "$ac_t""$CC" 1>&6
2327 echo "$ac_t""no" 1>&6
2330 if test -z "$CC"; then
2331 case "`uname -s`" in
2333 # Extract the first word of "cl", so it can be a program name with args.
2334 set dummy cl
; ac_word
=$2
2335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2336 echo "configure:2337: checking for $ac_word" >&5
2337 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC
="$CC" # Let the user override the test.
2343 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2345 for ac_dir
in $ac_dummy; do
2346 test -z "$ac_dir" && ac_dir
=.
2347 if test -f $ac_dir/$ac_word; then
2356 if test -n "$CC"; then
2357 echo "$ac_t""$CC" 1>&6
2359 echo "$ac_t""no" 1>&6
2364 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2367 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2368 echo "configure:2369: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2372 ac_cpp
='$CPP $CPPFLAGS'
2373 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2374 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2375 cross_compiling
=$ac_cv_prog_cc_cross
2377 cat > conftest.
$ac_ext << EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2384 if { (eval echo configure
:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2385 ac_cv_prog_cc_works
=yes
2386 # If we can't run a trivial program, we are probably using a cross compiler.
2387 if (.
/conftest
; exit) 2>/dev
/null
; then
2388 ac_cv_prog_cc_cross
=no
2390 ac_cv_prog_cc_cross
=yes
2393 echo "configure: failed program was:" >&5
2394 cat conftest.
$ac_ext >&5
2395 ac_cv_prog_cc_works
=no
2399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2400 ac_cpp
='$CPP $CPPFLAGS'
2401 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2402 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2403 cross_compiling
=$ac_cv_prog_cc_cross
2405 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2406 if test $ac_cv_prog_cc_works = no
; then
2407 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2409 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2411 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2412 cross_compiling
=$ac_cv_prog_cc_cross
2414 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2415 echo "configure:2416: checking whether we are using GNU C" >&5
2416 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 cat > conftest.c
<<EOF
2424 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2431 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2433 if test $ac_cv_prog_gcc = yes; then
2439 ac_test_CFLAGS
="${CFLAGS+set}"
2440 ac_save_CFLAGS
="$CFLAGS"
2442 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2443 echo "configure:2444: checking whether ${CC-cc} accepts -g" >&5
2444 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 echo 'void f(){}' > conftest.c
2448 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2457 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2458 if test "$ac_test_CFLAGS" = set; then
2459 CFLAGS
="$ac_save_CFLAGS"
2460 elif test $ac_cv_prog_cc_g = yes; then
2461 if test "$GCC" = yes; then
2467 if test "$GCC" = yes; then
2475 for ac_prog
in 'bison -y' byacc
2477 # Extract the first word of "$ac_prog", so it can be a program name with args.
2478 set dummy
$ac_prog; ac_word
=$2
2479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_word" >&5
2481 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 if test -n "$YACC"; then
2485 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2487 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2489 for ac_dir
in $ac_dummy; do
2490 test -z "$ac_dir" && ac_dir
=.
2491 if test -f $ac_dir/$ac_word; then
2492 ac_cv_prog_YACC
="$ac_prog"
2499 YACC
="$ac_cv_prog_YACC"
2500 if test -n "$YACC"; then
2501 echo "$ac_t""$YACC" 1>&6
2503 echo "$ac_t""no" 1>&6
2506 test -n "$YACC" && break
2508 test -n "$YACC" || YACC
="yacc"
2510 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2511 echo "configure:2512: checking how to run the C preprocessor" >&5
2512 # On Suns, sometimes $CPP names a directory.
2513 if test -n "$CPP" && test -d "$CPP"; then
2516 if test -z "$CPP"; then
2517 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 # This must be in double quotes, not single quotes, because CPP may get
2521 # substituted into the Makefile and "${CC-cc}" will confuse make.
2523 # On the NeXT, cc -E runs the code through the compiler's parser,
2524 # not just through cpp.
2525 cat > conftest.
$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2531 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2532 { (eval echo configure
:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2533 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2534 if test -z "$ac_err"; then
2538 echo "configure: failed program was:" >&5
2539 cat conftest.
$ac_ext >&5
2541 CPP
="${CC-cc} -E -traditional-cpp"
2542 cat > conftest.
$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2548 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2549 { (eval echo configure
:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2550 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2551 if test -z "$ac_err"; then
2555 echo "configure: failed program was:" >&5
2556 cat conftest.
$ac_ext >&5
2558 CPP
="${CC-cc} -nologo -E"
2559 cat > conftest.
$ac_ext <<EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2565 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure
:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2572 echo "configure: failed program was:" >&5
2573 cat conftest.
$ac_ext >&5
2582 ac_cv_prog_CPP
="$CPP"
2584 CPP
="$ac_cv_prog_CPP"
2586 ac_cv_prog_CPP
="$CPP"
2588 echo "$ac_t""$CPP" 1>&6
2590 missing_dir
=`cd $ac_aux_dir && pwd`
2591 for ac_prog
in flex
lex
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy
$ac_prog; ac_word
=$2
2595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2596 echo "configure:2597: checking for $ac_word" >&5
2597 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 if test -n "$LEX"; then
2601 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2603 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2605 for ac_dir
in $ac_dummy; do
2606 test -z "$ac_dir" && ac_dir
=.
2607 if test -f $ac_dir/$ac_word; then
2608 ac_cv_prog_LEX
="$ac_prog"
2615 LEX
="$ac_cv_prog_LEX"
2616 if test -n "$LEX"; then
2617 echo "$ac_t""$LEX" 1>&6
2619 echo "$ac_t""no" 1>&6
2622 test -n "$LEX" && break
2624 test -n "$LEX" || LEX
="$missing_dir/missing flex"
2626 # Extract the first word of "flex", so it can be a program name with args.
2627 set dummy flex
; ac_word
=$2
2628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_word" >&5
2630 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 if test -n "$LEX"; then
2634 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2636 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2638 for ac_dir
in $ac_dummy; do
2639 test -z "$ac_dir" && ac_dir
=.
2640 if test -f $ac_dir/$ac_word; then
2641 ac_cv_prog_LEX
="flex"
2646 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2649 LEX
="$ac_cv_prog_LEX"
2650 if test -n "$LEX"; then
2651 echo "$ac_t""$LEX" 1>&6
2653 echo "$ac_t""no" 1>&6
2656 if test -z "$LEXLIB"
2662 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2663 echo "configure:2664: checking for yywrap in -l$ac_lib" >&5
2664 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 ac_save_LIBS
="$LIBS"
2669 LIBS
="-l$ac_lib $LIBS"
2670 cat > conftest.
$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2673 /* Override any gcc2 internal prototype to avoid an error. */
2674 /* We use char because int might match the return type of a gcc2
2675 builtin and then its argument prototype would still apply. */
2682 if { (eval echo configure
:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2684 eval "ac_cv_lib_$ac_lib_var=yes"
2686 echo "configure: failed program was:" >&5
2687 cat conftest.
$ac_ext >&5
2689 eval "ac_cv_lib_$ac_lib_var=no"
2692 LIBS
="$ac_save_LIBS"
2695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2699 echo "$ac_t""no" 1>&6
2704 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2705 echo "configure:2706: checking lex output file root" >&5
2706 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 # The minimal lex program is just a single line: %%. But some broken lexes
2710 # (Solaris, I think it was) want two %% lines, so accommodate them.
2713 if test -f lex.yy.c
; then
2714 ac_cv_prog_lex_root
=lex.yy
2715 elif test -f lexyy.c
; then
2716 ac_cv_prog_lex_root
=lexyy
2718 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2722 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2723 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2725 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2726 echo "configure:2727: checking whether yytext is a pointer" >&5
2727 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 # POSIX says lex can declare yytext either as a pointer or an array; the
2731 # default is implementation-dependent. Figure out which it is, since
2732 # not all implementations provide the %pointer and %array declarations.
2733 ac_cv_prog_lex_yytext_pointer
=no
2734 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2735 ac_save_LIBS
="$LIBS"
2736 LIBS
="$LIBS $LEXLIB"
2737 cat > conftest.
$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 `cat $LEX_OUTPUT_ROOT.c`
2745 if { (eval echo configure
:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2747 ac_cv_prog_lex_yytext_pointer
=yes
2749 echo "configure: failed program was:" >&5
2750 cat conftest.
$ac_ext >&5
2753 LIBS
="$ac_save_LIBS"
2754 rm -f "${LEX_OUTPUT_ROOT}.c"
2758 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2759 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2760 cat >> confdefs.h
<<\EOF
2761 #define YYTEXT_POINTER 1
2767 ALL_LINGUAS
="fr tr ja es sv da zh_CN ru"
2768 # Extract the first word of "ranlib", so it can be a program name with args.
2769 set dummy ranlib
; ac_word
=$2
2770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_word" >&5
2772 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 if test -n "$RANLIB"; then
2776 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2778 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2780 for ac_dir
in $ac_dummy; do
2781 test -z "$ac_dir" && ac_dir
=.
2782 if test -f $ac_dir/$ac_word; then
2783 ac_cv_prog_RANLIB
="ranlib"
2788 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2791 RANLIB
="$ac_cv_prog_RANLIB"
2792 if test -n "$RANLIB"; then
2793 echo "$ac_t""$RANLIB" 1>&6
2795 echo "$ac_t""no" 1>&6
2798 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2799 echo "configure:2800: checking for ANSI C header files" >&5
2800 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 cat > conftest.
$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2811 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2812 { (eval echo configure
:2813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2813 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2814 if test -z "$ac_err"; then
2816 ac_cv_header_stdc
=yes
2819 echo "configure: failed program was:" >&5
2820 cat conftest.
$ac_ext >&5
2822 ac_cv_header_stdc
=no
2826 if test $ac_cv_header_stdc = yes; then
2827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2828 cat > conftest.
$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2834 egrep "memchr" >/dev
/null
2>&1; then
2838 ac_cv_header_stdc
=no
2844 if test $ac_cv_header_stdc = yes; then
2845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2846 cat > conftest.
$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2852 egrep "free" >/dev
/null
2>&1; then
2856 ac_cv_header_stdc
=no
2862 if test $ac_cv_header_stdc = yes; then
2863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2864 if test "$cross_compiling" = yes; then
2867 cat > conftest.
$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2871 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2872 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2874 int main () { int i; for (i = 0; i < 256; i++)
2875 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2879 if { (eval echo configure
:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2883 echo "configure: failed program was:" >&5
2884 cat conftest.
$ac_ext >&5
2886 ac_cv_header_stdc
=no
2894 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2895 if test $ac_cv_header_stdc = yes; then
2896 cat >> confdefs.h
<<\EOF
2897 #define STDC_HEADERS 1
2902 echo $ac_n "checking for working const""... $ac_c" 1>&6
2903 echo "configure:2904: checking for working const" >&5
2904 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 cat > conftest.
$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2913 /* Ultrix mips cc rejects this. */
2914 typedef int charset[2]; const charset x;
2915 /* SunOS 4.1.1 cc rejects this. */
2916 char const *const *ccp;
2918 /* NEC SVR4.0.2 mips cc rejects this. */
2919 struct point {int x, y;};
2920 static struct point const zero = {0,0};
2921 /* AIX XL C 1.02.0.0 rejects this.
2922 It does not let you subtract one const X* pointer from another in an arm
2923 of an if-expression whose if-part is not a constant expression */
2924 const char *g = "string";
2925 ccp = &g + (g ? g-g : 0);
2926 /* HPUX 7.0 cc rejects these. */
2929 ccp = (char const *const *) p;
2930 { /* SCO 3.2v4 cc rejects this. */
2932 char const *s = 0 ? (char *) 0 : (char const *) 0;
2936 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2938 const int *foo = &x[0];
2941 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2942 typedef const int *iptr;
2946 { /* AIX XL C 1.02.0.0 rejects this saying
2947 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2948 struct s { int j; const int *ap[3]; };
2949 struct s *b; b->j = 5;
2951 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2957 if { (eval echo configure
:2958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2961 echo "configure: failed program was:" >&5
2962 cat conftest.
$ac_ext >&5
2969 echo "$ac_t""$ac_cv_c_const" 1>&6
2970 if test $ac_cv_c_const = no
; then
2971 cat >> confdefs.h
<<\EOF
2977 echo $ac_n "checking for inline""... $ac_c" 1>&6
2978 echo "configure:2979: checking for inline" >&5
2979 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2983 for ac_kw
in inline __inline__ __inline
; do
2984 cat > conftest.
$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2992 if { (eval echo configure
:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2994 ac_cv_c_inline
=$ac_kw; break
2996 echo "configure: failed program was:" >&5
2997 cat conftest.
$ac_ext >&5
3004 echo "$ac_t""$ac_cv_c_inline" 1>&6
3005 case "$ac_cv_c_inline" in
3007 no
) cat >> confdefs.h
<<\EOF
3011 *) cat >> confdefs.h
<<EOF
3012 #define inline $ac_cv_c_inline
3017 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3018 echo "configure:3019: checking for off_t" >&5
3019 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 cat > conftest.
$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025 #include <sys/types.h>
3031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3032 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3034 ac_cv_type_off_t
=yes
3042 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3043 if test $ac_cv_type_off_t = no
; then
3044 cat >> confdefs.h
<<\EOF
3050 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3051 echo "configure:3052: checking for size_t" >&5
3052 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 cat > conftest.
$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 #include <sys/types.h>
3064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3065 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3067 ac_cv_type_size_t
=yes
3070 ac_cv_type_size_t
=no
3075 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3076 if test $ac_cv_type_size_t = no
; then
3077 cat >> confdefs.h
<<\EOF
3078 #define size_t unsigned
3083 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3084 # for constant arguments. Useless!
3085 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3086 echo "configure:3087: checking for working alloca.h" >&5
3087 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 cat > conftest.
$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3095 char *p = alloca(2 * sizeof(int));
3098 if { (eval echo configure
:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3100 ac_cv_header_alloca_h
=yes
3102 echo "configure: failed program was:" >&5
3103 cat conftest.
$ac_ext >&5
3105 ac_cv_header_alloca_h
=no
3110 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3111 if test $ac_cv_header_alloca_h = yes; then
3112 cat >> confdefs.h
<<\EOF
3113 #define HAVE_ALLOCA_H 1
3118 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3119 echo "configure:3120: checking for alloca" >&5
3120 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.
$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3128 # define alloca __builtin_alloca
3131 # include <malloc.h>
3132 # define alloca _alloca
3135 # include <alloca.h>
3140 # ifndef alloca /* predefined by HP cc +Olibcalls */
3149 char *p = (char *) alloca(1);
3152 if { (eval echo configure
:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3154 ac_cv_func_alloca_works
=yes
3156 echo "configure: failed program was:" >&5
3157 cat conftest.
$ac_ext >&5
3159 ac_cv_func_alloca_works
=no
3164 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3165 if test $ac_cv_func_alloca_works = yes; then
3166 cat >> confdefs.h
<<\EOF
3167 #define HAVE_ALLOCA 1
3172 if test $ac_cv_func_alloca_works = no
; then
3173 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3174 # that cause trouble. Some versions do not even contain alloca or
3175 # contain a buggy version. If you still want to use their alloca,
3176 # use ar to extract alloca.o from them instead of compiling alloca.c.
3177 ALLOCA
=alloca.
${ac_objext}
3178 cat >> confdefs.h
<<\EOF
3183 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3184 echo "configure:3185: checking whether alloca needs Cray hooks" >&5
3185 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 cat > conftest.
$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 #if defined(CRAY) && ! defined(CRAY2)
3198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3199 egrep "webecray" >/dev
/null
2>&1; then
3210 echo "$ac_t""$ac_cv_os_cray" 1>&6
3211 if test $ac_cv_os_cray = yes; then
3212 for ac_func
in _getb67 GETB67 getb67
; do
3213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3214 echo "configure:3215: checking for $ac_func" >&5
3215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 cat > conftest.
$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 /* System header to define __stub macros and hopefully few prototypes,
3222 which can conflict with char $ac_func(); below. */
3224 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3231 /* The GNU C library defines this for functions which it implements
3232 to always fail with ENOSYS. Some functions are actually named
3233 something starting with __ and the normal name is an alias. */
3234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3242 if { (eval echo configure
:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3244 eval "ac_cv_func_$ac_func=yes"
3246 echo "configure: failed program was:" >&5
3247 cat conftest.
$ac_ext >&5
3249 eval "ac_cv_func_$ac_func=no"
3254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 cat >> confdefs.h
<<EOF
3257 #define CRAY_STACKSEG_END $ac_func
3262 echo "$ac_t""no" 1>&6
3268 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3269 echo "configure:3270: checking stack direction for C alloca" >&5
3270 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 if test "$cross_compiling" = yes; then
3274 ac_cv_c_stack_direction
=0
3276 cat > conftest.
$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 find_stack_direction ()
3281 static char *addr = 0;
3286 return find_stack_direction ();
3289 return (&dummy > addr) ? 1 : -1;
3293 exit (find_stack_direction() < 0);
3296 if { (eval echo configure
:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3298 ac_cv_c_stack_direction
=1
3300 echo "configure: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3303 ac_cv_c_stack_direction
=-1
3310 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3311 cat >> confdefs.h
<<EOF
3312 #define STACK_DIRECTION $ac_cv_c_stack_direction
3317 for ac_hdr
in unistd.h
3319 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3321 echo "configure:3322: checking for $ac_hdr" >&5
3322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.
$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3330 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3331 { (eval echo configure
:3332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3332 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3333 if test -z "$ac_err"; then
3335 eval "ac_cv_header_$ac_safe=yes"
3338 echo "configure: failed program was:" >&5
3339 cat conftest.
$ac_ext >&5
3341 eval "ac_cv_header_$ac_safe=no"
3345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3348 cat >> confdefs.h
<<EOF
3349 #define $ac_tr_hdr 1
3353 echo "$ac_t""no" 1>&6
3357 for ac_func
in getpagesize
3359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_func" >&5
3361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* System header to define __stub macros and hopefully few prototypes,
3368 which can conflict with char $ac_func(); below. */
3370 /* Override any gcc2 internal prototype to avoid an error. */
3371 /* We use char because int might match the return type of a gcc2
3372 builtin and then its argument prototype would still apply. */
3377 /* The GNU C library defines this for functions which it implements
3378 to always fail with ENOSYS. Some functions are actually named
3379 something starting with __ and the normal name is an alias. */
3380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3388 if { (eval echo configure
:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3390 eval "ac_cv_func_$ac_func=yes"
3392 echo "configure: failed program was:" >&5
3393 cat conftest.
$ac_ext >&5
3395 eval "ac_cv_func_$ac_func=no"
3400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3403 cat >> confdefs.h
<<EOF
3404 #define $ac_tr_func 1
3408 echo "$ac_t""no" 1>&6
3412 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3413 echo "configure:3414: checking for working mmap" >&5
3414 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 if test "$cross_compiling" = yes; then
3418 ac_cv_func_mmap_fixed_mapped
=no
3420 cat > conftest.
$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3424 /* Thanks to Mike Haertel and Jim Avera for this test.
3425 Here is a matrix of mmap possibilities:
3426 mmap private not fixed
3427 mmap private fixed at somewhere currently unmapped
3428 mmap private fixed at somewhere already mapped
3429 mmap shared not fixed
3430 mmap shared fixed at somewhere currently unmapped
3431 mmap shared fixed at somewhere already mapped
3432 For private mappings, we should verify that changes cannot be read()
3433 back from the file, nor mmap's back from the file at a different
3434 address. (There have been systems where private was not correctly
3435 implemented like the infamous i386 svr4.0, and systems where the
3436 VM page cache was not coherent with the filesystem buffer cache
3437 like early versions of FreeBSD and possibly contemporary NetBSD.)
3438 For shared mappings, we should conversely verify that changes get
3439 propogated back to all the places they're supposed to be.
3441 Grep wants private fixed already mapped.
3442 The main things grep needs to know about mmap are:
3443 * does it exist and is it safe to write into the mmap'd area
3444 * how to use it (BSD variants) */
3445 #include <sys/types.h>
3447 #include <sys/mman.h>
3449 /* This mess was copied from the GNU getpagesize.h. */
3450 #ifndef HAVE_GETPAGESIZE
3451 # ifdef HAVE_UNISTD_H
3452 # include <unistd.h>
3455 /* Assume that all systems that can run configure have sys/param.h. */
3456 # ifndef HAVE_SYS_PARAM_H
3457 # define HAVE_SYS_PARAM_H 1
3460 # ifdef _SC_PAGESIZE
3461 # define getpagesize() sysconf(_SC_PAGESIZE)
3462 # else /* no _SC_PAGESIZE */
3463 # ifdef HAVE_SYS_PARAM_H
3464 # include <sys/param.h>
3465 # ifdef EXEC_PAGESIZE
3466 # define getpagesize() EXEC_PAGESIZE
3467 # else /* no EXEC_PAGESIZE */
3469 # define getpagesize() NBPG * CLSIZE
3472 # endif /* no CLSIZE */
3473 # else /* no NBPG */
3475 # define getpagesize() NBPC
3476 # else /* no NBPC */
3478 # define getpagesize() PAGESIZE
3479 # endif /* PAGESIZE */
3480 # endif /* no NBPC */
3481 # endif /* no NBPG */
3482 # endif /* no EXEC_PAGESIZE */
3483 # else /* no HAVE_SYS_PARAM_H */
3484 # define getpagesize() 8192 /* punt totally */
3485 # endif /* no HAVE_SYS_PARAM_H */
3486 # endif /* no _SC_PAGESIZE */
3488 #endif /* no HAVE_GETPAGESIZE */
3491 extern "C" { void *malloc(unsigned); }
3499 char *data, *data2, *data3;
3503 pagesize = getpagesize();
3506 * First, make a file with some known garbage in it.
3508 data = malloc(pagesize);
3511 for (i = 0; i < pagesize; ++i)
3512 *(data + i) = rand();
3514 fd = creat("conftestmmap", 0600);
3517 if (write(fd, data, pagesize) != pagesize)
3522 * Next, try to mmap the file at a fixed address which
3523 * already has something else allocated at it. If we can,
3524 * also make sure that we see the same garbage.
3526 fd = open("conftestmmap", O_RDWR);
3529 data2 = malloc(2 * pagesize);
3532 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3533 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3534 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3536 for (i = 0; i < pagesize; ++i)
3537 if (*(data + i) != *(data2 + i))
3541 * Finally, make sure that changes to the mapped area
3542 * do not percolate back to the file as seen by read().
3543 * (This is a bug on some variants of i386 svr4.0.)
3545 for (i = 0; i < pagesize; ++i)
3546 *(data2 + i) = *(data2 + i) + 1;
3547 data3 = malloc(pagesize);
3550 if (read(fd, data3, pagesize) != pagesize)
3552 for (i = 0; i < pagesize; ++i)
3553 if (*(data + i) != *(data3 + i))
3556 unlink("conftestmmap");
3561 if { (eval echo configure
:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3563 ac_cv_func_mmap_fixed_mapped
=yes
3565 echo "configure: failed program was:" >&5
3566 cat conftest.
$ac_ext >&5
3568 ac_cv_func_mmap_fixed_mapped
=no
3575 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3576 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3577 cat >> confdefs.h
<<\EOF
3584 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3585 unistd.h values.h sys
/param.h
3587 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3589 echo "configure:3590: checking for $ac_hdr" >&5
3590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.
$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3598 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3599 { (eval echo configure
:3600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3600 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3601 if test -z "$ac_err"; then
3603 eval "ac_cv_header_$ac_safe=yes"
3606 echo "configure: failed program was:" >&5
3607 cat conftest.
$ac_ext >&5
3609 eval "ac_cv_header_$ac_safe=no"
3613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3614 echo "$ac_t""yes" 1>&6
3615 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3616 cat >> confdefs.h
<<EOF
3617 #define $ac_tr_hdr 1
3621 echo "$ac_t""no" 1>&6
3625 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3626 __argz_count __argz_stringify __argz_next
3628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3629 echo "configure:3630: checking for $ac_func" >&5
3630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 cat > conftest.
$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* System header to define __stub macros and hopefully few prototypes,
3637 which can conflict with char $ac_func(); below. */
3639 /* Override any gcc2 internal prototype to avoid an error. */
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3646 /* The GNU C library defines this for functions which it implements
3647 to always fail with ENOSYS. Some functions are actually named
3648 something starting with __ and the normal name is an alias. */
3649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3657 if { (eval echo configure
:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3659 eval "ac_cv_func_$ac_func=yes"
3661 echo "configure: failed program was:" >&5
3662 cat conftest.
$ac_ext >&5
3664 eval "ac_cv_func_$ac_func=no"
3669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3670 echo "$ac_t""yes" 1>&6
3671 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3672 cat >> confdefs.h
<<EOF
3673 #define $ac_tr_func 1
3677 echo "$ac_t""no" 1>&6
3682 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3683 for ac_func
in stpcpy
3685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3686 echo "configure:3687: checking for $ac_func" >&5
3687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 cat > conftest.
$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char $ac_func(); below. */
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3714 if { (eval echo configure
:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3716 eval "ac_cv_func_$ac_func=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.
$ac_ext >&5
3721 eval "ac_cv_func_$ac_func=no"
3726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3728 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3729 cat >> confdefs.h
<<EOF
3730 #define $ac_tr_func 1
3734 echo "$ac_t""no" 1>&6
3739 if test "${ac_cv_func_stpcpy}" = "yes"; then
3740 cat >> confdefs.h
<<\EOF
3741 #define HAVE_STPCPY 1
3746 if test $ac_cv_header_locale_h = yes; then
3747 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3748 echo "configure:3749: checking for LC_MESSAGES" >&5
3749 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 cat > conftest.
$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3760 if { (eval echo configure
:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3762 am_cv_val_LC_MESSAGES
=yes
3764 echo "configure: failed program was:" >&5
3765 cat conftest.
$ac_ext >&5
3767 am_cv_val_LC_MESSAGES
=no
3772 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3773 if test $am_cv_val_LC_MESSAGES = yes; then
3774 cat >> confdefs.h
<<\EOF
3775 #define HAVE_LC_MESSAGES 1
3780 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3781 echo "configure:3782: checking whether NLS is requested" >&5
3782 # Check whether --enable-nls or --disable-nls was given.
3783 if test "${enable_nls+set}" = set; then
3784 enableval
="$enable_nls"
3790 echo "$ac_t""$USE_NLS" 1>&6
3793 USE_INCLUDED_LIBINTL
=no
3795 if test "$USE_NLS" = "yes"; then
3796 cat >> confdefs.h
<<\EOF
3797 #define ENABLE_NLS 1
3800 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3801 echo "configure:3802: checking whether included gettext is requested" >&5
3802 # Check whether --with-included-gettext or --without-included-gettext was given.
3803 if test "${with_included_gettext+set}" = set; then
3804 withval
="$with_included_gettext"
3805 nls_cv_force_use_gnu_gettext
=$withval
3807 nls_cv_force_use_gnu_gettext
=no
3810 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3812 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3813 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3815 nls_cv_header_libgt
=
3818 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3819 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3820 echo "configure:3821: checking for libintl.h" >&5
3821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 cat > conftest.
$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3827 #include <libintl.h>
3829 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3830 { (eval echo configure
:3831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3831 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3832 if test -z "$ac_err"; then
3834 eval "ac_cv_header_$ac_safe=yes"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.
$ac_ext >&5
3840 eval "ac_cv_header_$ac_safe=no"
3844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3847 echo "configure:3848: checking for gettext in libc" >&5
3848 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 cat > conftest.
$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 #include <libintl.h>
3856 return (int) gettext ("")
3859 if { (eval echo configure
:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3861 gt_cv_func_gettext_libc
=yes
3863 echo "configure: failed program was:" >&5
3864 cat conftest.
$ac_ext >&5
3866 gt_cv_func_gettext_libc
=no
3871 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3873 if test "$gt_cv_func_gettext_libc" != "yes"; then
3874 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3875 echo "configure:3876: checking for bindtextdomain in -lintl" >&5
3876 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 ac_save_LIBS
="$LIBS"
3882 cat > conftest.
$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3885 /* Override any gcc2 internal prototype to avoid an error. */
3886 /* We use char because int might match the return type of a gcc2
3887 builtin and then its argument prototype would still apply. */
3888 char bindtextdomain();
3894 if { (eval echo configure
:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3896 eval "ac_cv_lib_$ac_lib_var=yes"
3898 echo "configure: failed program was:" >&5
3899 cat conftest.
$ac_ext >&5
3901 eval "ac_cv_lib_$ac_lib_var=no"
3904 LIBS
="$ac_save_LIBS"
3907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3908 echo "$ac_t""yes" 1>&6
3909 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3910 echo "configure:3911: checking for gettext in libintl" >&5
3911 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.
$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3919 return (int) gettext ("")
3922 if { (eval echo configure
:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3924 gt_cv_func_gettext_libintl
=yes
3926 echo "configure: failed program was:" >&5
3927 cat conftest.
$ac_ext >&5
3929 gt_cv_func_gettext_libintl
=no
3934 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3936 echo "$ac_t""no" 1>&6
3941 if test "$gt_cv_func_gettext_libc" = "yes" \
3942 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3943 cat >> confdefs.h
<<\EOF
3944 #define HAVE_GETTEXT 1
3947 # Extract the first word of "msgfmt", so it can be a program name with args.
3948 set dummy msgfmt
; ac_word
=$2
3949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3950 echo "configure:3951: checking for $ac_word" >&5
3951 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3956 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3959 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3960 for ac_dir
in $PATH; do
3961 test -z "$ac_dir" && ac_dir
=.
3962 if test -f $ac_dir/$ac_word; then
3963 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3964 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3970 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3974 MSGFMT
="$ac_cv_path_MSGFMT"
3975 if test -n "$MSGFMT"; then
3976 echo "$ac_t""$MSGFMT" 1>&6
3978 echo "$ac_t""no" 1>&6
3980 if test "$MSGFMT" != "no"; then
3981 for ac_func
in dcgettext
3983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3984 echo "configure:3985: checking for $ac_func" >&5
3985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3988 cat > conftest.
$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3991 /* System header to define __stub macros and hopefully few prototypes,
3992 which can conflict with char $ac_func(); below. */
3994 /* Override any gcc2 internal prototype to avoid an error. */
3995 /* We use char because int might match the return type of a gcc2
3996 builtin and then its argument prototype would still apply. */
4001 /* The GNU C library defines this for functions which it implements
4002 to always fail with ENOSYS. Some functions are actually named
4003 something starting with __ and the normal name is an alias. */
4004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4012 if { (eval echo configure
:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4014 eval "ac_cv_func_$ac_func=yes"
4016 echo "configure: failed program was:" >&5
4017 cat conftest.
$ac_ext >&5
4019 eval "ac_cv_func_$ac_func=no"
4024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4026 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4027 cat >> confdefs.h
<<EOF
4028 #define $ac_tr_func 1
4032 echo "$ac_t""no" 1>&6
4036 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4037 set dummy gmsgfmt
; ac_word
=$2
4038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4039 echo "configure:4040: checking for $ac_word" >&5
4040 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4045 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4048 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4051 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4053 for ac_dir
in $ac_dummy; do
4054 test -z "$ac_dir" && ac_dir
=.
4055 if test -f $ac_dir/$ac_word; then
4056 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4061 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4065 GMSGFMT
="$ac_cv_path_GMSGFMT"
4066 if test -n "$GMSGFMT"; then
4067 echo "$ac_t""$GMSGFMT" 1>&6
4069 echo "$ac_t""no" 1>&6
4072 # Extract the first word of "xgettext", so it can be a program name with args.
4073 set dummy xgettext
; ac_word
=$2
4074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4075 echo "configure:4076: checking for $ac_word" >&5
4076 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4081 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4085 for ac_dir
in $PATH; do
4086 test -z "$ac_dir" && ac_dir
=.
4087 if test -f $ac_dir/$ac_word; then
4088 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4089 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4095 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4099 XGETTEXT
="$ac_cv_path_XGETTEXT"
4100 if test -n "$XGETTEXT"; then
4101 echo "$ac_t""$XGETTEXT" 1>&6
4103 echo "$ac_t""no" 1>&6
4106 cat > conftest.
$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4111 extern int _nl_msg_cat_cntr;
4112 return _nl_msg_cat_cntr
4115 if { (eval echo configure
:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4120 echo "configure: failed program was:" >&5
4121 cat conftest.
$ac_ext >&5
4132 echo "$ac_t""no" 1>&6
4137 if test "$CATOBJEXT" = "NONE"; then
4138 nls_cv_use_gnu_gettext
=yes
4142 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4143 INTLOBJS
="\$(GETTOBJS)"
4144 # Extract the first word of "msgfmt", so it can be a program name with args.
4145 set dummy msgfmt
; ac_word
=$2
4146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4147 echo "configure:4148: checking for $ac_word" >&5
4148 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4153 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4157 for ac_dir
in $PATH; do
4158 test -z "$ac_dir" && ac_dir
=.
4159 if test -f $ac_dir/$ac_word; then
4160 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4161 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4167 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4171 MSGFMT
="$ac_cv_path_MSGFMT"
4172 if test -n "$MSGFMT"; then
4173 echo "$ac_t""$MSGFMT" 1>&6
4175 echo "$ac_t""no" 1>&6
4178 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4179 set dummy gmsgfmt
; ac_word
=$2
4180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4181 echo "configure:4182: checking for $ac_word" >&5
4182 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4187 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4190 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4195 for ac_dir
in $ac_dummy; do
4196 test -z "$ac_dir" && ac_dir
=.
4197 if test -f $ac_dir/$ac_word; then
4198 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4203 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4207 GMSGFMT
="$ac_cv_path_GMSGFMT"
4208 if test -n "$GMSGFMT"; then
4209 echo "$ac_t""$GMSGFMT" 1>&6
4211 echo "$ac_t""no" 1>&6
4214 # Extract the first word of "xgettext", so it can be a program name with args.
4215 set dummy xgettext
; ac_word
=$2
4216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4217 echo "configure:4218: checking for $ac_word" >&5
4218 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4223 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4227 for ac_dir
in $PATH; do
4228 test -z "$ac_dir" && ac_dir
=.
4229 if test -f $ac_dir/$ac_word; then
4230 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4231 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4237 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4241 XGETTEXT
="$ac_cv_path_XGETTEXT"
4242 if test -n "$XGETTEXT"; then
4243 echo "$ac_t""$XGETTEXT" 1>&6
4245 echo "$ac_t""no" 1>&6
4249 USE_INCLUDED_LIBINTL
=yes
4253 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4255 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4256 nls_cv_header_intl
=libintl.h
4257 nls_cv_header_libgt
=libgettext.h
4260 if test "$XGETTEXT" != ":"; then
4261 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4264 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4269 # We need to process the po/ directory.
4273 nls_cv_header_intl
=libintl.h
4274 nls_cv_header_libgt
=libgettext.h
4277 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4278 # because some of the sources are only built for this goal.
4279 if test "$PACKAGE" = gettext; then
4281 USE_INCLUDED_LIBINTL
=yes
4284 for lang
in $ALL_LINGUAS; do
4285 GMOFILES
="$GMOFILES $lang.gmo"
4286 POFILES
="$POFILES $lang.po"
4302 if test "x$CATOBJEXT" != "x"; then
4303 if test "x$ALL_LINGUAS" = "x"; then
4306 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4307 echo "configure:4308: checking for catalogs to be installed" >&5
4309 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4310 case "$ALL_LINGUAS" in
4311 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4314 LINGUAS
=$NEW_LINGUAS
4315 echo "$ac_t""$LINGUAS" 1>&6
4318 if test -n "$LINGUAS"; then
4319 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4323 if test $ac_cv_header_locale_h = yes; then
4324 INCLUDE_LOCALE_H
="#include <locale.h>"
4327 /* The system does not provide the header <locale.h>. Take care yourself. */"
4331 if test -f $srcdir/po2tbl.
sed.
in; then
4332 if test "$CATOBJEXT" = ".cat"; then
4333 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4334 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4335 echo "configure:4336: checking for linux/version.h" >&5
4336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 cat > conftest.
$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 #include <linux/version.h>
4344 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4345 { (eval echo configure
:4346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4346 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4347 if test -z "$ac_err"; then
4349 eval "ac_cv_header_$ac_safe=yes"
4352 echo "configure: failed program was:" >&5
4353 cat conftest.
$ac_ext >&5
4355 eval "ac_cv_header_$ac_safe=no"
4359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4363 echo "$ac_t""no" 1>&6
4368 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4370 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4371 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4374 if test "$PACKAGE" = "gettext"; then
4384 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4390 if test -f $srcdir/po
/POTFILES.
in; then
4391 test -d po || mkdir po
4392 if test "x$srcdir" != "x."; then
4393 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4394 posrcprefix
="$srcdir/"
4396 posrcprefix
="../$srcdir/"
4402 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4403 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4407 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4408 echo "configure:4409: checking whether to enable maintainer-specific portions of Makefiles" >&5
4409 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4410 if test "${enable_maintainer_mode+set}" = set; then
4411 enableval
="$enable_maintainer_mode"
4412 USE_MAINTAINER_MODE
=$enableval
4414 USE_MAINTAINER_MODE
=no
4417 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4420 if test $USE_MAINTAINER_MODE = yes; then
4421 MAINTAINER_MODE_TRUE
=
4422 MAINTAINER_MODE_FALSE
='#'
4424 MAINTAINER_MODE_TRUE
='#'
4425 MAINTAINER_MODE_FALSE
=
4427 MAINT
=$MAINTAINER_MODE_TRUE
4432 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4433 echo "configure:4434: checking for executable suffix" >&5
4434 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4441 echo 'int main () { return 0; }' > conftest.
$ac_ext
4443 if { (eval echo configure
:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4444 for file in conftest.
*; do
4446 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4447 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4451 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4454 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4459 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4460 echo "$ac_t""${ac_cv_exeext}" 1>&6
4463 if test -n "$EXEEXT"; then
4464 cat >> confdefs.h
<<\EOF
4465 #define HAVE_EXECUTABLE_SUFFIX 1
4469 cat >> confdefs.h
<<EOF
4470 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4474 # host-specific stuff:
4478 .
${srcdir}/..
/bfd
/configure.
host
4483 # Extract the first word of "ranlib", so it can be a program name with args.
4484 set dummy ranlib
; ac_word
=$2
4485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4486 echo "configure:4487: checking for $ac_word" >&5
4487 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 if test -n "$RANLIB"; then
4491 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4493 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4495 for ac_dir
in $ac_dummy; do
4496 test -z "$ac_dir" && ac_dir
=.
4497 if test -f $ac_dir/$ac_word; then
4498 ac_cv_prog_RANLIB
="ranlib"
4503 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
4506 RANLIB
="$ac_cv_prog_RANLIB"
4507 if test -n "$RANLIB"; then
4508 echo "$ac_t""$RANLIB" 1>&6
4510 echo "$ac_t""no" 1>&6
4513 # Find a good install program. We prefer a C program (faster),
4514 # so one script is as good as another. But avoid the broken or
4515 # incompatible versions:
4516 # SysV /etc/install, /usr/sbin/install
4517 # SunOS /usr/etc/install
4518 # IRIX /sbin/install
4520 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4521 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4522 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4523 # ./install, which can be erroneously created by make from ./install.sh.
4524 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4525 echo "configure:4526: checking for a BSD compatible install" >&5
4526 if test -z "$INSTALL"; then
4527 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4531 for ac_dir
in $PATH; do
4532 # Account for people who put trailing slashes in PATH elements.
4534 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4536 # OSF1 and SCO ODT 3.0 have their own names for install.
4537 # Don't use installbsd from OSF since it installs stuff as root
4539 for ac_prog
in ginstall scoinst
install; do
4540 if test -f $ac_dir/$ac_prog; then
4541 if test $ac_prog = install &&
4542 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4543 # AIX install. It has an incompatible calling convention.
4546 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4557 if test "${ac_cv_path_install+set}" = set; then
4558 INSTALL
="$ac_cv_path_install"
4560 # As a last resort, use the slow shell script. We don't cache a
4561 # path for INSTALL within a source directory, because that will
4562 # break other packages using the cache if that directory is
4563 # removed, or if the path is relative.
4564 INSTALL
="$ac_install_sh"
4567 echo "$ac_t""$INSTALL" 1>&6
4569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4570 # It thinks the first close brace ends the variable substitution.
4571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4575 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4578 # Put a plausible default for CC_FOR_BUILD in Makefile.
4579 if test -z "$CC_FOR_BUILD"; then
4580 if test "x$cross_compiling" = "xno"; then
4581 CC_FOR_BUILD
='$(CC)'
4587 # Also set EXEEXT_FOR_BUILD.
4588 if test "x$cross_compiling" = "xno"; then
4589 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4591 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4592 echo "configure:4593: checking for build system executable suffix" >&5
4593 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4597 echo 'int main () { return 0; }' > conftest.c
4598 bfd_cv_build_exeext
=
4599 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4600 for file in conftest.
*; do
4602 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4603 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4607 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4610 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4612 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4616 DEMANGLER_NAME
=c
++filt
4618 *-*-go32* |
*-*-msdos*)
4619 DEMANGLER_NAME
=cxxfilt
4623 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
4625 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4627 echo "configure:4628: checking for $ac_hdr" >&5
4628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 cat > conftest.
$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4636 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4637 { (eval echo configure
:4638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4638 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4639 if test -z "$ac_err"; then
4641 eval "ac_cv_header_$ac_safe=yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.
$ac_ext >&5
4647 eval "ac_cv_header_$ac_safe=no"
4651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4654 cat >> confdefs.h
<<EOF
4655 #define $ac_tr_hdr 1
4659 echo "$ac_t""no" 1>&6
4663 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4664 echo "configure:4665: checking for sys/wait.h that is POSIX.1 compatible" >&5
4665 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 cat > conftest.
$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 #include <sys/types.h>
4672 #include <sys/wait.h>
4674 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4677 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4682 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4685 if { (eval echo configure
:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4687 ac_cv_header_sys_wait_h
=yes
4689 echo "configure: failed program was:" >&5
4690 cat conftest.
$ac_ext >&5
4692 ac_cv_header_sys_wait_h
=no
4697 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4698 if test $ac_cv_header_sys_wait_h = yes; then
4699 cat >> confdefs.h
<<\EOF
4700 #define HAVE_SYS_WAIT_H 1
4705 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4706 # for constant arguments. Useless!
4707 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4708 echo "configure:4709: checking for working alloca.h" >&5
4709 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 cat > conftest.
$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4717 char *p = alloca(2 * sizeof(int));
4720 if { (eval echo configure
:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4722 ac_cv_header_alloca_h
=yes
4724 echo "configure: failed program was:" >&5
4725 cat conftest.
$ac_ext >&5
4727 ac_cv_header_alloca_h
=no
4732 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4733 if test $ac_cv_header_alloca_h = yes; then
4734 cat >> confdefs.h
<<\EOF
4735 #define HAVE_ALLOCA_H 1
4740 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4741 echo "configure:4742: checking for alloca" >&5
4742 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4745 cat > conftest.
$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4750 # define alloca __builtin_alloca
4753 # include <malloc.h>
4754 # define alloca _alloca
4757 # include <alloca.h>
4762 # ifndef alloca /* predefined by HP cc +Olibcalls */
4771 char *p = (char *) alloca(1);
4774 if { (eval echo configure
:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4776 ac_cv_func_alloca_works
=yes
4778 echo "configure: failed program was:" >&5
4779 cat conftest.
$ac_ext >&5
4781 ac_cv_func_alloca_works
=no
4786 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4787 if test $ac_cv_func_alloca_works = yes; then
4788 cat >> confdefs.h
<<\EOF
4789 #define HAVE_ALLOCA 1
4794 if test $ac_cv_func_alloca_works = no
; then
4795 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4796 # that cause trouble. Some versions do not even contain alloca or
4797 # contain a buggy version. If you still want to use their alloca,
4798 # use ar to extract alloca.o from them instead of compiling alloca.c.
4799 ALLOCA
=alloca.
${ac_objext}
4800 cat >> confdefs.h
<<\EOF
4805 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4806 echo "configure:4807: checking whether alloca needs Cray hooks" >&5
4807 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4810 cat > conftest.
$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 #if defined(CRAY) && ! defined(CRAY2)
4820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4821 egrep "webecray" >/dev
/null
2>&1; then
4832 echo "$ac_t""$ac_cv_os_cray" 1>&6
4833 if test $ac_cv_os_cray = yes; then
4834 for ac_func
in _getb67 GETB67 getb67
; do
4835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_func" >&5
4837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 cat > conftest.
$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 /* System header to define __stub macros and hopefully few prototypes,
4844 which can conflict with char $ac_func(); below. */
4846 /* Override any gcc2 internal prototype to avoid an error. */
4847 /* We use char because int might match the return type of a gcc2
4848 builtin and then its argument prototype would still apply. */
4853 /* The GNU C library defines this for functions which it implements
4854 to always fail with ENOSYS. Some functions are actually named
4855 something starting with __ and the normal name is an alias. */
4856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4864 if { (eval echo configure
:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4866 eval "ac_cv_func_$ac_func=yes"
4868 echo "configure: failed program was:" >&5
4869 cat conftest.
$ac_ext >&5
4871 eval "ac_cv_func_$ac_func=no"
4876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4877 echo "$ac_t""yes" 1>&6
4878 cat >> confdefs.h
<<EOF
4879 #define CRAY_STACKSEG_END $ac_func
4884 echo "$ac_t""no" 1>&6
4890 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4891 echo "configure:4892: checking stack direction for C alloca" >&5
4892 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4895 if test "$cross_compiling" = yes; then
4896 ac_cv_c_stack_direction
=0
4898 cat > conftest.
$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4901 find_stack_direction ()
4903 static char *addr = 0;
4908 return find_stack_direction ();
4911 return (&dummy > addr) ? 1 : -1;
4915 exit (find_stack_direction() < 0);
4918 if { (eval echo configure
:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4920 ac_cv_c_stack_direction
=1
4922 echo "configure: failed program was:" >&5
4923 cat conftest.
$ac_ext >&5
4925 ac_cv_c_stack_direction
=-1
4932 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4933 cat >> confdefs.h
<<EOF
4934 #define STACK_DIRECTION $ac_cv_c_stack_direction
4939 for ac_func
in sbrk utimes setmode getc_unlocked strcoll
4941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4942 echo "configure:4943: checking for $ac_func" >&5
4943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 cat > conftest.
$ac_ext <<EOF
4947 #line 4948 "configure"
4948 #include "confdefs.h"
4949 /* System header to define __stub macros and hopefully few prototypes,
4950 which can conflict with char $ac_func(); below. */
4952 /* Override any gcc2 internal prototype to avoid an error. */
4953 /* We use char because int might match the return type of a gcc2
4954 builtin and then its argument prototype would still apply. */
4959 /* The GNU C library defines this for functions which it implements
4960 to always fail with ENOSYS. Some functions are actually named
4961 something starting with __ and the normal name is an alias. */
4962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4970 if { (eval echo configure
:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4972 eval "ac_cv_func_$ac_func=yes"
4974 echo "configure: failed program was:" >&5
4975 cat conftest.
$ac_ext >&5
4977 eval "ac_cv_func_$ac_func=no"
4982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4983 echo "$ac_t""yes" 1>&6
4984 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4985 cat >> confdefs.h
<<EOF
4986 #define $ac_tr_func 1
4990 echo "$ac_t""no" 1>&6
4995 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
4996 # needs to be defined for it
4997 echo $ac_n "checking for fopen64""... $ac_c" 1>&6
4998 echo "configure:4999: checking for fopen64" >&5
4999 if eval "test \"`echo '$''{'bu_cv_have_fopen64'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.
$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5007 FILE *f = fopen64 ("/tmp/foo","r");
5010 if { (eval echo configure
:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5012 bu_cv_have_fopen64
=yes
5014 echo "configure: failed program was:" >&5
5015 cat conftest.
$ac_ext >&5
5017 saved_CPPFLAGS
=$CPPFLAGS
5018 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5019 cat > conftest.
$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5024 FILE *f = fopen64 ("/tmp/foo","r");
5027 if { (eval echo configure
:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5029 bu_cv_have_fopen64
="need -D_LARGEFILE64_SOURCE"
5031 echo "configure: failed program was:" >&5
5032 cat conftest.
$ac_ext >&5
5034 bu_cv_have_fopen64
=no
5037 CPPFLAGS
=$saved_CPPFLAGS
5042 echo "$ac_t""$bu_cv_have_fopen64" 1>&6
5043 if test "$bu_cv_have_fopen64" != no
; then
5044 cat >> confdefs.h
<<\EOF
5045 #define HAVE_FOPEN64 1
5048 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then
5049 cat >> confdefs.h
<<\EOF
5050 #define _LARGEFILE64_SOURCE 1
5056 # Some systems have frexp only in -lm, not in -lc.
5058 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
5059 echo "configure:5060: checking for library containing frexp" >&5
5060 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5063 ac_func_search_save_LIBS
="$LIBS"
5064 ac_cv_search_frexp
="no"
5065 cat > conftest.
$ac_ext <<EOF
5066 #line 5067 "configure"
5067 #include "confdefs.h"
5068 /* Override any gcc2 internal prototype to avoid an error. */
5069 /* We use char because int might match the return type of a gcc2
5070 builtin and then its argument prototype would still apply. */
5077 if { (eval echo configure
:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5079 ac_cv_search_frexp
="none required"
5081 echo "configure: failed program was:" >&5
5082 cat conftest.
$ac_ext >&5
5085 test "$ac_cv_search_frexp" = "no" && for i
in m
; do
5086 LIBS
="-l$i $ac_func_search_save_LIBS"
5087 cat > conftest.
$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5090 /* Override any gcc2 internal prototype to avoid an error. */
5091 /* We use char because int might match the return type of a gcc2
5092 builtin and then its argument prototype would still apply. */
5099 if { (eval echo configure
:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5101 ac_cv_search_frexp
="-l$i"
5104 echo "configure: failed program was:" >&5
5105 cat conftest.
$ac_ext >&5
5109 LIBS
="$ac_func_search_save_LIBS"
5112 echo "$ac_t""$ac_cv_search_frexp" 1>&6
5113 if test "$ac_cv_search_frexp" != "no"; then
5114 test "$ac_cv_search_frexp" = "none required" || LIBS
="$ac_cv_search_frexp $LIBS"
5120 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5121 echo "configure:5122: checking for time_t in time.h" >&5
5122 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 cat > conftest.
$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5133 if { (eval echo configure
:5134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5135 bu_cv_decl_time_t_time_h
=yes
5137 echo "configure: failed program was:" >&5
5138 cat conftest.
$ac_ext >&5
5140 bu_cv_decl_time_t_time_h
=no
5145 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5146 if test $bu_cv_decl_time_t_time_h = yes; then
5147 cat >> confdefs.h
<<\EOF
5148 #define HAVE_TIME_T_IN_TIME_H 1
5153 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5154 echo "configure:5155: checking for time_t in sys/types.h" >&5
5155 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 cat > conftest.
$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 #include <sys/types.h>
5166 if { (eval echo configure
:5167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5168 bu_cv_decl_time_t_types_h
=yes
5170 echo "configure: failed program was:" >&5
5171 cat conftest.
$ac_ext >&5
5173 bu_cv_decl_time_t_types_h
=no
5178 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5179 if test $bu_cv_decl_time_t_types_h = yes; then
5180 cat >> confdefs.h
<<\EOF
5181 #define HAVE_TIME_T_IN_TYPES_H 1
5186 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5188 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5189 echo "configure:5190: checking for utime.h" >&5
5190 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 cat > conftest.
$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 #include <sys/types.h>
5205 if { (eval echo configure
:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5207 bu_cv_header_utime_h
=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.
$ac_ext >&5
5212 bu_cv_header_utime_h
=no
5217 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5218 if test $bu_cv_header_utime_h = yes; then
5219 cat >> confdefs.h
<<\EOF
5220 #define HAVE_GOOD_UTIME_H 1
5225 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5226 echo "configure:5227: checking whether fprintf must be declared" >&5
5227 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5230 cat > conftest.
$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5235 #ifdef HAVE_STRING_H
5238 #ifdef HAVE_STRINGS_H
5239 #include <strings.h>
5242 #ifdef HAVE_STDLIB_H
5245 #ifdef HAVE_UNISTD_H
5249 char *(*pfn) = (char *(*)) fprintf
5252 if { (eval echo configure
:5253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5254 bfd_cv_decl_needed_fprintf
=no
5256 echo "configure: failed program was:" >&5
5257 cat conftest.
$ac_ext >&5
5259 bfd_cv_decl_needed_fprintf
=yes
5264 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5265 if test $bfd_cv_decl_needed_fprintf = yes; then
5266 cat >> confdefs.h
<<\EOF
5267 #define NEED_DECLARATION_FPRINTF 1
5272 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5273 echo "configure:5274: checking whether strstr must be declared" >&5
5274 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 cat > conftest.
$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5282 #ifdef HAVE_STRING_H
5285 #ifdef HAVE_STRINGS_H
5286 #include <strings.h>
5289 #ifdef HAVE_STDLIB_H
5292 #ifdef HAVE_UNISTD_H
5296 char *(*pfn) = (char *(*)) strstr
5299 if { (eval echo configure
:5300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5301 bfd_cv_decl_needed_strstr
=no
5303 echo "configure: failed program was:" >&5
5304 cat conftest.
$ac_ext >&5
5306 bfd_cv_decl_needed_strstr
=yes
5311 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5312 if test $bfd_cv_decl_needed_strstr = yes; then
5313 cat >> confdefs.h
<<\EOF
5314 #define NEED_DECLARATION_STRSTR 1
5319 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5320 echo "configure:5321: checking whether sbrk must be declared" >&5
5321 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 cat > conftest.
$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5329 #ifdef HAVE_STRING_H
5332 #ifdef HAVE_STRINGS_H
5333 #include <strings.h>
5336 #ifdef HAVE_STDLIB_H
5339 #ifdef HAVE_UNISTD_H
5343 char *(*pfn) = (char *(*)) sbrk
5346 if { (eval echo configure
:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348 bfd_cv_decl_needed_sbrk
=no
5350 echo "configure: failed program was:" >&5
5351 cat conftest.
$ac_ext >&5
5353 bfd_cv_decl_needed_sbrk
=yes
5358 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5359 if test $bfd_cv_decl_needed_sbrk = yes; then
5360 cat >> confdefs.h
<<\EOF
5361 #define NEED_DECLARATION_SBRK 1
5366 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5367 echo "configure:5368: checking whether getenv must be declared" >&5
5368 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 cat > conftest.
$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5376 #ifdef HAVE_STRING_H
5379 #ifdef HAVE_STRINGS_H
5380 #include <strings.h>
5383 #ifdef HAVE_STDLIB_H
5386 #ifdef HAVE_UNISTD_H
5390 char *(*pfn) = (char *(*)) getenv
5393 if { (eval echo configure
:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5395 bfd_cv_decl_needed_getenv
=no
5397 echo "configure: failed program was:" >&5
5398 cat conftest.
$ac_ext >&5
5400 bfd_cv_decl_needed_getenv
=yes
5405 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5406 if test $bfd_cv_decl_needed_getenv = yes; then
5407 cat >> confdefs.h
<<\EOF
5408 #define NEED_DECLARATION_GETENV 1
5413 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5414 echo "configure:5415: checking whether environ must be declared" >&5
5415 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5416 echo $ac_n "(cached) $ac_c" 1>&6
5418 cat > conftest.
$ac_ext <<EOF
5419 #line 5420 "configure"
5420 #include "confdefs.h"
5423 #ifdef HAVE_STRING_H
5426 #ifdef HAVE_STRINGS_H
5427 #include <strings.h>
5430 #ifdef HAVE_STDLIB_H
5433 #ifdef HAVE_UNISTD_H
5437 char *(*pfn) = (char *(*)) environ
5440 if { (eval echo configure
:5441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5442 bfd_cv_decl_needed_environ
=no
5444 echo "configure: failed program was:" >&5
5445 cat conftest.
$ac_ext >&5
5447 bfd_cv_decl_needed_environ
=yes
5452 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5453 if test $bfd_cv_decl_needed_environ = yes; then
5454 cat >> confdefs.h
<<\EOF
5455 #define NEED_DECLARATION_ENVIRON 1
5463 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
5464 cat >> confdefs.h
<<\EOF
5465 #define USE_BINARY_FOPEN 1
5470 # target-specific stuff:
5472 # Canonicalize the secondary target names.
5473 if test -n "$enable_targets"; then
5474 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5476 result
=`$ac_config_sub $targ 2>/dev/null`
5477 if test -n "$result"; then
5478 canon_targets
="$canon_targets $result"
5480 # Allow targets that config.sub doesn't recognize, like "all".
5481 canon_targets
="$canon_targets $targ"
5497 for targ
in $target $canon_targets
5499 if test "x$targ" = "xall"; then
5501 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5502 BUILD_SRCONV
='$(SRCONV_PROG)'
5503 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5506 i
[3-7]86*-*-netware*)
5507 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5508 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
5511 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5512 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5514 powerpc
*-*-netware*)
5515 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5516 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5519 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5520 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
5524 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
5528 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5529 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5530 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5532 arm-
*-pe* | arm-
*-wince)
5533 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5534 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5535 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5538 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5539 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5540 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5542 arm
*-* | xscale-
* | strongarm-
* | d10v-
*)
5543 OBJDUMP_DEFS
="-DDISASSEMBLER_NEEDS_RELOCS"
5545 i
[3-7]86-*-pe* | i
[3-7]86-*-cygwin* | i
[3-7]86-*-mingw32** | i
[3-7]86-*-netbsdpe*)
5546 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5547 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5548 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5549 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
5552 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
5553 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5558 OBJDUMP_DEFS
="-DAIX_WEAK_SUPPORT"
5560 powerpc
*-*-pe* | powerpc
*-*-cygwin*)
5561 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5562 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5563 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5566 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5567 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_SH"
5568 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5571 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5572 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5573 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5576 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5577 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5578 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5581 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5582 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5584 c4x-
*-* | tic4x-
*-*)
5585 OBJDUMP_DEFS
="$OBJDUMP_DEFS -DSKIP_ZEROES=32"
5588 OBJDUMP_DEFS
="$OBJDUMP_DEFS -DSKIP_ZEROES=16"
5594 if test "${with_windres+set}" = set; then
5595 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5608 cat >> confdefs.h
<<EOF
5609 #define TARGET "${target}"
5614 .
$srcdir/..
/bfd
/config.bfd
5615 if test "x$targ_underscore" = "xyes"; then
5620 cat >> confdefs.h
<<EOF
5621 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
5626 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5628 # Canonicalize the secondary target names.
5629 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5630 if test -n "$result"; then
5636 .
${srcdir}/configure.tgt
5638 EMULATION
=$targ_emul
5639 EMULATION_VECTOR
=$targ_emul_vector
5646 cat > confcache
<<\EOF
5647 # This file is a shell script that caches the results of configure
5648 # tests run on this system so they can be shared between configure
5649 # scripts and configure runs. It is not useful on other systems.
5650 # If it contains results you don't want to keep, you may remove or edit it.
5652 # By default, configure uses ./config.cache as the cache file,
5653 # creating it if it does not exist already. You can give configure
5654 # the --cache-file=FILE option to use a different cache file; that is
5655 # what configure does when it calls configure scripts in
5656 # subdirectories, so they share the cache.
5657 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5658 # config.status only pays attention to the cache file if you give it the
5659 # --recheck option to rerun configure.
5662 # The following way of writing the cache mishandles newlines in values,
5663 # but we know of no workaround that is simple, portable, and efficient.
5664 # So, don't put newlines in cache variables' values.
5665 # Ultrix sh set writes to stderr and can't be redirected directly,
5666 # and sets the high bit in the cache file unless we assign to the vars.
5668 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5670 # `set' does not quote correctly, so add quotes (double-quote substitution
5671 # turns \\\\ into \\, and sed turns \\ into \).
5673 -e "s/'/'\\\\''/g" \
5674 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5677 # `set' quotes correctly as required by POSIX, so do not add quotes.
5678 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5681 if cmp -s $cache_file confcache
; then
5684 if test -w $cache_file; then
5685 echo "updating cache $cache_file"
5686 cat confcache
> $cache_file
5688 echo "not updating unwritable cache $cache_file"
5693 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5695 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5696 # Let make expand exec_prefix.
5697 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5699 # Any assignment to VPATH causes Sun make to only execute
5700 # the first set of double-colon rules, so remove it if not needed.
5701 # If there is a colon in the path, we need to keep it.
5702 if test "x$srcdir" = x.
; then
5703 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5706 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5708 DEFS
=-DHAVE_CONFIG_H
5710 # Without the "./", some shells look in PATH for config.status.
5711 : ${CONFIG_STATUS=./config.status}
5713 echo creating
$CONFIG_STATUS
5714 rm -f $CONFIG_STATUS
5715 cat > $CONFIG_STATUS <<EOF
5717 # Generated automatically by configure.
5718 # Run this file to recreate the current configuration.
5719 # This directory was configured as follows,
5720 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5722 # $0 $ac_configure_args
5724 # Compiler output produced by configure, useful for debugging
5725 # configure, is in ./config.log if it exists.
5727 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5730 case "\$ac_option" in
5731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5732 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5733 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5734 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5735 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5737 -help | --help | --hel | --he | --h)
5738 echo "\$ac_cs_usage"; exit 0 ;;
5739 *) echo "\$ac_cs_usage"; exit 1 ;;
5743 ac_given_srcdir=$srcdir
5744 ac_given_INSTALL="$INSTALL"
5746 trap 'rm -fr `echo "Makefile doc/Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5748 cat >> $CONFIG_STATUS <<EOF
5750 # Protect against being on the right side of a sed subst in config.status.
5751 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5752 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5756 s%@CFLAGS@%$CFLAGS%g
5757 s%@CPPFLAGS@%$CPPFLAGS%g
5758 s%@CXXFLAGS@%$CXXFLAGS%g
5759 s%@FFLAGS@%$FFLAGS%g
5761 s%@LDFLAGS@%$LDFLAGS%g
5763 s%@exec_prefix@%$exec_prefix%g
5764 s%@prefix@%$prefix%g
5765 s%@program_transform_name@%$program_transform_name%g
5766 s%@bindir@%$bindir%g
5767 s%@sbindir@%$sbindir%g
5768 s%@libexecdir@%$libexecdir%g
5769 s%@datadir@%$datadir%g
5770 s%@sysconfdir@%$sysconfdir%g
5771 s%@sharedstatedir@%$sharedstatedir%g
5772 s%@localstatedir@%$localstatedir%g
5773 s%@libdir@%$libdir%g
5774 s%@includedir@%$includedir%g
5775 s%@oldincludedir@%$oldincludedir%g
5776 s%@infodir@%$infodir%g
5777 s%@mandir@%$mandir%g
5779 s%@host_alias@%$host_alias%g
5780 s%@host_cpu@%$host_cpu%g
5781 s%@host_vendor@%$host_vendor%g
5782 s%@host_os@%$host_os%g
5783 s%@target@%$target%g
5784 s%@target_alias@%$target_alias%g
5785 s%@target_cpu@%$target_cpu%g
5786 s%@target_vendor@%$target_vendor%g
5787 s%@target_os@%$target_os%g
5789 s%@build_alias@%$build_alias%g
5790 s%@build_cpu@%$build_cpu%g
5791 s%@build_vendor@%$build_vendor%g
5792 s%@build_os@%$build_os%g
5793 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5794 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5795 s%@INSTALL_DATA@%$INSTALL_DATA%g
5796 s%@PACKAGE@%$PACKAGE%g
5797 s%@VERSION@%$VERSION%g
5798 s%@ACLOCAL@%$ACLOCAL%g
5799 s%@AUTOCONF@%$AUTOCONF%g
5800 s%@AUTOMAKE@%$AUTOMAKE%g
5801 s%@AUTOHEADER@%$AUTOHEADER%g
5802 s%@MAKEINFO@%$MAKEINFO%g
5803 s%@SET_MAKE@%$SET_MAKE%g
5806 s%@OBJEXT@%$OBJEXT%g
5807 s%@EXEEXT@%$EXEEXT%g
5808 s%@RANLIB@%$RANLIB%g
5810 s%@LIBTOOL@%$LIBTOOL%g
5811 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5814 s%@LEXLIB@%$LEXLIB%g
5816 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5817 s%@ALLOCA@%$ALLOCA%g
5818 s%@USE_NLS@%$USE_NLS%g
5819 s%@MSGFMT@%$MSGFMT%g
5820 s%@GMSGFMT@%$GMSGFMT%g
5821 s%@XGETTEXT@%$XGETTEXT%g
5822 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5823 s%@CATALOGS@%$CATALOGS%g
5824 s%@CATOBJEXT@%$CATOBJEXT%g
5825 s%@DATADIRNAME@%$DATADIRNAME%g
5826 s%@GMOFILES@%$GMOFILES%g
5827 s%@INSTOBJEXT@%$INSTOBJEXT%g
5828 s%@INTLDEPS@%$INTLDEPS%g
5829 s%@INTLLIBS@%$INTLLIBS%g
5830 s%@INTLOBJS@%$INTLOBJS%g
5831 s%@POFILES@%$POFILES%g
5833 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5835 s%@GT_YES@%$GT_YES%g
5836 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5838 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5839 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5841 s%@HDEFINES@%$HDEFINES%g
5843 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5844 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5845 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5846 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5847 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5848 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5849 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5850 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5851 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5852 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5853 s%@BUILD_MISC@%$BUILD_MISC%g
5854 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5855 s%@EMULATION@%$EMULATION%g
5856 s%@EMULATION_VECTOR@%$EMULATION_VECTOR%g
5861 cat >> $CONFIG_STATUS <<\EOF
5863 # Split the substitutions into bite-sized pieces for seds with
5864 # small command number limits, like on Digital OSF/1 and HP-UX.
5865 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5866 ac_file
=1 # Number of current file.
5867 ac_beg
=1 # First line for current file.
5868 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5871 while $ac_more_lines; do
5872 if test $ac_beg -gt 1; then
5873 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5875 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5877 if test ! -s conftest.s
$ac_file; then
5879 rm -f conftest.s
$ac_file
5881 if test -z "$ac_sed_cmds"; then
5882 ac_sed_cmds
="sed -f conftest.s$ac_file"
5884 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5886 ac_file
=`expr $ac_file + 1`
5888 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5891 if test -z "$ac_sed_cmds"; then
5896 cat >> $CONFIG_STATUS <<EOF
5898 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile po/Makefile.in:po/Make-in"}
5900 cat >> $CONFIG_STATUS <<\EOF
5901 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5904 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5905 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5906 *) ac_file_in
="${ac_file}.in" ;;
5909 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5911 # Remove last slash and all that follows it. Not all systems have dirname.
5912 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5913 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5914 # The file is in a subdirectory.
5915 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5916 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5917 # A "../" for each directory in $ac_dir_suffix.
5918 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5920 ac_dir_suffix
= ac_dots
=
5923 case "$ac_given_srcdir" in
5925 if test -z "$ac_dots"; then top_srcdir
=.
5926 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5927 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5929 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5930 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5933 case "$ac_given_INSTALL" in
5934 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5935 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5938 echo creating
"$ac_file"
5940 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5942 *Makefile
*) ac_comsub
="1i\\
5943 # $configure_input" ;;
5947 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5949 s%@configure_input@%$configure_input%g
5950 s%@srcdir@%$srcdir%g
5951 s%@top_srcdir@%$top_srcdir%g
5952 s%@INSTALL@%$INSTALL%g
5953 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5957 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5958 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5960 # ac_d sets the value in "#define NAME VALUE" lines.
5961 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5962 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5965 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5966 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5967 ac_uB
='\([ ]\)%\1#\2define\3'
5970 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5971 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5972 ac_eB
='$%\1#\2define\3'
5976 if test "${CONFIG_HEADERS+set}" != set; then
5978 cat >> $CONFIG_STATUS <<EOF
5979 CONFIG_HEADERS="config.h:config.in"
5981 cat >> $CONFIG_STATUS <<\EOF
5983 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5984 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5986 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5987 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5988 *) ac_file_in
="${ac_file}.in" ;;
5991 echo creating
$ac_file
5993 rm -f conftest.frag conftest.
in conftest.out
5994 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5995 cat $ac_file_inputs > conftest.
in
5999 # Transform confdefs.h into a sed script conftest.vals that substitutes
6000 # the proper values into config.h.in to produce config.h. And first:
6001 # Protect against being on the right side of a sed subst in config.status.
6002 # Protect against being in an unquoted here document in config.status.
6004 cat > conftest.hdr
<<\EOF
6007 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6011 sed -n -f conftest.hdr confdefs.h > conftest.vals
6014 # This sed command replaces #undef with comments. This is necessary, for
6015 # example, in the case of _POSIX_SOURCE, which is predefined and required
6016 # on some systems where configure will not decide to define it.
6017 cat >> conftest.vals <<\EOF
6018 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6021 # Break up conftest.vals because some shells have a limit on
6022 # the size of here documents, and old seds have small limits too.
6027 ac_lines=`grep -c . conftest.vals
`
6028 # grep -c gives empty output for an empty file on some AIX systems.
6029 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6030 # Write a limited-size here document to conftest.frag.
6031 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6032 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6034 sed -f conftest.frag conftest.in > conftest.out
6036 mv conftest.out conftest.in
6038 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6040 mv conftest.tail conftest.vals
6044 cat >> $CONFIG_STATUS <<\EOF
6045 rm -f conftest.frag conftest.h
6046 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6047 cat conftest.in >> conftest.h
6049 if cmp -s $ac_file conftest.h 2>/dev/null; then
6050 echo "$ac_file is unchanged"
6053 # Remove last slash and all that follows it. Not all systems have dirname.
6054 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6055 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6056 # The file is in a subdirectory.
6057 test ! -d "$ac_dir" && mkdir "$ac_dir"
6060 mv conftest.h $ac_file
6065 cat >> $CONFIG_STATUS <<EOF
6069 cat >> $CONFIG_STATUS <<\EOF
6070 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6072 case "x$CONFIG_FILES" in
6073 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
6078 chmod +x $CONFIG_STATUS
6079 rm -fr confdefs* $ac_clean_files
6080 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1