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 # Find a good install program. We prefer a C program (faster),
766 # so one script is as good as another. But avoid the broken or
767 # incompatible versions:
768 # SysV /etc/install, /usr/sbin/install
769 # SunOS /usr/etc/install
772 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
773 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
774 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
775 # ./install, which can be erroneously created by make from ./install.sh.
776 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
777 echo "configure:778: checking for a BSD compatible install" >&5
778 if test -z "$INSTALL"; then
779 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
783 for ac_dir
in $PATH; do
784 # Account for people who put trailing slashes in PATH elements.
786 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
788 # OSF1 and SCO ODT 3.0 have their own names for install.
789 # Don't use installbsd from OSF since it installs stuff as root
791 for ac_prog
in ginstall scoinst
install; do
792 if test -f $ac_dir/$ac_prog; then
793 if test $ac_prog = install &&
794 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
795 # AIX install. It has an incompatible calling convention.
798 ac_cv_path_install
="$ac_dir/$ac_prog -c"
809 if test "${ac_cv_path_install+set}" = set; then
810 INSTALL
="$ac_cv_path_install"
812 # As a last resort, use the slow shell script. We don't cache a
813 # path for INSTALL within a source directory, because that will
814 # break other packages using the cache if that directory is
815 # removed, or if the path is relative.
816 INSTALL
="$ac_install_sh"
819 echo "$ac_t""$INSTALL" 1>&6
821 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
822 # It thinks the first close brace ends the variable substitution.
823 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
825 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
827 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
829 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
830 echo "configure:831: checking whether build environment is sane" >&5
833 echo timestamp
> conftestfile
834 # Do `set' in a subshell so we don't clobber the current shell's
835 # arguments. Must try -L first in case configure is actually a
836 # symlink; some systems play weird games with the mod time of symlinks
837 # (eg FreeBSD returns the mod time of the symlink's containing
840 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
841 if test "$*" = "X"; then
843 set X
`ls -t $srcdir/configure conftestfile`
845 if test "$*" != "X $srcdir/configure conftestfile" \
846 && test "$*" != "X conftestfile $srcdir/configure"; then
848 # If neither matched, then we have a broken ls. This can happen
849 # if, for instance, CONFIG_SHELL is bash and it inherits a
850 # broken ls alias from the environment. This has actually
851 # happened. Such a system could not be considered "sane".
852 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
853 alias in your environment" 1>&2; exit 1; }
856 test "$2" = conftestfile
862 { echo "configure: error: newly created file is older than distributed files!
863 Check your system clock" 1>&2; exit 1; }
866 echo "$ac_t""yes" 1>&6
867 if test "$program_transform_name" = s
,x
,x
,; then
868 program_transform_name
=
870 # Double any \ or $. echo might interpret backslashes.
871 cat <<\EOF_SED
> conftestsed
872 s
,\\,\\\\,g
; s
,\$
,$$
,g
874 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
877 test "$program_prefix" != NONE
&&
878 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
879 # Use a double $ so make ignores it.
880 test "$program_suffix" != NONE
&&
881 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
883 # sed with no file args requires a program.
884 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
886 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
887 echo "configure:888: checking whether ${MAKE-make} sets \${MAKE}" >&5
888 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
889 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 cat > conftestmake
<<\EOF
894 @
echo 'ac_maketemp="${MAKE}"'
896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
897 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
898 if test -n "$ac_maketemp"; then
899 eval ac_cv_prog_make_
${ac_make}_set
=yes
901 eval ac_cv_prog_make_
${ac_make}_set
=no
905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
906 echo "$ac_t""yes" 1>&6
909 echo "$ac_t""no" 1>&6
910 SET_MAKE
="MAKE=${MAKE-make}"
916 VERSION
=${BFD_VERSION}
918 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
919 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
921 cat >> confdefs.h
<<EOF
922 #define PACKAGE "$PACKAGE"
925 cat >> confdefs.h
<<EOF
926 #define VERSION "$VERSION"
931 missing_dir
=`cd $ac_aux_dir && pwd`
932 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
933 echo "configure:934: checking for working aclocal" >&5
934 # Run test in a subshell; some versions of sh will print an error if
935 # an executable is not found, even if stderr is redirected.
936 # Redirect stdin to placate older versions of autoconf. Sigh.
937 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
939 echo "$ac_t""found" 1>&6
941 ACLOCAL
="$missing_dir/missing aclocal"
942 echo "$ac_t""missing" 1>&6
945 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
946 echo "configure:947: checking for working autoconf" >&5
947 # Run test in a subshell; some versions of sh will print an error if
948 # an executable is not found, even if stderr is redirected.
949 # Redirect stdin to placate older versions of autoconf. Sigh.
950 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
952 echo "$ac_t""found" 1>&6
954 AUTOCONF
="$missing_dir/missing autoconf"
955 echo "$ac_t""missing" 1>&6
958 echo $ac_n "checking for working automake""... $ac_c" 1>&6
959 echo "configure:960: checking for working automake" >&5
960 # Run test in a subshell; some versions of sh will print an error if
961 # an executable is not found, even if stderr is redirected.
962 # Redirect stdin to placate older versions of autoconf. Sigh.
963 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
965 echo "$ac_t""found" 1>&6
967 AUTOMAKE
="$missing_dir/missing automake"
968 echo "$ac_t""missing" 1>&6
971 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
972 echo "configure:973: checking for working autoheader" >&5
973 # Run test in a subshell; some versions of sh will print an error if
974 # an executable is not found, even if stderr is redirected.
975 # Redirect stdin to placate older versions of autoconf. Sigh.
976 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
977 AUTOHEADER
=autoheader
978 echo "$ac_t""found" 1>&6
980 AUTOHEADER
="$missing_dir/missing autoheader"
981 echo "$ac_t""missing" 1>&6
984 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
985 echo "configure:986: checking for working makeinfo" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf. Sigh.
989 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
991 echo "$ac_t""found" 1>&6
993 MAKEINFO
="$missing_dir/missing makeinfo"
994 echo "$ac_t""missing" 1>&6
999 # Check whether --enable-shared or --disable-shared was given.
1000 if test "${enable_shared+set}" = set; then
1001 enableval
="$enable_shared"
1002 p
=${PACKAGE-default}
1004 yes) enable_shared
=yes ;;
1005 no
) enable_shared
=no
;;
1008 # Look at the argument we got. We use all the common list separators.
1009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1010 for pkg
in $enableval; do
1011 if test "X$pkg" = "X$p"; then
1022 # Check whether --enable-static or --disable-static was given.
1023 if test "${enable_static+set}" = set; then
1024 enableval
="$enable_static"
1025 p
=${PACKAGE-default}
1027 yes) enable_static
=yes ;;
1028 no
) enable_static
=no
;;
1031 # Look at the argument we got. We use all the common list separators.
1032 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1033 for pkg
in $enableval; do
1034 if test "X$pkg" = "X$p"; then
1045 # Check whether --enable-fast-install or --disable-fast-install was given.
1046 if test "${enable_fast_install+set}" = set; then
1047 enableval
="$enable_fast_install"
1048 p
=${PACKAGE-default}
1050 yes) enable_fast_install
=yes ;;
1051 no
) enable_fast_install
=no
;;
1053 enable_fast_install
=no
1054 # Look at the argument we got. We use all the common list separators.
1055 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1056 for pkg
in $enableval; do
1057 if test "X$pkg" = "X$p"; then
1058 enable_fast_install
=yes
1065 enable_fast_install
=yes
1068 # Extract the first word of "gcc", so it can be a program name with args.
1069 set dummy gcc
; ac_word
=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC
="$CC" # Let the user override the test.
1078 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1080 for ac_dir
in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir
=.
1082 if test -f $ac_dir/$ac_word; then
1091 if test -n "$CC"; then
1092 echo "$ac_t""$CC" 1>&6
1094 echo "$ac_t""no" 1>&6
1097 if test -z "$CC"; then
1098 # Extract the first word of "cc", so it can be a program name with args.
1099 set dummy cc
; ac_word
=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 if test -n "$CC"; then
1106 ac_cv_prog_CC
="$CC" # Let the user override the test.
1108 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1111 for ac_dir
in $ac_dummy; do
1112 test -z "$ac_dir" && ac_dir
=.
1113 if test -f $ac_dir/$ac_word; then
1114 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1115 ac_prog_rejected
=yes
1123 if test $ac_prog_rejected = yes; then
1124 # We found a bogon in the path, so make sure we never use it.
1125 set dummy
$ac_cv_prog_CC
1127 if test $# -gt 0; then
1128 # We chose a different compiler from the bogus one.
1129 # However, it has the same basename, so the bogon will be chosen
1130 # first if we set CC to just the basename; use the full file name.
1132 set dummy
"$ac_dir/$ac_word" "$@"
1140 if test -n "$CC"; then
1141 echo "$ac_t""$CC" 1>&6
1143 echo "$ac_t""no" 1>&6
1146 if test -z "$CC"; then
1147 case "`uname -s`" in
1149 # Extract the first word of "cl", so it can be a program name with args.
1150 set dummy cl
; ac_word
=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$CC"; then
1157 ac_cv_prog_CC
="$CC" # Let the user override the test.
1159 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1161 for ac_dir
in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir
=.
1163 if test -f $ac_dir/$ac_word; then
1172 if test -n "$CC"; then
1173 echo "$ac_t""$CC" 1>&6
1175 echo "$ac_t""no" 1>&6
1180 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1183 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1188 ac_cpp
='$CPP $CPPFLAGS'
1189 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1190 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1191 cross_compiling
=$ac_cv_prog_cc_cross
1193 cat > conftest.
$ac_ext << EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1200 if { (eval echo configure
:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1201 ac_cv_prog_cc_works
=yes
1202 # If we can't run a trivial program, we are probably using a cross compiler.
1203 if (.
/conftest
; exit) 2>/dev
/null
; then
1204 ac_cv_prog_cc_cross
=no
1206 ac_cv_prog_cc_cross
=yes
1209 echo "configure: failed program was:" >&5
1210 cat conftest.
$ac_ext >&5
1211 ac_cv_prog_cc_works
=no
1215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1216 ac_cpp
='$CPP $CPPFLAGS'
1217 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1218 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1219 cross_compiling
=$ac_cv_prog_cc_cross
1221 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1222 if test $ac_cv_prog_cc_works = no
; then
1223 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1225 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1226 echo "configure:1227: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1227 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1228 cross_compiling
=$ac_cv_prog_cc_cross
1230 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether we are using GNU C" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 cat > conftest.c
<<EOF
1240 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1247 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1249 if test $ac_cv_prog_gcc = yes; then
1255 ac_test_CFLAGS
="${CFLAGS+set}"
1256 ac_save_CFLAGS
="$CFLAGS"
1258 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether ${CC-cc} accepts -g" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 echo 'void f(){}' > conftest.c
1264 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1273 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1274 if test "$ac_test_CFLAGS" = set; then
1275 CFLAGS
="$ac_save_CFLAGS"
1276 elif test $ac_cv_prog_cc_g = yes; then
1277 if test "$GCC" = yes; then
1283 if test "$GCC" = yes; then
1290 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1291 if test "${with_gnu_ld+set}" = set; then
1292 withval
="$with_gnu_ld"
1293 test "$withval" = no || with_gnu_ld
=yes
1299 if test "$GCC" = yes; then
1300 # Check if gcc -print-prog-name=ld gives a path.
1301 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1302 echo "configure:1303: checking for ld used by GCC" >&5
1305 # gcc leaves a trailing carriage return which upsets mingw
1306 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1308 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1311 # Accept absolute paths.
1312 [\\/]* |
[A-Za-z
]:[\\/]*)
1313 re_direlt
='/[^/][^/]*/\.\./'
1314 # Canonicalize the path of ld
1315 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1316 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1317 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1319 test -z "$LD" && LD
="$ac_prog"
1322 # If it fails, then pretend we aren't using GCC.
1326 # If it is relative, then search for the first ld in PATH.
1330 elif test "$with_gnu_ld" = yes; then
1331 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1332 echo "configure:1333: checking for GNU ld" >&5
1334 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1335 echo "configure:1336: checking for non-GNU ld" >&5
1337 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 if test -z "$LD"; then
1341 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1342 for ac_dir
in $PATH; do
1343 test -z "$ac_dir" && ac_dir
=.
1344 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1345 lt_cv_path_LD
="$ac_dir/$ac_prog"
1346 # Check to see if the program is GNU ld. I'd rather use --version,
1347 # but apparently some GNU ld's only accept -v.
1348 # Break only if it was the GNU/non-GNU ld that we prefer.
1349 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1350 test "$with_gnu_ld" != no
&& break
1352 test "$with_gnu_ld" != yes && break
1358 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1363 if test -n "$LD"; then
1364 echo "$ac_t""$LD" 1>&6
1366 echo "$ac_t""no" 1>&6
1368 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1369 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1370 echo "configure:1371: checking if the linker ($LD) is GNU ld" >&5
1371 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1375 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1376 lt_cv_prog_gnu_ld
=yes
1378 lt_cv_prog_gnu_ld
=no
1382 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1383 with_gnu_ld
=$lt_cv_prog_gnu_ld
1386 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $LD option to reload object files" >&5
1388 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 lt_cv_ld_reload_flag
='-r'
1394 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1395 reload_flag
=$lt_cv_ld_reload_flag
1396 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1398 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1399 echo "configure:1400: checking for BSD-compatible nm" >&5
1400 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 if test -n "$NM"; then
1404 # Let the user override the test.
1407 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1408 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1409 test -z "$ac_dir" && ac_dir
=.
1410 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1411 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1412 # Check to see if the nm accepts a BSD-compat flag.
1413 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1414 # nm: unknown option "B" ignored
1415 # Tru64's nm complains that /dev/null is an invalid object file
1416 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1417 lt_cv_path_NM
="$tmp_nm -B"
1419 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1420 lt_cv_path_NM
="$tmp_nm -p"
1423 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1424 continue # so that we can try to find one that supports BSD flags
1429 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1434 echo "$ac_t""$NM" 1>&6
1436 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1437 echo "configure:1438: checking whether ln -s works" >&5
1438 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1442 if ln -s X conftestdata
2>/dev
/null
1445 ac_cv_prog_LN_S
="ln -s"
1450 LN_S
="$ac_cv_prog_LN_S"
1451 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1452 echo "$ac_t""yes" 1>&6
1454 echo "$ac_t""no" 1>&6
1457 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1458 echo "configure:1459: checking how to recognise dependant libraries" >&5
1459 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1463 lt_cv_file_magic_test_file
=
1464 lt_cv_deplibs_check_method
='unknown'
1465 # Need to set the preceding variable on all platforms that support
1466 # interlibrary dependencies.
1467 # 'none' -- dependencies not supported.
1468 # `unknown' -- same as none, but documents that we really don't know.
1469 # 'pass_all' -- all dependencies passed with no checks.
1470 # 'test_compile' -- check by making test program.
1471 # 'file_magic [regex]' -- check by looking for files in library path
1472 # which responds to the $file_magic_cmd with a given egrep regex.
1473 # If you have `file' or equivalent on your system and you're not sure
1474 # whether `pass_all' will *always* work, you probably want this one.
1478 lt_cv_deplibs_check_method
=pass_all
1482 lt_cv_deplibs_check_method
=pass_all
1486 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1487 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1488 lt_cv_file_magic_test_file
=/shlib
/libc.so
1491 cygwin
* | mingw
* |pw32
*)
1492 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1493 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1496 darwin
* | rhapsody
*)
1497 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1498 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1500 rhapsody
* | darwin1.012
)
1501 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1504 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1510 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1513 # Not sure whether the presence of OpenBSD here was a mistake.
1514 # Let's accept both of them until this is cleared up.
1515 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1516 lt_cv_file_magic_cmd
=/usr
/bin
/file
1517 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1521 lt_cv_deplibs_check_method
=pass_all
1526 lt_cv_deplibs_check_method
=pass_all
1530 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1531 lt_cv_file_magic_cmd
=/usr
/bin
/file
1532 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1538 # this will be overridden with pass_all, but let us keep it just in case
1539 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1543 *-32|
*"-32 ") libmagic
=32-bit;;
1544 *-n32|
*"-n32 ") libmagic
=N32
;;
1545 *-64|
*"-64 ") libmagic
=64-bit;;
1546 *) libmagic
=never-match
;;
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 ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1552 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1553 lt_cv_deplibs_check_method
=pass_all
1556 # This must be Linux ELF.
1559 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1560 lt_cv_deplibs_check_method
=pass_all
;;
1562 # glibc up to 2.1.1 does not perform some relocations on ARM
1563 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1565 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1569 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1570 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1572 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1577 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1578 lt_cv_file_magic_cmd
=/usr
/bin
/file
1579 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1582 osf3
* | osf4
* | osf5
*)
1583 # this will be overridden with pass_all, but let us keep it just in case
1584 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1585 lt_cv_file_magic_test_file
=/shlib
/libc.so
1586 lt_cv_deplibs_check_method
=pass_all
1590 lt_cv_deplibs_check_method
=pass_all
1594 lt_cv_deplibs_check_method
=pass_all
1595 lt_cv_file_magic_test_file
=/lib
/libc.so
1598 sysv5uw
[78]* | sysv4
*uw2
*)
1599 lt_cv_deplibs_check_method
=pass_all
1602 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1603 case $host_vendor in
1605 lt_cv_deplibs_check_method
=pass_all
1608 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]'
1609 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1617 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1618 file_magic_cmd
=$lt_cv_file_magic_cmd
1619 deplibs_check_method
=$lt_cv_deplibs_check_method
1621 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1622 echo "configure:1623: checking for object suffix" >&5
1623 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1627 echo 'int i = 1;' > conftest.
$ac_ext
1628 if { (eval echo configure
:1629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1629 for ac_file
in conftest.
*; do
1632 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1636 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1641 echo "$ac_t""$ac_cv_objext" 1>&6
1642 OBJEXT
=$ac_cv_objext
1643 ac_objext
=$ac_cv_objext
1647 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1648 echo "configure:1649: checking for executable suffix" >&5
1649 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1656 echo 'int main () { return 0; }' > conftest.
$ac_ext
1658 if { (eval echo configure
:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1659 for file in conftest.
*; do
1661 *.c |
*.o |
*.obj
) ;;
1662 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1666 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1669 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1674 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1675 echo "$ac_t""${ac_cv_exeext}" 1>&6
1678 if test $host != $build; then
1679 ac_tool_prefix
=${host_alias}-
1684 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1686 # Only perform the check for file, if the check method requires it
1687 case $deplibs_check_method in
1689 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1690 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1691 echo "configure:1692: checking for ${ac_tool_prefix}file" >&5
1692 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1697 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1700 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1703 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1704 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1705 ac_dummy
="/usr/bin:$PATH"
1706 for ac_dir
in $ac_dummy; do
1707 test -z "$ac_dir" && ac_dir
=.
1708 if test -f $ac_dir/${ac_tool_prefix}file; then
1709 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1710 if test -n "$file_magic_test_file"; then
1711 case $deplibs_check_method in
1713 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1714 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1715 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1716 egrep "$file_magic_regex" > /dev
/null
; then
1721 *** Warning: the command libtool uses to detect shared libraries,
1722 *** $file_magic_cmd, produces output that libtool cannot recognize.
1723 *** The result is that libtool may fail to recognize shared libraries
1724 *** as such. This will affect the creation of libtool libraries that
1725 *** depend on shared libraries, but programs linked with such libtool
1726 *** libraries will work regardless of this problem. Nevertheless, you
1727 *** may want to report the problem to your system manager and/or to
1728 *** bug-libtool@gnu.org
1738 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1743 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1744 if test -n "$MAGIC_CMD"; then
1745 echo "$ac_t""$MAGIC_CMD" 1>&6
1747 echo "$ac_t""no" 1>&6
1750 if test -z "$lt_cv_path_MAGIC_CMD"; then
1751 if test -n "$ac_tool_prefix"; then
1752 echo $ac_n "checking for file""... $ac_c" 1>&6
1753 echo "configure:1754: checking for file" >&5
1754 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1759 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1762 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1765 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1766 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1767 ac_dummy
="/usr/bin:$PATH"
1768 for ac_dir
in $ac_dummy; do
1769 test -z "$ac_dir" && ac_dir
=.
1770 if test -f $ac_dir/file; then
1771 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1772 if test -n "$file_magic_test_file"; then
1773 case $deplibs_check_method in
1775 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1776 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1777 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1778 egrep "$file_magic_regex" > /dev
/null
; then
1783 *** Warning: the command libtool uses to detect shared libraries,
1784 *** $file_magic_cmd, produces output that libtool cannot recognize.
1785 *** The result is that libtool may fail to recognize shared libraries
1786 *** as such. This will affect the creation of libtool libraries that
1787 *** depend on shared libraries, but programs linked with such libtool
1788 *** libraries will work regardless of this problem. Nevertheless, you
1789 *** may want to report the problem to your system manager and/or to
1790 *** bug-libtool@gnu.org
1800 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1805 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1806 if test -n "$MAGIC_CMD"; then
1807 echo "$ac_t""$MAGIC_CMD" 1>&6
1809 echo "$ac_t""no" 1>&6
1821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1822 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_word" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 if test -n "$RANLIB"; then
1829 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1831 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1833 for ac_dir
in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir
=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1843 RANLIB
="$ac_cv_prog_RANLIB"
1844 if test -n "$RANLIB"; then
1845 echo "$ac_t""$RANLIB" 1>&6
1847 echo "$ac_t""no" 1>&6
1851 if test -z "$ac_cv_prog_RANLIB"; then
1852 if test -n "$ac_tool_prefix"; then
1853 # Extract the first word of "ranlib", so it can be a program name with args.
1854 set dummy ranlib
; ac_word
=$2
1855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1856 echo "configure:1857: checking for $ac_word" >&5
1857 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 if test -n "$RANLIB"; then
1861 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1863 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1865 for ac_dir
in $ac_dummy; do
1866 test -z "$ac_dir" && ac_dir
=.
1867 if test -f $ac_dir/$ac_word; then
1868 ac_cv_prog_RANLIB
="ranlib"
1873 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1876 RANLIB
="$ac_cv_prog_RANLIB"
1877 if test -n "$RANLIB"; then
1878 echo "$ac_t""$RANLIB" 1>&6
1880 echo "$ac_t""no" 1>&6
1888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1889 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1891 echo "configure:1892: checking for $ac_word" >&5
1892 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 if test -n "$STRIP"; then
1896 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1898 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1900 for ac_dir
in $ac_dummy; do
1901 test -z "$ac_dir" && ac_dir
=.
1902 if test -f $ac_dir/$ac_word; then
1903 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1910 STRIP
="$ac_cv_prog_STRIP"
1911 if test -n "$STRIP"; then
1912 echo "$ac_t""$STRIP" 1>&6
1914 echo "$ac_t""no" 1>&6
1918 if test -z "$ac_cv_prog_STRIP"; then
1919 if test -n "$ac_tool_prefix"; then
1920 # Extract the first word of "strip", so it can be a program name with args.
1921 set dummy strip
; ac_word
=$2
1922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_word" >&5
1924 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 if test -n "$STRIP"; then
1928 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1930 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1932 for ac_dir
in $ac_dummy; do
1933 test -z "$ac_dir" && ac_dir
=.
1934 if test -f $ac_dir/$ac_word; then
1935 ac_cv_prog_STRIP
="strip"
1940 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1943 STRIP
="$ac_cv_prog_STRIP"
1944 if test -n "$STRIP"; then
1945 echo "$ac_t""$STRIP" 1>&6
1947 echo "$ac_t""no" 1>&6
1956 # Check for any special flags to pass to ltconfig.
1957 libtool_flags
="--cache-file=$cache_file"
1958 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1959 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1960 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1961 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
1962 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1965 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1966 if test "${enable_libtool_lock+set}" = set; then
1967 enableval
="$enable_libtool_lock"
1971 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1972 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1974 # Check whether --with-pic or --without-pic was given.
1975 if test "${with_pic+set}" = set; then
1982 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1983 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1985 # Some flags need to be propagated to the compiler or linker for good
1989 # Find out which ABI we are using.
1990 echo '#line 1991 "configure"' > conftest.
$ac_ext
1991 if { (eval echo configure
:1992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1992 case `/usr/bin/file conftest.$ac_objext` in
2008 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2009 SAVE_CFLAGS
="$CFLAGS"
2010 CFLAGS
="$CFLAGS -belf"
2011 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether the C compiler needs -belf" >&5
2013 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2019 ac_cpp
='$CPP $CPPFLAGS'
2020 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2021 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2022 cross_compiling
=$ac_cv_prog_cc_cross
2024 cat > conftest.
$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2032 if { (eval echo configure
:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2034 lt_cv_cc_needs_belf
=yes
2036 echo "configure: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2039 lt_cv_cc_needs_belf
=no
2043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2044 ac_cpp
='$CPP $CPPFLAGS'
2045 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2046 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2047 cross_compiling
=$ac_cv_prog_cc_cross
2051 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2052 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2053 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2054 CFLAGS
="$SAVE_CFLAGS"
2062 # Save cache, so that ltconfig can load it
2063 cat > confcache
<<\EOF
2064 # This file is a shell script that caches the results of configure
2065 # tests run on this system so they can be shared between configure
2066 # scripts and configure runs. It is not useful on other systems.
2067 # If it contains results you don't want to keep, you may remove or edit it.
2069 # By default, configure uses ./config.cache as the cache file,
2070 # creating it if it does not exist already. You can give configure
2071 # the --cache-file=FILE option to use a different cache file; that is
2072 # what configure does when it calls configure scripts in
2073 # subdirectories, so they share the cache.
2074 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2075 # config.status only pays attention to the cache file if you give it the
2076 # --recheck option to rerun configure.
2079 # The following way of writing the cache mishandles newlines in values,
2080 # but we know of no workaround that is simple, portable, and efficient.
2081 # So, don't put newlines in cache variables' values.
2082 # Ultrix sh set writes to stderr and can't be redirected directly,
2083 # and sets the high bit in the cache file unless we assign to the vars.
2085 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2087 # `set' does not quote correctly, so add quotes (double-quote substitution
2088 # turns \\\\ into \\, and sed turns \\ into \).
2090 -e "s/'/'\\\\''/g" \
2091 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2094 # `set' quotes correctly as required by POSIX, so do not add quotes.
2095 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2098 if cmp -s $cache_file confcache
; then
2101 if test -w $cache_file; then
2102 echo "updating cache $cache_file"
2103 cat confcache
> $cache_file
2105 echo "not updating unwritable cache $cache_file"
2111 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2112 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2113 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2114 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2115 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2116 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2117 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2118 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2119 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2120 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2122 # Reload cache, that may have been modified by ltconfig
2123 if test -r "$cache_file"; then
2124 echo "loading cache $cache_file"
2127 echo "creating cache $cache_file"
2132 # This can be used to rebuild libtool when needed
2133 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2135 # Always use our own libtool.
2136 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2138 # Redirect the config.log output again, so that the ltconfig log is not
2139 # clobbered by the next message.
2140 exec 5>>.
/config.log
2148 # Check whether --enable-targets or --disable-targets was given.
2149 if test "${enable_targets+set}" = set; then
2150 enableval
="$enable_targets"
2151 case "${enableval}" in
2152 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2154 no
) enable_targets
= ;;
2155 *) enable_targets
=$enableval ;;
2158 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2159 if test "${enable_commonbfdlib+set}" = set; then
2160 enableval
="$enable_commonbfdlib"
2161 case "${enableval}" in
2162 yes) commonbfdlib
=true
;;
2163 no
) commonbfdlib
=false
;;
2164 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2168 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2169 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2170 if test "${enable_build_warnings+set}" = set; then
2171 enableval
="$enable_build_warnings"
2172 case "${enableval}" in
2174 no
) build_warnings
="-w";;
2175 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2176 build_warnings
="${build_warnings} ${t}";;
2177 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2178 build_warnings
="${t} ${build_warnings}";;
2179 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2181 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2182 echo "Setting warning flags = $build_warnings" 6>&1
2186 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2187 WARN_CFLAGS
="${build_warnings}"
2195 if test -z "$target" ; then
2196 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2198 if test -z "$host" ; then
2199 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2202 # Extract the first word of "gcc", so it can be a program name with args.
2203 set dummy gcc
; ac_word
=$2
2204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2205 echo "configure:2206: checking for $ac_word" >&5
2206 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC
="$CC" # Let the user override the test.
2212 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2214 for ac_dir
in $ac_dummy; do
2215 test -z "$ac_dir" && ac_dir
=.
2216 if test -f $ac_dir/$ac_word; then
2225 if test -n "$CC"; then
2226 echo "$ac_t""$CC" 1>&6
2228 echo "$ac_t""no" 1>&6
2231 if test -z "$CC"; then
2232 # Extract the first word of "cc", so it can be a program name with args.
2233 set dummy cc
; ac_word
=$2
2234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2235 echo "configure:2236: checking for $ac_word" >&5
2236 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC
="$CC" # Let the user override the test.
2242 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2245 for ac_dir
in $ac_dummy; do
2246 test -z "$ac_dir" && ac_dir
=.
2247 if test -f $ac_dir/$ac_word; then
2248 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2249 ac_prog_rejected
=yes
2257 if test $ac_prog_rejected = yes; then
2258 # We found a bogon in the path, so make sure we never use it.
2259 set dummy
$ac_cv_prog_CC
2261 if test $# -gt 0; then
2262 # We chose a different compiler from the bogus one.
2263 # However, it has the same basename, so the bogon will be chosen
2264 # first if we set CC to just the basename; use the full file name.
2266 set dummy
"$ac_dir/$ac_word" "$@"
2274 if test -n "$CC"; then
2275 echo "$ac_t""$CC" 1>&6
2277 echo "$ac_t""no" 1>&6
2280 if test -z "$CC"; then
2281 case "`uname -s`" in
2283 # Extract the first word of "cl", so it can be a program name with args.
2284 set dummy cl
; ac_word
=$2
2285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2286 echo "configure:2287: checking for $ac_word" >&5
2287 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC
="$CC" # Let the user override the test.
2293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2295 for ac_dir
in $ac_dummy; do
2296 test -z "$ac_dir" && ac_dir
=.
2297 if test -f $ac_dir/$ac_word; then
2306 if test -n "$CC"; then
2307 echo "$ac_t""$CC" 1>&6
2309 echo "$ac_t""no" 1>&6
2314 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2317 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2318 echo "configure:2319: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2322 ac_cpp
='$CPP $CPPFLAGS'
2323 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2324 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2325 cross_compiling
=$ac_cv_prog_cc_cross
2327 cat > conftest.
$ac_ext << EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2334 if { (eval echo configure
:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2335 ac_cv_prog_cc_works
=yes
2336 # If we can't run a trivial program, we are probably using a cross compiler.
2337 if (.
/conftest
; exit) 2>/dev
/null
; then
2338 ac_cv_prog_cc_cross
=no
2340 ac_cv_prog_cc_cross
=yes
2343 echo "configure: failed program was:" >&5
2344 cat conftest.
$ac_ext >&5
2345 ac_cv_prog_cc_works
=no
2349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2350 ac_cpp
='$CPP $CPPFLAGS'
2351 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2352 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2353 cross_compiling
=$ac_cv_prog_cc_cross
2355 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2356 if test $ac_cv_prog_cc_works = no
; then
2357 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2359 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2360 echo "configure:2361: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2361 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2362 cross_compiling
=$ac_cv_prog_cc_cross
2364 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2365 echo "configure:2366: checking whether we are using GNU C" >&5
2366 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 cat > conftest.c
<<EOF
2374 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2381 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2383 if test $ac_cv_prog_gcc = yes; then
2389 ac_test_CFLAGS
="${CFLAGS+set}"
2390 ac_save_CFLAGS
="$CFLAGS"
2392 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2393 echo "configure:2394: checking whether ${CC-cc} accepts -g" >&5
2394 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 echo 'void f(){}' > conftest.c
2398 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2407 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2408 if test "$ac_test_CFLAGS" = set; then
2409 CFLAGS
="$ac_save_CFLAGS"
2410 elif test $ac_cv_prog_cc_g = yes; then
2411 if test "$GCC" = yes; then
2417 if test "$GCC" = yes; then
2425 for ac_prog
in 'bison -y' byacc
2427 # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy
$ac_prog; ac_word
=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 if test -n "$YACC"; then
2435 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2437 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2439 for ac_dir
in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir
=.
2441 if test -f $ac_dir/$ac_word; then
2442 ac_cv_prog_YACC
="$ac_prog"
2449 YACC
="$ac_cv_prog_YACC"
2450 if test -n "$YACC"; then
2451 echo "$ac_t""$YACC" 1>&6
2453 echo "$ac_t""no" 1>&6
2456 test -n "$YACC" && break
2458 test -n "$YACC" || YACC
="yacc"
2460 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2461 echo "configure:2462: checking how to run the C preprocessor" >&5
2462 # On Suns, sometimes $CPP names a directory.
2463 if test -n "$CPP" && test -d "$CPP"; then
2466 if test -z "$CPP"; then
2467 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 # This must be in double quotes, not single quotes, because CPP may get
2471 # substituted into the Makefile and "${CC-cc}" will confuse make.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp.
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2481 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure
:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2488 echo "configure: failed program was:" >&5
2489 cat conftest.
$ac_ext >&5
2491 CPP
="${CC-cc} -E -traditional-cpp"
2492 cat > conftest.
$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2498 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure
:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 CPP
="${CC-cc} -nologo -E"
2509 cat > conftest.
$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2515 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure
:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2522 echo "configure: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2532 ac_cv_prog_CPP
="$CPP"
2534 CPP
="$ac_cv_prog_CPP"
2536 ac_cv_prog_CPP
="$CPP"
2538 echo "$ac_t""$CPP" 1>&6
2540 missing_dir
=`cd $ac_aux_dir && pwd`
2541 for ac_prog
in flex
lex
2543 # Extract the first word of "$ac_prog", so it can be a program name with args.
2544 set dummy
$ac_prog; ac_word
=$2
2545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_word" >&5
2547 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 if test -n "$LEX"; then
2551 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2553 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2555 for ac_dir
in $ac_dummy; do
2556 test -z "$ac_dir" && ac_dir
=.
2557 if test -f $ac_dir/$ac_word; then
2558 ac_cv_prog_LEX
="$ac_prog"
2565 LEX
="$ac_cv_prog_LEX"
2566 if test -n "$LEX"; then
2567 echo "$ac_t""$LEX" 1>&6
2569 echo "$ac_t""no" 1>&6
2572 test -n "$LEX" && break
2574 test -n "$LEX" || LEX
="$missing_dir/missing flex"
2576 # Extract the first word of "flex", so it can be a program name with args.
2577 set dummy flex
; ac_word
=$2
2578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_word" >&5
2580 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 if test -n "$LEX"; then
2584 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2586 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2588 for ac_dir
in $ac_dummy; do
2589 test -z "$ac_dir" && ac_dir
=.
2590 if test -f $ac_dir/$ac_word; then
2591 ac_cv_prog_LEX
="flex"
2596 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2599 LEX
="$ac_cv_prog_LEX"
2600 if test -n "$LEX"; then
2601 echo "$ac_t""$LEX" 1>&6
2603 echo "$ac_t""no" 1>&6
2606 if test -z "$LEXLIB"
2612 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2613 echo "configure:2614: checking for yywrap in -l$ac_lib" >&5
2614 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 ac_save_LIBS
="$LIBS"
2619 LIBS
="-l$ac_lib $LIBS"
2620 cat > conftest.
$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 /* Override any gcc2 internal prototype to avoid an error. */
2624 /* We use char because int might match the return type of a gcc2
2625 builtin and then its argument prototype would still apply. */
2632 if { (eval echo configure
:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2634 eval "ac_cv_lib_$ac_lib_var=yes"
2636 echo "configure: failed program was:" >&5
2637 cat conftest.
$ac_ext >&5
2639 eval "ac_cv_lib_$ac_lib_var=no"
2642 LIBS
="$ac_save_LIBS"
2645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2646 echo "$ac_t""yes" 1>&6
2649 echo "$ac_t""no" 1>&6
2654 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2655 echo "configure:2656: checking lex output file root" >&5
2656 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 # The minimal lex program is just a single line: %%. But some broken lexes
2660 # (Solaris, I think it was) want two %% lines, so accommodate them.
2663 if test -f lex.yy.c
; then
2664 ac_cv_prog_lex_root
=lex.yy
2665 elif test -f lexyy.c
; then
2666 ac_cv_prog_lex_root
=lexyy
2668 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2672 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2673 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2675 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2676 echo "configure:2677: checking whether yytext is a pointer" >&5
2677 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 # POSIX says lex can declare yytext either as a pointer or an array; the
2681 # default is implementation-dependent. Figure out which it is, since
2682 # not all implementations provide the %pointer and %array declarations.
2683 ac_cv_prog_lex_yytext_pointer
=no
2684 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2685 ac_save_LIBS
="$LIBS"
2686 LIBS
="$LIBS $LEXLIB"
2687 cat > conftest.
$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2690 `cat $LEX_OUTPUT_ROOT.c`
2695 if { (eval echo configure
:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2697 ac_cv_prog_lex_yytext_pointer
=yes
2699 echo "configure: failed program was:" >&5
2700 cat conftest.
$ac_ext >&5
2703 LIBS
="$ac_save_LIBS"
2704 rm -f "${LEX_OUTPUT_ROOT}.c"
2708 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2709 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2710 cat >> confdefs.h
<<\EOF
2711 #define YYTEXT_POINTER 1
2718 # Extract the first word of "ranlib", so it can be a program name with args.
2719 set dummy ranlib
; ac_word
=$2
2720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2721 echo "configure:2722: checking for $ac_word" >&5
2722 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 if test -n "$RANLIB"; then
2726 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2728 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2730 for ac_dir
in $ac_dummy; do
2731 test -z "$ac_dir" && ac_dir
=.
2732 if test -f $ac_dir/$ac_word; then
2733 ac_cv_prog_RANLIB
="ranlib"
2738 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2741 RANLIB
="$ac_cv_prog_RANLIB"
2742 if test -n "$RANLIB"; then
2743 echo "$ac_t""$RANLIB" 1>&6
2745 echo "$ac_t""no" 1>&6
2748 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2749 echo "configure:2750: checking for ANSI C header files" >&5
2750 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 cat > conftest.
$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2761 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure
:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2766 ac_cv_header_stdc
=yes
2769 echo "configure: failed program was:" >&5
2770 cat conftest.
$ac_ext >&5
2772 ac_cv_header_stdc
=no
2776 if test $ac_cv_header_stdc = yes; then
2777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784 egrep "memchr" >/dev
/null
2>&1; then
2788 ac_cv_header_stdc
=no
2794 if test $ac_cv_header_stdc = yes; then
2795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2796 cat > conftest.
$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2802 egrep "free" >/dev
/null
2>&1; then
2806 ac_cv_header_stdc
=no
2812 if test $ac_cv_header_stdc = yes; then
2813 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2814 if test "$cross_compiling" = yes; then
2817 cat > conftest.
$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2821 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2822 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2824 int main () { int i; for (i = 0; i < 256; i++)
2825 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2829 if { (eval echo configure
:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2833 echo "configure: failed program was:" >&5
2834 cat conftest.
$ac_ext >&5
2836 ac_cv_header_stdc
=no
2844 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2845 if test $ac_cv_header_stdc = yes; then
2846 cat >> confdefs.h
<<\EOF
2847 #define STDC_HEADERS 1
2852 echo $ac_n "checking for working const""... $ac_c" 1>&6
2853 echo "configure:2854: checking for working const" >&5
2854 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.
$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2863 /* Ultrix mips cc rejects this. */
2864 typedef int charset[2]; const charset x;
2865 /* SunOS 4.1.1 cc rejects this. */
2866 char const *const *ccp;
2868 /* NEC SVR4.0.2 mips cc rejects this. */
2869 struct point {int x, y;};
2870 static struct point const zero = {0,0};
2871 /* AIX XL C 1.02.0.0 rejects this.
2872 It does not let you subtract one const X* pointer from another in an arm
2873 of an if-expression whose if-part is not a constant expression */
2874 const char *g = "string";
2875 ccp = &g + (g ? g-g : 0);
2876 /* HPUX 7.0 cc rejects these. */
2879 ccp = (char const *const *) p;
2880 { /* SCO 3.2v4 cc rejects this. */
2882 char const *s = 0 ? (char *) 0 : (char const *) 0;
2886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2888 const int *foo = &x[0];
2891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2892 typedef const int *iptr;
2896 { /* AIX XL C 1.02.0.0 rejects this saying
2897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2898 struct s { int j; const int *ap[3]; };
2899 struct s *b; b->j = 5;
2901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2907 if { (eval echo configure
:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2911 echo "configure: failed program was:" >&5
2912 cat conftest.
$ac_ext >&5
2919 echo "$ac_t""$ac_cv_c_const" 1>&6
2920 if test $ac_cv_c_const = no
; then
2921 cat >> confdefs.h
<<\EOF
2927 echo $ac_n "checking for inline""... $ac_c" 1>&6
2928 echo "configure:2929: checking for inline" >&5
2929 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2933 for ac_kw
in inline __inline__ __inline
; do
2934 cat > conftest.
$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2942 if { (eval echo configure
:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2944 ac_cv_c_inline
=$ac_kw; break
2946 echo "configure: failed program was:" >&5
2947 cat conftest.
$ac_ext >&5
2954 echo "$ac_t""$ac_cv_c_inline" 1>&6
2955 case "$ac_cv_c_inline" in
2957 no
) cat >> confdefs.h
<<\EOF
2961 *) cat >> confdefs.h
<<EOF
2962 #define inline $ac_cv_c_inline
2967 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2968 echo "configure:2969: checking for off_t" >&5
2969 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2972 cat > conftest.
$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2975 #include <sys/types.h>
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2984 ac_cv_type_off_t
=yes
2992 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2993 if test $ac_cv_type_off_t = no
; then
2994 cat >> confdefs.h
<<\EOF
3000 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3001 echo "configure:3002: checking for size_t" >&5
3002 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.
$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <sys/types.h>
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3017 ac_cv_type_size_t
=yes
3020 ac_cv_type_size_t
=no
3025 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3026 if test $ac_cv_type_size_t = no
; then
3027 cat >> confdefs.h
<<\EOF
3028 #define size_t unsigned
3033 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3034 # for constant arguments. Useless!
3035 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3036 echo "configure:3037: checking for working alloca.h" >&5
3037 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.
$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3045 char *p = alloca(2 * sizeof(int));
3048 if { (eval echo configure
:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3050 ac_cv_header_alloca_h
=yes
3052 echo "configure: failed program was:" >&5
3053 cat conftest.
$ac_ext >&5
3055 ac_cv_header_alloca_h
=no
3060 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3061 if test $ac_cv_header_alloca_h = yes; then
3062 cat >> confdefs.h
<<\EOF
3063 #define HAVE_ALLOCA_H 1
3068 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3069 echo "configure:3070: checking for alloca" >&5
3070 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.
$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3078 # define alloca __builtin_alloca
3081 # include <malloc.h>
3082 # define alloca _alloca
3085 # include <alloca.h>
3090 # ifndef alloca /* predefined by HP cc +Olibcalls */
3099 char *p = (char *) alloca(1);
3102 if { (eval echo configure
:3103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3104 ac_cv_func_alloca_works
=yes
3106 echo "configure: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3109 ac_cv_func_alloca_works
=no
3114 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3115 if test $ac_cv_func_alloca_works = yes; then
3116 cat >> confdefs.h
<<\EOF
3117 #define HAVE_ALLOCA 1
3122 if test $ac_cv_func_alloca_works = no
; then
3123 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3124 # that cause trouble. Some versions do not even contain alloca or
3125 # contain a buggy version. If you still want to use their alloca,
3126 # use ar to extract alloca.o from them instead of compiling alloca.c.
3127 ALLOCA
=alloca.
${ac_objext}
3128 cat >> confdefs.h
<<\EOF
3133 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3134 echo "configure:3135: checking whether alloca needs Cray hooks" >&5
3135 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 cat > conftest.
$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3141 #if defined(CRAY) && ! defined(CRAY2)
3148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3149 egrep "webecray" >/dev
/null
2>&1; then
3160 echo "$ac_t""$ac_cv_os_cray" 1>&6
3161 if test $ac_cv_os_cray = yes; then
3162 for ac_func
in _getb67 GETB67 getb67
; do
3163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3164 echo "configure:3165: checking for $ac_func" >&5
3165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 cat > conftest.
$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 /* System header to define __stub macros and hopefully few prototypes,
3172 which can conflict with char $ac_func(); below. */
3174 /* Override any gcc2 internal prototype to avoid an error. */
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3181 /* The GNU C library defines this for functions which it implements
3182 to always fail with ENOSYS. Some functions are actually named
3183 something starting with __ and the normal name is an alias. */
3184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3192 if { (eval echo configure
:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3194 eval "ac_cv_func_$ac_func=yes"
3196 echo "configure: failed program was:" >&5
3197 cat conftest.
$ac_ext >&5
3199 eval "ac_cv_func_$ac_func=no"
3204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3205 echo "$ac_t""yes" 1>&6
3206 cat >> confdefs.h
<<EOF
3207 #define CRAY_STACKSEG_END $ac_func
3212 echo "$ac_t""no" 1>&6
3218 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3219 echo "configure:3220: checking stack direction for C alloca" >&5
3220 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 if test "$cross_compiling" = yes; then
3224 ac_cv_c_stack_direction
=0
3226 cat > conftest.
$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 find_stack_direction ()
3231 static char *addr = 0;
3236 return find_stack_direction ();
3239 return (&dummy > addr) ? 1 : -1;
3243 exit (find_stack_direction() < 0);
3246 if { (eval echo configure
:3247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3248 ac_cv_c_stack_direction
=1
3250 echo "configure: failed program was:" >&5
3251 cat conftest.
$ac_ext >&5
3253 ac_cv_c_stack_direction
=-1
3260 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3261 cat >> confdefs.h
<<EOF
3262 #define STACK_DIRECTION $ac_cv_c_stack_direction
3267 for ac_hdr
in unistd.h
3269 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3271 echo "configure:3272: checking for $ac_hdr" >&5
3272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 cat > conftest.
$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3280 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3281 { (eval echo configure
:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3282 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3283 if test -z "$ac_err"; then
3285 eval "ac_cv_header_$ac_safe=yes"
3288 echo "configure: failed program was:" >&5
3289 cat conftest.
$ac_ext >&5
3291 eval "ac_cv_header_$ac_safe=no"
3295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3296 echo "$ac_t""yes" 1>&6
3297 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3298 cat >> confdefs.h
<<EOF
3299 #define $ac_tr_hdr 1
3303 echo "$ac_t""no" 1>&6
3307 for ac_func
in getpagesize
3309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3310 echo "configure:3311: checking for $ac_func" >&5
3311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 cat > conftest.
$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 /* System header to define __stub macros and hopefully few prototypes,
3318 which can conflict with char $ac_func(); below. */
3320 /* Override any gcc2 internal prototype to avoid an error. */
3321 /* We use char because int might match the return type of a gcc2
3322 builtin and then its argument prototype would still apply. */
3327 /* The GNU C library defines this for functions which it implements
3328 to always fail with ENOSYS. Some functions are actually named
3329 something starting with __ and the normal name is an alias. */
3330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3338 if { (eval echo configure
:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3340 eval "ac_cv_func_$ac_func=yes"
3342 echo "configure: failed program was:" >&5
3343 cat conftest.
$ac_ext >&5
3345 eval "ac_cv_func_$ac_func=no"
3350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3351 echo "$ac_t""yes" 1>&6
3352 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3353 cat >> confdefs.h
<<EOF
3354 #define $ac_tr_func 1
3358 echo "$ac_t""no" 1>&6
3362 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3363 echo "configure:3364: checking for working mmap" >&5
3364 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3367 if test "$cross_compiling" = yes; then
3368 ac_cv_func_mmap_fixed_mapped
=no
3370 cat > conftest.
$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3374 /* Thanks to Mike Haertel and Jim Avera for this test.
3375 Here is a matrix of mmap possibilities:
3376 mmap private not fixed
3377 mmap private fixed at somewhere currently unmapped
3378 mmap private fixed at somewhere already mapped
3379 mmap shared not fixed
3380 mmap shared fixed at somewhere currently unmapped
3381 mmap shared fixed at somewhere already mapped
3382 For private mappings, we should verify that changes cannot be read()
3383 back from the file, nor mmap's back from the file at a different
3384 address. (There have been systems where private was not correctly
3385 implemented like the infamous i386 svr4.0, and systems where the
3386 VM page cache was not coherent with the filesystem buffer cache
3387 like early versions of FreeBSD and possibly contemporary NetBSD.)
3388 For shared mappings, we should conversely verify that changes get
3389 propogated back to all the places they're supposed to be.
3391 Grep wants private fixed already mapped.
3392 The main things grep needs to know about mmap are:
3393 * does it exist and is it safe to write into the mmap'd area
3394 * how to use it (BSD variants) */
3395 #include <sys/types.h>
3397 #include <sys/mman.h>
3399 /* This mess was copied from the GNU getpagesize.h. */
3400 #ifndef HAVE_GETPAGESIZE
3401 # ifdef HAVE_UNISTD_H
3402 # include <unistd.h>
3405 /* Assume that all systems that can run configure have sys/param.h. */
3406 # ifndef HAVE_SYS_PARAM_H
3407 # define HAVE_SYS_PARAM_H 1
3410 # ifdef _SC_PAGESIZE
3411 # define getpagesize() sysconf(_SC_PAGESIZE)
3412 # else /* no _SC_PAGESIZE */
3413 # ifdef HAVE_SYS_PARAM_H
3414 # include <sys/param.h>
3415 # ifdef EXEC_PAGESIZE
3416 # define getpagesize() EXEC_PAGESIZE
3417 # else /* no EXEC_PAGESIZE */
3419 # define getpagesize() NBPG * CLSIZE
3422 # endif /* no CLSIZE */
3423 # else /* no NBPG */
3425 # define getpagesize() NBPC
3426 # else /* no NBPC */
3428 # define getpagesize() PAGESIZE
3429 # endif /* PAGESIZE */
3430 # endif /* no NBPC */
3431 # endif /* no NBPG */
3432 # endif /* no EXEC_PAGESIZE */
3433 # else /* no HAVE_SYS_PARAM_H */
3434 # define getpagesize() 8192 /* punt totally */
3435 # endif /* no HAVE_SYS_PARAM_H */
3436 # endif /* no _SC_PAGESIZE */
3438 #endif /* no HAVE_GETPAGESIZE */
3441 extern "C" { void *malloc(unsigned); }
3449 char *data, *data2, *data3;
3453 pagesize = getpagesize();
3456 * First, make a file with some known garbage in it.
3458 data = malloc(pagesize);
3461 for (i = 0; i < pagesize; ++i)
3462 *(data + i) = rand();
3464 fd = creat("conftestmmap", 0600);
3467 if (write(fd, data, pagesize) != pagesize)
3472 * Next, try to mmap the file at a fixed address which
3473 * already has something else allocated at it. If we can,
3474 * also make sure that we see the same garbage.
3476 fd = open("conftestmmap", O_RDWR);
3479 data2 = malloc(2 * pagesize);
3482 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3483 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3484 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3486 for (i = 0; i < pagesize; ++i)
3487 if (*(data + i) != *(data2 + i))
3491 * Finally, make sure that changes to the mapped area
3492 * do not percolate back to the file as seen by read().
3493 * (This is a bug on some variants of i386 svr4.0.)
3495 for (i = 0; i < pagesize; ++i)
3496 *(data2 + i) = *(data2 + i) + 1;
3497 data3 = malloc(pagesize);
3500 if (read(fd, data3, pagesize) != pagesize)
3502 for (i = 0; i < pagesize; ++i)
3503 if (*(data + i) != *(data3 + i))
3506 unlink("conftestmmap");
3511 if { (eval echo configure
:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3513 ac_cv_func_mmap_fixed_mapped
=yes
3515 echo "configure: failed program was:" >&5
3516 cat conftest.
$ac_ext >&5
3518 ac_cv_func_mmap_fixed_mapped
=no
3525 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3526 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3527 cat >> confdefs.h
<<\EOF
3534 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3535 unistd.h values.h sys
/param.h
3537 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3539 echo "configure:3540: checking for $ac_hdr" >&5
3540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.
$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3548 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3549 { (eval echo configure
:3550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3550 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3551 if test -z "$ac_err"; then
3553 eval "ac_cv_header_$ac_safe=yes"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3559 eval "ac_cv_header_$ac_safe=no"
3563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3566 cat >> confdefs.h
<<EOF
3567 #define $ac_tr_hdr 1
3571 echo "$ac_t""no" 1>&6
3575 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3576 __argz_count __argz_stringify __argz_next
3578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3579 echo "configure:3580: checking for $ac_func" >&5
3580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
3586 /* System header to define __stub macros and hopefully few prototypes,
3587 which can conflict with char $ac_func(); below. */
3589 /* Override any gcc2 internal prototype to avoid an error. */
3590 /* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3596 /* The GNU C library defines this for functions which it implements
3597 to always fail with ENOSYS. Some functions are actually named
3598 something starting with __ and the normal name is an alias. */
3599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3607 if { (eval echo configure
:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3609 eval "ac_cv_func_$ac_func=yes"
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3614 eval "ac_cv_func_$ac_func=no"
3619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3620 echo "$ac_t""yes" 1>&6
3621 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3622 cat >> confdefs.h
<<EOF
3623 #define $ac_tr_func 1
3627 echo "$ac_t""no" 1>&6
3632 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3633 for ac_func
in stpcpy
3635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3636 echo "configure:3637: checking for $ac_func" >&5
3637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 cat > conftest.
$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 /* System header to define __stub macros and hopefully few prototypes,
3644 which can conflict with char $ac_func(); below. */
3646 /* Override any gcc2 internal prototype to avoid an error. */
3647 /* We use char because int might match the return type of a gcc2
3648 builtin and then its argument prototype would still apply. */
3653 /* The GNU C library defines this for functions which it implements
3654 to always fail with ENOSYS. Some functions are actually named
3655 something starting with __ and the normal name is an alias. */
3656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3664 if { (eval echo configure
:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3666 eval "ac_cv_func_$ac_func=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3671 eval "ac_cv_func_$ac_func=no"
3676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3678 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3679 cat >> confdefs.h
<<EOF
3680 #define $ac_tr_func 1
3684 echo "$ac_t""no" 1>&6
3689 if test "${ac_cv_func_stpcpy}" = "yes"; then
3690 cat >> confdefs.h
<<\EOF
3691 #define HAVE_STPCPY 1
3696 if test $ac_cv_header_locale_h = yes; then
3697 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3698 echo "configure:3699: checking for LC_MESSAGES" >&5
3699 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 cat > conftest.
$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3710 if { (eval echo configure
:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3712 am_cv_val_LC_MESSAGES
=yes
3714 echo "configure: failed program was:" >&5
3715 cat conftest.
$ac_ext >&5
3717 am_cv_val_LC_MESSAGES
=no
3722 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3723 if test $am_cv_val_LC_MESSAGES = yes; then
3724 cat >> confdefs.h
<<\EOF
3725 #define HAVE_LC_MESSAGES 1
3730 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3731 echo "configure:3732: checking whether NLS is requested" >&5
3732 # Check whether --enable-nls or --disable-nls was given.
3733 if test "${enable_nls+set}" = set; then
3734 enableval
="$enable_nls"
3740 echo "$ac_t""$USE_NLS" 1>&6
3743 USE_INCLUDED_LIBINTL
=no
3745 if test "$USE_NLS" = "yes"; then
3746 cat >> confdefs.h
<<\EOF
3747 #define ENABLE_NLS 1
3750 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3751 echo "configure:3752: checking whether included gettext is requested" >&5
3752 # Check whether --with-included-gettext or --without-included-gettext was given.
3753 if test "${with_included_gettext+set}" = set; then
3754 withval
="$with_included_gettext"
3755 nls_cv_force_use_gnu_gettext
=$withval
3757 nls_cv_force_use_gnu_gettext
=no
3760 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3762 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3763 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3765 nls_cv_header_libgt
=
3768 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3769 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3770 echo "configure:3771: checking for libintl.h" >&5
3771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 cat > conftest.
$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #include <libintl.h>
3779 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3780 { (eval echo configure
:3781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3781 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3782 if test -z "$ac_err"; then
3784 eval "ac_cv_header_$ac_safe=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.
$ac_ext >&5
3790 eval "ac_cv_header_$ac_safe=no"
3794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3797 echo "configure:3798: checking for gettext in libc" >&5
3798 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 cat > conftest.
$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 #include <libintl.h>
3806 return (int) gettext ("")
3809 if { (eval echo configure
:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3811 gt_cv_func_gettext_libc
=yes
3813 echo "configure: failed program was:" >&5
3814 cat conftest.
$ac_ext >&5
3816 gt_cv_func_gettext_libc
=no
3821 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3823 if test "$gt_cv_func_gettext_libc" != "yes"; then
3824 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3825 echo "configure:3826: checking for bindtextdomain in -lintl" >&5
3826 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 ac_save_LIBS
="$LIBS"
3832 cat > conftest.
$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 /* Override any gcc2 internal prototype to avoid an error. */
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3838 char bindtextdomain();
3844 if { (eval echo configure
:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3846 eval "ac_cv_lib_$ac_lib_var=yes"
3848 echo "configure: failed program was:" >&5
3849 cat conftest.
$ac_ext >&5
3851 eval "ac_cv_lib_$ac_lib_var=no"
3854 LIBS
="$ac_save_LIBS"
3857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3860 echo "configure:3861: checking for gettext in libintl" >&5
3861 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 cat > conftest.
$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3869 return (int) gettext ("")
3872 if { (eval echo configure
:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3874 gt_cv_func_gettext_libintl
=yes
3876 echo "configure: failed program was:" >&5
3877 cat conftest.
$ac_ext >&5
3879 gt_cv_func_gettext_libintl
=no
3884 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3886 echo "$ac_t""no" 1>&6
3891 if test "$gt_cv_func_gettext_libc" = "yes" \
3892 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3893 cat >> confdefs.h
<<\EOF
3894 #define HAVE_GETTEXT 1
3897 # Extract the first word of "msgfmt", so it can be a program name with args.
3898 set dummy msgfmt
; ac_word
=$2
3899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3900 echo "configure:3901: checking for $ac_word" >&5
3901 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3906 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3909 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3910 for ac_dir
in $PATH; do
3911 test -z "$ac_dir" && ac_dir
=.
3912 if test -f $ac_dir/$ac_word; then
3913 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3914 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3920 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3924 MSGFMT
="$ac_cv_path_MSGFMT"
3925 if test -n "$MSGFMT"; then
3926 echo "$ac_t""$MSGFMT" 1>&6
3928 echo "$ac_t""no" 1>&6
3930 if test "$MSGFMT" != "no"; then
3931 for ac_func
in dcgettext
3933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_func" >&5
3935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 /* System header to define __stub macros and hopefully few prototypes,
3942 which can conflict with char $ac_func(); below. */
3944 /* Override any gcc2 internal prototype to avoid an error. */
3945 /* We use char because int might match the return type of a gcc2
3946 builtin and then its argument prototype would still apply. */
3951 /* The GNU C library defines this for functions which it implements
3952 to always fail with ENOSYS. Some functions are actually named
3953 something starting with __ and the normal name is an alias. */
3954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3962 if { (eval echo configure
:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3964 eval "ac_cv_func_$ac_func=yes"
3966 echo "configure: failed program was:" >&5
3967 cat conftest.
$ac_ext >&5
3969 eval "ac_cv_func_$ac_func=no"
3974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3975 echo "$ac_t""yes" 1>&6
3976 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3977 cat >> confdefs.h
<<EOF
3978 #define $ac_tr_func 1
3982 echo "$ac_t""no" 1>&6
3986 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3987 set dummy gmsgfmt
; ac_word
=$2
3988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3989 echo "configure:3990: checking for $ac_word" >&5
3990 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3995 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3998 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4001 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4003 for ac_dir
in $ac_dummy; do
4004 test -z "$ac_dir" && ac_dir
=.
4005 if test -f $ac_dir/$ac_word; then
4006 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4011 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4015 GMSGFMT
="$ac_cv_path_GMSGFMT"
4016 if test -n "$GMSGFMT"; then
4017 echo "$ac_t""$GMSGFMT" 1>&6
4019 echo "$ac_t""no" 1>&6
4022 # Extract the first word of "xgettext", so it can be a program name with args.
4023 set dummy xgettext
; 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_XGETTEXT'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4031 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4034 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4035 for ac_dir
in $PATH; do
4036 test -z "$ac_dir" && ac_dir
=.
4037 if test -f $ac_dir/$ac_word; then
4038 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4039 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4045 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4049 XGETTEXT
="$ac_cv_path_XGETTEXT"
4050 if test -n "$XGETTEXT"; then
4051 echo "$ac_t""$XGETTEXT" 1>&6
4053 echo "$ac_t""no" 1>&6
4056 cat > conftest.
$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4061 extern int _nl_msg_cat_cntr;
4062 return _nl_msg_cat_cntr
4065 if { (eval echo configure
:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4070 echo "configure: failed program was:" >&5
4071 cat conftest.
$ac_ext >&5
4082 echo "$ac_t""no" 1>&6
4087 if test "$CATOBJEXT" = "NONE"; then
4088 nls_cv_use_gnu_gettext
=yes
4092 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4093 INTLOBJS
="\$(GETTOBJS)"
4094 # Extract the first word of "msgfmt", so it can be a program name with args.
4095 set dummy msgfmt
; ac_word
=$2
4096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4097 echo "configure:4098: checking for $ac_word" >&5
4098 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4103 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4106 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4107 for ac_dir
in $PATH; do
4108 test -z "$ac_dir" && ac_dir
=.
4109 if test -f $ac_dir/$ac_word; then
4110 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4111 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4117 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4121 MSGFMT
="$ac_cv_path_MSGFMT"
4122 if test -n "$MSGFMT"; then
4123 echo "$ac_t""$MSGFMT" 1>&6
4125 echo "$ac_t""no" 1>&6
4128 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4129 set dummy gmsgfmt
; ac_word
=$2
4130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4131 echo "configure:4132: checking for $ac_word" >&5
4132 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4137 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4140 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4145 for ac_dir
in $ac_dummy; do
4146 test -z "$ac_dir" && ac_dir
=.
4147 if test -f $ac_dir/$ac_word; then
4148 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4153 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4157 GMSGFMT
="$ac_cv_path_GMSGFMT"
4158 if test -n "$GMSGFMT"; then
4159 echo "$ac_t""$GMSGFMT" 1>&6
4161 echo "$ac_t""no" 1>&6
4164 # Extract the first word of "xgettext", so it can be a program name with args.
4165 set dummy xgettext
; ac_word
=$2
4166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4167 echo "configure:4168: checking for $ac_word" >&5
4168 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4173 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4177 for ac_dir
in $PATH; do
4178 test -z "$ac_dir" && ac_dir
=.
4179 if test -f $ac_dir/$ac_word; then
4180 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4181 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4187 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4191 XGETTEXT
="$ac_cv_path_XGETTEXT"
4192 if test -n "$XGETTEXT"; then
4193 echo "$ac_t""$XGETTEXT" 1>&6
4195 echo "$ac_t""no" 1>&6
4199 USE_INCLUDED_LIBINTL
=yes
4203 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4205 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4206 nls_cv_header_intl
=libintl.h
4207 nls_cv_header_libgt
=libgettext.h
4210 if test "$XGETTEXT" != ":"; then
4211 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4214 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4219 # We need to process the po/ directory.
4223 nls_cv_header_intl
=libintl.h
4224 nls_cv_header_libgt
=libgettext.h
4227 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4228 # because some of the sources are only built for this goal.
4229 if test "$PACKAGE" = gettext; then
4231 USE_INCLUDED_LIBINTL
=yes
4234 for lang
in $ALL_LINGUAS; do
4235 GMOFILES
="$GMOFILES $lang.gmo"
4236 POFILES
="$POFILES $lang.po"
4252 if test "x$CATOBJEXT" != "x"; then
4253 if test "x$ALL_LINGUAS" = "x"; then
4256 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4257 echo "configure:4258: checking for catalogs to be installed" >&5
4259 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4260 case "$ALL_LINGUAS" in
4261 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4264 LINGUAS
=$NEW_LINGUAS
4265 echo "$ac_t""$LINGUAS" 1>&6
4268 if test -n "$LINGUAS"; then
4269 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4273 if test $ac_cv_header_locale_h = yes; then
4274 INCLUDE_LOCALE_H
="#include <locale.h>"
4277 /* The system does not provide the header <locale.h>. Take care yourself. */"
4281 if test -f $srcdir/po2tbl.
sed.
in; then
4282 if test "$CATOBJEXT" = ".cat"; then
4283 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4284 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4285 echo "configure:4286: checking for linux/version.h" >&5
4286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 cat > conftest.
$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 #include <linux/version.h>
4294 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4295 { (eval echo configure
:4296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4296 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4297 if test -z "$ac_err"; then
4299 eval "ac_cv_header_$ac_safe=yes"
4302 echo "configure: failed program was:" >&5
4303 cat conftest.
$ac_ext >&5
4305 eval "ac_cv_header_$ac_safe=no"
4309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4313 echo "$ac_t""no" 1>&6
4318 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4320 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4321 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4324 if test "$PACKAGE" = "gettext"; then
4334 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4340 if test -d $srcdir/po
; then
4341 test -d po || mkdir po
4342 if test "x$srcdir" != "x."; then
4343 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4344 posrcprefix
="$srcdir/"
4346 posrcprefix
="../$srcdir/"
4352 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4353 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4357 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4358 echo "configure:4359: checking whether to enable maintainer-specific portions of Makefiles" >&5
4359 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4360 if test "${enable_maintainer_mode+set}" = set; then
4361 enableval
="$enable_maintainer_mode"
4362 USE_MAINTAINER_MODE
=$enableval
4364 USE_MAINTAINER_MODE
=no
4367 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4370 if test $USE_MAINTAINER_MODE = yes; then
4371 MAINTAINER_MODE_TRUE
=
4372 MAINTAINER_MODE_FALSE
='#'
4374 MAINTAINER_MODE_TRUE
='#'
4375 MAINTAINER_MODE_FALSE
=
4377 MAINT
=$MAINTAINER_MODE_TRUE
4382 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4383 echo "configure:4384: checking for executable suffix" >&5
4384 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4387 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4391 echo 'int main () { return 0; }' > conftest.
$ac_ext
4393 if { (eval echo configure
:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4394 for file in conftest.
*; do
4396 *.c |
*.o |
*.obj
) ;;
4397 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4401 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4404 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4409 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4410 echo "$ac_t""${ac_cv_exeext}" 1>&6
4413 if test -n "$EXEEXT"; then
4414 cat >> confdefs.h
<<\EOF
4415 #define HAVE_EXECUTABLE_SUFFIX 1
4419 cat >> confdefs.h
<<EOF
4420 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4424 # host-specific stuff:
4428 .
${srcdir}/..
/bfd
/configure.
host
4433 # Extract the first word of "ranlib", so it can be a program name with args.
4434 set dummy ranlib
; ac_word
=$2
4435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4436 echo "configure:4437: checking for $ac_word" >&5
4437 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 if test -n "$RANLIB"; then
4441 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4443 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4445 for ac_dir
in $ac_dummy; do
4446 test -z "$ac_dir" && ac_dir
=.
4447 if test -f $ac_dir/$ac_word; then
4448 ac_cv_prog_RANLIB
="ranlib"
4453 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
4456 RANLIB
="$ac_cv_prog_RANLIB"
4457 if test -n "$RANLIB"; then
4458 echo "$ac_t""$RANLIB" 1>&6
4460 echo "$ac_t""no" 1>&6
4463 # Find a good install program. We prefer a C program (faster),
4464 # so one script is as good as another. But avoid the broken or
4465 # incompatible versions:
4466 # SysV /etc/install, /usr/sbin/install
4467 # SunOS /usr/etc/install
4468 # IRIX /sbin/install
4470 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4471 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4472 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4473 # ./install, which can be erroneously created by make from ./install.sh.
4474 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4475 echo "configure:4476: checking for a BSD compatible install" >&5
4476 if test -z "$INSTALL"; then
4477 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4481 for ac_dir
in $PATH; do
4482 # Account for people who put trailing slashes in PATH elements.
4484 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4486 # OSF1 and SCO ODT 3.0 have their own names for install.
4487 # Don't use installbsd from OSF since it installs stuff as root
4489 for ac_prog
in ginstall scoinst
install; do
4490 if test -f $ac_dir/$ac_prog; then
4491 if test $ac_prog = install &&
4492 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4493 # AIX install. It has an incompatible calling convention.
4496 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4507 if test "${ac_cv_path_install+set}" = set; then
4508 INSTALL
="$ac_cv_path_install"
4510 # As a last resort, use the slow shell script. We don't cache a
4511 # path for INSTALL within a source directory, because that will
4512 # break other packages using the cache if that directory is
4513 # removed, or if the path is relative.
4514 INSTALL
="$ac_install_sh"
4517 echo "$ac_t""$INSTALL" 1>&6
4519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4520 # It thinks the first close brace ends the variable substitution.
4521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4525 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4528 # Put a plausible default for CC_FOR_BUILD in Makefile.
4529 if test -z "$CC_FOR_BUILD"; then
4530 if test "x$cross_compiling" = "xno"; then
4531 CC_FOR_BUILD
='$(CC)'
4537 # Also set EXEEXT_FOR_BUILD.
4538 if test "x$cross_compiling" = "xno"; then
4539 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4541 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4542 echo "configure:4543: checking for build system executable suffix" >&5
4543 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4544 echo $ac_n "(cached) $ac_c" 1>&6
4547 echo 'int main () { return 0; }' > conftest.c
4548 bfd_cv_build_exeext
=
4549 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4550 for file in conftest.
*; do
4552 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4553 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4557 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4560 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4562 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4566 DEMANGLER_NAME
=c
++filt
4568 *-*-go32* |
*-*-msdos*)
4569 DEMANGLER_NAME
=cxxfilt
4573 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
4575 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_hdr" >&5
4578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.
$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4587 { (eval echo configure
:4588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4588 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4589 if test -z "$ac_err"; then
4591 eval "ac_cv_header_$ac_safe=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.
$ac_ext >&5
4597 eval "ac_cv_header_$ac_safe=no"
4601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6
4603 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4604 cat >> confdefs.h
<<EOF
4605 #define $ac_tr_hdr 1
4609 echo "$ac_t""no" 1>&6
4613 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4614 echo "configure:4615: checking for sys/wait.h that is POSIX.1 compatible" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 cat > conftest.
$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4621 #include <sys/types.h>
4622 #include <sys/wait.h>
4624 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4627 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4632 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4635 if { (eval echo configure
:4636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4637 ac_cv_header_sys_wait_h
=yes
4639 echo "configure: failed program was:" >&5
4640 cat conftest.
$ac_ext >&5
4642 ac_cv_header_sys_wait_h
=no
4647 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4648 if test $ac_cv_header_sys_wait_h = yes; then
4649 cat >> confdefs.h
<<\EOF
4650 #define HAVE_SYS_WAIT_H 1
4655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4656 # for constant arguments. Useless!
4657 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4658 echo "configure:4659: checking for working alloca.h" >&5
4659 if eval "test \"`echo '$''{'ac_cv_header_alloca_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"
4667 char *p = alloca(2 * sizeof(int));
4670 if { (eval echo configure
:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4672 ac_cv_header_alloca_h
=yes
4674 echo "configure: failed program was:" >&5
4675 cat conftest.
$ac_ext >&5
4677 ac_cv_header_alloca_h
=no
4682 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4683 if test $ac_cv_header_alloca_h = yes; then
4684 cat >> confdefs.h
<<\EOF
4685 #define HAVE_ALLOCA_H 1
4690 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4691 echo "configure:4692: checking for alloca" >&5
4692 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.
$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4700 # define alloca __builtin_alloca
4703 # include <malloc.h>
4704 # define alloca _alloca
4707 # include <alloca.h>
4712 # ifndef alloca /* predefined by HP cc +Olibcalls */
4721 char *p = (char *) alloca(1);
4724 if { (eval echo configure
:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4726 ac_cv_func_alloca_works
=yes
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 ac_cv_func_alloca_works
=no
4736 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4737 if test $ac_cv_func_alloca_works = yes; then
4738 cat >> confdefs.h
<<\EOF
4739 #define HAVE_ALLOCA 1
4744 if test $ac_cv_func_alloca_works = no
; then
4745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4746 # that cause trouble. Some versions do not even contain alloca or
4747 # contain a buggy version. If you still want to use their alloca,
4748 # use ar to extract alloca.o from them instead of compiling alloca.c.
4749 ALLOCA
=alloca.
${ac_objext}
4750 cat >> confdefs.h
<<\EOF
4755 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4756 echo "configure:4757: checking whether alloca needs Cray hooks" >&5
4757 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4760 cat > conftest.
$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4763 #if defined(CRAY) && ! defined(CRAY2)
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 egrep "webecray" >/dev
/null
2>&1; then
4782 echo "$ac_t""$ac_cv_os_cray" 1>&6
4783 if test $ac_cv_os_cray = yes; then
4784 for ac_func
in _getb67 GETB67 getb67
; do
4785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4786 echo "configure:4787: checking for $ac_func" >&5
4787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.
$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 /* System header to define __stub macros and hopefully few prototypes,
4794 which can conflict with char $ac_func(); below. */
4796 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4803 /* The GNU C library defines this for functions which it implements
4804 to always fail with ENOSYS. Some functions are actually named
4805 something starting with __ and the normal name is an alias. */
4806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4814 if { (eval echo configure
:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4816 eval "ac_cv_func_$ac_func=yes"
4818 echo "configure: failed program was:" >&5
4819 cat conftest.
$ac_ext >&5
4821 eval "ac_cv_func_$ac_func=no"
4826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4828 cat >> confdefs.h
<<EOF
4829 #define CRAY_STACKSEG_END $ac_func
4834 echo "$ac_t""no" 1>&6
4840 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4841 echo "configure:4842: checking stack direction for C alloca" >&5
4842 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4843 echo $ac_n "(cached) $ac_c" 1>&6
4845 if test "$cross_compiling" = yes; then
4846 ac_cv_c_stack_direction
=0
4848 cat > conftest.
$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4851 find_stack_direction ()
4853 static char *addr = 0;
4858 return find_stack_direction ();
4861 return (&dummy > addr) ? 1 : -1;
4865 exit (find_stack_direction() < 0);
4868 if { (eval echo configure
:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4870 ac_cv_c_stack_direction
=1
4872 echo "configure: failed program was:" >&5
4873 cat conftest.
$ac_ext >&5
4875 ac_cv_c_stack_direction
=-1
4882 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4883 cat >> confdefs.h
<<EOF
4884 #define STACK_DIRECTION $ac_cv_c_stack_direction
4889 for ac_func
in sbrk utimes setmode
4891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4892 echo "configure:4893: checking for $ac_func" >&5
4893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4896 cat > conftest.
$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* System header to define __stub macros and hopefully few prototypes,
4900 which can conflict with char $ac_func(); below. */
4902 /* Override any gcc2 internal prototype to avoid an error. */
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4909 /* The GNU C library defines this for functions which it implements
4910 to always fail with ENOSYS. Some functions are actually named
4911 something starting with __ and the normal name is an alias. */
4912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4920 if { (eval echo configure
:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4922 eval "ac_cv_func_$ac_func=yes"
4924 echo "configure: failed program was:" >&5
4925 cat conftest.
$ac_ext >&5
4927 eval "ac_cv_func_$ac_func=no"
4932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4935 cat >> confdefs.h
<<EOF
4936 #define $ac_tr_func 1
4940 echo "$ac_t""no" 1>&6
4945 # Some systems have frexp only in -lm, not in -lc.
4947 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
4948 echo "configure:4949: checking for library containing frexp" >&5
4949 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4952 ac_func_search_save_LIBS
="$LIBS"
4953 ac_cv_search_frexp
="no"
4954 cat > conftest.
$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4966 if { (eval echo configure
:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4968 ac_cv_search_frexp
="none required"
4970 echo "configure: failed program was:" >&5
4971 cat conftest.
$ac_ext >&5
4974 test "$ac_cv_search_frexp" = "no" && for i
in m
; do
4975 LIBS
="-l$i $ac_func_search_save_LIBS"
4976 cat > conftest.
$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4988 if { (eval echo configure
:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4990 ac_cv_search_frexp
="-l$i"
4993 echo "configure: failed program was:" >&5
4994 cat conftest.
$ac_ext >&5
4998 LIBS
="$ac_func_search_save_LIBS"
5001 echo "$ac_t""$ac_cv_search_frexp" 1>&6
5002 if test "$ac_cv_search_frexp" != "no"; then
5003 test "$ac_cv_search_frexp" = "none required" || LIBS
="$ac_cv_search_frexp $LIBS"
5009 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5010 echo "configure:5011: checking for time_t in time.h" >&5
5011 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5014 cat > conftest.
$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5022 if { (eval echo configure
:5023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5024 bu_cv_decl_time_t_time_h
=yes
5026 echo "configure: failed program was:" >&5
5027 cat conftest.
$ac_ext >&5
5029 bu_cv_decl_time_t_time_h
=no
5034 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5035 if test $bu_cv_decl_time_t_time_h = yes; then
5036 cat >> confdefs.h
<<\EOF
5037 #define HAVE_TIME_T_IN_TIME_H 1
5042 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5043 echo "configure:5044: checking for time_t in sys/types.h" >&5
5044 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5045 echo $ac_n "(cached) $ac_c" 1>&6
5047 cat > conftest.
$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5050 #include <sys/types.h>
5055 if { (eval echo configure
:5056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5057 bu_cv_decl_time_t_types_h
=yes
5059 echo "configure: failed program was:" >&5
5060 cat conftest.
$ac_ext >&5
5062 bu_cv_decl_time_t_types_h
=no
5067 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5068 if test $bu_cv_decl_time_t_types_h = yes; then
5069 cat >> confdefs.h
<<\EOF
5070 #define HAVE_TIME_T_IN_TYPES_H 1
5075 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5077 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5078 echo "configure:5079: checking for utime.h" >&5
5079 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5082 cat > conftest.
$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5085 #include <sys/types.h>
5094 if { (eval echo configure
:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5096 bu_cv_header_utime_h
=yes
5098 echo "configure: failed program was:" >&5
5099 cat conftest.
$ac_ext >&5
5101 bu_cv_header_utime_h
=no
5106 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5107 if test $bu_cv_header_utime_h = yes; then
5108 cat >> confdefs.h
<<\EOF
5109 #define HAVE_GOOD_UTIME_H 1
5114 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5115 echo "configure:5116: checking whether fprintf must be declared" >&5
5116 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 cat > conftest.
$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5124 #ifdef HAVE_STRING_H
5127 #ifdef HAVE_STRINGS_H
5128 #include <strings.h>
5131 #ifdef HAVE_STDLIB_H
5134 #ifdef HAVE_UNISTD_H
5138 char *(*pfn) = (char *(*)) fprintf
5141 if { (eval echo configure
:5142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5143 bfd_cv_decl_needed_fprintf
=no
5145 echo "configure: failed program was:" >&5
5146 cat conftest.
$ac_ext >&5
5148 bfd_cv_decl_needed_fprintf
=yes
5153 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5154 if test $bfd_cv_decl_needed_fprintf = yes; then
5155 cat >> confdefs.h
<<\EOF
5156 #define NEED_DECLARATION_FPRINTF 1
5161 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5162 echo "configure:5163: checking whether strstr must be declared" >&5
5163 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5164 echo $ac_n "(cached) $ac_c" 1>&6
5166 cat > conftest.
$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5171 #ifdef HAVE_STRING_H
5174 #ifdef HAVE_STRINGS_H
5175 #include <strings.h>
5178 #ifdef HAVE_STDLIB_H
5181 #ifdef HAVE_UNISTD_H
5185 char *(*pfn) = (char *(*)) strstr
5188 if { (eval echo configure
:5189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5190 bfd_cv_decl_needed_strstr
=no
5192 echo "configure: failed program was:" >&5
5193 cat conftest.
$ac_ext >&5
5195 bfd_cv_decl_needed_strstr
=yes
5200 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5201 if test $bfd_cv_decl_needed_strstr = yes; then
5202 cat >> confdefs.h
<<\EOF
5203 #define NEED_DECLARATION_STRSTR 1
5208 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5209 echo "configure:5210: checking whether sbrk must be declared" >&5
5210 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 cat > conftest.
$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5218 #ifdef HAVE_STRING_H
5221 #ifdef HAVE_STRINGS_H
5222 #include <strings.h>
5225 #ifdef HAVE_STDLIB_H
5228 #ifdef HAVE_UNISTD_H
5232 char *(*pfn) = (char *(*)) sbrk
5235 if { (eval echo configure
:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5237 bfd_cv_decl_needed_sbrk
=no
5239 echo "configure: failed program was:" >&5
5240 cat conftest.
$ac_ext >&5
5242 bfd_cv_decl_needed_sbrk
=yes
5247 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5248 if test $bfd_cv_decl_needed_sbrk = yes; then
5249 cat >> confdefs.h
<<\EOF
5250 #define NEED_DECLARATION_SBRK 1
5255 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5256 echo "configure:5257: checking whether getenv must be declared" >&5
5257 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5260 cat > conftest.
$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5265 #ifdef HAVE_STRING_H
5268 #ifdef HAVE_STRINGS_H
5269 #include <strings.h>
5272 #ifdef HAVE_STDLIB_H
5275 #ifdef HAVE_UNISTD_H
5279 char *(*pfn) = (char *(*)) getenv
5282 if { (eval echo configure
:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5284 bfd_cv_decl_needed_getenv
=no
5286 echo "configure: failed program was:" >&5
5287 cat conftest.
$ac_ext >&5
5289 bfd_cv_decl_needed_getenv
=yes
5294 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5295 if test $bfd_cv_decl_needed_getenv = yes; then
5296 cat >> confdefs.h
<<\EOF
5297 #define NEED_DECLARATION_GETENV 1
5302 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5303 echo "configure:5304: checking whether environ must be declared" >&5
5304 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5307 cat > conftest.
$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5312 #ifdef HAVE_STRING_H
5315 #ifdef HAVE_STRINGS_H
5316 #include <strings.h>
5319 #ifdef HAVE_STDLIB_H
5322 #ifdef HAVE_UNISTD_H
5326 char *(*pfn) = (char *(*)) environ
5329 if { (eval echo configure
:5330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5331 bfd_cv_decl_needed_environ
=no
5333 echo "configure: failed program was:" >&5
5334 cat conftest.
$ac_ext >&5
5336 bfd_cv_decl_needed_environ
=yes
5341 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5342 if test $bfd_cv_decl_needed_environ = yes; then
5343 cat >> confdefs.h
<<\EOF
5344 #define NEED_DECLARATION_ENVIRON 1
5352 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
5353 cat >> confdefs.h
<<\EOF
5354 #define USE_BINARY_FOPEN 1
5359 # target-specific stuff:
5361 # Canonicalize the secondary target names.
5362 if test -n "$enable_targets"; then
5363 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5365 result
=`$ac_config_sub $targ 2>/dev/null`
5366 if test -n "$result"; then
5367 canon_targets
="$canon_targets $result"
5369 # Allow targets that config.sub doesn't recognize, like "all".
5370 canon_targets
="$canon_targets $targ"
5386 for targ
in $target $canon_targets
5388 if test "x$targ" = "xall"; then
5390 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5391 BUILD_SRCONV
='$(SRCONV_PROG)'
5392 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5395 i
[3456]86*-*-netware*)
5396 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5397 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
5400 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5401 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5403 powerpc
*-*-netware*)
5404 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5405 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5408 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5409 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
5413 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
5417 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5418 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5419 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5421 arm-
*pe
* | arm-
*-wince)
5422 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5423 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5424 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5427 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5428 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5429 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5431 arm
*-* | xscale-
* | strongarm-
* | d10v-
*)
5432 OBJDUMP_DEFS
="-DDISASSEMBLER_NEEDS_RELOCS"
5434 i
[3-6]86-*pe
* | i
[3-6]86-*-cygwin* | i
[3-6]86-*-mingw32*)
5435 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5436 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5437 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5438 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
5441 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
5442 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5444 powerpc
*-*-*pe
* | powerpc
*-*-cygwin*)
5445 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5446 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5447 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5450 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5451 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_SH"
5452 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5455 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5456 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5457 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5460 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5461 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5462 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5465 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5466 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5472 if test "${with_windres+set}" = set; then
5473 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5486 cat >> confdefs.h
<<EOF
5487 #define TARGET "${target}"
5492 .
$srcdir/..
/bfd
/config.bfd
5493 if test "x$targ_underscore" = "xyes"; then
5501 cat > confcache
<<\EOF
5502 # This file is a shell script that caches the results of configure
5503 # tests run on this system so they can be shared between configure
5504 # scripts and configure runs. It is not useful on other systems.
5505 # If it contains results you don't want to keep, you may remove or edit it.
5507 # By default, configure uses ./config.cache as the cache file,
5508 # creating it if it does not exist already. You can give configure
5509 # the --cache-file=FILE option to use a different cache file; that is
5510 # what configure does when it calls configure scripts in
5511 # subdirectories, so they share the cache.
5512 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5513 # config.status only pays attention to the cache file if you give it the
5514 # --recheck option to rerun configure.
5517 # The following way of writing the cache mishandles newlines in values,
5518 # but we know of no workaround that is simple, portable, and efficient.
5519 # So, don't put newlines in cache variables' values.
5520 # Ultrix sh set writes to stderr and can't be redirected directly,
5521 # and sets the high bit in the cache file unless we assign to the vars.
5523 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5525 # `set' does not quote correctly, so add quotes (double-quote substitution
5526 # turns \\\\ into \\, and sed turns \\ into \).
5528 -e "s/'/'\\\\''/g" \
5529 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5532 # `set' quotes correctly as required by POSIX, so do not add quotes.
5533 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5536 if cmp -s $cache_file confcache
; then
5539 if test -w $cache_file; then
5540 echo "updating cache $cache_file"
5541 cat confcache
> $cache_file
5543 echo "not updating unwritable cache $cache_file"
5548 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5550 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5551 # Let make expand exec_prefix.
5552 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5554 # Any assignment to VPATH causes Sun make to only execute
5555 # the first set of double-colon rules, so remove it if not needed.
5556 # If there is a colon in the path, we need to keep it.
5557 if test "x$srcdir" = x.
; then
5558 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5561 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5563 DEFS
=-DHAVE_CONFIG_H
5565 # Without the "./", some shells look in PATH for config.status.
5566 : ${CONFIG_STATUS=./config.status}
5568 echo creating
$CONFIG_STATUS
5569 rm -f $CONFIG_STATUS
5570 cat > $CONFIG_STATUS <<EOF
5572 # Generated automatically by configure.
5573 # Run this file to recreate the current configuration.
5574 # This directory was configured as follows,
5575 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5577 # $0 $ac_configure_args
5579 # Compiler output produced by configure, useful for debugging
5580 # configure, is in ./config.log if it exists.
5582 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5585 case "\$ac_option" in
5586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5587 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5588 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5589 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5590 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5592 -help | --help | --hel | --he | --h)
5593 echo "\$ac_cs_usage"; exit 0 ;;
5594 *) echo "\$ac_cs_usage"; exit 1 ;;
5598 ac_given_srcdir=$srcdir
5599 ac_given_INSTALL="$INSTALL"
5601 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
5603 cat >> $CONFIG_STATUS <<EOF
5605 # Protect against being on the right side of a sed subst in config.status.
5606 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5607 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5611 s%@CFLAGS@%$CFLAGS%g
5612 s%@CPPFLAGS@%$CPPFLAGS%g
5613 s%@CXXFLAGS@%$CXXFLAGS%g
5614 s%@FFLAGS@%$FFLAGS%g
5616 s%@LDFLAGS@%$LDFLAGS%g
5618 s%@exec_prefix@%$exec_prefix%g
5619 s%@prefix@%$prefix%g
5620 s%@program_transform_name@%$program_transform_name%g
5621 s%@bindir@%$bindir%g
5622 s%@sbindir@%$sbindir%g
5623 s%@libexecdir@%$libexecdir%g
5624 s%@datadir@%$datadir%g
5625 s%@sysconfdir@%$sysconfdir%g
5626 s%@sharedstatedir@%$sharedstatedir%g
5627 s%@localstatedir@%$localstatedir%g
5628 s%@libdir@%$libdir%g
5629 s%@includedir@%$includedir%g
5630 s%@oldincludedir@%$oldincludedir%g
5631 s%@infodir@%$infodir%g
5632 s%@mandir@%$mandir%g
5634 s%@host_alias@%$host_alias%g
5635 s%@host_cpu@%$host_cpu%g
5636 s%@host_vendor@%$host_vendor%g
5637 s%@host_os@%$host_os%g
5638 s%@target@%$target%g
5639 s%@target_alias@%$target_alias%g
5640 s%@target_cpu@%$target_cpu%g
5641 s%@target_vendor@%$target_vendor%g
5642 s%@target_os@%$target_os%g
5644 s%@build_alias@%$build_alias%g
5645 s%@build_cpu@%$build_cpu%g
5646 s%@build_vendor@%$build_vendor%g
5647 s%@build_os@%$build_os%g
5648 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5649 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5650 s%@INSTALL_DATA@%$INSTALL_DATA%g
5651 s%@PACKAGE@%$PACKAGE%g
5652 s%@VERSION@%$VERSION%g
5653 s%@ACLOCAL@%$ACLOCAL%g
5654 s%@AUTOCONF@%$AUTOCONF%g
5655 s%@AUTOMAKE@%$AUTOMAKE%g
5656 s%@AUTOHEADER@%$AUTOHEADER%g
5657 s%@MAKEINFO@%$MAKEINFO%g
5658 s%@SET_MAKE@%$SET_MAKE%g
5661 s%@OBJEXT@%$OBJEXT%g
5662 s%@EXEEXT@%$EXEEXT%g
5663 s%@RANLIB@%$RANLIB%g
5665 s%@LIBTOOL@%$LIBTOOL%g
5666 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5669 s%@LEXLIB@%$LEXLIB%g
5671 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5672 s%@ALLOCA@%$ALLOCA%g
5673 s%@USE_NLS@%$USE_NLS%g
5674 s%@MSGFMT@%$MSGFMT%g
5675 s%@GMSGFMT@%$GMSGFMT%g
5676 s%@XGETTEXT@%$XGETTEXT%g
5677 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5678 s%@CATALOGS@%$CATALOGS%g
5679 s%@CATOBJEXT@%$CATOBJEXT%g
5680 s%@DATADIRNAME@%$DATADIRNAME%g
5681 s%@GMOFILES@%$GMOFILES%g
5682 s%@INSTOBJEXT@%$INSTOBJEXT%g
5683 s%@INTLDEPS@%$INTLDEPS%g
5684 s%@INTLLIBS@%$INTLLIBS%g
5685 s%@INTLOBJS@%$INTLOBJS%g
5686 s%@POFILES@%$POFILES%g
5688 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5690 s%@GT_YES@%$GT_YES%g
5691 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5693 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5694 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5696 s%@HDEFINES@%$HDEFINES%g
5698 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5699 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5700 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5701 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5702 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5703 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5704 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5705 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5706 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5707 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5708 s%@BUILD_MISC@%$BUILD_MISC%g
5709 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5710 s%@UNDERSCORE@%$UNDERSCORE%g
5715 cat >> $CONFIG_STATUS <<\EOF
5717 # Split the substitutions into bite-sized pieces for seds with
5718 # small command number limits, like on Digital OSF/1 and HP-UX.
5719 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5720 ac_file
=1 # Number of current file.
5721 ac_beg
=1 # First line for current file.
5722 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5725 while $ac_more_lines; do
5726 if test $ac_beg -gt 1; then
5727 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5729 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5731 if test ! -s conftest.s
$ac_file; then
5733 rm -f conftest.s
$ac_file
5735 if test -z "$ac_sed_cmds"; then
5736 ac_sed_cmds
="sed -f conftest.s$ac_file"
5738 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5740 ac_file
=`expr $ac_file + 1`
5742 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5745 if test -z "$ac_sed_cmds"; then
5750 cat >> $CONFIG_STATUS <<EOF
5752 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile po/Makefile.in:po/Make-in"}
5754 cat >> $CONFIG_STATUS <<\EOF
5755 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5758 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5759 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5760 *) ac_file_in
="${ac_file}.in" ;;
5763 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5765 # Remove last slash and all that follows it. Not all systems have dirname.
5766 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5767 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5768 # The file is in a subdirectory.
5769 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5770 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5771 # A "../" for each directory in $ac_dir_suffix.
5772 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5774 ac_dir_suffix
= ac_dots
=
5777 case "$ac_given_srcdir" in
5779 if test -z "$ac_dots"; then top_srcdir
=.
5780 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5781 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5783 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5784 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5787 case "$ac_given_INSTALL" in
5788 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5789 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5792 echo creating
"$ac_file"
5794 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5796 *Makefile
*) ac_comsub
="1i\\
5797 # $configure_input" ;;
5801 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5803 s%@configure_input@%$configure_input%g
5804 s%@srcdir@%$srcdir%g
5805 s%@top_srcdir@%$top_srcdir%g
5806 s%@INSTALL@%$INSTALL%g
5807 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5811 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5812 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5814 # ac_d sets the value in "#define NAME VALUE" lines.
5815 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5816 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5819 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5820 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5821 ac_uB
='\([ ]\)%\1#\2define\3'
5824 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5825 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5826 ac_eB
='$%\1#\2define\3'
5830 if test "${CONFIG_HEADERS+set}" != set; then
5832 cat >> $CONFIG_STATUS <<EOF
5833 CONFIG_HEADERS="config.h:config.in"
5835 cat >> $CONFIG_STATUS <<\EOF
5837 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5840 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5841 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5842 *) ac_file_in
="${ac_file}.in" ;;
5845 echo creating
$ac_file
5847 rm -f conftest.frag conftest.
in conftest.out
5848 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5849 cat $ac_file_inputs > conftest.
in
5853 # Transform confdefs.h into a sed script conftest.vals that substitutes
5854 # the proper values into config.h.in to produce config.h. And first:
5855 # Protect against being on the right side of a sed subst in config.status.
5856 # Protect against being in an unquoted here document in config.status.
5858 cat > conftest.hdr
<<\EOF
5861 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5865 sed -n -f conftest.hdr confdefs.h > conftest.vals
5868 # This sed command replaces #undef with comments. This is necessary, for
5869 # example, in the case of _POSIX_SOURCE, which is predefined and required
5870 # on some systems where configure will not decide to define it.
5871 cat >> conftest.vals <<\EOF
5872 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5875 # Break up conftest.vals because some shells have a limit on
5876 # the size of here documents, and old seds have small limits too.
5881 ac_lines=`grep -c . conftest.vals
`
5882 # grep -c gives empty output for an empty file on some AIX systems.
5883 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5884 # Write a limited-size here document to conftest.frag.
5885 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5886 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5888 sed -f conftest.frag conftest.in > conftest.out
5890 mv conftest.out conftest.in
5892 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5894 mv conftest.tail conftest.vals
5898 cat >> $CONFIG_STATUS <<\EOF
5899 rm -f conftest.frag conftest.h
5900 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5901 cat conftest.in >> conftest.h
5903 if cmp -s $ac_file conftest.h 2>/dev/null; then
5904 echo "$ac_file is unchanged"
5907 # Remove last slash and all that follows it. Not all systems have dirname.
5908 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5909 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5910 # The file is in a subdirectory.
5911 test ! -d "$ac_dir" && mkdir "$ac_dir"
5914 mv conftest.h $ac_file
5919 cat >> $CONFIG_STATUS <<EOF
5923 cat >> $CONFIG_STATUS <<\EOF
5924 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5926 case "x$CONFIG_FILES" in
5927 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
5932 chmod +x $CONFIG_STATUS
5933 rm -fr confdefs* $ac_clean_files
5934 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1