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
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 SHELL
=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
548 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
549 echo "configure:550: checking for Cygwin environment" >&5
550 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
553 cat > conftest.
$ac_ext <<EOF
554 #line 555 "configure"
555 #include "confdefs.h"
560 #define __CYGWIN__ __CYGWIN32__
565 if { (eval echo configure
:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
569 echo "configure: failed program was:" >&5
570 cat conftest.
$ac_ext >&5
578 echo "$ac_t""$ac_cv_cygwin" 1>&6
580 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
581 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
582 echo "configure:583: checking for mingw32 environment" >&5
583 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 cat > conftest.
$ac_ext <<EOF
587 #line 588 "configure"
588 #include "confdefs.h"
594 if { (eval echo configure
:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
598 echo "configure: failed program was:" >&5
599 cat conftest.
$ac_ext >&5
607 echo "$ac_t""$ac_cv_mingw32" 1>&6
609 test "$ac_cv_mingw32" = yes && MINGW32
=yes
613 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
614 if test -f $ac_dir/install-sh
; then
616 ac_install_sh
="$ac_aux_dir/install-sh -c"
618 elif test -f $ac_dir/install.sh
; then
620 ac_install_sh
="$ac_aux_dir/install.sh -c"
624 if test -z "$ac_aux_dir"; then
625 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
627 ac_config_guess
=$ac_aux_dir/config.guess
628 ac_config_sub
=$ac_aux_dir/config.sub
629 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
632 # Do some error checking and defaulting for the host and target type.
634 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
637 # 1. You are not allowed to specify --host, --target, and nonopt at the
639 # 2. Host defaults to nonopt.
640 # 3. If nonopt is not specified, then host defaults to the current host,
641 # as determined by config.guess.
642 # 4. Target and build default to nonopt.
643 # 5. If nonopt is not specified, then target and build default to host.
645 # The aliases save the names the user supplied, while $host etc.
646 # will get canonicalized.
647 case $host---$target---$nonopt in
648 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
649 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
662 case "$host_alias" in
666 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
669 *) host_alias
=$nonopt ;;
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
679 echo $ac_n "checking target system type""... $ac_c" 1>&6
680 echo "configure:681: checking target system type" >&5
683 case "$target_alias" in
686 NONE
) target_alias
=$host_alias ;;
687 *) target_alias
=$nonopt ;;
691 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$target" 1>&6
697 echo $ac_n "checking build system type""... $ac_c" 1>&6
698 echo "configure:699: checking build system type" >&5
701 case "$build_alias" in
704 NONE
) build_alias
=$host_alias ;;
705 *) build_alias
=$nonopt ;;
709 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$build" 1>&6
715 test "$host_alias" != "$target_alias" &&
716 test "$program_prefix$program_suffix$program_transform_name" = \
718 program_prefix
=${target_alias}-
721 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
722 echo "configure:723: checking for strerror in -lcposix" >&5
723 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
728 LIBS
="-lcposix $LIBS"
729 cat > conftest.
$ac_ext <<EOF
730 #line 731 "configure"
731 #include "confdefs.h"
732 /* Override any gcc2 internal prototype to avoid an error. */
733 /* We use char because int might match the return type of a gcc2
734 builtin and then its argument prototype would still apply. */
741 if { (eval echo configure
:742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
743 eval "ac_cv_lib_$ac_lib_var=yes"
745 echo "configure: failed program was:" >&5
746 cat conftest.
$ac_ext >&5
748 eval "ac_cv_lib_$ac_lib_var=no"
754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
755 echo "$ac_t""yes" 1>&6
756 LIBS
="$LIBS -lcposix"
758 echo "$ac_t""no" 1>&6
764 BFD_VERSION
=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
765 am__api_version
="1.4"
766 # Find a good install program. We prefer a C program (faster),
767 # so one script is as good as another. But avoid the broken or
768 # incompatible versions:
769 # SysV /etc/install, /usr/sbin/install
770 # SunOS /usr/etc/install
773 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
774 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
775 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
776 # ./install, which can be erroneously created by make from ./install.sh.
777 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
778 echo "configure:779: checking for a BSD compatible install" >&5
779 if test -z "$INSTALL"; then
780 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
784 for ac_dir
in $PATH; do
785 # Account for people who put trailing slashes in PATH elements.
787 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
789 # OSF1 and SCO ODT 3.0 have their own names for install.
790 # Don't use installbsd from OSF since it installs stuff as root
792 for ac_prog
in ginstall scoinst
install; do
793 if test -f $ac_dir/$ac_prog; then
794 if test $ac_prog = install &&
795 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
796 # AIX install. It has an incompatible calling convention.
799 ac_cv_path_install
="$ac_dir/$ac_prog -c"
810 if test "${ac_cv_path_install+set}" = set; then
811 INSTALL
="$ac_cv_path_install"
813 # As a last resort, use the slow shell script. We don't cache a
814 # path for INSTALL within a source directory, because that will
815 # break other packages using the cache if that directory is
816 # removed, or if the path is relative.
817 INSTALL
="$ac_install_sh"
820 echo "$ac_t""$INSTALL" 1>&6
822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
823 # It thinks the first close brace ends the variable substitution.
824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
828 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
830 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
831 echo "configure:832: checking whether build environment is sane" >&5
834 echo timestamp
> conftestfile
835 # Do `set' in a subshell so we don't clobber the current shell's
836 # arguments. Must try -L first in case configure is actually a
837 # symlink; some systems play weird games with the mod time of symlinks
838 # (eg FreeBSD returns the mod time of the symlink's containing
841 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
842 if test "$*" = "X"; then
844 set X
`ls -t $srcdir/configure conftestfile`
846 if test "$*" != "X $srcdir/configure conftestfile" \
847 && test "$*" != "X conftestfile $srcdir/configure"; then
849 # If neither matched, then we have a broken ls. This can happen
850 # if, for instance, CONFIG_SHELL is bash and it inherits a
851 # broken ls alias from the environment. This has actually
852 # happened. Such a system could not be considered "sane".
853 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
854 alias in your environment" 1>&2; exit 1; }
857 test "$2" = conftestfile
863 { echo "configure: error: newly created file is older than distributed files!
864 Check your system clock" 1>&2; exit 1; }
867 echo "$ac_t""yes" 1>&6
868 if test "$program_transform_name" = s
,x
,x
,; then
869 program_transform_name
=
871 # Double any \ or $. echo might interpret backslashes.
872 cat <<\EOF_SED
> conftestsed
873 s
,\\,\\\\,g
; s
,\$
,$$
,g
875 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
878 test "$program_prefix" != NONE
&&
879 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
880 # Use a double $ so make ignores it.
881 test "$program_suffix" != NONE
&&
882 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
884 # sed with no file args requires a program.
885 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
887 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
888 echo "configure:889: checking whether ${MAKE-make} sets \${MAKE}" >&5
889 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
890 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 cat > conftestmake
<<\EOF
895 @
echo 'ac_maketemp="${MAKE}"'
897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
898 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
899 if test -n "$ac_maketemp"; then
900 eval ac_cv_prog_make_
${ac_make}_set
=yes
902 eval ac_cv_prog_make_
${ac_make}_set
=no
906 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
907 echo "$ac_t""yes" 1>&6
910 echo "$ac_t""no" 1>&6
911 SET_MAKE
="MAKE=${MAKE-make}"
917 VERSION
=${BFD_VERSION}
919 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
920 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
922 cat >> confdefs.h
<<EOF
923 #define PACKAGE "$PACKAGE"
926 cat >> confdefs.h
<<EOF
927 #define VERSION "$VERSION"
932 missing_dir
=`cd $ac_aux_dir && pwd`
933 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
934 echo "configure:935: checking for working aclocal-${am__api_version}" >&5
935 # Run test in a subshell; some versions of sh will print an error if
936 # an executable is not found, even if stderr is redirected.
937 # Redirect stdin to placate older versions of autoconf. Sigh.
938 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
939 ACLOCAL
=aclocal-
${am__api_version}
940 echo "$ac_t""found" 1>&6
942 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
943 echo "$ac_t""missing" 1>&6
946 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
947 echo "configure:948: checking for working autoconf" >&5
948 # Run test in a subshell; some versions of sh will print an error if
949 # an executable is not found, even if stderr is redirected.
950 # Redirect stdin to placate older versions of autoconf. Sigh.
951 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
953 echo "$ac_t""found" 1>&6
955 AUTOCONF
="$missing_dir/missing autoconf"
956 echo "$ac_t""missing" 1>&6
959 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
960 echo "configure:961: checking for working automake-${am__api_version}" >&5
961 # Run test in a subshell; some versions of sh will print an error if
962 # an executable is not found, even if stderr is redirected.
963 # Redirect stdin to placate older versions of autoconf. Sigh.
964 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
965 AUTOMAKE
=automake-
${am__api_version}
966 echo "$ac_t""found" 1>&6
968 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
969 echo "$ac_t""missing" 1>&6
972 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
973 echo "configure:974: checking for working autoheader" >&5
974 # Run test in a subshell; some versions of sh will print an error if
975 # an executable is not found, even if stderr is redirected.
976 # Redirect stdin to placate older versions of autoconf. Sigh.
977 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
978 AUTOHEADER
=autoheader
979 echo "$ac_t""found" 1>&6
981 AUTOHEADER
="$missing_dir/missing autoheader"
982 echo "$ac_t""missing" 1>&6
985 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
986 echo "configure:987: checking for working makeinfo" >&5
987 # Run test in a subshell; some versions of sh will print an error if
988 # an executable is not found, even if stderr is redirected.
989 # Redirect stdin to placate older versions of autoconf. Sigh.
990 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
992 echo "$ac_t""found" 1>&6
994 MAKEINFO
="$missing_dir/missing makeinfo"
995 echo "$ac_t""missing" 1>&6
1000 # Check whether --enable-shared or --disable-shared was given.
1001 if test "${enable_shared+set}" = set; then
1002 enableval
="$enable_shared"
1003 p
=${PACKAGE-default}
1005 yes) enable_shared
=yes ;;
1006 no
) enable_shared
=no
;;
1009 # Look at the argument we got. We use all the common list separators.
1010 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1011 for pkg
in $enableval; do
1012 if test "X$pkg" = "X$p"; then
1023 # Check whether --enable-static or --disable-static was given.
1024 if test "${enable_static+set}" = set; then
1025 enableval
="$enable_static"
1026 p
=${PACKAGE-default}
1028 yes) enable_static
=yes ;;
1029 no
) enable_static
=no
;;
1032 # Look at the argument we got. We use all the common list separators.
1033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1034 for pkg
in $enableval; do
1035 if test "X$pkg" = "X$p"; then
1046 # Check whether --enable-fast-install or --disable-fast-install was given.
1047 if test "${enable_fast_install+set}" = set; then
1048 enableval
="$enable_fast_install"
1049 p
=${PACKAGE-default}
1051 yes) enable_fast_install
=yes ;;
1052 no
) enable_fast_install
=no
;;
1054 enable_fast_install
=no
1055 # Look at the argument we got. We use all the common list separators.
1056 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1057 for pkg
in $enableval; do
1058 if test "X$pkg" = "X$p"; then
1059 enable_fast_install
=yes
1066 enable_fast_install
=yes
1069 # Extract the first word of "gcc", so it can be a program name with args.
1070 set dummy gcc
; ac_word
=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC
="$CC" # Let the user override the test.
1079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1081 for ac_dir
in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1092 if test -n "$CC"; then
1093 echo "$ac_t""$CC" 1>&6
1095 echo "$ac_t""no" 1>&6
1098 if test -z "$CC"; then
1099 # Extract the first word of "cc", so it can be a program name with args.
1100 set dummy cc
; ac_word
=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 if test -n "$CC"; then
1107 ac_cv_prog_CC
="$CC" # Let the user override the test.
1109 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1112 for ac_dir
in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir
=.
1114 if test -f $ac_dir/$ac_word; then
1115 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1116 ac_prog_rejected
=yes
1124 if test $ac_prog_rejected = yes; then
1125 # We found a bogon in the path, so make sure we never use it.
1126 set dummy
$ac_cv_prog_CC
1128 if test $# -gt 0; then
1129 # We chose a different compiler from the bogus one.
1130 # However, it has the same basename, so the bogon will be chosen
1131 # first if we set CC to just the basename; use the full file name.
1133 set dummy
"$ac_dir/$ac_word" "$@"
1141 if test -n "$CC"; then
1142 echo "$ac_t""$CC" 1>&6
1144 echo "$ac_t""no" 1>&6
1147 if test -z "$CC"; then
1148 case "`uname -s`" in
1150 # Extract the first word of "cl", so it can be a program name with args.
1151 set dummy cl
; ac_word
=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test -n "$CC"; then
1158 ac_cv_prog_CC
="$CC" # Let the user override the test.
1160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1162 for ac_dir
in $ac_dummy; do
1163 test -z "$ac_dir" && ac_dir
=.
1164 if test -f $ac_dir/$ac_word; then
1173 if test -n "$CC"; then
1174 echo "$ac_t""$CC" 1>&6
1176 echo "$ac_t""no" 1>&6
1181 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1184 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1189 ac_cpp
='$CPP $CPPFLAGS'
1190 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1191 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1192 cross_compiling
=$ac_cv_prog_cc_cross
1194 cat > conftest.
$ac_ext << EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1201 if { (eval echo configure
:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1202 ac_cv_prog_cc_works
=yes
1203 # If we can't run a trivial program, we are probably using a cross compiler.
1204 if (.
/conftest
; exit) 2>/dev
/null
; then
1205 ac_cv_prog_cc_cross
=no
1207 ac_cv_prog_cc_cross
=yes
1210 echo "configure: failed program was:" >&5
1211 cat conftest.
$ac_ext >&5
1212 ac_cv_prog_cc_works
=no
1216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1217 ac_cpp
='$CPP $CPPFLAGS'
1218 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1219 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1220 cross_compiling
=$ac_cv_prog_cc_cross
1222 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1223 if test $ac_cv_prog_cc_works = no
; then
1224 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1226 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1228 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1229 cross_compiling
=$ac_cv_prog_cc_cross
1231 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether we are using GNU C" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 cat > conftest.c
<<EOF
1241 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1248 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1250 if test $ac_cv_prog_gcc = yes; then
1256 ac_test_CFLAGS
="${CFLAGS+set}"
1257 ac_save_CFLAGS
="$CFLAGS"
1259 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether ${CC-cc} accepts -g" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 echo 'void f(){}' > conftest.c
1265 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1274 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1275 if test "$ac_test_CFLAGS" = set; then
1276 CFLAGS
="$ac_save_CFLAGS"
1277 elif test $ac_cv_prog_cc_g = yes; then
1278 if test "$GCC" = yes; then
1284 if test "$GCC" = yes; then
1291 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1292 if test "${with_gnu_ld+set}" = set; then
1293 withval
="$with_gnu_ld"
1294 test "$withval" = no || with_gnu_ld
=yes
1300 if test "$GCC" = yes; then
1301 # Check if gcc -print-prog-name=ld gives a path.
1302 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1303 echo "configure:1304: checking for ld used by GCC" >&5
1306 # gcc leaves a trailing carriage return which upsets mingw
1307 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1309 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1312 # Accept absolute paths.
1313 [\\/]* |
[A-Za-z
]:[\\/]*)
1314 re_direlt
='/[^/][^/]*/\.\./'
1315 # Canonicalize the path of ld
1316 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1317 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1318 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1320 test -z "$LD" && LD
="$ac_prog"
1323 # If it fails, then pretend we aren't using GCC.
1327 # If it is relative, then search for the first ld in PATH.
1331 elif test "$with_gnu_ld" = yes; then
1332 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1333 echo "configure:1334: checking for GNU ld" >&5
1335 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1336 echo "configure:1337: checking for non-GNU ld" >&5
1338 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 if test -z "$LD"; then
1342 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1343 for ac_dir
in $PATH; do
1344 test -z "$ac_dir" && ac_dir
=.
1345 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1346 lt_cv_path_LD
="$ac_dir/$ac_prog"
1347 # Check to see if the program is GNU ld. I'd rather use --version,
1348 # but apparently some GNU ld's only accept -v.
1349 # Break only if it was the GNU/non-GNU ld that we prefer.
1350 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1351 test "$with_gnu_ld" != no
&& break
1353 test "$with_gnu_ld" != yes && break
1359 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1364 if test -n "$LD"; then
1365 echo "$ac_t""$LD" 1>&6
1367 echo "$ac_t""no" 1>&6
1369 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1370 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1371 echo "configure:1372: checking if the linker ($LD) is GNU ld" >&5
1372 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1376 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1377 lt_cv_prog_gnu_ld
=yes
1379 lt_cv_prog_gnu_ld
=no
1383 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1384 with_gnu_ld
=$lt_cv_prog_gnu_ld
1387 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1388 echo "configure:1389: checking for $LD option to reload object files" >&5
1389 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 lt_cv_ld_reload_flag
='-r'
1395 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1396 reload_flag
=$lt_cv_ld_reload_flag
1397 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1399 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1400 echo "configure:1401: checking for BSD-compatible nm" >&5
1401 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 if test -n "$NM"; then
1405 # Let the user override the test.
1408 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1409 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1410 test -z "$ac_dir" && ac_dir
=.
1411 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1412 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1413 # Check to see if the nm accepts a BSD-compat flag.
1414 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1415 # nm: unknown option "B" ignored
1416 # Tru64's nm complains that /dev/null is an invalid object file
1417 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1418 lt_cv_path_NM
="$tmp_nm -B"
1420 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1421 lt_cv_path_NM
="$tmp_nm -p"
1424 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1425 continue # so that we can try to find one that supports BSD flags
1430 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1435 echo "$ac_t""$NM" 1>&6
1437 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether ln -s works" >&5
1439 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1443 if ln -s X conftestdata
2>/dev
/null
1446 ac_cv_prog_LN_S
="ln -s"
1451 LN_S
="$ac_cv_prog_LN_S"
1452 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1453 echo "$ac_t""yes" 1>&6
1455 echo "$ac_t""no" 1>&6
1458 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1459 echo "configure:1460: checking how to recognise dependant libraries" >&5
1460 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1464 lt_cv_file_magic_test_file
=
1465 lt_cv_deplibs_check_method
='unknown'
1466 # Need to set the preceding variable on all platforms that support
1467 # interlibrary dependencies.
1468 # 'none' -- dependencies not supported.
1469 # `unknown' -- same as none, but documents that we really don't know.
1470 # 'pass_all' -- all dependencies passed with no checks.
1471 # 'test_compile' -- check by making test program.
1472 # 'file_magic [regex]' -- check by looking for files in library path
1473 # which responds to the $file_magic_cmd with a given egrep regex.
1474 # If you have `file' or equivalent on your system and you're not sure
1475 # whether `pass_all' will *always* work, you probably want this one.
1479 lt_cv_deplibs_check_method
=pass_all
1483 lt_cv_deplibs_check_method
=pass_all
1487 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1488 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1489 lt_cv_file_magic_test_file
=/shlib
/libc.so
1492 cygwin
* | mingw
* |pw32
*)
1493 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1494 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1497 darwin
* | rhapsody
*)
1498 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1499 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1501 rhapsody
* | darwin1.012
)
1502 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1505 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1510 freebsd
* | kfreebsd
*-gnu)
1511 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1514 # Not sure whether the presence of OpenBSD here was a mistake.
1515 # Let's accept both of them until this is cleared up.
1516 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1517 lt_cv_file_magic_cmd
=/usr
/bin
/file
1518 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1522 lt_cv_deplibs_check_method
=pass_all
1527 lt_cv_deplibs_check_method
=pass_all
1533 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1534 lt_cv_file_magic_cmd
=/usr
/bin
/file
1535 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1538 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1539 lt_cv_file_magic_cmd
=/usr
/bin
/file
1540 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1548 # this will be overridden with pass_all, but let us keep it just in case
1549 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1553 *-32|
*"-32 ") libmagic
=32-bit;;
1554 *-n32|
*"-n32 ") libmagic
=N32
;;
1555 *-64|
*"-64 ") libmagic
=64-bit;;
1556 *) libmagic
=never-match
;;
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 ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1562 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1563 lt_cv_deplibs_check_method
=pass_all
1566 # This must be Linux ELF.
1569 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1570 lt_cv_deplibs_check_method
=pass_all
;;
1572 # glibc up to 2.1.1 does not perform some relocations on ARM
1573 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1575 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1578 netbsd
* | knetbsd
*-gnu)
1579 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1580 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1582 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1587 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1588 lt_cv_file_magic_cmd
=/usr
/bin
/file
1589 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1592 osf3
* | osf4
* | osf5
*)
1593 # this will be overridden with pass_all, but let us keep it just in case
1594 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1595 lt_cv_file_magic_test_file
=/shlib
/libc.so
1596 lt_cv_deplibs_check_method
=pass_all
1600 lt_cv_deplibs_check_method
=pass_all
1604 lt_cv_deplibs_check_method
=pass_all
1605 lt_cv_file_magic_test_file
=/lib
/libc.so
1608 sysv5uw
[78]* | sysv4
*uw2
*)
1609 lt_cv_deplibs_check_method
=pass_all
1612 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1613 case $host_vendor in
1615 lt_cv_deplibs_check_method
=pass_all
1618 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]'
1619 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1627 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1628 file_magic_cmd
=$lt_cv_file_magic_cmd
1629 deplibs_check_method
=$lt_cv_deplibs_check_method
1631 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1632 echo "configure:1633: checking for object suffix" >&5
1633 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1637 echo 'int i = 1;' > conftest.
$ac_ext
1638 if { (eval echo configure
:1639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1639 for ac_file
in conftest.
*; do
1642 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1646 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1651 echo "$ac_t""$ac_cv_objext" 1>&6
1652 OBJEXT
=$ac_cv_objext
1653 ac_objext
=$ac_cv_objext
1657 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1658 echo "configure:1659: checking for executable suffix" >&5
1659 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1666 echo 'int main () { return 0; }' > conftest.
$ac_ext
1668 if { (eval echo configure
:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1669 for file in conftest.
*; do
1671 *.c |
*.o |
*.obj
) ;;
1672 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1676 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1679 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1684 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1685 echo "$ac_t""${ac_cv_exeext}" 1>&6
1688 if test $host != $build; then
1689 ac_tool_prefix
=${host_alias}-
1694 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1696 # Only perform the check for file, if the check method requires it
1697 case $deplibs_check_method in
1699 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1700 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1701 echo "configure:1702: checking for ${ac_tool_prefix}file" >&5
1702 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1707 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1710 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1713 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1714 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1715 ac_dummy
="/usr/bin:$PATH"
1716 for ac_dir
in $ac_dummy; do
1717 test -z "$ac_dir" && ac_dir
=.
1718 if test -f $ac_dir/${ac_tool_prefix}file; then
1719 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1720 if test -n "$file_magic_test_file"; then
1721 case $deplibs_check_method in
1723 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1724 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1725 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1726 egrep "$file_magic_regex" > /dev
/null
; then
1731 *** Warning: the command libtool uses to detect shared libraries,
1732 *** $file_magic_cmd, produces output that libtool cannot recognize.
1733 *** The result is that libtool may fail to recognize shared libraries
1734 *** as such. This will affect the creation of libtool libraries that
1735 *** depend on shared libraries, but programs linked with such libtool
1736 *** libraries will work regardless of this problem. Nevertheless, you
1737 *** may want to report the problem to your system manager and/or to
1738 *** bug-libtool@gnu.org
1748 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1753 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1754 if test -n "$MAGIC_CMD"; then
1755 echo "$ac_t""$MAGIC_CMD" 1>&6
1757 echo "$ac_t""no" 1>&6
1760 if test -z "$lt_cv_path_MAGIC_CMD"; then
1761 if test -n "$ac_tool_prefix"; then
1762 echo $ac_n "checking for file""... $ac_c" 1>&6
1763 echo "configure:1764: checking for file" >&5
1764 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1769 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1772 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1775 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1776 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1777 ac_dummy
="/usr/bin:$PATH"
1778 for ac_dir
in $ac_dummy; do
1779 test -z "$ac_dir" && ac_dir
=.
1780 if test -f $ac_dir/file; then
1781 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1782 if test -n "$file_magic_test_file"; then
1783 case $deplibs_check_method in
1785 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1786 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1787 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1788 egrep "$file_magic_regex" > /dev
/null
; then
1793 *** Warning: the command libtool uses to detect shared libraries,
1794 *** $file_magic_cmd, produces output that libtool cannot recognize.
1795 *** The result is that libtool may fail to recognize shared libraries
1796 *** as such. This will affect the creation of libtool libraries that
1797 *** depend on shared libraries, but programs linked with such libtool
1798 *** libraries will work regardless of this problem. Nevertheless, you
1799 *** may want to report the problem to your system manager and/or to
1800 *** bug-libtool@gnu.org
1810 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1815 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1816 if test -n "$MAGIC_CMD"; then
1817 echo "$ac_t""$MAGIC_CMD" 1>&6
1819 echo "$ac_t""no" 1>&6
1831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1832 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_word" >&5
1835 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 if test -n "$RANLIB"; then
1839 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1841 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1843 for ac_dir
in $ac_dummy; do
1844 test -z "$ac_dir" && ac_dir
=.
1845 if test -f $ac_dir/$ac_word; then
1846 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1853 RANLIB
="$ac_cv_prog_RANLIB"
1854 if test -n "$RANLIB"; then
1855 echo "$ac_t""$RANLIB" 1>&6
1857 echo "$ac_t""no" 1>&6
1861 if test -z "$ac_cv_prog_RANLIB"; then
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "ranlib", so it can be a program name with args.
1864 set dummy ranlib
; ac_word
=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1867 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 if test -n "$RANLIB"; then
1871 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1875 for ac_dir
in $ac_dummy; do
1876 test -z "$ac_dir" && ac_dir
=.
1877 if test -f $ac_dir/$ac_word; then
1878 ac_cv_prog_RANLIB
="ranlib"
1883 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1886 RANLIB
="$ac_cv_prog_RANLIB"
1887 if test -n "$RANLIB"; then
1888 echo "$ac_t""$RANLIB" 1>&6
1890 echo "$ac_t""no" 1>&6
1898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1899 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_word" >&5
1902 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 if test -n "$STRIP"; then
1906 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1908 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1910 for ac_dir
in $ac_dummy; do
1911 test -z "$ac_dir" && ac_dir
=.
1912 if test -f $ac_dir/$ac_word; then
1913 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1920 STRIP
="$ac_cv_prog_STRIP"
1921 if test -n "$STRIP"; then
1922 echo "$ac_t""$STRIP" 1>&6
1924 echo "$ac_t""no" 1>&6
1928 if test -z "$ac_cv_prog_STRIP"; then
1929 if test -n "$ac_tool_prefix"; then
1930 # Extract the first word of "strip", so it can be a program name with args.
1931 set dummy strip
; ac_word
=$2
1932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1933 echo "configure:1934: checking for $ac_word" >&5
1934 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 if test -n "$STRIP"; then
1938 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1940 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1942 for ac_dir
in $ac_dummy; do
1943 test -z "$ac_dir" && ac_dir
=.
1944 if test -f $ac_dir/$ac_word; then
1945 ac_cv_prog_STRIP
="strip"
1950 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1953 STRIP
="$ac_cv_prog_STRIP"
1954 if test -n "$STRIP"; then
1955 echo "$ac_t""$STRIP" 1>&6
1957 echo "$ac_t""no" 1>&6
1966 # Check for any special flags to pass to ltconfig.
1967 libtool_flags
="--cache-file=$cache_file"
1968 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1969 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1970 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1971 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
1972 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1975 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1976 if test "${enable_libtool_lock+set}" = set; then
1977 enableval
="$enable_libtool_lock"
1981 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1982 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1984 # Check whether --with-pic or --without-pic was given.
1985 if test "${with_pic+set}" = set; then
1992 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1993 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1995 # Some flags need to be propagated to the compiler or linker for good
1999 # Find out which ABI we are using.
2000 echo '#line 2001 "configure"' > conftest.
$ac_ext
2001 if { (eval echo configure
:2002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2002 if test "$lt_cv_prog_gnu_ld" = yes; then
2003 case `/usr/bin/file conftest.$ac_objext` in
2005 LD
="${LD-ld} -melf32bsmip"
2008 LD
="${LD-ld} -melf32bmipn32"
2011 LD
="${LD-ld} -melf64bmip"
2015 case `/usr/bin/file conftest.$ac_objext` in
2032 # Find out which ABI we are using.
2033 echo 'int i;' > conftest.
$ac_ext
2034 if { (eval echo configure
:2035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2035 case "`/usr/bin/file conftest.o`" in
2048 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2049 SAVE_CFLAGS
="$CFLAGS"
2050 CFLAGS
="$CFLAGS -belf"
2051 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether the C compiler needs -belf" >&5
2053 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2059 ac_cpp
='$CPP $CPPFLAGS'
2060 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2061 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2062 cross_compiling
=$ac_cv_prog_cc_cross
2064 cat > conftest.
$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2072 if { (eval echo configure
:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2074 lt_cv_cc_needs_belf
=yes
2076 echo "configure: failed program was:" >&5
2077 cat conftest.
$ac_ext >&5
2079 lt_cv_cc_needs_belf
=no
2083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2084 ac_cpp
='$CPP $CPPFLAGS'
2085 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2086 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2087 cross_compiling
=$ac_cv_prog_cc_cross
2091 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2092 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2093 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2094 CFLAGS
="$SAVE_CFLAGS"
2102 # Save cache, so that ltconfig can load it
2103 cat > confcache
<<\EOF
2104 # This file is a shell script that caches the results of configure
2105 # tests run on this system so they can be shared between configure
2106 # scripts and configure runs. It is not useful on other systems.
2107 # If it contains results you don't want to keep, you may remove or edit it.
2109 # By default, configure uses ./config.cache as the cache file,
2110 # creating it if it does not exist already. You can give configure
2111 # the --cache-file=FILE option to use a different cache file; that is
2112 # what configure does when it calls configure scripts in
2113 # subdirectories, so they share the cache.
2114 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2115 # config.status only pays attention to the cache file if you give it the
2116 # --recheck option to rerun configure.
2119 # The following way of writing the cache mishandles newlines in values,
2120 # but we know of no workaround that is simple, portable, and efficient.
2121 # So, don't put newlines in cache variables' values.
2122 # Ultrix sh set writes to stderr and can't be redirected directly,
2123 # and sets the high bit in the cache file unless we assign to the vars.
2125 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2127 # `set' does not quote correctly, so add quotes (double-quote substitution
2128 # turns \\\\ into \\, and sed turns \\ into \).
2130 -e "s/'/'\\\\''/g" \
2131 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2134 # `set' quotes correctly as required by POSIX, so do not add quotes.
2135 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2138 if cmp -s $cache_file confcache
; then
2141 if test -w $cache_file; then
2142 echo "updating cache $cache_file"
2143 cat confcache
> $cache_file
2145 echo "not updating unwritable cache $cache_file"
2151 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2152 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2153 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2154 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2155 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2156 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2157 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2158 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2159 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2160 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2162 # Reload cache, that may have been modified by ltconfig
2163 if test -r "$cache_file"; then
2164 echo "loading cache $cache_file"
2167 echo "creating cache $cache_file"
2172 # This can be used to rebuild libtool when needed
2173 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2175 # Always use our own libtool.
2176 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2178 # Redirect the config.log output again, so that the ltconfig log is not
2179 # clobbered by the next message.
2180 exec 5>>.
/config.log
2188 # Check whether --enable-targets or --disable-targets was given.
2189 if test "${enable_targets+set}" = set; then
2190 enableval
="$enable_targets"
2191 case "${enableval}" in
2192 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2194 no
) enable_targets
= ;;
2195 *) enable_targets
=$enableval ;;
2198 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2199 if test "${enable_commonbfdlib+set}" = set; then
2200 enableval
="$enable_commonbfdlib"
2201 case "${enableval}" in
2202 yes) commonbfdlib
=true
;;
2203 no
) commonbfdlib
=false
;;
2204 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2208 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2209 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2210 if test "${enable_build_warnings+set}" = set; then
2211 enableval
="$enable_build_warnings"
2212 case "${enableval}" in
2214 no
) build_warnings
="-w";;
2215 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2216 build_warnings
="${build_warnings} ${t}";;
2217 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2218 build_warnings
="${t} ${build_warnings}";;
2219 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2221 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2222 echo "Setting warning flags = $build_warnings" 6>&1
2226 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2227 WARN_CFLAGS
="${build_warnings}"
2235 if test -z "$target" ; then
2236 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2238 if test -z "$host" ; then
2239 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2242 # Extract the first word of "gcc", so it can be a program name with args.
2243 set dummy gcc
; ac_word
=$2
2244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2245 echo "configure:2246: checking for $ac_word" >&5
2246 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2249 if test -n "$CC"; then
2250 ac_cv_prog_CC
="$CC" # Let the user override the test.
2252 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2254 for ac_dir
in $ac_dummy; do
2255 test -z "$ac_dir" && ac_dir
=.
2256 if test -f $ac_dir/$ac_word; then
2265 if test -n "$CC"; then
2266 echo "$ac_t""$CC" 1>&6
2268 echo "$ac_t""no" 1>&6
2271 if test -z "$CC"; then
2272 # Extract the first word of "cc", so it can be a program name with args.
2273 set dummy cc
; ac_word
=$2
2274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2275 echo "configure:2276: checking for $ac_word" >&5
2276 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC
="$CC" # Let the user override the test.
2282 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2285 for ac_dir
in $ac_dummy; do
2286 test -z "$ac_dir" && ac_dir
=.
2287 if test -f $ac_dir/$ac_word; then
2288 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2289 ac_prog_rejected
=yes
2297 if test $ac_prog_rejected = yes; then
2298 # We found a bogon in the path, so make sure we never use it.
2299 set dummy
$ac_cv_prog_CC
2301 if test $# -gt 0; then
2302 # We chose a different compiler from the bogus one.
2303 # However, it has the same basename, so the bogon will be chosen
2304 # first if we set CC to just the basename; use the full file name.
2306 set dummy
"$ac_dir/$ac_word" "$@"
2314 if test -n "$CC"; then
2315 echo "$ac_t""$CC" 1>&6
2317 echo "$ac_t""no" 1>&6
2320 if test -z "$CC"; then
2321 case "`uname -s`" in
2323 # Extract the first word of "cl", so it can be a program name with args.
2324 set dummy cl
; ac_word
=$2
2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_word" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC
="$CC" # Let the user override the test.
2333 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2335 for ac_dir
in $ac_dummy; do
2336 test -z "$ac_dir" && ac_dir
=.
2337 if test -f $ac_dir/$ac_word; then
2346 if test -n "$CC"; then
2347 echo "$ac_t""$CC" 1>&6
2349 echo "$ac_t""no" 1>&6
2354 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2357 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2358 echo "configure:2359: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2362 ac_cpp
='$CPP $CPPFLAGS'
2363 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2364 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2365 cross_compiling
=$ac_cv_prog_cc_cross
2367 cat > conftest.
$ac_ext << EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2374 if { (eval echo configure
:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2375 ac_cv_prog_cc_works
=yes
2376 # If we can't run a trivial program, we are probably using a cross compiler.
2377 if (.
/conftest
; exit) 2>/dev
/null
; then
2378 ac_cv_prog_cc_cross
=no
2380 ac_cv_prog_cc_cross
=yes
2383 echo "configure: failed program was:" >&5
2384 cat conftest.
$ac_ext >&5
2385 ac_cv_prog_cc_works
=no
2389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2390 ac_cpp
='$CPP $CPPFLAGS'
2391 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2392 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2393 cross_compiling
=$ac_cv_prog_cc_cross
2395 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2396 if test $ac_cv_prog_cc_works = no
; then
2397 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2399 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2400 echo "configure:2401: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2401 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2402 cross_compiling
=$ac_cv_prog_cc_cross
2404 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2405 echo "configure:2406: checking whether we are using GNU C" >&5
2406 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.c
<<EOF
2414 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2421 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2423 if test $ac_cv_prog_gcc = yes; then
2429 ac_test_CFLAGS
="${CFLAGS+set}"
2430 ac_save_CFLAGS
="$CFLAGS"
2432 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2433 echo "configure:2434: checking whether ${CC-cc} accepts -g" >&5
2434 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 echo 'void f(){}' > conftest.c
2438 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2447 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2448 if test "$ac_test_CFLAGS" = set; then
2449 CFLAGS
="$ac_save_CFLAGS"
2450 elif test $ac_cv_prog_cc_g = yes; then
2451 if test "$GCC" = yes; then
2457 if test "$GCC" = yes; then
2465 for ac_prog
in 'bison -y' byacc
2467 # Extract the first word of "$ac_prog", so it can be a program name with args.
2468 set dummy
$ac_prog; ac_word
=$2
2469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_word" >&5
2471 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 if test -n "$YACC"; then
2475 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2477 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2479 for ac_dir
in $ac_dummy; do
2480 test -z "$ac_dir" && ac_dir
=.
2481 if test -f $ac_dir/$ac_word; then
2482 ac_cv_prog_YACC
="$ac_prog"
2489 YACC
="$ac_cv_prog_YACC"
2490 if test -n "$YACC"; then
2491 echo "$ac_t""$YACC" 1>&6
2493 echo "$ac_t""no" 1>&6
2496 test -n "$YACC" && break
2498 test -n "$YACC" || YACC
="yacc"
2500 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2501 echo "configure:2502: checking how to run the C preprocessor" >&5
2502 # On Suns, sometimes $CPP names a directory.
2503 if test -n "$CPP" && test -d "$CPP"; then
2506 if test -z "$CPP"; then
2507 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 # This must be in double quotes, not single quotes, because CPP may get
2511 # substituted into the Makefile and "${CC-cc}" will confuse make.
2513 # On the NeXT, cc -E runs the code through the compiler's parser,
2514 # not just through cpp.
2515 cat > conftest.
$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2521 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2522 { (eval echo configure
:2523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2523 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2524 if test -z "$ac_err"; then
2528 echo "configure: failed program was:" >&5
2529 cat conftest.
$ac_ext >&5
2531 CPP
="${CC-cc} -E -traditional-cpp"
2532 cat > conftest.
$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2538 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2539 { (eval echo configure
:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2540 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2541 if test -z "$ac_err"; then
2545 echo "configure: failed program was:" >&5
2546 cat conftest.
$ac_ext >&5
2548 CPP
="${CC-cc} -nologo -E"
2549 cat > conftest.
$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2555 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2556 { (eval echo configure
:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2557 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2558 if test -z "$ac_err"; then
2562 echo "configure: failed program was:" >&5
2563 cat conftest.
$ac_ext >&5
2572 ac_cv_prog_CPP
="$CPP"
2574 CPP
="$ac_cv_prog_CPP"
2576 ac_cv_prog_CPP
="$CPP"
2578 echo "$ac_t""$CPP" 1>&6
2580 missing_dir
=`cd $ac_aux_dir && pwd`
2581 for ac_prog
in flex
lex
2583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy
$ac_prog; ac_word
=$2
2585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_word" >&5
2587 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 if test -n "$LEX"; then
2591 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2593 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2595 for ac_dir
in $ac_dummy; do
2596 test -z "$ac_dir" && ac_dir
=.
2597 if test -f $ac_dir/$ac_word; then
2598 ac_cv_prog_LEX
="$ac_prog"
2605 LEX
="$ac_cv_prog_LEX"
2606 if test -n "$LEX"; then
2607 echo "$ac_t""$LEX" 1>&6
2609 echo "$ac_t""no" 1>&6
2612 test -n "$LEX" && break
2614 test -n "$LEX" || LEX
="$missing_dir/missing flex"
2616 # Extract the first word of "flex", so it can be a program name with args.
2617 set dummy flex
; ac_word
=$2
2618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2619 echo "configure:2620: checking for $ac_word" >&5
2620 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 if test -n "$LEX"; then
2624 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2626 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2628 for ac_dir
in $ac_dummy; do
2629 test -z "$ac_dir" && ac_dir
=.
2630 if test -f $ac_dir/$ac_word; then
2631 ac_cv_prog_LEX
="flex"
2636 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2639 LEX
="$ac_cv_prog_LEX"
2640 if test -n "$LEX"; then
2641 echo "$ac_t""$LEX" 1>&6
2643 echo "$ac_t""no" 1>&6
2646 if test -z "$LEXLIB"
2652 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2653 echo "configure:2654: checking for yywrap in -l$ac_lib" >&5
2654 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 ac_save_LIBS
="$LIBS"
2659 LIBS
="-l$ac_lib $LIBS"
2660 cat > conftest.
$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2663 /* Override any gcc2 internal prototype to avoid an error. */
2664 /* We use char because int might match the return type of a gcc2
2665 builtin and then its argument prototype would still apply. */
2672 if { (eval echo configure
:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2674 eval "ac_cv_lib_$ac_lib_var=yes"
2676 echo "configure: failed program was:" >&5
2677 cat conftest.
$ac_ext >&5
2679 eval "ac_cv_lib_$ac_lib_var=no"
2682 LIBS
="$ac_save_LIBS"
2685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2689 echo "$ac_t""no" 1>&6
2694 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2695 echo "configure:2696: checking lex output file root" >&5
2696 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 # The minimal lex program is just a single line: %%. But some broken lexes
2700 # (Solaris, I think it was) want two %% lines, so accommodate them.
2703 if test -f lex.yy.c
; then
2704 ac_cv_prog_lex_root
=lex.yy
2705 elif test -f lexyy.c
; then
2706 ac_cv_prog_lex_root
=lexyy
2708 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2712 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2713 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2715 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2716 echo "configure:2717: checking whether yytext is a pointer" >&5
2717 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 # POSIX says lex can declare yytext either as a pointer or an array; the
2721 # default is implementation-dependent. Figure out which it is, since
2722 # not all implementations provide the %pointer and %array declarations.
2723 ac_cv_prog_lex_yytext_pointer
=no
2724 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2725 ac_save_LIBS
="$LIBS"
2726 LIBS
="$LIBS $LEXLIB"
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 `cat $LEX_OUTPUT_ROOT.c`
2735 if { (eval echo configure
:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2737 ac_cv_prog_lex_yytext_pointer
=yes
2739 echo "configure: failed program was:" >&5
2740 cat conftest.
$ac_ext >&5
2743 LIBS
="$ac_save_LIBS"
2744 rm -f "${LEX_OUTPUT_ROOT}.c"
2748 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2749 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2750 cat >> confdefs.h
<<\EOF
2751 #define YYTEXT_POINTER 1
2757 ALL_LINGUAS
="fr tr ja es sv da zh_CN ru ro"
2758 # Extract the first word of "ranlib", so it can be a program name with args.
2759 set dummy ranlib
; ac_word
=$2
2760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_word" >&5
2762 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 if test -n "$RANLIB"; then
2766 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2768 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2770 for ac_dir
in $ac_dummy; do
2771 test -z "$ac_dir" && ac_dir
=.
2772 if test -f $ac_dir/$ac_word; then
2773 ac_cv_prog_RANLIB
="ranlib"
2778 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2781 RANLIB
="$ac_cv_prog_RANLIB"
2782 if test -n "$RANLIB"; then
2783 echo "$ac_t""$RANLIB" 1>&6
2785 echo "$ac_t""no" 1>&6
2788 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2789 echo "configure:2790: checking for ANSI C header files" >&5
2790 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 cat > conftest.
$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2801 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2802 { (eval echo configure
:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2803 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2804 if test -z "$ac_err"; then
2806 ac_cv_header_stdc
=yes
2809 echo "configure: failed program was:" >&5
2810 cat conftest.
$ac_ext >&5
2812 ac_cv_header_stdc
=no
2816 if test $ac_cv_header_stdc = yes; then
2817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2818 cat > conftest.
$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2824 egrep "memchr" >/dev
/null
2>&1; then
2828 ac_cv_header_stdc
=no
2834 if test $ac_cv_header_stdc = yes; then
2835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2836 cat > conftest.
$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2842 egrep "free" >/dev
/null
2>&1; then
2846 ac_cv_header_stdc
=no
2852 if test $ac_cv_header_stdc = yes; then
2853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2854 if test "$cross_compiling" = yes; then
2857 cat > conftest.
$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2861 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2862 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2864 int main () { int i; for (i = 0; i < 256; i++)
2865 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2869 if { (eval echo configure
:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2873 echo "configure: failed program was:" >&5
2874 cat conftest.
$ac_ext >&5
2876 ac_cv_header_stdc
=no
2884 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2885 if test $ac_cv_header_stdc = yes; then
2886 cat >> confdefs.h
<<\EOF
2887 #define STDC_HEADERS 1
2892 echo $ac_n "checking for working const""... $ac_c" 1>&6
2893 echo "configure:2894: checking for working const" >&5
2894 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2897 cat > conftest.
$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2903 /* Ultrix mips cc rejects this. */
2904 typedef int charset[2]; const charset x;
2905 /* SunOS 4.1.1 cc rejects this. */
2906 char const *const *ccp;
2908 /* NEC SVR4.0.2 mips cc rejects this. */
2909 struct point {int x, y;};
2910 static struct point const zero = {0,0};
2911 /* AIX XL C 1.02.0.0 rejects this.
2912 It does not let you subtract one const X* pointer from another in an arm
2913 of an if-expression whose if-part is not a constant expression */
2914 const char *g = "string";
2915 ccp = &g + (g ? g-g : 0);
2916 /* HPUX 7.0 cc rejects these. */
2919 ccp = (char const *const *) p;
2920 { /* SCO 3.2v4 cc rejects this. */
2922 char const *s = 0 ? (char *) 0 : (char const *) 0;
2926 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2928 const int *foo = &x[0];
2931 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2932 typedef const int *iptr;
2936 { /* AIX XL C 1.02.0.0 rejects this saying
2937 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2938 struct s { int j; const int *ap[3]; };
2939 struct s *b; b->j = 5;
2941 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2947 if { (eval echo configure
:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2951 echo "configure: failed program was:" >&5
2952 cat conftest.
$ac_ext >&5
2959 echo "$ac_t""$ac_cv_c_const" 1>&6
2960 if test $ac_cv_c_const = no
; then
2961 cat >> confdefs.h
<<\EOF
2967 echo $ac_n "checking for inline""... $ac_c" 1>&6
2968 echo "configure:2969: checking for inline" >&5
2969 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2973 for ac_kw
in inline __inline__ __inline
; do
2974 cat > conftest.
$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2982 if { (eval echo configure
:2983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2984 ac_cv_c_inline
=$ac_kw; break
2986 echo "configure: failed program was:" >&5
2987 cat conftest.
$ac_ext >&5
2994 echo "$ac_t""$ac_cv_c_inline" 1>&6
2995 case "$ac_cv_c_inline" in
2997 no
) cat >> confdefs.h
<<\EOF
3001 *) cat >> confdefs.h
<<EOF
3002 #define inline $ac_cv_c_inline
3007 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3008 echo "configure:3009: checking for off_t" >&5
3009 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 cat > conftest.
$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 #include <sys/types.h>
3021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3022 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3024 ac_cv_type_off_t
=yes
3032 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3033 if test $ac_cv_type_off_t = no
; then
3034 cat >> confdefs.h
<<\EOF
3040 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3041 echo "configure:3042: checking for size_t" >&5
3042 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 cat > conftest.
$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048 #include <sys/types.h>
3054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3055 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3057 ac_cv_type_size_t
=yes
3060 ac_cv_type_size_t
=no
3065 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3066 if test $ac_cv_type_size_t = no
; then
3067 cat >> confdefs.h
<<\EOF
3068 #define size_t unsigned
3073 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3074 # for constant arguments. Useless!
3075 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3076 echo "configure:3077: checking for working alloca.h" >&5
3077 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 cat > conftest.
$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3085 char *p = alloca(2 * sizeof(int));
3088 if { (eval echo configure
:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3090 ac_cv_header_alloca_h
=yes
3092 echo "configure: failed program was:" >&5
3093 cat conftest.
$ac_ext >&5
3095 ac_cv_header_alloca_h
=no
3100 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3101 if test $ac_cv_header_alloca_h = yes; then
3102 cat >> confdefs.h
<<\EOF
3103 #define HAVE_ALLOCA_H 1
3108 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3109 echo "configure:3110: checking for alloca" >&5
3110 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.
$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3118 # define alloca __builtin_alloca
3121 # include <malloc.h>
3122 # define alloca _alloca
3125 # include <alloca.h>
3130 # ifndef alloca /* predefined by HP cc +Olibcalls */
3139 char *p = (char *) alloca(1);
3142 if { (eval echo configure
:3143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3144 ac_cv_func_alloca_works
=yes
3146 echo "configure: failed program was:" >&5
3147 cat conftest.
$ac_ext >&5
3149 ac_cv_func_alloca_works
=no
3154 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3155 if test $ac_cv_func_alloca_works = yes; then
3156 cat >> confdefs.h
<<\EOF
3157 #define HAVE_ALLOCA 1
3162 if test $ac_cv_func_alloca_works = no
; then
3163 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3164 # that cause trouble. Some versions do not even contain alloca or
3165 # contain a buggy version. If you still want to use their alloca,
3166 # use ar to extract alloca.o from them instead of compiling alloca.c.
3167 ALLOCA
=alloca.
${ac_objext}
3168 cat >> confdefs.h
<<\EOF
3173 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3174 echo "configure:3175: checking whether alloca needs Cray hooks" >&5
3175 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 cat > conftest.
$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 #if defined(CRAY) && ! defined(CRAY2)
3188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3189 egrep "webecray" >/dev
/null
2>&1; then
3200 echo "$ac_t""$ac_cv_os_cray" 1>&6
3201 if test $ac_cv_os_cray = yes; then
3202 for ac_func
in _getb67 GETB67 getb67
; do
3203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3204 echo "configure:3205: checking for $ac_func" >&5
3205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 cat > conftest.
$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 /* System header to define __stub macros and hopefully few prototypes,
3212 which can conflict with char $ac_func(); below. */
3214 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3221 /* The GNU C library defines this for functions which it implements
3222 to always fail with ENOSYS. Some functions are actually named
3223 something starting with __ and the normal name is an alias. */
3224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3232 if { (eval echo configure
:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3234 eval "ac_cv_func_$ac_func=yes"
3236 echo "configure: failed program was:" >&5
3237 cat conftest.
$ac_ext >&5
3239 eval "ac_cv_func_$ac_func=no"
3244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3246 cat >> confdefs.h
<<EOF
3247 #define CRAY_STACKSEG_END $ac_func
3252 echo "$ac_t""no" 1>&6
3258 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3259 echo "configure:3260: checking stack direction for C alloca" >&5
3260 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 if test "$cross_compiling" = yes; then
3264 ac_cv_c_stack_direction
=0
3266 cat > conftest.
$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 find_stack_direction ()
3271 static char *addr = 0;
3276 return find_stack_direction ();
3279 return (&dummy > addr) ? 1 : -1;
3283 exit (find_stack_direction() < 0);
3286 if { (eval echo configure
:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3288 ac_cv_c_stack_direction
=1
3290 echo "configure: failed program was:" >&5
3291 cat conftest.
$ac_ext >&5
3293 ac_cv_c_stack_direction
=-1
3300 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3301 cat >> confdefs.h
<<EOF
3302 #define STACK_DIRECTION $ac_cv_c_stack_direction
3307 for ac_hdr
in unistd.h
3309 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3311 echo "configure:3312: checking for $ac_hdr" >&5
3312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 cat > conftest.
$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3320 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3321 { (eval echo configure
:3322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3322 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3323 if test -z "$ac_err"; then
3325 eval "ac_cv_header_$ac_safe=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.
$ac_ext >&5
3331 eval "ac_cv_header_$ac_safe=no"
3335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3338 cat >> confdefs.h
<<EOF
3339 #define $ac_tr_hdr 1
3343 echo "$ac_t""no" 1>&6
3347 for ac_func
in getpagesize
3349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_func" >&5
3351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.
$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* System header to define __stub macros and hopefully few prototypes,
3358 which can conflict with char $ac_func(); below. */
3360 /* Override any gcc2 internal prototype to avoid an error. */
3361 /* We use char because int might match the return type of a gcc2
3362 builtin and then its argument prototype would still apply. */
3367 /* The GNU C library defines this for functions which it implements
3368 to always fail with ENOSYS. Some functions are actually named
3369 something starting with __ and the normal name is an alias. */
3370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3378 if { (eval echo configure
:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3380 eval "ac_cv_func_$ac_func=yes"
3382 echo "configure: failed program was:" >&5
3383 cat conftest.
$ac_ext >&5
3385 eval "ac_cv_func_$ac_func=no"
3390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3391 echo "$ac_t""yes" 1>&6
3392 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3393 cat >> confdefs.h
<<EOF
3394 #define $ac_tr_func 1
3398 echo "$ac_t""no" 1>&6
3402 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3403 echo "configure:3404: checking for working mmap" >&5
3404 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3407 if test "$cross_compiling" = yes; then
3408 ac_cv_func_mmap_fixed_mapped
=no
3410 cat > conftest.
$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3414 /* Thanks to Mike Haertel and Jim Avera for this test.
3415 Here is a matrix of mmap possibilities:
3416 mmap private not fixed
3417 mmap private fixed at somewhere currently unmapped
3418 mmap private fixed at somewhere already mapped
3419 mmap shared not fixed
3420 mmap shared fixed at somewhere currently unmapped
3421 mmap shared fixed at somewhere already mapped
3422 For private mappings, we should verify that changes cannot be read()
3423 back from the file, nor mmap's back from the file at a different
3424 address. (There have been systems where private was not correctly
3425 implemented like the infamous i386 svr4.0, and systems where the
3426 VM page cache was not coherent with the filesystem buffer cache
3427 like early versions of FreeBSD and possibly contemporary NetBSD.)
3428 For shared mappings, we should conversely verify that changes get
3429 propogated back to all the places they're supposed to be.
3431 Grep wants private fixed already mapped.
3432 The main things grep needs to know about mmap are:
3433 * does it exist and is it safe to write into the mmap'd area
3434 * how to use it (BSD variants) */
3435 #include <sys/types.h>
3437 #include <sys/mman.h>
3439 /* This mess was copied from the GNU getpagesize.h. */
3440 #ifndef HAVE_GETPAGESIZE
3441 # ifdef HAVE_UNISTD_H
3442 # include <unistd.h>
3445 /* Assume that all systems that can run configure have sys/param.h. */
3446 # ifndef HAVE_SYS_PARAM_H
3447 # define HAVE_SYS_PARAM_H 1
3450 # ifdef _SC_PAGESIZE
3451 # define getpagesize() sysconf(_SC_PAGESIZE)
3452 # else /* no _SC_PAGESIZE */
3453 # ifdef HAVE_SYS_PARAM_H
3454 # include <sys/param.h>
3455 # ifdef EXEC_PAGESIZE
3456 # define getpagesize() EXEC_PAGESIZE
3457 # else /* no EXEC_PAGESIZE */
3459 # define getpagesize() NBPG * CLSIZE
3462 # endif /* no CLSIZE */
3463 # else /* no NBPG */
3465 # define getpagesize() NBPC
3466 # else /* no NBPC */
3468 # define getpagesize() PAGESIZE
3469 # endif /* PAGESIZE */
3470 # endif /* no NBPC */
3471 # endif /* no NBPG */
3472 # endif /* no EXEC_PAGESIZE */
3473 # else /* no HAVE_SYS_PARAM_H */
3474 # define getpagesize() 8192 /* punt totally */
3475 # endif /* no HAVE_SYS_PARAM_H */
3476 # endif /* no _SC_PAGESIZE */
3478 #endif /* no HAVE_GETPAGESIZE */
3481 extern "C" { void *malloc(unsigned); }
3489 char *data, *data2, *data3;
3493 pagesize = getpagesize();
3496 * First, make a file with some known garbage in it.
3498 data = malloc(pagesize);
3501 for (i = 0; i < pagesize; ++i)
3502 *(data + i) = rand();
3504 fd = creat("conftestmmap", 0600);
3507 if (write(fd, data, pagesize) != pagesize)
3512 * Next, try to mmap the file at a fixed address which
3513 * already has something else allocated at it. If we can,
3514 * also make sure that we see the same garbage.
3516 fd = open("conftestmmap", O_RDWR);
3519 data2 = malloc(2 * pagesize);
3522 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3523 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3524 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3526 for (i = 0; i < pagesize; ++i)
3527 if (*(data + i) != *(data2 + i))
3531 * Finally, make sure that changes to the mapped area
3532 * do not percolate back to the file as seen by read().
3533 * (This is a bug on some variants of i386 svr4.0.)
3535 for (i = 0; i < pagesize; ++i)
3536 *(data2 + i) = *(data2 + i) + 1;
3537 data3 = malloc(pagesize);
3540 if (read(fd, data3, pagesize) != pagesize)
3542 for (i = 0; i < pagesize; ++i)
3543 if (*(data + i) != *(data3 + i))
3546 unlink("conftestmmap");
3551 if { (eval echo configure
:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3553 ac_cv_func_mmap_fixed_mapped
=yes
3555 echo "configure: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3558 ac_cv_func_mmap_fixed_mapped
=no
3565 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3566 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3567 cat >> confdefs.h
<<\EOF
3574 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3575 unistd.h values.h sys
/param.h
3577 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3579 echo "configure:3580: checking for $ac_hdr" >&5
3580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 cat > conftest.
$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3588 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3589 { (eval echo configure
:3590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3590 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3591 if test -z "$ac_err"; then
3593 eval "ac_cv_header_$ac_safe=yes"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.
$ac_ext >&5
3599 eval "ac_cv_header_$ac_safe=no"
3603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3604 echo "$ac_t""yes" 1>&6
3605 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3606 cat >> confdefs.h
<<EOF
3607 #define $ac_tr_hdr 1
3611 echo "$ac_t""no" 1>&6
3615 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3616 __argz_count __argz_stringify __argz_next
3618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3619 echo "configure:3620: checking for $ac_func" >&5
3620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func(); below. */
3629 /* Override any gcc2 internal prototype to avoid an error. */
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 if { (eval echo configure
:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3649 eval "ac_cv_func_$ac_func=yes"
3651 echo "configure: failed program was:" >&5
3652 cat conftest.
$ac_ext >&5
3654 eval "ac_cv_func_$ac_func=no"
3659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3661 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3662 cat >> confdefs.h
<<EOF
3663 #define $ac_tr_func 1
3667 echo "$ac_t""no" 1>&6
3672 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3673 for ac_func
in stpcpy
3675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3676 echo "configure:3677: checking for $ac_func" >&5
3677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* System header to define __stub macros and hopefully few prototypes,
3684 which can conflict with char $ac_func(); below. */
3686 /* Override any gcc2 internal prototype to avoid an error. */
3687 /* We use char because int might match the return type of a gcc2
3688 builtin and then its argument prototype would still apply. */
3693 /* The GNU C library defines this for functions which it implements
3694 to always fail with ENOSYS. Some functions are actually named
3695 something starting with __ and the normal name is an alias. */
3696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3704 if { (eval echo configure
:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3706 eval "ac_cv_func_$ac_func=yes"
3708 echo "configure: failed program was:" >&5
3709 cat conftest.
$ac_ext >&5
3711 eval "ac_cv_func_$ac_func=no"
3716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3717 echo "$ac_t""yes" 1>&6
3718 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3719 cat >> confdefs.h
<<EOF
3720 #define $ac_tr_func 1
3724 echo "$ac_t""no" 1>&6
3729 if test "${ac_cv_func_stpcpy}" = "yes"; then
3730 cat >> confdefs.h
<<\EOF
3731 #define HAVE_STPCPY 1
3736 if test $ac_cv_header_locale_h = yes; then
3737 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3738 echo "configure:3739: checking for LC_MESSAGES" >&5
3739 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.
$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3750 if { (eval echo configure
:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3752 am_cv_val_LC_MESSAGES
=yes
3754 echo "configure: failed program was:" >&5
3755 cat conftest.
$ac_ext >&5
3757 am_cv_val_LC_MESSAGES
=no
3762 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3763 if test $am_cv_val_LC_MESSAGES = yes; then
3764 cat >> confdefs.h
<<\EOF
3765 #define HAVE_LC_MESSAGES 1
3770 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3771 echo "configure:3772: checking whether NLS is requested" >&5
3772 # Check whether --enable-nls or --disable-nls was given.
3773 if test "${enable_nls+set}" = set; then
3774 enableval
="$enable_nls"
3780 echo "$ac_t""$USE_NLS" 1>&6
3783 USE_INCLUDED_LIBINTL
=no
3785 if test "$USE_NLS" = "yes"; then
3786 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3787 echo "configure:3788: checking whether included gettext is requested" >&5
3788 # Check whether --with-included-gettext or --without-included-gettext was given.
3789 if test "${with_included_gettext+set}" = set; then
3790 withval
="$with_included_gettext"
3791 nls_cv_force_use_gnu_gettext
=$withval
3793 nls_cv_force_use_gnu_gettext
=no
3796 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3798 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3799 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3801 nls_cv_header_libgt
=
3804 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3805 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3806 echo "configure:3807: checking for libintl.h" >&5
3807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3810 cat > conftest.
$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 #include <libintl.h>
3815 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3816 { (eval echo configure
:3817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3817 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3818 if test -z "$ac_err"; then
3820 eval "ac_cv_header_$ac_safe=yes"
3823 echo "configure: failed program was:" >&5
3824 cat conftest.
$ac_ext >&5
3826 eval "ac_cv_header_$ac_safe=no"
3830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3831 echo "$ac_t""yes" 1>&6
3832 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3833 echo "configure:3834: checking for gettext in libc" >&5
3834 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.
$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <libintl.h>
3842 return (int) gettext ("")
3845 if { (eval echo configure
:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3847 gt_cv_func_gettext_libc
=yes
3849 echo "configure: failed program was:" >&5
3850 cat conftest.
$ac_ext >&5
3852 gt_cv_func_gettext_libc
=no
3857 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3859 if test "$gt_cv_func_gettext_libc" != "yes"; then
3860 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3861 echo "configure:3862: checking for bindtextdomain in -lintl" >&5
3862 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 ac_save_LIBS
="$LIBS"
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* Override any gcc2 internal prototype to avoid an error. */
3872 /* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3874 char bindtextdomain();
3880 if { (eval echo configure
:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3882 eval "ac_cv_lib_$ac_lib_var=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.
$ac_ext >&5
3887 eval "ac_cv_lib_$ac_lib_var=no"
3890 LIBS
="$ac_save_LIBS"
3893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3896 echo "configure:3897: checking for gettext in libintl" >&5
3897 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3900 cat > conftest.
$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3905 return (int) gettext ("")
3908 if { (eval echo configure
:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3910 gt_cv_func_gettext_libintl
=yes
3912 echo "configure: failed program was:" >&5
3913 cat conftest.
$ac_ext >&5
3915 gt_cv_func_gettext_libintl
=no
3920 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3922 echo "$ac_t""no" 1>&6
3927 if test "$gt_cv_func_gettext_libc" = "yes" \
3928 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3929 cat >> confdefs.h
<<\EOF
3930 #define HAVE_GETTEXT 1
3933 # Extract the first word of "msgfmt", so it can be a program name with args.
3934 set dummy msgfmt
; ac_word
=$2
3935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3936 echo "configure:3937: checking for $ac_word" >&5
3937 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3942 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3946 for ac_dir
in $PATH; do
3947 test -z "$ac_dir" && ac_dir
=.
3948 if test -f $ac_dir/$ac_word; then
3949 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3950 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3956 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3960 MSGFMT
="$ac_cv_path_MSGFMT"
3961 if test -n "$MSGFMT"; then
3962 echo "$ac_t""$MSGFMT" 1>&6
3964 echo "$ac_t""no" 1>&6
3966 if test "$MSGFMT" != "no"; then
3967 for ac_func
in dcgettext
3969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3970 echo "configure:3971: checking for $ac_func" >&5
3971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.
$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 /* System header to define __stub macros and hopefully few prototypes,
3978 which can conflict with char $ac_func(); below. */
3980 /* Override any gcc2 internal prototype to avoid an error. */
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3987 /* The GNU C library defines this for functions which it implements
3988 to always fail with ENOSYS. Some functions are actually named
3989 something starting with __ and the normal name is an alias. */
3990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3998 if { (eval echo configure
:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4000 eval "ac_cv_func_$ac_func=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.
$ac_ext >&5
4005 eval "ac_cv_func_$ac_func=no"
4010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4013 cat >> confdefs.h
<<EOF
4014 #define $ac_tr_func 1
4018 echo "$ac_t""no" 1>&6
4022 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4023 set dummy gmsgfmt
; ac_word
=$2
4024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4025 echo "configure:4026: checking for $ac_word" >&5
4026 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4031 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4034 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4037 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4039 for ac_dir
in $ac_dummy; do
4040 test -z "$ac_dir" && ac_dir
=.
4041 if test -f $ac_dir/$ac_word; then
4042 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4047 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4051 GMSGFMT
="$ac_cv_path_GMSGFMT"
4052 if test -n "$GMSGFMT"; then
4053 echo "$ac_t""$GMSGFMT" 1>&6
4055 echo "$ac_t""no" 1>&6
4058 # Extract the first word of "xgettext", so it can be a program name with args.
4059 set dummy xgettext
; ac_word
=$2
4060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4061 echo "configure:4062: checking for $ac_word" >&5
4062 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4067 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4070 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4071 for ac_dir
in $PATH; do
4072 test -z "$ac_dir" && ac_dir
=.
4073 if test -f $ac_dir/$ac_word; then
4074 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4075 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4081 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4085 XGETTEXT
="$ac_cv_path_XGETTEXT"
4086 if test -n "$XGETTEXT"; then
4087 echo "$ac_t""$XGETTEXT" 1>&6
4089 echo "$ac_t""no" 1>&6
4092 cat > conftest.
$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4097 extern int _nl_msg_cat_cntr;
4098 return _nl_msg_cat_cntr
4101 if { (eval echo configure
:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4106 echo "configure: failed program was:" >&5
4107 cat conftest.
$ac_ext >&5
4118 echo "$ac_t""no" 1>&6
4123 if test x
"$CATOBJEXT" = x
&& test -d $srcdir/..
/intl
; then
4124 # Neither gettext nor catgets in included in the C library.
4125 # Fall back on GNU gettext library (assuming it is present).
4126 nls_cv_use_gnu_gettext
=yes
4130 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4131 INTLOBJS
="\$(GETTOBJS)"
4132 # Extract the first word of "msgfmt", so it can be a program name with args.
4133 set dummy msgfmt
; ac_word
=$2
4134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_word" >&5
4136 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4141 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4144 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4145 for ac_dir
in $PATH; do
4146 test -z "$ac_dir" && ac_dir
=.
4147 if test -f $ac_dir/$ac_word; then
4148 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4149 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4155 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4159 MSGFMT
="$ac_cv_path_MSGFMT"
4160 if test -n "$MSGFMT"; then
4161 echo "$ac_t""$MSGFMT" 1>&6
4163 echo "$ac_t""no" 1>&6
4166 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4167 set dummy gmsgfmt
; ac_word
=$2
4168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4169 echo "configure:4170: checking for $ac_word" >&5
4170 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4175 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4178 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4181 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4183 for ac_dir
in $ac_dummy; do
4184 test -z "$ac_dir" && ac_dir
=.
4185 if test -f $ac_dir/$ac_word; then
4186 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4191 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4195 GMSGFMT
="$ac_cv_path_GMSGFMT"
4196 if test -n "$GMSGFMT"; then
4197 echo "$ac_t""$GMSGFMT" 1>&6
4199 echo "$ac_t""no" 1>&6
4202 # Extract the first word of "xgettext", so it can be a program name with args.
4203 set dummy xgettext
; ac_word
=$2
4204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4205 echo "configure:4206: checking for $ac_word" >&5
4206 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4211 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4215 for ac_dir
in $PATH; do
4216 test -z "$ac_dir" && ac_dir
=.
4217 if test -f $ac_dir/$ac_word; then
4218 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4219 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4225 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4229 XGETTEXT
="$ac_cv_path_XGETTEXT"
4230 if test -n "$XGETTEXT"; then
4231 echo "$ac_t""$XGETTEXT" 1>&6
4233 echo "$ac_t""no" 1>&6
4237 USE_INCLUDED_LIBINTL
=yes
4241 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4243 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4244 nls_cv_header_intl
=libintl.h
4245 nls_cv_header_libgt
=libgettext.h
4248 if test "$XGETTEXT" != ":"; then
4249 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4252 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4257 # We need to process the po/ directory.
4261 nls_cv_header_intl
=libintl.h
4262 nls_cv_header_libgt
=libgettext.h
4265 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4266 # because some of the sources are only built for this goal.
4267 if test "$PACKAGE" = gettext; then
4269 USE_INCLUDED_LIBINTL
=yes
4272 for lang
in $ALL_LINGUAS; do
4273 GMOFILES
="$GMOFILES $lang.gmo"
4274 POFILES
="$POFILES $lang.po"
4288 if test "x$CATOBJEXT" != "x"; then
4289 cat >> confdefs.h
<<\EOF
4290 #define ENABLE_NLS 1
4296 if test "x$CATOBJEXT" != "x"; then
4297 if test "x$ALL_LINGUAS" = "x"; then
4300 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4301 echo "configure:4302: checking for catalogs to be installed" >&5
4303 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4304 case "$ALL_LINGUAS" in
4305 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4308 LINGUAS
=$NEW_LINGUAS
4309 echo "$ac_t""$LINGUAS" 1>&6
4312 if test -n "$LINGUAS"; then
4313 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4317 if test $ac_cv_header_locale_h = yes; then
4318 INCLUDE_LOCALE_H
="#include <locale.h>"
4321 /* The system does not provide the header <locale.h>. Take care yourself. */"
4325 if test -f $srcdir/po2tbl.
sed.
in; then
4326 if test "$CATOBJEXT" = ".cat"; then
4327 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4328 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4329 echo "configure:4330: checking for linux/version.h" >&5
4330 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4333 cat > conftest.
$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 #include <linux/version.h>
4338 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4339 { (eval echo configure
:4340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4340 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4341 if test -z "$ac_err"; then
4343 eval "ac_cv_header_$ac_safe=yes"
4346 echo "configure: failed program was:" >&5
4347 cat conftest.
$ac_ext >&5
4349 eval "ac_cv_header_$ac_safe=no"
4353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4357 echo "$ac_t""no" 1>&6
4362 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4364 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4365 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4368 if test "$PACKAGE" = "gettext"; then
4378 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4384 if test -f $srcdir/po
/POTFILES.
in; then
4385 test -d po || mkdir po
4386 if test "x$srcdir" != "x."; then
4387 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4388 posrcprefix
="$srcdir/"
4390 posrcprefix
="../$srcdir/"
4396 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4397 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4401 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4402 echo "configure:4403: checking whether to enable maintainer-specific portions of Makefiles" >&5
4403 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4404 if test "${enable_maintainer_mode+set}" = set; then
4405 enableval
="$enable_maintainer_mode"
4406 USE_MAINTAINER_MODE
=$enableval
4408 USE_MAINTAINER_MODE
=no
4411 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4414 if test $USE_MAINTAINER_MODE = yes; then
4415 MAINTAINER_MODE_TRUE
=
4416 MAINTAINER_MODE_FALSE
='#'
4418 MAINTAINER_MODE_TRUE
='#'
4419 MAINTAINER_MODE_FALSE
=
4421 MAINT
=$MAINTAINER_MODE_TRUE
4426 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4427 echo "configure:4428: checking for executable suffix" >&5
4428 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4435 echo 'int main () { return 0; }' > conftest.
$ac_ext
4437 if { (eval echo configure
:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4438 for file in conftest.
*; do
4440 *.c |
*.o |
*.obj
) ;;
4441 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4445 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4448 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4453 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4454 echo "$ac_t""${ac_cv_exeext}" 1>&6
4457 if test -n "$EXEEXT"; then
4458 cat >> confdefs.h
<<\EOF
4459 #define HAVE_EXECUTABLE_SUFFIX 1
4463 cat >> confdefs.h
<<EOF
4464 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4468 # host-specific stuff:
4472 .
${srcdir}/..
/bfd
/configure.
host
4477 # Extract the first word of "ranlib", so it can be a program name with args.
4478 set dummy ranlib
; ac_word
=$2
4479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4480 echo "configure:4481: checking for $ac_word" >&5
4481 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4484 if test -n "$RANLIB"; then
4485 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4487 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4489 for ac_dir
in $ac_dummy; do
4490 test -z "$ac_dir" && ac_dir
=.
4491 if test -f $ac_dir/$ac_word; then
4492 ac_cv_prog_RANLIB
="ranlib"
4497 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
4500 RANLIB
="$ac_cv_prog_RANLIB"
4501 if test -n "$RANLIB"; then
4502 echo "$ac_t""$RANLIB" 1>&6
4504 echo "$ac_t""no" 1>&6
4507 # Find a good install program. We prefer a C program (faster),
4508 # so one script is as good as another. But avoid the broken or
4509 # incompatible versions:
4510 # SysV /etc/install, /usr/sbin/install
4511 # SunOS /usr/etc/install
4512 # IRIX /sbin/install
4514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4517 # ./install, which can be erroneously created by make from ./install.sh.
4518 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4519 echo "configure:4520: checking for a BSD compatible install" >&5
4520 if test -z "$INSTALL"; then
4521 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4524 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4525 for ac_dir
in $PATH; do
4526 # Account for people who put trailing slashes in PATH elements.
4528 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4530 # OSF1 and SCO ODT 3.0 have their own names for install.
4531 # Don't use installbsd from OSF since it installs stuff as root
4533 for ac_prog
in ginstall scoinst
install; do
4534 if test -f $ac_dir/$ac_prog; then
4535 if test $ac_prog = install &&
4536 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4537 # AIX install. It has an incompatible calling convention.
4540 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4551 if test "${ac_cv_path_install+set}" = set; then
4552 INSTALL
="$ac_cv_path_install"
4554 # As a last resort, use the slow shell script. We don't cache a
4555 # path for INSTALL within a source directory, because that will
4556 # break other packages using the cache if that directory is
4557 # removed, or if the path is relative.
4558 INSTALL
="$ac_install_sh"
4561 echo "$ac_t""$INSTALL" 1>&6
4563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4564 # It thinks the first close brace ends the variable substitution.
4565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4569 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4572 # Put a plausible default for CC_FOR_BUILD in Makefile.
4573 if test -z "$CC_FOR_BUILD"; then
4574 if test "x$cross_compiling" = "xno"; then
4575 CC_FOR_BUILD
='$(CC)'
4581 # Also set EXEEXT_FOR_BUILD.
4582 if test "x$cross_compiling" = "xno"; then
4583 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4585 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4586 echo "configure:4587: checking for build system executable suffix" >&5
4587 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4591 echo 'int main () { return 0; }' > conftest.c
4592 bfd_cv_build_exeext
=
4593 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4594 for file in conftest.
*; do
4596 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4597 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4601 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4604 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4606 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4610 DEMANGLER_NAME
=c
++filt
4612 *-*-go32* |
*-*-msdos*)
4613 DEMANGLER_NAME
=cxxfilt
4617 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
4619 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4621 echo "configure:4622: checking for $ac_hdr" >&5
4622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 cat > conftest.
$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4630 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4631 { (eval echo configure
:4632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4632 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4633 if test -z "$ac_err"; then
4635 eval "ac_cv_header_$ac_safe=yes"
4638 echo "configure: failed program was:" >&5
4639 cat conftest.
$ac_ext >&5
4641 eval "ac_cv_header_$ac_safe=no"
4645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4648 cat >> confdefs.h
<<EOF
4649 #define $ac_tr_hdr 1
4653 echo "$ac_t""no" 1>&6
4657 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4658 echo "configure:4659: checking for sys/wait.h that is POSIX.1 compatible" >&5
4659 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 cat > conftest.
$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 #include <sys/types.h>
4666 #include <sys/wait.h>
4668 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4671 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4676 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4679 if { (eval echo configure
:4680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4681 ac_cv_header_sys_wait_h
=yes
4683 echo "configure: failed program was:" >&5
4684 cat conftest.
$ac_ext >&5
4686 ac_cv_header_sys_wait_h
=no
4691 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4692 if test $ac_cv_header_sys_wait_h = yes; then
4693 cat >> confdefs.h
<<\EOF
4694 #define HAVE_SYS_WAIT_H 1
4699 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4700 # for constant arguments. Useless!
4701 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4702 echo "configure:4703: checking for working alloca.h" >&5
4703 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4706 cat > conftest.
$ac_ext <<EOF
4707 #line 4708 "configure"
4708 #include "confdefs.h"
4711 char *p = alloca(2 * sizeof(int));
4714 if { (eval echo configure
:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4716 ac_cv_header_alloca_h
=yes
4718 echo "configure: failed program was:" >&5
4719 cat conftest.
$ac_ext >&5
4721 ac_cv_header_alloca_h
=no
4726 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4727 if test $ac_cv_header_alloca_h = yes; then
4728 cat >> confdefs.h
<<\EOF
4729 #define HAVE_ALLOCA_H 1
4734 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4735 echo "configure:4736: checking for alloca" >&5
4736 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4739 cat > conftest.
$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4744 # define alloca __builtin_alloca
4747 # include <malloc.h>
4748 # define alloca _alloca
4751 # include <alloca.h>
4756 # ifndef alloca /* predefined by HP cc +Olibcalls */
4765 char *p = (char *) alloca(1);
4768 if { (eval echo configure
:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4770 ac_cv_func_alloca_works
=yes
4772 echo "configure: failed program was:" >&5
4773 cat conftest.
$ac_ext >&5
4775 ac_cv_func_alloca_works
=no
4780 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4781 if test $ac_cv_func_alloca_works = yes; then
4782 cat >> confdefs.h
<<\EOF
4783 #define HAVE_ALLOCA 1
4788 if test $ac_cv_func_alloca_works = no
; then
4789 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4790 # that cause trouble. Some versions do not even contain alloca or
4791 # contain a buggy version. If you still want to use their alloca,
4792 # use ar to extract alloca.o from them instead of compiling alloca.c.
4793 ALLOCA
=alloca.
${ac_objext}
4794 cat >> confdefs.h
<<\EOF
4799 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4800 echo "configure:4801: checking whether alloca needs Cray hooks" >&5
4801 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4802 echo $ac_n "(cached) $ac_c" 1>&6
4804 cat > conftest.
$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4807 #if defined(CRAY) && ! defined(CRAY2)
4814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4815 egrep "webecray" >/dev
/null
2>&1; then
4826 echo "$ac_t""$ac_cv_os_cray" 1>&6
4827 if test $ac_cv_os_cray = yes; then
4828 for ac_func
in _getb67 GETB67 getb67
; do
4829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4830 echo "configure:4831: checking for $ac_func" >&5
4831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 cat > conftest.
$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 /* System header to define __stub macros and hopefully few prototypes,
4838 which can conflict with char $ac_func(); below. */
4840 /* Override any gcc2 internal prototype to avoid an error. */
4841 /* We use char because int might match the return type of a gcc2
4842 builtin and then its argument prototype would still apply. */
4847 /* The GNU C library defines this for functions which it implements
4848 to always fail with ENOSYS. Some functions are actually named
4849 something starting with __ and the normal name is an alias. */
4850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4858 if { (eval echo configure
:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4860 eval "ac_cv_func_$ac_func=yes"
4862 echo "configure: failed program was:" >&5
4863 cat conftest.
$ac_ext >&5
4865 eval "ac_cv_func_$ac_func=no"
4870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4871 echo "$ac_t""yes" 1>&6
4872 cat >> confdefs.h
<<EOF
4873 #define CRAY_STACKSEG_END $ac_func
4878 echo "$ac_t""no" 1>&6
4884 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4885 echo "configure:4886: checking stack direction for C alloca" >&5
4886 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 if test "$cross_compiling" = yes; then
4890 ac_cv_c_stack_direction
=0
4892 cat > conftest.
$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4895 find_stack_direction ()
4897 static char *addr = 0;
4902 return find_stack_direction ();
4905 return (&dummy > addr) ? 1 : -1;
4909 exit (find_stack_direction() < 0);
4912 if { (eval echo configure
:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4914 ac_cv_c_stack_direction
=1
4916 echo "configure: failed program was:" >&5
4917 cat conftest.
$ac_ext >&5
4919 ac_cv_c_stack_direction
=-1
4926 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4927 cat >> confdefs.h
<<EOF
4928 #define STACK_DIRECTION $ac_cv_c_stack_direction
4933 for ac_func
in sbrk utimes setmode getc_unlocked strcoll
4935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_func" >&5
4937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 cat > conftest.
$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4943 /* System header to define __stub macros and hopefully few prototypes,
4944 which can conflict with char $ac_func(); below. */
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4953 /* The GNU C library defines this for functions which it implements
4954 to always fail with ENOSYS. Some functions are actually named
4955 something starting with __ and the normal name is an alias. */
4956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4964 if { (eval echo configure
:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4966 eval "ac_cv_func_$ac_func=yes"
4968 echo "configure: failed program was:" >&5
4969 cat conftest.
$ac_ext >&5
4971 eval "ac_cv_func_$ac_func=no"
4976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4977 echo "$ac_t""yes" 1>&6
4978 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4979 cat >> confdefs.h
<<EOF
4980 #define $ac_tr_func 1
4984 echo "$ac_t""no" 1>&6
4989 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
4990 # needs to be defined for it
4991 echo $ac_n "checking for fopen64""... $ac_c" 1>&6
4992 echo "configure:4993: checking for fopen64" >&5
4993 if eval "test \"`echo '$''{'bu_cv_have_fopen64'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 cat > conftest.
$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
5001 FILE *f = fopen64 ("/tmp/foo","r");
5004 if { (eval echo configure
:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5006 bu_cv_have_fopen64
=yes
5008 echo "configure: failed program was:" >&5
5009 cat conftest.
$ac_ext >&5
5011 saved_CPPFLAGS
=$CPPFLAGS
5012 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5013 cat > conftest.
$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5018 FILE *f = fopen64 ("/tmp/foo","r");
5021 if { (eval echo configure
:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5023 bu_cv_have_fopen64
="need -D_LARGEFILE64_SOURCE"
5025 echo "configure: failed program was:" >&5
5026 cat conftest.
$ac_ext >&5
5028 bu_cv_have_fopen64
=no
5031 CPPFLAGS
=$saved_CPPFLAGS
5036 echo "$ac_t""$bu_cv_have_fopen64" 1>&6
5037 if test "$bu_cv_have_fopen64" != no
; then
5038 cat >> confdefs.h
<<\EOF
5039 #define HAVE_FOPEN64 1
5043 echo $ac_n "checking for stat64""... $ac_c" 1>&6
5044 echo "configure:5045: checking for stat64" >&5
5045 if eval "test \"`echo '$''{'bu_cv_have_stat64'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5048 cat > conftest.
$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 #include <sys/stat.h>
5053 struct stat64 st; stat64 ("/tmp/foo", &st);
5056 if { (eval echo configure
:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5058 bu_cv_have_stat64
=yes
5060 echo "configure: failed program was:" >&5
5061 cat conftest.
$ac_ext >&5
5063 saved_CPPFLAGS
=$CPPFLAGS
5064 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5065 cat > conftest.
$ac_ext <<EOF
5066 #line 5067 "configure"
5067 #include "confdefs.h"
5068 #include <sys/stat.h>
5070 struct stat64 st; stat64 ("/tmp/foo", &st);
5073 if { (eval echo configure
:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5075 bu_cv_have_stat64
="need -D_LARGEFILE64_SOURCE"
5077 echo "configure: failed program was:" >&5
5078 cat conftest.
$ac_ext >&5
5080 bu_cv_have_stat64
=no
5083 CPPFLAGS
=$saved_CPPFLAGS
5088 echo "$ac_t""$bu_cv_have_stat64" 1>&6
5089 if test "$bu_cv_have_stat64" != no
; then
5090 cat >> confdefs.h
<<\EOF
5091 #define HAVE_STAT64 1
5095 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
5096 ||
test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
5097 cat >> confdefs.h
<<\EOF
5098 #define _LARGEFILE64_SOURCE 1
5101 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5104 # Some systems have frexp only in -lm, not in -lc.
5106 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
5107 echo "configure:5108: checking for library containing frexp" >&5
5108 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5111 ac_func_search_save_LIBS
="$LIBS"
5112 ac_cv_search_frexp
="no"
5113 cat > conftest.
$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5125 if { (eval echo configure
:5126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5127 ac_cv_search_frexp
="none required"
5129 echo "configure: failed program was:" >&5
5130 cat conftest.
$ac_ext >&5
5133 test "$ac_cv_search_frexp" = "no" && for i
in m
; do
5134 LIBS
="-l$i $ac_func_search_save_LIBS"
5135 cat > conftest.
$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5138 /* Override any gcc2 internal prototype to avoid an error. */
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5147 if { (eval echo configure
:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5149 ac_cv_search_frexp
="-l$i"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.
$ac_ext >&5
5157 LIBS
="$ac_func_search_save_LIBS"
5160 echo "$ac_t""$ac_cv_search_frexp" 1>&6
5161 if test "$ac_cv_search_frexp" != "no"; then
5162 test "$ac_cv_search_frexp" = "none required" || LIBS
="$ac_cv_search_frexp $LIBS"
5168 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5169 echo "configure:5170: checking for time_t in time.h" >&5
5170 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 cat > conftest.
$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5181 if { (eval echo configure
:5182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5183 bu_cv_decl_time_t_time_h
=yes
5185 echo "configure: failed program was:" >&5
5186 cat conftest.
$ac_ext >&5
5188 bu_cv_decl_time_t_time_h
=no
5193 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5194 if test $bu_cv_decl_time_t_time_h = yes; then
5195 cat >> confdefs.h
<<\EOF
5196 #define HAVE_TIME_T_IN_TIME_H 1
5201 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5202 echo "configure:5203: checking for time_t in sys/types.h" >&5
5203 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5206 cat > conftest.
$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 #include <sys/types.h>
5214 if { (eval echo configure
:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5216 bu_cv_decl_time_t_types_h
=yes
5218 echo "configure: failed program was:" >&5
5219 cat conftest.
$ac_ext >&5
5221 bu_cv_decl_time_t_types_h
=no
5226 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5227 if test $bu_cv_decl_time_t_types_h = yes; then
5228 cat >> confdefs.h
<<\EOF
5229 #define HAVE_TIME_T_IN_TYPES_H 1
5234 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5236 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5237 echo "configure:5238: checking for utime.h" >&5
5238 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5239 echo $ac_n "(cached) $ac_c" 1>&6
5241 cat > conftest.
$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5244 #include <sys/types.h>
5253 if { (eval echo configure
:5254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5255 bu_cv_header_utime_h
=yes
5257 echo "configure: failed program was:" >&5
5258 cat conftest.
$ac_ext >&5
5260 bu_cv_header_utime_h
=no
5265 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5266 if test $bu_cv_header_utime_h = yes; then
5267 cat >> confdefs.h
<<\EOF
5268 #define HAVE_GOOD_UTIME_H 1
5273 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5274 echo "configure:5275: checking whether fprintf must be declared" >&5
5275 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 cat > conftest.
$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5283 #ifdef HAVE_STRING_H
5286 #ifdef HAVE_STRINGS_H
5287 #include <strings.h>
5290 #ifdef HAVE_STDLIB_H
5293 #ifdef HAVE_UNISTD_H
5297 char *(*pfn) = (char *(*)) fprintf
5300 if { (eval echo configure
:5301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5302 bfd_cv_decl_needed_fprintf
=no
5304 echo "configure: failed program was:" >&5
5305 cat conftest.
$ac_ext >&5
5307 bfd_cv_decl_needed_fprintf
=yes
5312 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5313 if test $bfd_cv_decl_needed_fprintf = yes; then
5314 cat >> confdefs.h
<<\EOF
5315 #define NEED_DECLARATION_FPRINTF 1
5320 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5321 echo "configure:5322: checking whether strstr must be declared" >&5
5322 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5325 cat > conftest.
$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5330 #ifdef HAVE_STRING_H
5333 #ifdef HAVE_STRINGS_H
5334 #include <strings.h>
5337 #ifdef HAVE_STDLIB_H
5340 #ifdef HAVE_UNISTD_H
5344 char *(*pfn) = (char *(*)) strstr
5347 if { (eval echo configure
:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5349 bfd_cv_decl_needed_strstr
=no
5351 echo "configure: failed program was:" >&5
5352 cat conftest.
$ac_ext >&5
5354 bfd_cv_decl_needed_strstr
=yes
5359 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5360 if test $bfd_cv_decl_needed_strstr = yes; then
5361 cat >> confdefs.h
<<\EOF
5362 #define NEED_DECLARATION_STRSTR 1
5367 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5368 echo "configure:5369: checking whether sbrk must be declared" >&5
5369 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.
$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5377 #ifdef HAVE_STRING_H
5380 #ifdef HAVE_STRINGS_H
5381 #include <strings.h>
5384 #ifdef HAVE_STDLIB_H
5387 #ifdef HAVE_UNISTD_H
5391 char *(*pfn) = (char *(*)) sbrk
5394 if { (eval echo configure
:5395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5396 bfd_cv_decl_needed_sbrk
=no
5398 echo "configure: failed program was:" >&5
5399 cat conftest.
$ac_ext >&5
5401 bfd_cv_decl_needed_sbrk
=yes
5406 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5407 if test $bfd_cv_decl_needed_sbrk = yes; then
5408 cat >> confdefs.h
<<\EOF
5409 #define NEED_DECLARATION_SBRK 1
5414 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5415 echo "configure:5416: checking whether getenv must be declared" >&5
5416 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 cat > conftest.
$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5424 #ifdef HAVE_STRING_H
5427 #ifdef HAVE_STRINGS_H
5428 #include <strings.h>
5431 #ifdef HAVE_STDLIB_H
5434 #ifdef HAVE_UNISTD_H
5438 char *(*pfn) = (char *(*)) getenv
5441 if { (eval echo configure
:5442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5443 bfd_cv_decl_needed_getenv
=no
5445 echo "configure: failed program was:" >&5
5446 cat conftest.
$ac_ext >&5
5448 bfd_cv_decl_needed_getenv
=yes
5453 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5454 if test $bfd_cv_decl_needed_getenv = yes; then
5455 cat >> confdefs.h
<<\EOF
5456 #define NEED_DECLARATION_GETENV 1
5461 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5462 echo "configure:5463: checking whether environ must be declared" >&5
5463 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 cat > conftest.
$ac_ext <<EOF
5467 #line 5468 "configure"
5468 #include "confdefs.h"
5471 #ifdef HAVE_STRING_H
5474 #ifdef HAVE_STRINGS_H
5475 #include <strings.h>
5478 #ifdef HAVE_STDLIB_H
5481 #ifdef HAVE_UNISTD_H
5485 char *(*pfn) = (char *(*)) environ
5488 if { (eval echo configure
:5489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5490 bfd_cv_decl_needed_environ
=no
5492 echo "configure: failed program was:" >&5
5493 cat conftest.
$ac_ext >&5
5495 bfd_cv_decl_needed_environ
=yes
5500 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5501 if test $bfd_cv_decl_needed_environ = yes; then
5502 cat >> confdefs.h
<<\EOF
5503 #define NEED_DECLARATION_ENVIRON 1
5511 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
5512 cat >> confdefs.h
<<\EOF
5513 #define USE_BINARY_FOPEN 1
5518 # target-specific stuff:
5520 # Canonicalize the secondary target names.
5521 if test -n "$enable_targets"; then
5522 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5524 result
=`$ac_config_sub $targ 2>/dev/null`
5525 if test -n "$result"; then
5526 canon_targets
="$canon_targets $result"
5528 # Allow targets that config.sub doesn't recognize, like "all".
5529 canon_targets
="$canon_targets $targ"
5545 for targ
in $target $canon_targets
5547 if test "x$targ" = "xall"; then
5549 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5550 BUILD_SRCONV
='$(SRCONV_PROG)'
5551 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5554 i
[3-7]86*-*-netware*)
5555 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5556 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
5559 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5560 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5562 powerpc
*-*-netware*)
5563 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5564 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5567 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5568 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
5572 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
5576 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5577 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5578 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5580 arm-
*-pe* | arm-
*-wince)
5581 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5582 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5583 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5586 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5587 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5588 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5590 arm
*-* | xscale-
* | strongarm-
* | d10v-
*)
5591 OBJDUMP_DEFS
="-DDISASSEMBLER_NEEDS_RELOCS"
5593 i
[3-7]86-*-pe* | i
[3-7]86-*-cygwin* | i
[3-7]86-*-mingw32** | i
[3-7]86-*-netbsdpe*)
5594 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5595 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5596 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5597 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
5600 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
5601 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5606 OBJDUMP_DEFS
="-DAIX_WEAK_SUPPORT"
5608 powerpc
*-*-pe* | powerpc
*-*-cygwin*)
5609 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5610 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5611 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5614 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5615 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_SH"
5616 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5619 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5620 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5621 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5624 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5625 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5626 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5629 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5630 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5636 if test "${with_windres+set}" = set; then
5637 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5650 cat >> confdefs.h
<<EOF
5651 #define TARGET "${target}"
5656 .
$srcdir/..
/bfd
/config.bfd
5657 if test "x$targ_underscore" = "xyes"; then
5662 cat >> confdefs.h
<<EOF
5663 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
5668 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5670 # Canonicalize the secondary target names.
5671 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5672 if test -n "$result"; then
5678 .
${srcdir}/configure.tgt
5680 EMULATION
=$targ_emul
5681 EMULATION_VECTOR
=$targ_emul_vector
5688 cat > confcache
<<\EOF
5689 # This file is a shell script that caches the results of configure
5690 # tests run on this system so they can be shared between configure
5691 # scripts and configure runs. It is not useful on other systems.
5692 # If it contains results you don't want to keep, you may remove or edit it.
5694 # By default, configure uses ./config.cache as the cache file,
5695 # creating it if it does not exist already. You can give configure
5696 # the --cache-file=FILE option to use a different cache file; that is
5697 # what configure does when it calls configure scripts in
5698 # subdirectories, so they share the cache.
5699 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5700 # config.status only pays attention to the cache file if you give it the
5701 # --recheck option to rerun configure.
5704 # The following way of writing the cache mishandles newlines in values,
5705 # but we know of no workaround that is simple, portable, and efficient.
5706 # So, don't put newlines in cache variables' values.
5707 # Ultrix sh set writes to stderr and can't be redirected directly,
5708 # and sets the high bit in the cache file unless we assign to the vars.
5710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5712 # `set' does not quote correctly, so add quotes (double-quote substitution
5713 # turns \\\\ into \\, and sed turns \\ into \).
5715 -e "s/'/'\\\\''/g" \
5716 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5719 # `set' quotes correctly as required by POSIX, so do not add quotes.
5720 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5723 if cmp -s $cache_file confcache
; then
5726 if test -w $cache_file; then
5727 echo "updating cache $cache_file"
5728 cat confcache
> $cache_file
5730 echo "not updating unwritable cache $cache_file"
5735 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5737 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5738 # Let make expand exec_prefix.
5739 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5741 # Any assignment to VPATH causes Sun make to only execute
5742 # the first set of double-colon rules, so remove it if not needed.
5743 # If there is a colon in the path, we need to keep it.
5744 if test "x$srcdir" = x.
; then
5745 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5748 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5750 DEFS
=-DHAVE_CONFIG_H
5752 # Without the "./", some shells look in PATH for config.status.
5753 : ${CONFIG_STATUS=./config.status}
5755 echo creating
$CONFIG_STATUS
5756 rm -f $CONFIG_STATUS
5757 cat > $CONFIG_STATUS <<EOF
5759 # Generated automatically by configure.
5760 # Run this file to recreate the current configuration.
5761 # This directory was configured as follows,
5762 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5764 # $0 $ac_configure_args
5766 # Compiler output produced by configure, useful for debugging
5767 # configure, is in ./config.log if it exists.
5769 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5772 case "\$ac_option" in
5773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5774 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5775 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5776 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5777 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5779 -help | --help | --hel | --he | --h)
5780 echo "\$ac_cs_usage"; exit 0 ;;
5781 *) echo "\$ac_cs_usage"; exit 1 ;;
5785 ac_given_srcdir=$srcdir
5786 ac_given_INSTALL="$INSTALL"
5788 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
5790 cat >> $CONFIG_STATUS <<EOF
5792 # Protect against being on the right side of a sed subst in config.status.
5793 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5794 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5798 s%@CFLAGS@%$CFLAGS%g
5799 s%@CPPFLAGS@%$CPPFLAGS%g
5800 s%@CXXFLAGS@%$CXXFLAGS%g
5801 s%@FFLAGS@%$FFLAGS%g
5803 s%@LDFLAGS@%$LDFLAGS%g
5805 s%@exec_prefix@%$exec_prefix%g
5806 s%@prefix@%$prefix%g
5807 s%@program_transform_name@%$program_transform_name%g
5808 s%@bindir@%$bindir%g
5809 s%@sbindir@%$sbindir%g
5810 s%@libexecdir@%$libexecdir%g
5811 s%@datadir@%$datadir%g
5812 s%@sysconfdir@%$sysconfdir%g
5813 s%@sharedstatedir@%$sharedstatedir%g
5814 s%@localstatedir@%$localstatedir%g
5815 s%@libdir@%$libdir%g
5816 s%@includedir@%$includedir%g
5817 s%@oldincludedir@%$oldincludedir%g
5818 s%@infodir@%$infodir%g
5819 s%@mandir@%$mandir%g
5821 s%@host_alias@%$host_alias%g
5822 s%@host_cpu@%$host_cpu%g
5823 s%@host_vendor@%$host_vendor%g
5824 s%@host_os@%$host_os%g
5825 s%@target@%$target%g
5826 s%@target_alias@%$target_alias%g
5827 s%@target_cpu@%$target_cpu%g
5828 s%@target_vendor@%$target_vendor%g
5829 s%@target_os@%$target_os%g
5831 s%@build_alias@%$build_alias%g
5832 s%@build_cpu@%$build_cpu%g
5833 s%@build_vendor@%$build_vendor%g
5834 s%@build_os@%$build_os%g
5835 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5836 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5837 s%@INSTALL_DATA@%$INSTALL_DATA%g
5838 s%@PACKAGE@%$PACKAGE%g
5839 s%@VERSION@%$VERSION%g
5840 s%@ACLOCAL@%$ACLOCAL%g
5841 s%@AUTOCONF@%$AUTOCONF%g
5842 s%@AUTOMAKE@%$AUTOMAKE%g
5843 s%@AUTOHEADER@%$AUTOHEADER%g
5844 s%@MAKEINFO@%$MAKEINFO%g
5845 s%@SET_MAKE@%$SET_MAKE%g
5848 s%@OBJEXT@%$OBJEXT%g
5849 s%@EXEEXT@%$EXEEXT%g
5850 s%@RANLIB@%$RANLIB%g
5852 s%@LIBTOOL@%$LIBTOOL%g
5853 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5856 s%@LEXLIB@%$LEXLIB%g
5858 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5859 s%@ALLOCA@%$ALLOCA%g
5860 s%@USE_NLS@%$USE_NLS%g
5861 s%@MSGFMT@%$MSGFMT%g
5862 s%@GMSGFMT@%$GMSGFMT%g
5863 s%@XGETTEXT@%$XGETTEXT%g
5864 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5865 s%@CATALOGS@%$CATALOGS%g
5866 s%@CATOBJEXT@%$CATOBJEXT%g
5867 s%@DATADIRNAME@%$DATADIRNAME%g
5868 s%@GMOFILES@%$GMOFILES%g
5869 s%@INSTOBJEXT@%$INSTOBJEXT%g
5870 s%@INTLDEPS@%$INTLDEPS%g
5871 s%@INTLLIBS@%$INTLLIBS%g
5872 s%@INTLOBJS@%$INTLOBJS%g
5873 s%@POFILES@%$POFILES%g
5875 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5877 s%@GT_YES@%$GT_YES%g
5878 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5880 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5881 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5883 s%@HDEFINES@%$HDEFINES%g
5885 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5886 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5887 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5888 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5889 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5890 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5891 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5892 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5893 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5894 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5895 s%@BUILD_MISC@%$BUILD_MISC%g
5896 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5897 s%@EMULATION@%$EMULATION%g
5898 s%@EMULATION_VECTOR@%$EMULATION_VECTOR%g
5903 cat >> $CONFIG_STATUS <<\EOF
5905 # Split the substitutions into bite-sized pieces for seds with
5906 # small command number limits, like on Digital OSF/1 and HP-UX.
5907 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5908 ac_file
=1 # Number of current file.
5909 ac_beg
=1 # First line for current file.
5910 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5913 while $ac_more_lines; do
5914 if test $ac_beg -gt 1; then
5915 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5917 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5919 if test ! -s conftest.s
$ac_file; then
5921 rm -f conftest.s
$ac_file
5923 if test -z "$ac_sed_cmds"; then
5924 ac_sed_cmds
="sed -f conftest.s$ac_file"
5926 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5928 ac_file
=`expr $ac_file + 1`
5930 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5933 if test -z "$ac_sed_cmds"; then
5938 cat >> $CONFIG_STATUS <<EOF
5940 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile po/Makefile.in:po/Make-in"}
5942 cat >> $CONFIG_STATUS <<\EOF
5943 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5946 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5947 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5948 *) ac_file_in
="${ac_file}.in" ;;
5951 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5953 # Remove last slash and all that follows it. Not all systems have dirname.
5954 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5955 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5956 # The file is in a subdirectory.
5957 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5958 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5959 # A "../" for each directory in $ac_dir_suffix.
5960 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5962 ac_dir_suffix
= ac_dots
=
5965 case "$ac_given_srcdir" in
5967 if test -z "$ac_dots"; then top_srcdir
=.
5968 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5969 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5971 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5972 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5975 case "$ac_given_INSTALL" in
5976 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5977 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5980 echo creating
"$ac_file"
5982 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5984 *Makefile
*) ac_comsub
="1i\\
5985 # $configure_input" ;;
5989 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5991 s%@configure_input@%$configure_input%g
5992 s%@srcdir@%$srcdir%g
5993 s%@top_srcdir@%$top_srcdir%g
5994 s%@INSTALL@%$INSTALL%g
5995 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5999 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6000 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6002 # ac_d sets the value in "#define NAME VALUE" lines.
6003 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6004 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6007 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6008 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6009 ac_uB
='\([ ]\)%\1#\2define\3'
6012 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6013 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6014 ac_eB
='$%\1#\2define\3'
6018 if test "${CONFIG_HEADERS+set}" != set; then
6020 cat >> $CONFIG_STATUS <<EOF
6021 CONFIG_HEADERS="config.h:config.in"
6023 cat >> $CONFIG_STATUS <<\EOF
6025 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6028 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6029 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6030 *) ac_file_in
="${ac_file}.in" ;;
6033 echo creating
$ac_file
6035 rm -f conftest.frag conftest.
in conftest.out
6036 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6037 cat $ac_file_inputs > conftest.
in
6041 # Transform confdefs.h into a sed script conftest.vals that substitutes
6042 # the proper values into config.h.in to produce config.h. And first:
6043 # Protect against being on the right side of a sed subst in config.status.
6044 # Protect against being in an unquoted here document in config.status.
6046 cat > conftest.hdr
<<\EOF
6049 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6053 sed -n -f conftest.hdr confdefs.h > conftest.vals
6056 # This sed command replaces #undef with comments. This is necessary, for
6057 # example, in the case of _POSIX_SOURCE, which is predefined and required
6058 # on some systems where configure will not decide to define it.
6059 cat >> conftest.vals <<\EOF
6060 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6063 # Break up conftest.vals because some shells have a limit on
6064 # the size of here documents, and old seds have small limits too.
6069 ac_lines=`grep -c . conftest.vals
`
6070 # grep -c gives empty output for an empty file on some AIX systems.
6071 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6072 # Write a limited-size here document to conftest.frag.
6073 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6074 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6076 sed -f conftest.frag conftest.in > conftest.out
6078 mv conftest.out conftest.in
6080 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6082 mv conftest.tail conftest.vals
6086 cat >> $CONFIG_STATUS <<\EOF
6087 rm -f conftest.frag conftest.h
6088 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6089 cat conftest.in >> conftest.h
6091 if cmp -s $ac_file conftest.h 2>/dev/null; then
6092 echo "$ac_file is unchanged"
6095 # Remove last slash and all that follows it. Not all systems have dirname.
6096 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6097 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6098 # The file is in a subdirectory.
6099 test ! -d "$ac_dir" && mkdir "$ac_dir"
6102 mv conftest.h $ac_file
6107 cat >> $CONFIG_STATUS <<EOF
6111 cat >> $CONFIG_STATUS <<\EOF
6112 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6114 case "x$CONFIG_FILES" in
6115 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
6120 chmod +x $CONFIG_STATUS
6121 rm -fr confdefs* $ac_clean_files
6122 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1