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-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
33 --disable-nls do not use Native Language Support"
35 --with-included-gettext use the GNU gettext library included here"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 SHELL
=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
104 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
105 bindir
="$ac_optarg" ;;
107 -build |
--build |
--buil |
--bui |
--bu)
109 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
110 build
="$ac_optarg" ;;
112 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
113 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
114 ac_prev
=cache_file
;;
115 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
116 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
117 cache_file
="$ac_optarg" ;;
119 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
121 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
123 datadir
="$ac_optarg" ;;
125 -disable-* |
--disable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* |
--enable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
148 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
149 |
--exec |
--exe |
--ex)
150 ac_prev
=exec_prefix
;;
151 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
152 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
153 |
--exec=* |
--exe=* |
--ex=*)
154 exec_prefix
="$ac_optarg" ;;
156 -gas |
--gas |
--ga |
--g)
157 # Obsolete; use --with-gas.
160 -help |
--help |
--hel |
--he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --site-file=FILE use FILE as the site file
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host |
--host |
--hos |
--ho)
218 -host=* |
--host=* |
--hos=* |
--ho=*)
221 -includedir |
--includedir |
--includedi |
--included |
--include \
222 |
--includ |
--inclu |
--incl |
--inc)
223 ac_prev
=includedir
;;
224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
226 includedir
="$ac_optarg" ;;
228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
231 infodir
="$ac_optarg" ;;
233 -libdir |
--libdir |
--libdi |
--libd)
235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
236 libdir
="$ac_optarg" ;;
238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
239 |
--libexe |
--libex |
--libe)
240 ac_prev
=libexecdir
;;
241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
242 |
--libexe=* |
--libex=* |
--libe=*)
243 libexecdir
="$ac_optarg" ;;
245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
246 |
--localstate |
--localstat |
--localsta |
--localst \
247 |
--locals |
--local |
--loca |
--loc |
--lo)
248 ac_prev
=localstatedir
;;
249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
251 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
252 localstatedir
="$ac_optarg" ;;
254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
257 mandir
="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
273 |
--oldin |
--oldi |
--old |
--ol |
--o)
274 ac_prev
=oldincludedir
;;
275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
278 oldincludedir
="$ac_optarg" ;;
280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
283 prefix
="$ac_optarg" ;;
285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
286 |
--program-pre |
--program-pr |
--program-p)
287 ac_prev
=program_prefix
;;
288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
290 program_prefix
="$ac_optarg" ;;
292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
293 |
--program-suf |
--program-su |
--program-s)
294 ac_prev
=program_suffix
;;
295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
297 program_suffix
="$ac_optarg" ;;
299 -program-transform-name |
--program-transform-name \
300 |
--program-transform-nam |
--program-transform-na \
301 |
--program-transform-n |
--program-transform- \
302 |
--program-transform |
--program-transfor \
303 |
--program-transfo |
--program-transf \
304 |
--program-trans |
--program-tran \
305 |
--progr-tra |
--program-tr |
--program-t)
306 ac_prev
=program_transform_name
;;
307 -program-transform-name=* |
--program-transform-name=* \
308 |
--program-transform-nam=* |
--program-transform-na=* \
309 |
--program-transform-n=* |
--program-transform-=* \
310 |
--program-transform=* |
--program-transfor=* \
311 |
--program-transfo=* |
--program-transf=* \
312 |
--program-trans=* |
--program-tran=* \
313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
314 program_transform_name
="$ac_optarg" ;;
316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
317 |
-silent |
--silent |
--silen |
--sile |
--sil)
320 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
322 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
324 sbindir
="$ac_optarg" ;;
326 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
327 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
328 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
330 ac_prev
=sharedstatedir
;;
331 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
332 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
333 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
335 sharedstatedir
="$ac_optarg" ;;
337 -site |
--site |
--sit)
339 -site=* |
--site=* |
--sit=*)
342 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
344 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
345 sitefile
="$ac_optarg" ;;
347 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
349 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
350 srcdir
="$ac_optarg" ;;
352 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
353 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
354 ac_prev
=sysconfdir
;;
355 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
356 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
357 sysconfdir
="$ac_optarg" ;;
359 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
361 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
362 target
="$ac_optarg" ;;
364 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
367 -version |
--version |
--versio |
--versi |
--vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* |
--without-*)
385 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
398 |
--x-incl |
--x-inc |
--x-in |
--x-i)
399 ac_prev
=x_includes
;;
400 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
401 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
402 x_includes
="$ac_optarg" ;;
404 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
405 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
406 ac_prev
=x_libraries
;;
407 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
408 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
409 x_libraries
="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE
; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
460 |
--no-cr |
--no-c) ;;
461 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
462 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
463 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest
* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file
=ldmain.c
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted
=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted
=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$sitefile"; then
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE
; then
515 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
517 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 CONFIG_SITE
="$sitefile"
523 for ac_site_file
in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp
='$CPP $CPPFLAGS'
541 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling
=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
556 ac_n
= ac_c
='\c' ac_t
=
559 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
560 echo "configure:561: checking for Cygwin environment" >&5
561 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
564 cat > conftest.
$ac_ext <<EOF
565 #line 566 "configure"
566 #include "confdefs.h"
571 #define __CYGWIN__ __CYGWIN32__
576 if { (eval echo configure
:577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
580 echo "configure: failed program was:" >&5
581 cat conftest.
$ac_ext >&5
589 echo "$ac_t""$ac_cv_cygwin" 1>&6
591 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
592 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
593 echo "configure:594: checking for mingw32 environment" >&5
594 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
597 cat > conftest.
$ac_ext <<EOF
598 #line 599 "configure"
599 #include "confdefs.h"
605 if { (eval echo configure
:606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
609 echo "configure: failed program was:" >&5
610 cat conftest.
$ac_ext >&5
618 echo "$ac_t""$ac_cv_mingw32" 1>&6
620 test "$ac_cv_mingw32" = yes && MINGW32
=yes
624 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
625 if test -f $ac_dir/install-sh
; then
627 ac_install_sh
="$ac_aux_dir/install-sh -c"
629 elif test -f $ac_dir/install.sh
; then
631 ac_install_sh
="$ac_aux_dir/install.sh -c"
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
638 ac_config_guess
=$ac_aux_dir/config.guess
639 ac_config_sub
=$ac_aux_dir/config.sub
640 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
643 # Do some error checking and defaulting for the host and target type.
645 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
648 # 1. You are not allowed to specify --host, --target, and nonopt at the
650 # 2. Host defaults to nonopt.
651 # 3. If nonopt is not specified, then host defaults to the current host,
652 # as determined by config.guess.
653 # 4. Target and build default to nonopt.
654 # 5. If nonopt is not specified, then target and build default to host.
656 # The aliases save the names the user supplied, while $host etc.
657 # will get canonicalized.
658 case $host---$target---$nonopt in
659 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
660 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
664 # Make sure we can run config.sub.
665 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
666 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
669 echo $ac_n "checking host system type""... $ac_c" 1>&6
670 echo "configure:671: checking host system type" >&5
673 case "$host_alias" in
677 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
678 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
680 *) host_alias
=$nonopt ;;
684 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
685 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo "$ac_t""$host" 1>&6
690 echo $ac_n "checking target system type""... $ac_c" 1>&6
691 echo "configure:692: checking target system type" >&5
694 case "$target_alias" in
697 NONE
) target_alias
=$host_alias ;;
698 *) target_alias
=$nonopt ;;
702 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
703 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo "$ac_t""$target" 1>&6
708 echo $ac_n "checking build system type""... $ac_c" 1>&6
709 echo "configure:710: checking build system type" >&5
712 case "$build_alias" in
715 NONE
) build_alias
=$host_alias ;;
716 *) build_alias
=$nonopt ;;
720 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
721 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$build" 1>&6
726 test "$host_alias" != "$target_alias" &&
727 test "$program_prefix$program_suffix$program_transform_name" = \
729 program_prefix
=${target_alias}-
732 # Find a good install program. We prefer a C program (faster),
733 # so one script is as good as another. But avoid the broken or
734 # incompatible versions:
735 # SysV /etc/install, /usr/sbin/install
736 # SunOS /usr/etc/install
739 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
740 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
741 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
742 # ./install, which can be erroneously created by make from ./install.sh.
743 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
744 echo "configure:745: checking for a BSD compatible install" >&5
745 if test -z "$INSTALL"; then
746 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
750 for ac_dir
in $PATH; do
751 # Account for people who put trailing slashes in PATH elements.
753 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
755 # OSF1 and SCO ODT 3.0 have their own names for install.
756 # Don't use installbsd from OSF since it installs stuff as root
758 for ac_prog
in ginstall scoinst
install; do
759 if test -f $ac_dir/$ac_prog; then
760 if test $ac_prog = install &&
761 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
762 # AIX install. It has an incompatible calling convention.
765 ac_cv_path_install
="$ac_dir/$ac_prog -c"
776 if test "${ac_cv_path_install+set}" = set; then
777 INSTALL
="$ac_cv_path_install"
779 # As a last resort, use the slow shell script. We don't cache a
780 # path for INSTALL within a source directory, because that will
781 # break other packages using the cache if that directory is
782 # removed, or if the path is relative.
783 INSTALL
="$ac_install_sh"
786 echo "$ac_t""$INSTALL" 1>&6
788 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
789 # It thinks the first close brace ends the variable substitution.
790 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
792 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
794 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
796 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
797 echo "configure:798: checking whether build environment is sane" >&5
800 echo timestamp
> conftestfile
801 # Do `set' in a subshell so we don't clobber the current shell's
802 # arguments. Must try -L first in case configure is actually a
803 # symlink; some systems play weird games with the mod time of symlinks
804 # (eg FreeBSD returns the mod time of the symlink's containing
807 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
808 if test "$*" = "X"; then
810 set X
`ls -t $srcdir/configure conftestfile`
812 if test "$*" != "X $srcdir/configure conftestfile" \
813 && test "$*" != "X conftestfile $srcdir/configure"; then
815 # If neither matched, then we have a broken ls. This can happen
816 # if, for instance, CONFIG_SHELL is bash and it inherits a
817 # broken ls alias from the environment. This has actually
818 # happened. Such a system could not be considered "sane".
819 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
820 alias in your environment" 1>&2; exit 1; }
823 test "$2" = conftestfile
829 { echo "configure: error: newly created file is older than distributed files!
830 Check your system clock" 1>&2; exit 1; }
833 echo "$ac_t""yes" 1>&6
834 if test "$program_transform_name" = s
,x
,x
,; then
835 program_transform_name
=
837 # Double any \ or $. echo might interpret backslashes.
838 cat <<\EOF_SED
> conftestsed
839 s
,\\,\\\\,g
; s
,\$
,$$
,g
841 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
844 test "$program_prefix" != NONE
&&
845 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
846 # Use a double $ so make ignores it.
847 test "$program_suffix" != NONE
&&
848 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
850 # sed with no file args requires a program.
851 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
853 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
854 echo "configure:855: checking whether ${MAKE-make} sets \${MAKE}" >&5
855 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
856 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 cat > conftestmake
<<\EOF
861 @
echo 'ac_maketemp="${MAKE}"'
863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
864 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
865 if test -n "$ac_maketemp"; then
866 eval ac_cv_prog_make_
${ac_make}_set
=yes
868 eval ac_cv_prog_make_
${ac_make}_set
=no
872 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
873 echo "$ac_t""yes" 1>&6
876 echo "$ac_t""no" 1>&6
877 SET_MAKE
="MAKE=${MAKE-make}"
885 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
886 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
888 cat >> confdefs.h
<<EOF
889 #define PACKAGE "$PACKAGE"
892 cat >> confdefs.h
<<EOF
893 #define VERSION "$VERSION"
898 missing_dir
=`cd $ac_aux_dir && pwd`
899 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
900 echo "configure:901: checking for working aclocal" >&5
901 # Run test in a subshell; some versions of sh will print an error if
902 # an executable is not found, even if stderr is redirected.
903 # Redirect stdin to placate older versions of autoconf. Sigh.
904 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
906 echo "$ac_t""found" 1>&6
908 ACLOCAL
="$missing_dir/missing aclocal"
909 echo "$ac_t""missing" 1>&6
912 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
913 echo "configure:914: checking for working autoconf" >&5
914 # Run test in a subshell; some versions of sh will print an error if
915 # an executable is not found, even if stderr is redirected.
916 # Redirect stdin to placate older versions of autoconf. Sigh.
917 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
919 echo "$ac_t""found" 1>&6
921 AUTOCONF
="$missing_dir/missing autoconf"
922 echo "$ac_t""missing" 1>&6
925 echo $ac_n "checking for working automake""... $ac_c" 1>&6
926 echo "configure:927: checking for working automake" >&5
927 # Run test in a subshell; some versions of sh will print an error if
928 # an executable is not found, even if stderr is redirected.
929 # Redirect stdin to placate older versions of autoconf. Sigh.
930 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
932 echo "$ac_t""found" 1>&6
934 AUTOMAKE
="$missing_dir/missing automake"
935 echo "$ac_t""missing" 1>&6
938 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
939 echo "configure:940: checking for working autoheader" >&5
940 # Run test in a subshell; some versions of sh will print an error if
941 # an executable is not found, even if stderr is redirected.
942 # Redirect stdin to placate older versions of autoconf. Sigh.
943 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
944 AUTOHEADER
=autoheader
945 echo "$ac_t""found" 1>&6
947 AUTOHEADER
="$missing_dir/missing autoheader"
948 echo "$ac_t""missing" 1>&6
951 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
952 echo "configure:953: checking for working makeinfo" >&5
953 # Run test in a subshell; some versions of sh will print an error if
954 # an executable is not found, even if stderr is redirected.
955 # Redirect stdin to placate older versions of autoconf. Sigh.
956 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
958 echo "$ac_t""found" 1>&6
960 MAKEINFO
="$missing_dir/missing makeinfo"
961 echo "$ac_t""missing" 1>&6
966 # Check whether --enable-shared or --disable-shared was given.
967 if test "${enable_shared+set}" = set; then
968 enableval
="$enable_shared"
971 yes) enable_shared
=yes ;;
972 no
) enable_shared
=no
;;
975 # Look at the argument we got. We use all the common list separators.
976 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
977 for pkg
in $enableval; do
978 if test "X$pkg" = "X$p"; then
989 # Check whether --enable-static or --disable-static was given.
990 if test "${enable_static+set}" = set; then
991 enableval
="$enable_static"
994 yes) enable_static
=yes ;;
995 no
) enable_static
=no
;;
998 # Look at the argument we got. We use all the common list separators.
999 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1000 for pkg
in $enableval; do
1001 if test "X$pkg" = "X$p"; then
1012 # Check whether --enable-fast-install or --disable-fast-install was given.
1013 if test "${enable_fast_install+set}" = set; then
1014 enableval
="$enable_fast_install"
1015 p
=${PACKAGE-default}
1016 case "$enableval" in
1017 yes) enable_fast_install
=yes ;;
1018 no
) enable_fast_install
=no
;;
1020 enable_fast_install
=no
1021 # Look at the argument we got. We use all the common list separators.
1022 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1023 for pkg
in $enableval; do
1024 if test "X$pkg" = "X$p"; then
1025 enable_fast_install
=yes
1032 enable_fast_install
=yes
1035 # Extract the first word of "gcc", so it can be a program name with args.
1036 set dummy gcc
; ac_word
=$2
1037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038 echo "configure:1039: checking for $ac_word" >&5
1039 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 if test -n "$CC"; then
1043 ac_cv_prog_CC
="$CC" # Let the user override the test.
1045 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1047 for ac_dir
in $ac_dummy; do
1048 test -z "$ac_dir" && ac_dir
=.
1049 if test -f $ac_dir/$ac_word; then
1058 if test -n "$CC"; then
1059 echo "$ac_t""$CC" 1>&6
1061 echo "$ac_t""no" 1>&6
1064 if test -z "$CC"; then
1065 # Extract the first word of "cc", so it can be a program name with args.
1066 set dummy cc
; ac_word
=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 if test -n "$CC"; then
1073 ac_cv_prog_CC
="$CC" # Let the user override the test.
1075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1078 for ac_dir
in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir
=.
1080 if test -f $ac_dir/$ac_word; then
1081 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1082 ac_prog_rejected
=yes
1090 if test $ac_prog_rejected = yes; then
1091 # We found a bogon in the path, so make sure we never use it.
1092 set dummy
$ac_cv_prog_CC
1094 if test $# -gt 0; then
1095 # We chose a different compiler from the bogus one.
1096 # However, it has the same basename, so the bogon will be chosen
1097 # first if we set CC to just the basename; use the full file name.
1099 set dummy
"$ac_dir/$ac_word" "$@"
1107 if test -n "$CC"; then
1108 echo "$ac_t""$CC" 1>&6
1110 echo "$ac_t""no" 1>&6
1113 if test -z "$CC"; then
1114 case "`uname -s`" in
1116 # Extract the first word of "cl", so it can be a program name with args.
1117 set dummy cl
; ac_word
=$2
1118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1119 echo "configure:1120: checking for $ac_word" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 if test -n "$CC"; then
1124 ac_cv_prog_CC
="$CC" # Let the user override the test.
1126 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1128 for ac_dir
in $ac_dummy; do
1129 test -z "$ac_dir" && ac_dir
=.
1130 if test -f $ac_dir/$ac_word; then
1139 if test -n "$CC"; then
1140 echo "$ac_t""$CC" 1>&6
1142 echo "$ac_t""no" 1>&6
1147 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1150 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1155 ac_cpp
='$CPP $CPPFLAGS'
1156 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1157 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1158 cross_compiling
=$ac_cv_prog_cc_cross
1160 cat > conftest.
$ac_ext << EOF
1162 #line 1163 "configure"
1163 #include "confdefs.h"
1167 if { (eval echo configure
:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1168 ac_cv_prog_cc_works
=yes
1169 # If we can't run a trivial program, we are probably using a cross compiler.
1170 if (.
/conftest
; exit) 2>/dev
/null
; then
1171 ac_cv_prog_cc_cross
=no
1173 ac_cv_prog_cc_cross
=yes
1176 echo "configure: failed program was:" >&5
1177 cat conftest.
$ac_ext >&5
1178 ac_cv_prog_cc_works
=no
1182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1183 ac_cpp
='$CPP $CPPFLAGS'
1184 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1185 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1186 cross_compiling
=$ac_cv_prog_cc_cross
1188 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1189 if test $ac_cv_prog_cc_works = no
; then
1190 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1192 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1194 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1195 cross_compiling
=$ac_cv_prog_cc_cross
1197 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1198 echo "configure:1199: checking whether we are using GNU C" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 cat > conftest.c
<<EOF
1207 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1214 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1216 if test $ac_cv_prog_gcc = yes; then
1222 ac_test_CFLAGS
="${CFLAGS+set}"
1223 ac_save_CFLAGS
="$CFLAGS"
1225 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1226 echo "configure:1227: checking whether ${CC-cc} accepts -g" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 echo 'void f(){}' > conftest.c
1231 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1240 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1241 if test "$ac_test_CFLAGS" = set; then
1242 CFLAGS
="$ac_save_CFLAGS"
1243 elif test $ac_cv_prog_cc_g = yes; then
1244 if test "$GCC" = yes; then
1250 if test "$GCC" = yes; then
1257 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1258 if test "${with_gnu_ld+set}" = set; then
1259 withval
="$with_gnu_ld"
1260 test "$withval" = no || with_gnu_ld
=yes
1266 if test "$ac_cv_prog_gcc" = yes; then
1267 # Check if gcc -print-prog-name=ld gives a path.
1268 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1269 echo "configure:1270: checking for ld used by GCC" >&5
1272 # gcc leaves a trailing carriage return which upsets mingw
1273 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1275 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1278 # Accept absolute paths.
1279 [\\/]* |
[A-Za-z
]:[\\/]*)
1280 re_direlt
='/[^/][^/]*/\.\./'
1281 # Canonicalize the path of ld
1282 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1283 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1284 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1286 test -z "$LD" && LD
="$ac_prog"
1289 # If it fails, then pretend we aren't using GCC.
1293 # If it is relative, then search for the first ld in PATH.
1297 elif test "$with_gnu_ld" = yes; then
1298 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1299 echo "configure:1300: checking for GNU ld" >&5
1301 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1302 echo "configure:1303: checking for non-GNU ld" >&5
1304 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 if test -z "$LD"; then
1308 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1309 for ac_dir
in $PATH; do
1310 test -z "$ac_dir" && ac_dir
=.
1311 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1312 ac_cv_path_LD
="$ac_dir/$ac_prog"
1313 # Check to see if the program is GNU ld. I'd rather use --version,
1314 # but apparently some GNU ld's only accept -v.
1315 # Break only if it was the GNU/non-GNU ld that we prefer.
1316 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1317 test "$with_gnu_ld" != no
&& break
1319 test "$with_gnu_ld" != yes && break
1325 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1330 if test -n "$LD"; then
1331 echo "$ac_t""$LD" 1>&6
1333 echo "$ac_t""no" 1>&6
1335 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1336 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1337 echo "configure:1338: checking if the linker ($LD) is GNU ld" >&5
1338 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1342 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1343 ac_cv_prog_gnu_ld
=yes
1345 ac_cv_prog_gnu_ld
=no
1349 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1350 with_gnu_ld
=$ac_cv_prog_gnu_ld
1353 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1354 echo "configure:1355: checking for $LD option to reload object files" >&5
1355 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 lt_cv_ld_reload_flag
='-r'
1361 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1362 reload_flag
=$lt_cv_ld_reload_flag
1363 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1365 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1366 echo "configure:1367: checking for BSD-compatible nm" >&5
1367 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 if test -n "$NM"; then
1371 # Let the user override the test.
1374 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1375 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1376 test -z "$ac_dir" && ac_dir
=.
1377 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1378 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1379 # Check to see if the nm accepts a BSD-compat flag.
1380 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1381 # nm: unknown option "B" ignored
1382 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1383 ac_cv_path_NM
="$tmp_nm -B"
1385 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1386 ac_cv_path_NM
="$tmp_nm -p"
1389 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1390 continue # so that we can try to find one that supports BSD flags
1395 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1400 echo "$ac_t""$NM" 1>&6
1402 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1403 echo "configure:1404: checking whether ln -s works" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1408 if ln -s X conftestdata
2>/dev
/null
1411 ac_cv_prog_LN_S
="ln -s"
1416 LN_S
="$ac_cv_prog_LN_S"
1417 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1418 echo "$ac_t""yes" 1>&6
1420 echo "$ac_t""no" 1>&6
1423 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1424 echo "configure:1425: checking how to recognise dependant libraries" >&5
1425 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 lt_cv_file_magic_cmd
='${MAGIC}'
1429 lt_cv_file_magic_test_file
=
1430 lt_cv_deplibs_check_method
='unknown'
1431 # Need to set the preceding variable on all platforms that support
1432 # interlibrary dependencies.
1433 # 'none' -- dependencies not supported.
1434 # `unknown' -- same as none, but documents that we really don't know.
1435 # 'pass_all' -- all dependencies passed with no checks.
1436 # 'test_compile' -- check by making test program.
1437 # 'file_magic [regex]' -- check by looking for files in library path
1438 # which responds to the $file_magic_cmd with a given egrep regex.
1439 # If you have `file' or equivalent on your system and you're not sure
1440 # whether `pass_all' will *always* work, you probably want this one.
1444 lt_cv_deplibs_check_method
=pass_all
1448 lt_cv_deplibs_check_method
=pass_all
1452 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1453 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1454 lt_cv_file_magic_test_file
=/shlib
/libc.so
1458 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1459 lt_cv_file_magic_cmd
='${OBJDUMP} -f'
1463 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1466 lt_cv_deplibs_check_method
=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
1467 lt_cv_file_magic_cmd
=/usr
/bin
/file
1468 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1472 lt_cv_deplibs_check_method
=pass_all
1477 lt_cv_deplibs_check_method
=pass_all
1481 # TODO: Does this work for hpux-11 too?
1482 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1483 lt_cv_file_magic_cmd
=/usr
/bin
/file
1484 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1490 # this will be overridden with pass_all, but let us keep it just in case
1491 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1495 *-32|
*"-32 ") libmagic
=32-bit;;
1496 *-n32|
*"-n32 ") libmagic
=N32
;;
1497 *-64|
*"-64 ") libmagic
=64-bit;;
1498 *) libmagic
=never-match
;;
1500 # this will be overridden with pass_all, but let us keep it just in case
1501 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1504 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1505 lt_cv_deplibs_check_method
=pass_all
1508 # This must be Linux ELF.
1511 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1512 lt_cv_deplibs_check_method
=pass_all
;;
1514 # glibc up to 2.1.1 does not perform some relocations on ARM
1515 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1517 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1521 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1523 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1524 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1525 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1529 osf3
* | osf4
* | osf5
*)
1530 # this will be overridden with pass_all, but let us keep it just in case
1531 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1532 lt_cv_file_magic_test_file
=/shlib
/libc.so
1533 lt_cv_deplibs_check_method
=pass_all
1537 lt_cv_deplibs_check_method
=pass_all
1541 lt_cv_deplibs_check_method
=pass_all
1542 lt_cv_file_magic_test_file
=/lib
/libc.so
1545 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1546 case "$host_vendor" in
1548 lt_cv_deplibs_check_method
=pass_all
1551 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]'
1552 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1560 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1561 file_magic_cmd
=$lt_cv_file_magic_cmd
1562 deplibs_check_method
=$lt_cv_deplibs_check_method
1564 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1565 echo "configure:1566: checking for object suffix" >&5
1566 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1570 echo 'int i = 1;' > conftest.
$ac_ext
1571 if { (eval echo configure
:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1572 for ac_file
in conftest.
*; do
1575 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1579 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1584 echo "$ac_t""$ac_cv_objext" 1>&6
1585 OBJEXT
=$ac_cv_objext
1586 ac_objext
=$ac_cv_objext
1590 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1591 echo "configure:1592: checking for executable suffix" >&5
1592 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1599 echo 'int main () { return 0; }' > conftest.
$ac_ext
1601 if { (eval echo configure
:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1602 for file in conftest.
*; do
1604 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1605 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1609 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1612 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1617 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1618 echo "$ac_t""${ac_cv_exeext}" 1>&6
1621 if test $host != $build; then
1622 ac_tool_prefix
=${host_alias}-
1627 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1629 # Only perform the check for file, if the check method requires it
1630 case "$deplibs_check_method" in
1632 if test "$file_magic_cmd" = '${MAGIC}'; then
1633 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1634 echo "configure:1635: checking for ${ac_tool_prefix}file" >&5
1635 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1640 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1643 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1646 ac_save_MAGIC
="$MAGIC"
1647 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1648 ac_dummy
="/usr/bin:$PATH"
1649 for ac_dir
in $ac_dummy; do
1650 test -z "$ac_dir" && ac_dir
=.
1651 if test -f $ac_dir/${ac_tool_prefix}file; then
1652 lt_cv_path_MAGIC
="$ac_dir/${ac_tool_prefix}file"
1653 if test -n "$file_magic_test_file"; then
1654 case "$deplibs_check_method" in
1656 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1657 MAGIC
="$lt_cv_path_MAGIC"
1658 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1659 egrep "$file_magic_regex" > /dev
/null
; then
1664 *** Warning: the command libtool uses to detect shared libraries,
1665 *** $file_magic_cmd, produces output that libtool cannot recognize.
1666 *** The result is that libtool may fail to recognize shared libraries
1667 *** as such. This will affect the creation of libtool libraries that
1668 *** depend on shared libraries, but programs linked with such libtool
1669 *** libraries will work regardless of this problem. Nevertheless, you
1670 *** may want to report the problem to your system manager and/or to
1671 *** bug-libtool@gnu.org
1681 MAGIC
="$ac_save_MAGIC"
1686 MAGIC
="$lt_cv_path_MAGIC"
1687 if test -n "$MAGIC"; then
1688 echo "$ac_t""$MAGIC" 1>&6
1690 echo "$ac_t""no" 1>&6
1693 if test -z "$lt_cv_path_MAGIC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 echo $ac_n "checking for file""... $ac_c" 1>&6
1696 echo "configure:1697: checking for file" >&5
1697 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1702 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1705 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1708 ac_save_MAGIC
="$MAGIC"
1709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1710 ac_dummy
="/usr/bin:$PATH"
1711 for ac_dir
in $ac_dummy; do
1712 test -z "$ac_dir" && ac_dir
=.
1713 if test -f $ac_dir/file; then
1714 lt_cv_path_MAGIC
="$ac_dir/file"
1715 if test -n "$file_magic_test_file"; then
1716 case "$deplibs_check_method" in
1718 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1719 MAGIC
="$lt_cv_path_MAGIC"
1720 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1721 egrep "$file_magic_regex" > /dev
/null
; then
1726 *** Warning: the command libtool uses to detect shared libraries,
1727 *** $file_magic_cmd, produces output that libtool cannot recognize.
1728 *** The result is that libtool may fail to recognize shared libraries
1729 *** as such. This will affect the creation of libtool libraries that
1730 *** depend on shared libraries, but programs linked with such libtool
1731 *** libraries will work regardless of this problem. Nevertheless, you
1732 *** may want to report the problem to your system manager and/or to
1733 *** bug-libtool@gnu.org
1743 MAGIC
="$ac_save_MAGIC"
1748 MAGIC
="$lt_cv_path_MAGIC"
1749 if test -n "$MAGIC"; then
1750 echo "$ac_t""$MAGIC" 1>&6
1752 echo "$ac_t""no" 1>&6
1764 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1765 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1767 echo "configure:1768: checking for $ac_word" >&5
1768 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 if test -n "$RANLIB"; then
1772 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1774 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1776 for ac_dir
in $ac_dummy; do
1777 test -z "$ac_dir" && ac_dir
=.
1778 if test -f $ac_dir/$ac_word; then
1779 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1786 RANLIB
="$ac_cv_prog_RANLIB"
1787 if test -n "$RANLIB"; then
1788 echo "$ac_t""$RANLIB" 1>&6
1790 echo "$ac_t""no" 1>&6
1794 if test -z "$ac_cv_prog_RANLIB"; then
1795 if test -n "$ac_tool_prefix"; then
1796 # Extract the first word of "ranlib", so it can be a program name with args.
1797 set dummy ranlib
; ac_word
=$2
1798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1799 echo "configure:1800: checking for $ac_word" >&5
1800 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 if test -n "$RANLIB"; then
1804 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1806 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1808 for ac_dir
in $ac_dummy; do
1809 test -z "$ac_dir" && ac_dir
=.
1810 if test -f $ac_dir/$ac_word; then
1811 ac_cv_prog_RANLIB
="ranlib"
1816 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1819 RANLIB
="$ac_cv_prog_RANLIB"
1820 if test -n "$RANLIB"; then
1821 echo "$ac_t""$RANLIB" 1>&6
1823 echo "$ac_t""no" 1>&6
1831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1832 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_word" >&5
1835 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 if test -n "$STRIP"; then
1839 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1841 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1843 for ac_dir
in $ac_dummy; do
1844 test -z "$ac_dir" && ac_dir
=.
1845 if test -f $ac_dir/$ac_word; then
1846 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1853 STRIP
="$ac_cv_prog_STRIP"
1854 if test -n "$STRIP"; then
1855 echo "$ac_t""$STRIP" 1>&6
1857 echo "$ac_t""no" 1>&6
1861 if test -z "$ac_cv_prog_STRIP"; then
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "strip", so it can be a program name with args.
1864 set dummy strip
; ac_word
=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1867 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 if test -n "$STRIP"; then
1871 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1875 for ac_dir
in $ac_dummy; do
1876 test -z "$ac_dir" && ac_dir
=.
1877 if test -f $ac_dir/$ac_word; then
1878 ac_cv_prog_STRIP
="strip"
1883 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1886 STRIP
="$ac_cv_prog_STRIP"
1887 if test -n "$STRIP"; then
1888 echo "$ac_t""$STRIP" 1>&6
1890 echo "$ac_t""no" 1>&6
1899 # Check for any special flags to pass to ltconfig.
1900 libtool_flags
="--cache-file=$cache_file"
1901 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1902 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1903 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1904 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1905 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1908 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1909 if test "${enable_libtool_lock+set}" = set; then
1910 enableval
="$enable_libtool_lock"
1914 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1915 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1917 # Check whether --with-pic or --without-pic was given.
1918 if test "${with_pic+set}" = set; then
1925 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1926 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1928 # Some flags need to be propagated to the compiler or linker for good
1932 # Find out which ABI we are using.
1933 echo '#line 1934 "configure"' > conftest.
$ac_ext
1934 if { (eval echo configure
:1935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1935 case "`/usr/bin/file conftest.o`" in
1951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1952 SAVE_CFLAGS
="$CFLAGS"
1953 CFLAGS
="$CFLAGS -belf"
1954 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1955 echo "configure:1956: checking whether the C compiler needs -belf" >&5
1956 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1962 ac_cpp
='$CPP $CPPFLAGS'
1963 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1964 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1965 cross_compiling
=$ac_cv_prog_cc_cross
1967 cat > conftest.
$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1975 if { (eval echo configure
:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1977 lt_cv_cc_needs_belf
=yes
1979 echo "configure: failed program was:" >&5
1980 cat conftest.
$ac_ext >&5
1982 lt_cv_cc_needs_belf
=no
1986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1987 ac_cpp
='$CPP $CPPFLAGS'
1988 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1989 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1990 cross_compiling
=$ac_cv_prog_cc_cross
1994 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1995 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1996 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1997 CFLAGS
="$SAVE_CFLAGS"
2005 # Save cache, so that ltconfig can load it
2006 cat > confcache
<<\EOF
2007 # This file is a shell script that caches the results of configure
2008 # tests run on this system so they can be shared between configure
2009 # scripts and configure runs. It is not useful on other systems.
2010 # If it contains results you don't want to keep, you may remove or edit it.
2012 # By default, configure uses ./config.cache as the cache file,
2013 # creating it if it does not exist already. You can give configure
2014 # the --cache-file=FILE option to use a different cache file; that is
2015 # what configure does when it calls configure scripts in
2016 # subdirectories, so they share the cache.
2017 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2018 # config.status only pays attention to the cache file if you give it the
2019 # --recheck option to rerun configure.
2022 # The following way of writing the cache mishandles newlines in values,
2023 # but we know of no workaround that is simple, portable, and efficient.
2024 # So, don't put newlines in cache variables' values.
2025 # Ultrix sh set writes to stderr and can't be redirected directly,
2026 # and sets the high bit in the cache file unless we assign to the vars.
2028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2030 # `set' does not quote correctly, so add quotes (double-quote substitution
2031 # turns \\\\ into \\, and sed turns \\ into \).
2033 -e "s/'/'\\\\''/g" \
2034 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2037 # `set' quotes correctly as required by POSIX, so do not add quotes.
2038 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2041 if cmp -s $cache_file confcache
; then
2044 if test -w $cache_file; then
2045 echo "updating cache $cache_file"
2046 cat confcache
> $cache_file
2048 echo "not updating unwritable cache $cache_file"
2054 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2055 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2056 MAGIC
="$MAGIC" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2057 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2058 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2059 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2060 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2061 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2062 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2063 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2065 # Reload cache, that may have been modified by ltconfig
2066 if test -r "$cache_file"; then
2067 echo "loading cache $cache_file"
2070 echo "creating cache $cache_file"
2075 # This can be used to rebuild libtool when needed
2076 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2078 # Always use our own libtool.
2079 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2081 # Redirect the config.log output again, so that the ltconfig log is not
2082 # clobbered by the next message.
2083 exec 5>>.
/config.log
2091 # Check whether --enable-targets or --disable-targets was given.
2092 if test "${enable_targets+set}" = set; then
2093 enableval
="$enable_targets"
2094 case "${enableval}" in
2095 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2097 no
) enable_targets
= ;;
2098 *) enable_targets
=$enableval ;;
2101 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2102 if test "${enable_64_bit_bfd+set}" = set; then
2103 enableval
="$enable_64_bit_bfd"
2104 case "${enableval}" in
2107 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2113 build_warnings
="-W -Wall"
2114 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2115 if test "${enable_build_warnings+set}" = set; then
2116 enableval
="$enable_build_warnings"
2117 case "${enableval}" in
2119 no
) build_warnings
="-w";;
2120 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2121 build_warnings
="${build_warnings} ${t}";;
2122 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2123 build_warnings
="${t} ${build_warnings}";;
2124 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2126 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2127 echo "Setting warning flags = $build_warnings" 6>&1
2131 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2132 WARN_CFLAGS
="${build_warnings}"
2140 if test -z "$target" ; then
2141 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2143 if test -z "$host" ; then
2144 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2147 # host-specific stuff:
2149 # Extract the first word of "gcc", so it can be a program name with args.
2150 set dummy gcc
; ac_word
=$2
2151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2152 echo "configure:2153: checking for $ac_word" >&5
2153 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC
="$CC" # Let the user override the test.
2159 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2161 for ac_dir
in $ac_dummy; do
2162 test -z "$ac_dir" && ac_dir
=.
2163 if test -f $ac_dir/$ac_word; then
2172 if test -n "$CC"; then
2173 echo "$ac_t""$CC" 1>&6
2175 echo "$ac_t""no" 1>&6
2178 if test -z "$CC"; then
2179 # Extract the first word of "cc", so it can be a program name with args.
2180 set dummy cc
; ac_word
=$2
2181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_word" >&5
2183 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC
="$CC" # Let the user override the test.
2189 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2192 for ac_dir
in $ac_dummy; do
2193 test -z "$ac_dir" && ac_dir
=.
2194 if test -f $ac_dir/$ac_word; then
2195 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2196 ac_prog_rejected
=yes
2204 if test $ac_prog_rejected = yes; then
2205 # We found a bogon in the path, so make sure we never use it.
2206 set dummy
$ac_cv_prog_CC
2208 if test $# -gt 0; then
2209 # We chose a different compiler from the bogus one.
2210 # However, it has the same basename, so the bogon will be chosen
2211 # first if we set CC to just the basename; use the full file name.
2213 set dummy
"$ac_dir/$ac_word" "$@"
2221 if test -n "$CC"; then
2222 echo "$ac_t""$CC" 1>&6
2224 echo "$ac_t""no" 1>&6
2227 if test -z "$CC"; then
2228 case "`uname -s`" in
2230 # Extract the first word of "cl", so it can be a program name with args.
2231 set dummy cl
; ac_word
=$2
2232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_word" >&5
2234 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC
="$CC" # Let the user override the test.
2240 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2242 for ac_dir
in $ac_dummy; do
2243 test -z "$ac_dir" && ac_dir
=.
2244 if test -f $ac_dir/$ac_word; then
2253 if test -n "$CC"; then
2254 echo "$ac_t""$CC" 1>&6
2256 echo "$ac_t""no" 1>&6
2261 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2264 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2265 echo "configure:2266: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2269 ac_cpp
='$CPP $CPPFLAGS'
2270 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2271 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2272 cross_compiling
=$ac_cv_prog_cc_cross
2274 cat > conftest.
$ac_ext << EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2281 if { (eval echo configure
:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2282 ac_cv_prog_cc_works
=yes
2283 # If we can't run a trivial program, we are probably using a cross compiler.
2284 if (.
/conftest
; exit) 2>/dev
/null
; then
2285 ac_cv_prog_cc_cross
=no
2287 ac_cv_prog_cc_cross
=yes
2290 echo "configure: failed program was:" >&5
2291 cat conftest.
$ac_ext >&5
2292 ac_cv_prog_cc_works
=no
2296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2297 ac_cpp
='$CPP $CPPFLAGS'
2298 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2299 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2300 cross_compiling
=$ac_cv_prog_cc_cross
2302 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2303 if test $ac_cv_prog_cc_works = no
; then
2304 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2306 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2307 echo "configure:2308: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2308 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2309 cross_compiling
=$ac_cv_prog_cc_cross
2311 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2312 echo "configure:2313: checking whether we are using GNU C" >&5
2313 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 cat > conftest.c
<<EOF
2321 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2328 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2330 if test $ac_cv_prog_gcc = yes; then
2336 ac_test_CFLAGS
="${CFLAGS+set}"
2337 ac_save_CFLAGS
="$CFLAGS"
2339 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2340 echo "configure:2341: checking whether ${CC-cc} accepts -g" >&5
2341 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 echo 'void f(){}' > conftest.c
2345 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2354 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2355 if test "$ac_test_CFLAGS" = set; then
2356 CFLAGS
="$ac_save_CFLAGS"
2357 elif test $ac_cv_prog_cc_g = yes; then
2358 if test "$GCC" = yes; then
2364 if test "$GCC" = yes; then
2371 # Find a good install program. We prefer a C program (faster),
2372 # so one script is as good as another. But avoid the broken or
2373 # incompatible versions:
2374 # SysV /etc/install, /usr/sbin/install
2375 # SunOS /usr/etc/install
2376 # IRIX /sbin/install
2378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2381 # ./install, which can be erroneously created by make from ./install.sh.
2382 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2383 echo "configure:2384: checking for a BSD compatible install" >&5
2384 if test -z "$INSTALL"; then
2385 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2389 for ac_dir
in $PATH; do
2390 # Account for people who put trailing slashes in PATH elements.
2392 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2394 # OSF1 and SCO ODT 3.0 have their own names for install.
2395 # Don't use installbsd from OSF since it installs stuff as root
2397 for ac_prog
in ginstall scoinst
install; do
2398 if test -f $ac_dir/$ac_prog; then
2399 if test $ac_prog = install &&
2400 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2401 # AIX install. It has an incompatible calling convention.
2404 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2415 if test "${ac_cv_path_install+set}" = set; then
2416 INSTALL
="$ac_cv_path_install"
2418 # As a last resort, use the slow shell script. We don't cache a
2419 # path for INSTALL within a source directory, because that will
2420 # break other packages using the cache if that directory is
2421 # removed, or if the path is relative.
2422 INSTALL
="$ac_install_sh"
2425 echo "$ac_t""$INSTALL" 1>&6
2427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2428 # It thinks the first close brace ends the variable substitution.
2429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2433 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2437 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2438 echo "configure:2439: checking how to run the C preprocessor" >&5
2439 # On Suns, sometimes $CPP names a directory.
2440 if test -n "$CPP" && test -d "$CPP"; then
2443 if test -z "$CPP"; then
2444 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 # This must be in double quotes, not single quotes, because CPP may get
2448 # substituted into the Makefile and "${CC-cc}" will confuse make.
2450 # On the NeXT, cc -E runs the code through the compiler's parser,
2451 # not just through cpp.
2452 cat > conftest.
$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2458 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2459 { (eval echo configure
:2460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2460 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2461 if test -z "$ac_err"; then
2465 echo "configure: failed program was:" >&5
2466 cat conftest.
$ac_ext >&5
2468 CPP
="${CC-cc} -E -traditional-cpp"
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2475 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476 { (eval echo configure
:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2478 if test -z "$ac_err"; then
2482 echo "configure: failed program was:" >&5
2483 cat conftest.
$ac_ext >&5
2485 CPP
="${CC-cc} -nologo -E"
2486 cat > conftest.
$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2492 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2493 { (eval echo configure
:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2494 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2495 if test -z "$ac_err"; then
2499 echo "configure: failed program was:" >&5
2500 cat conftest.
$ac_ext >&5
2509 ac_cv_prog_CPP
="$CPP"
2511 CPP
="$ac_cv_prog_CPP"
2513 ac_cv_prog_CPP
="$CPP"
2515 echo "$ac_t""$CPP" 1>&6
2517 # Extract the first word of "ranlib", so it can be a program name with args.
2518 set dummy ranlib
; ac_word
=$2
2519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_word" >&5
2521 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 if test -n "$RANLIB"; then
2525 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2527 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2529 for ac_dir
in $ac_dummy; do
2530 test -z "$ac_dir" && ac_dir
=.
2531 if test -f $ac_dir/$ac_word; then
2532 ac_cv_prog_RANLIB
="ranlib"
2537 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2540 RANLIB
="$ac_cv_prog_RANLIB"
2541 if test -n "$RANLIB"; then
2542 echo "$ac_t""$RANLIB" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2548 echo "configure:2549: checking for POSIXized ISC" >&5
2549 if test -d /etc
/conf
/kconfig.d
&&
2550 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2552 echo "$ac_t""yes" 1>&6
2553 ISC
=yes # If later tests want to check for ISC.
2554 cat >> confdefs.h
<<\EOF
2555 #define _POSIX_SOURCE 1
2558 if test "$GCC" = yes; then
2564 echo "$ac_t""no" 1>&6
2568 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2569 echo "configure:2570: checking for ANSI C header files" >&5
2570 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 cat > conftest.
$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2581 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2582 { (eval echo configure
:2583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2583 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2584 if test -z "$ac_err"; then
2586 ac_cv_header_stdc
=yes
2589 echo "configure: failed program was:" >&5
2590 cat conftest.
$ac_ext >&5
2592 ac_cv_header_stdc
=no
2596 if test $ac_cv_header_stdc = yes; then
2597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2598 cat > conftest.
$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2604 egrep "memchr" >/dev
/null
2>&1; then
2608 ac_cv_header_stdc
=no
2614 if test $ac_cv_header_stdc = yes; then
2615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2616 cat > conftest.
$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2622 egrep "free" >/dev
/null
2>&1; then
2626 ac_cv_header_stdc
=no
2632 if test $ac_cv_header_stdc = yes; then
2633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2634 if test "$cross_compiling" = yes; then
2637 cat > conftest.
$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2641 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2642 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2644 int main () { int i; for (i = 0; i < 256; i++)
2645 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2649 if { (eval echo configure
:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2653 echo "configure: failed program was:" >&5
2654 cat conftest.
$ac_ext >&5
2656 ac_cv_header_stdc
=no
2664 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2665 if test $ac_cv_header_stdc = yes; then
2666 cat >> confdefs.h
<<\EOF
2667 #define STDC_HEADERS 1
2672 echo $ac_n "checking for working const""... $ac_c" 1>&6
2673 echo "configure:2674: checking for working const" >&5
2674 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2683 /* Ultrix mips cc rejects this. */
2684 typedef int charset[2]; const charset x;
2685 /* SunOS 4.1.1 cc rejects this. */
2686 char const *const *ccp;
2688 /* NEC SVR4.0.2 mips cc rejects this. */
2689 struct point {int x, y;};
2690 static struct point const zero = {0,0};
2691 /* AIX XL C 1.02.0.0 rejects this.
2692 It does not let you subtract one const X* pointer from another in an arm
2693 of an if-expression whose if-part is not a constant expression */
2694 const char *g = "string";
2695 ccp = &g + (g ? g-g : 0);
2696 /* HPUX 7.0 cc rejects these. */
2699 ccp = (char const *const *) p;
2700 { /* SCO 3.2v4 cc rejects this. */
2702 char const *s = 0 ? (char *) 0 : (char const *) 0;
2706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2708 const int *foo = &x[0];
2711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2712 typedef const int *iptr;
2716 { /* AIX XL C 1.02.0.0 rejects this saying
2717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2718 struct s { int j; const int *ap[3]; };
2719 struct s *b; b->j = 5;
2721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2727 if { (eval echo configure
:2728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2731 echo "configure: failed program was:" >&5
2732 cat conftest.
$ac_ext >&5
2739 echo "$ac_t""$ac_cv_c_const" 1>&6
2740 if test $ac_cv_c_const = no
; then
2741 cat >> confdefs.h
<<\EOF
2747 echo $ac_n "checking for inline""... $ac_c" 1>&6
2748 echo "configure:2749: checking for inline" >&5
2749 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2753 for ac_kw
in inline __inline__ __inline
; do
2754 cat > conftest.
$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2762 if { (eval echo configure
:2763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2764 ac_cv_c_inline
=$ac_kw; break
2766 echo "configure: failed program was:" >&5
2767 cat conftest.
$ac_ext >&5
2774 echo "$ac_t""$ac_cv_c_inline" 1>&6
2775 case "$ac_cv_c_inline" in
2777 no
) cat >> confdefs.h
<<\EOF
2781 *) cat >> confdefs.h
<<EOF
2782 #define inline $ac_cv_c_inline
2787 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2788 echo "configure:2789: checking for off_t" >&5
2789 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.
$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 #include <sys/types.h>
2801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2802 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2804 ac_cv_type_off_t
=yes
2812 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2813 if test $ac_cv_type_off_t = no
; then
2814 cat >> confdefs.h
<<\EOF
2820 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2821 echo "configure:2822: checking for size_t" >&5
2822 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.
$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2828 #include <sys/types.h>
2834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2835 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2837 ac_cv_type_size_t
=yes
2840 ac_cv_type_size_t
=no
2845 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2846 if test $ac_cv_type_size_t = no
; then
2847 cat >> confdefs.h
<<\EOF
2848 #define size_t unsigned
2853 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2854 # for constant arguments. Useless!
2855 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2856 echo "configure:2857: checking for working alloca.h" >&5
2857 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2860 cat > conftest.
$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2865 char *p = alloca(2 * sizeof(int));
2868 if { (eval echo configure
:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2870 ac_cv_header_alloca_h
=yes
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2875 ac_cv_header_alloca_h
=no
2880 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2881 if test $ac_cv_header_alloca_h = yes; then
2882 cat >> confdefs.h
<<\EOF
2883 #define HAVE_ALLOCA_H 1
2888 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2889 echo "configure:2890: checking for alloca" >&5
2890 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 cat > conftest.
$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2898 # define alloca __builtin_alloca
2901 # include <malloc.h>
2902 # define alloca _alloca
2905 # include <alloca.h>
2910 # ifndef alloca /* predefined by HP cc +Olibcalls */
2919 char *p = (char *) alloca(1);
2922 if { (eval echo configure
:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2924 ac_cv_func_alloca_works
=yes
2926 echo "configure: failed program was:" >&5
2927 cat conftest.
$ac_ext >&5
2929 ac_cv_func_alloca_works
=no
2934 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2935 if test $ac_cv_func_alloca_works = yes; then
2936 cat >> confdefs.h
<<\EOF
2937 #define HAVE_ALLOCA 1
2942 if test $ac_cv_func_alloca_works = no
; then
2943 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2944 # that cause trouble. Some versions do not even contain alloca or
2945 # contain a buggy version. If you still want to use their alloca,
2946 # use ar to extract alloca.o from them instead of compiling alloca.c.
2947 ALLOCA
=alloca.
${ac_objext}
2948 cat >> confdefs.h
<<\EOF
2953 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2954 echo "configure:2955: checking whether alloca needs Cray hooks" >&5
2955 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 cat > conftest.
$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #if defined(CRAY) && ! defined(CRAY2)
2968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2969 egrep "webecray" >/dev
/null
2>&1; then
2980 echo "$ac_t""$ac_cv_os_cray" 1>&6
2981 if test $ac_cv_os_cray = yes; then
2982 for ac_func
in _getb67 GETB67 getb67
; do
2983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2984 echo "configure:2985: checking for $ac_func" >&5
2985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 cat > conftest.
$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 /* System header to define __stub macros and hopefully few prototypes,
2992 which can conflict with char $ac_func(); below. */
2994 /* Override any gcc2 internal prototype to avoid an error. */
2995 /* We use char because int might match the return type of a gcc2
2996 builtin and then its argument prototype would still apply. */
3001 /* The GNU C library defines this for functions which it implements
3002 to always fail with ENOSYS. Some functions are actually named
3003 something starting with __ and the normal name is an alias. */
3004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3012 if { (eval echo configure
:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3014 eval "ac_cv_func_$ac_func=yes"
3016 echo "configure: failed program was:" >&5
3017 cat conftest.
$ac_ext >&5
3019 eval "ac_cv_func_$ac_func=no"
3024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3025 echo "$ac_t""yes" 1>&6
3026 cat >> confdefs.h
<<EOF
3027 #define CRAY_STACKSEG_END $ac_func
3032 echo "$ac_t""no" 1>&6
3038 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3039 echo "configure:3040: checking stack direction for C alloca" >&5
3040 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 if test "$cross_compiling" = yes; then
3044 ac_cv_c_stack_direction
=0
3046 cat > conftest.
$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3049 find_stack_direction ()
3051 static char *addr = 0;
3056 return find_stack_direction ();
3059 return (&dummy > addr) ? 1 : -1;
3063 exit (find_stack_direction() < 0);
3066 if { (eval echo configure
:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3068 ac_cv_c_stack_direction
=1
3070 echo "configure: failed program was:" >&5
3071 cat conftest.
$ac_ext >&5
3073 ac_cv_c_stack_direction
=-1
3080 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3081 cat >> confdefs.h
<<EOF
3082 #define STACK_DIRECTION $ac_cv_c_stack_direction
3087 for ac_hdr
in unistd.h
3089 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3091 echo "configure:3092: checking for $ac_hdr" >&5
3092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 cat > conftest.
$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3100 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3101 { (eval echo configure
:3102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3102 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3103 if test -z "$ac_err"; then
3105 eval "ac_cv_header_$ac_safe=yes"
3108 echo "configure: failed program was:" >&5
3109 cat conftest.
$ac_ext >&5
3111 eval "ac_cv_header_$ac_safe=no"
3115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3116 echo "$ac_t""yes" 1>&6
3117 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3118 cat >> confdefs.h
<<EOF
3119 #define $ac_tr_hdr 1
3123 echo "$ac_t""no" 1>&6
3127 for ac_func
in getpagesize
3129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3130 echo "configure:3131: checking for $ac_func" >&5
3131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 cat > conftest.
$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3137 /* System header to define __stub macros and hopefully few prototypes,
3138 which can conflict with char $ac_func(); below. */
3140 /* Override any gcc2 internal prototype to avoid an error. */
3141 /* We use char because int might match the return type of a gcc2
3142 builtin and then its argument prototype would still apply. */
3147 /* The GNU C library defines this for functions which it implements
3148 to always fail with ENOSYS. Some functions are actually named
3149 something starting with __ and the normal name is an alias. */
3150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3158 if { (eval echo configure
:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3160 eval "ac_cv_func_$ac_func=yes"
3162 echo "configure: failed program was:" >&5
3163 cat conftest.
$ac_ext >&5
3165 eval "ac_cv_func_$ac_func=no"
3170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3171 echo "$ac_t""yes" 1>&6
3172 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3173 cat >> confdefs.h
<<EOF
3174 #define $ac_tr_func 1
3178 echo "$ac_t""no" 1>&6
3182 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3183 echo "configure:3184: checking for working mmap" >&5
3184 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 if test "$cross_compiling" = yes; then
3188 ac_cv_func_mmap_fixed_mapped
=no
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3194 /* Thanks to Mike Haertel and Jim Avera for this test.
3195 Here is a matrix of mmap possibilities:
3196 mmap private not fixed
3197 mmap private fixed at somewhere currently unmapped
3198 mmap private fixed at somewhere already mapped
3199 mmap shared not fixed
3200 mmap shared fixed at somewhere currently unmapped
3201 mmap shared fixed at somewhere already mapped
3202 For private mappings, we should verify that changes cannot be read()
3203 back from the file, nor mmap's back from the file at a different
3204 address. (There have been systems where private was not correctly
3205 implemented like the infamous i386 svr4.0, and systems where the
3206 VM page cache was not coherent with the filesystem buffer cache
3207 like early versions of FreeBSD and possibly contemporary NetBSD.)
3208 For shared mappings, we should conversely verify that changes get
3209 propogated back to all the places they're supposed to be.
3211 Grep wants private fixed already mapped.
3212 The main things grep needs to know about mmap are:
3213 * does it exist and is it safe to write into the mmap'd area
3214 * how to use it (BSD variants) */
3215 #include <sys/types.h>
3217 #include <sys/mman.h>
3219 /* This mess was copied from the GNU getpagesize.h. */
3220 #ifndef HAVE_GETPAGESIZE
3221 # ifdef HAVE_UNISTD_H
3222 # include <unistd.h>
3225 /* Assume that all systems that can run configure have sys/param.h. */
3226 # ifndef HAVE_SYS_PARAM_H
3227 # define HAVE_SYS_PARAM_H 1
3230 # ifdef _SC_PAGESIZE
3231 # define getpagesize() sysconf(_SC_PAGESIZE)
3232 # else /* no _SC_PAGESIZE */
3233 # ifdef HAVE_SYS_PARAM_H
3234 # include <sys/param.h>
3235 # ifdef EXEC_PAGESIZE
3236 # define getpagesize() EXEC_PAGESIZE
3237 # else /* no EXEC_PAGESIZE */
3239 # define getpagesize() NBPG * CLSIZE
3242 # endif /* no CLSIZE */
3243 # else /* no NBPG */
3245 # define getpagesize() NBPC
3246 # else /* no NBPC */
3248 # define getpagesize() PAGESIZE
3249 # endif /* PAGESIZE */
3250 # endif /* no NBPC */
3251 # endif /* no NBPG */
3252 # endif /* no EXEC_PAGESIZE */
3253 # else /* no HAVE_SYS_PARAM_H */
3254 # define getpagesize() 8192 /* punt totally */
3255 # endif /* no HAVE_SYS_PARAM_H */
3256 # endif /* no _SC_PAGESIZE */
3258 #endif /* no HAVE_GETPAGESIZE */
3261 extern "C" { void *malloc(unsigned); }
3269 char *data, *data2, *data3;
3273 pagesize = getpagesize();
3276 * First, make a file with some known garbage in it.
3278 data = malloc(pagesize);
3281 for (i = 0; i < pagesize; ++i)
3282 *(data + i) = rand();
3284 fd = creat("conftestmmap", 0600);
3287 if (write(fd, data, pagesize) != pagesize)
3292 * Next, try to mmap the file at a fixed address which
3293 * already has something else allocated at it. If we can,
3294 * also make sure that we see the same garbage.
3296 fd = open("conftestmmap", O_RDWR);
3299 data2 = malloc(2 * pagesize);
3302 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3303 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3304 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3306 for (i = 0; i < pagesize; ++i)
3307 if (*(data + i) != *(data2 + i))
3311 * Finally, make sure that changes to the mapped area
3312 * do not percolate back to the file as seen by read().
3313 * (This is a bug on some variants of i386 svr4.0.)
3315 for (i = 0; i < pagesize; ++i)
3316 *(data2 + i) = *(data2 + i) + 1;
3317 data3 = malloc(pagesize);
3320 if (read(fd, data3, pagesize) != pagesize)
3322 for (i = 0; i < pagesize; ++i)
3323 if (*(data + i) != *(data3 + i))
3326 unlink("conftestmmap");
3331 if { (eval echo configure
:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3333 ac_cv_func_mmap_fixed_mapped
=yes
3335 echo "configure: failed program was:" >&5
3336 cat conftest.
$ac_ext >&5
3338 ac_cv_func_mmap_fixed_mapped
=no
3345 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3346 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3347 cat >> confdefs.h
<<\EOF
3354 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3355 unistd.h values.h sys
/param.h
3357 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3359 echo "configure:3360: checking for $ac_hdr" >&5
3360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.
$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3368 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3369 { (eval echo configure
:3370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3370 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3371 if test -z "$ac_err"; then
3373 eval "ac_cv_header_$ac_safe=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3379 eval "ac_cv_header_$ac_safe=no"
3383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3385 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3386 cat >> confdefs.h
<<EOF
3387 #define $ac_tr_hdr 1
3391 echo "$ac_t""no" 1>&6
3395 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3396 __argz_count __argz_stringify __argz_next
3398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_func" >&5
3400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 cat > conftest.
$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 /* System header to define __stub macros and hopefully few prototypes,
3407 which can conflict with char $ac_func(); below. */
3409 /* Override any gcc2 internal prototype to avoid an error. */
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3416 /* The GNU C library defines this for functions which it implements
3417 to always fail with ENOSYS. Some functions are actually named
3418 something starting with __ and the normal name is an alias. */
3419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3427 if { (eval echo configure
:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3429 eval "ac_cv_func_$ac_func=yes"
3431 echo "configure: failed program was:" >&5
3432 cat conftest.
$ac_ext >&5
3434 eval "ac_cv_func_$ac_func=no"
3439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3440 echo "$ac_t""yes" 1>&6
3441 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3442 cat >> confdefs.h
<<EOF
3443 #define $ac_tr_func 1
3447 echo "$ac_t""no" 1>&6
3452 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3453 for ac_func
in stpcpy
3455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3456 echo "configure:3457: checking for $ac_func" >&5
3457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 cat > conftest.
$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 /* System header to define __stub macros and hopefully few prototypes,
3464 which can conflict with char $ac_func(); below. */
3466 /* Override any gcc2 internal prototype to avoid an error. */
3467 /* We use char because int might match the return type of a gcc2
3468 builtin and then its argument prototype would still apply. */
3473 /* The GNU C library defines this for functions which it implements
3474 to always fail with ENOSYS. Some functions are actually named
3475 something starting with __ and the normal name is an alias. */
3476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3484 if { (eval echo configure
:3485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3486 eval "ac_cv_func_$ac_func=yes"
3488 echo "configure: failed program was:" >&5
3489 cat conftest.
$ac_ext >&5
3491 eval "ac_cv_func_$ac_func=no"
3496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3499 cat >> confdefs.h
<<EOF
3500 #define $ac_tr_func 1
3504 echo "$ac_t""no" 1>&6
3509 if test "${ac_cv_func_stpcpy}" = "yes"; then
3510 cat >> confdefs.h
<<\EOF
3511 #define HAVE_STPCPY 1
3516 if test $ac_cv_header_locale_h = yes; then
3517 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3518 echo "configure:3519: checking for LC_MESSAGES" >&5
3519 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 cat > conftest.
$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3530 if { (eval echo configure
:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3532 am_cv_val_LC_MESSAGES
=yes
3534 echo "configure: failed program was:" >&5
3535 cat conftest.
$ac_ext >&5
3537 am_cv_val_LC_MESSAGES
=no
3542 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3543 if test $am_cv_val_LC_MESSAGES = yes; then
3544 cat >> confdefs.h
<<\EOF
3545 #define HAVE_LC_MESSAGES 1
3550 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3551 echo "configure:3552: checking whether NLS is requested" >&5
3552 # Check whether --enable-nls or --disable-nls was given.
3553 if test "${enable_nls+set}" = set; then
3554 enableval
="$enable_nls"
3560 echo "$ac_t""$USE_NLS" 1>&6
3563 USE_INCLUDED_LIBINTL
=no
3565 if test "$USE_NLS" = "yes"; then
3566 cat >> confdefs.h
<<\EOF
3567 #define ENABLE_NLS 1
3570 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3571 echo "configure:3572: checking whether included gettext is requested" >&5
3572 # Check whether --with-included-gettext or --without-included-gettext was given.
3573 if test "${with_included_gettext+set}" = set; then
3574 withval
="$with_included_gettext"
3575 nls_cv_force_use_gnu_gettext
=$withval
3577 nls_cv_force_use_gnu_gettext
=no
3580 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3582 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3583 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3585 nls_cv_header_libgt
=
3588 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3589 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3590 echo "configure:3591: checking for libintl.h" >&5
3591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 cat > conftest.
$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3597 #include <libintl.h>
3599 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3600 { (eval echo configure
:3601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3601 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3602 if test -z "$ac_err"; then
3604 eval "ac_cv_header_$ac_safe=yes"
3607 echo "configure: failed program was:" >&5
3608 cat conftest.
$ac_ext >&5
3610 eval "ac_cv_header_$ac_safe=no"
3614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3615 echo "$ac_t""yes" 1>&6
3616 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3617 echo "configure:3618: checking for gettext in libc" >&5
3618 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <libintl.h>
3626 return (int) gettext ("")
3629 if { (eval echo configure
:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3631 gt_cv_func_gettext_libc
=yes
3633 echo "configure: failed program was:" >&5
3634 cat conftest.
$ac_ext >&5
3636 gt_cv_func_gettext_libc
=no
3641 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3643 if test "$gt_cv_func_gettext_libc" != "yes"; then
3644 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3645 echo "configure:3646: checking for bindtextdomain in -lintl" >&5
3646 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 ac_save_LIBS
="$LIBS"
3652 cat > conftest.
$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 /* Override any gcc2 internal prototype to avoid an error. */
3656 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3658 char bindtextdomain();
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_lib_$ac_lib_var=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3671 eval "ac_cv_lib_$ac_lib_var=no"
3674 LIBS
="$ac_save_LIBS"
3677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3678 echo "$ac_t""yes" 1>&6
3679 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3680 echo "configure:3681: checking for gettext in libintl" >&5
3681 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 cat > conftest.
$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3689 return (int) gettext ("")
3692 if { (eval echo configure
:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3694 gt_cv_func_gettext_libintl
=yes
3696 echo "configure: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3699 gt_cv_func_gettext_libintl
=no
3704 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3706 echo "$ac_t""no" 1>&6
3711 if test "$gt_cv_func_gettext_libc" = "yes" \
3712 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3713 cat >> confdefs.h
<<\EOF
3714 #define HAVE_GETTEXT 1
3717 # Extract the first word of "msgfmt", so it can be a program name with args.
3718 set dummy msgfmt
; ac_word
=$2
3719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3720 echo "configure:3721: checking for $ac_word" >&5
3721 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3726 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3729 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3730 for ac_dir
in $PATH; do
3731 test -z "$ac_dir" && ac_dir
=.
3732 if test -f $ac_dir/$ac_word; then
3733 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3734 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3740 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3744 MSGFMT
="$ac_cv_path_MSGFMT"
3745 if test -n "$MSGFMT"; then
3746 echo "$ac_t""$MSGFMT" 1>&6
3748 echo "$ac_t""no" 1>&6
3750 if test "$MSGFMT" != "no"; then
3751 for ac_func
in dcgettext
3753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3754 echo "configure:3755: checking for $ac_func" >&5
3755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.
$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 /* System header to define __stub macros and hopefully few prototypes,
3762 which can conflict with char $ac_func(); below. */
3764 /* Override any gcc2 internal prototype to avoid an error. */
3765 /* We use char because int might match the return type of a gcc2
3766 builtin and then its argument prototype would still apply. */
3771 /* The GNU C library defines this for functions which it implements
3772 to always fail with ENOSYS. Some functions are actually named
3773 something starting with __ and the normal name is an alias. */
3774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3782 if { (eval echo configure
:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3784 eval "ac_cv_func_$ac_func=yes"
3786 echo "configure: failed program was:" >&5
3787 cat conftest.
$ac_ext >&5
3789 eval "ac_cv_func_$ac_func=no"
3794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3797 cat >> confdefs.h
<<EOF
3798 #define $ac_tr_func 1
3802 echo "$ac_t""no" 1>&6
3806 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3807 set dummy gmsgfmt
; ac_word
=$2
3808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3809 echo "configure:3810: checking for $ac_word" >&5
3810 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3815 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3818 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3821 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3823 for ac_dir
in $ac_dummy; do
3824 test -z "$ac_dir" && ac_dir
=.
3825 if test -f $ac_dir/$ac_word; then
3826 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3831 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3835 GMSGFMT
="$ac_cv_path_GMSGFMT"
3836 if test -n "$GMSGFMT"; then
3837 echo "$ac_t""$GMSGFMT" 1>&6
3839 echo "$ac_t""no" 1>&6
3842 # Extract the first word of "xgettext", so it can be a program name with args.
3843 set dummy xgettext
; ac_word
=$2
3844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3845 echo "configure:3846: checking for $ac_word" >&5
3846 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3851 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3854 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3855 for ac_dir
in $PATH; do
3856 test -z "$ac_dir" && ac_dir
=.
3857 if test -f $ac_dir/$ac_word; then
3858 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3859 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3865 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3869 XGETTEXT
="$ac_cv_path_XGETTEXT"
3870 if test -n "$XGETTEXT"; then
3871 echo "$ac_t""$XGETTEXT" 1>&6
3873 echo "$ac_t""no" 1>&6
3876 cat > conftest.
$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3881 extern int _nl_msg_cat_cntr;
3882 return _nl_msg_cat_cntr
3885 if { (eval echo configure
:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3890 echo "configure: failed program was:" >&5
3891 cat conftest.
$ac_ext >&5
3902 echo "$ac_t""no" 1>&6
3907 if test "$CATOBJEXT" = "NONE"; then
3908 nls_cv_use_gnu_gettext
=yes
3912 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3913 INTLOBJS
="\$(GETTOBJS)"
3914 # Extract the first word of "msgfmt", so it can be a program name with args.
3915 set dummy msgfmt
; ac_word
=$2
3916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3917 echo "configure:3918: checking for $ac_word" >&5
3918 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3923 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3926 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3927 for ac_dir
in $PATH; do
3928 test -z "$ac_dir" && ac_dir
=.
3929 if test -f $ac_dir/$ac_word; then
3930 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3931 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3937 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3941 MSGFMT
="$ac_cv_path_MSGFMT"
3942 if test -n "$MSGFMT"; then
3943 echo "$ac_t""$MSGFMT" 1>&6
3945 echo "$ac_t""no" 1>&6
3948 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3949 set dummy gmsgfmt
; ac_word
=$2
3950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_word" >&5
3952 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3960 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3963 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3965 for ac_dir
in $ac_dummy; do
3966 test -z "$ac_dir" && ac_dir
=.
3967 if test -f $ac_dir/$ac_word; then
3968 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3973 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3977 GMSGFMT
="$ac_cv_path_GMSGFMT"
3978 if test -n "$GMSGFMT"; then
3979 echo "$ac_t""$GMSGFMT" 1>&6
3981 echo "$ac_t""no" 1>&6
3984 # Extract the first word of "xgettext", so it can be a program name with args.
3985 set dummy xgettext
; ac_word
=$2
3986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3987 echo "configure:3988: checking for $ac_word" >&5
3988 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3993 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3997 for ac_dir
in $PATH; do
3998 test -z "$ac_dir" && ac_dir
=.
3999 if test -f $ac_dir/$ac_word; then
4000 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4001 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4007 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4011 XGETTEXT
="$ac_cv_path_XGETTEXT"
4012 if test -n "$XGETTEXT"; then
4013 echo "$ac_t""$XGETTEXT" 1>&6
4015 echo "$ac_t""no" 1>&6
4019 USE_INCLUDED_LIBINTL
=yes
4023 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4025 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4026 nls_cv_header_intl
=libintl.h
4027 nls_cv_header_libgt
=libgettext.h
4030 if test "$XGETTEXT" != ":"; then
4031 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4034 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4039 # We need to process the po/ directory.
4043 nls_cv_header_intl
=libintl.h
4044 nls_cv_header_libgt
=libgettext.h
4047 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4048 # because some of the sources are only built for this goal.
4049 if test "$PACKAGE" = gettext; then
4051 USE_INCLUDED_LIBINTL
=yes
4054 for lang
in $ALL_LINGUAS; do
4055 GMOFILES
="$GMOFILES $lang.gmo"
4056 POFILES
="$POFILES $lang.po"
4072 if test "x$CATOBJEXT" != "x"; then
4073 if test "x$ALL_LINGUAS" = "x"; then
4076 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4077 echo "configure:4078: checking for catalogs to be installed" >&5
4079 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4080 case "$ALL_LINGUAS" in
4081 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4084 LINGUAS
=$NEW_LINGUAS
4085 echo "$ac_t""$LINGUAS" 1>&6
4088 if test -n "$LINGUAS"; then
4089 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4093 if test $ac_cv_header_locale_h = yes; then
4094 INCLUDE_LOCALE_H
="#include <locale.h>"
4097 /* The system does not provide the header <locale.h>. Take care yourself. */"
4101 if test -f $srcdir/po2tbl.
sed.
in; then
4102 if test "$CATOBJEXT" = ".cat"; then
4103 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4104 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4105 echo "configure:4106: checking for linux/version.h" >&5
4106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4109 cat > conftest.
$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4112 #include <linux/version.h>
4114 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4115 { (eval echo configure
:4116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4116 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4117 if test -z "$ac_err"; then
4119 eval "ac_cv_header_$ac_safe=yes"
4122 echo "configure: failed program was:" >&5
4123 cat conftest.
$ac_ext >&5
4125 eval "ac_cv_header_$ac_safe=no"
4129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4130 echo "$ac_t""yes" 1>&6
4133 echo "$ac_t""no" 1>&6
4138 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4140 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4141 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4144 if test "$PACKAGE" = "gettext"; then
4154 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4160 if test -d $srcdir/po
; then
4161 test -d po || mkdir po
4162 if test "x$srcdir" != "x."; then
4163 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4164 posrcprefix
="$srcdir/"
4166 posrcprefix
="../$srcdir/"
4172 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4173 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4179 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4180 echo "configure:4181: checking for executable suffix" >&5
4181 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4184 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4188 echo 'int main () { return 0; }' > conftest.
$ac_ext
4190 if { (eval echo configure
:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4191 for file in conftest.
*; do
4193 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4194 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4198 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4201 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4206 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4207 echo "$ac_t""${ac_cv_exeext}" 1>&6
4211 for ac_prog
in 'bison -y' byacc
4213 # Extract the first word of "$ac_prog", so it can be a program name with args.
4214 set dummy
$ac_prog; ac_word
=$2
4215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4216 echo "configure:4217: checking for $ac_word" >&5
4217 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 if test -n "$YACC"; then
4221 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4223 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4225 for ac_dir
in $ac_dummy; do
4226 test -z "$ac_dir" && ac_dir
=.
4227 if test -f $ac_dir/$ac_word; then
4228 ac_cv_prog_YACC
="$ac_prog"
4235 YACC
="$ac_cv_prog_YACC"
4236 if test -n "$YACC"; then
4237 echo "$ac_t""$YACC" 1>&6
4239 echo "$ac_t""no" 1>&6
4242 test -n "$YACC" && break
4244 test -n "$YACC" || YACC
="yacc"
4246 missing_dir
=`cd $ac_aux_dir && pwd`
4247 for ac_prog
in flex
lex
4249 # Extract the first word of "$ac_prog", so it can be a program name with args.
4250 set dummy
$ac_prog; ac_word
=$2
4251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4252 echo "configure:4253: checking for $ac_word" >&5
4253 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4256 if test -n "$LEX"; then
4257 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4259 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4261 for ac_dir
in $ac_dummy; do
4262 test -z "$ac_dir" && ac_dir
=.
4263 if test -f $ac_dir/$ac_word; then
4264 ac_cv_prog_LEX
="$ac_prog"
4271 LEX
="$ac_cv_prog_LEX"
4272 if test -n "$LEX"; then
4273 echo "$ac_t""$LEX" 1>&6
4275 echo "$ac_t""no" 1>&6
4278 test -n "$LEX" && break
4280 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
4282 # Extract the first word of "flex", so it can be a program name with args.
4283 set dummy flex
; ac_word
=$2
4284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4285 echo "configure:4286: checking for $ac_word" >&5
4286 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 if test -n "$LEX"; then
4290 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4292 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4294 for ac_dir
in $ac_dummy; do
4295 test -z "$ac_dir" && ac_dir
=.
4296 if test -f $ac_dir/$ac_word; then
4297 ac_cv_prog_LEX
="flex"
4302 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4305 LEX
="$ac_cv_prog_LEX"
4306 if test -n "$LEX"; then
4307 echo "$ac_t""$LEX" 1>&6
4309 echo "$ac_t""no" 1>&6
4312 if test -z "$LEXLIB"
4318 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4319 echo "configure:4320: checking for yywrap in -l$ac_lib" >&5
4320 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 ac_save_LIBS
="$LIBS"
4325 LIBS
="-l$ac_lib $LIBS"
4326 cat > conftest.
$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 /* Override any gcc2 internal prototype to avoid an error. */
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4338 if { (eval echo configure
:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4340 eval "ac_cv_lib_$ac_lib_var=yes"
4342 echo "configure: failed program was:" >&5
4343 cat conftest.
$ac_ext >&5
4345 eval "ac_cv_lib_$ac_lib_var=no"
4348 LIBS
="$ac_save_LIBS"
4351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4352 echo "$ac_t""yes" 1>&6
4355 echo "$ac_t""no" 1>&6
4360 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4361 echo "configure:4362: checking lex output file root" >&5
4362 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 # The minimal lex program is just a single line: %%. But some broken lexes
4366 # (Solaris, I think it was) want two %% lines, so accommodate them.
4369 if test -f lex.yy.c
; then
4370 ac_cv_prog_lex_root
=lex.yy
4371 elif test -f lexyy.c
; then
4372 ac_cv_prog_lex_root
=lexyy
4374 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4378 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4379 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4381 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4382 echo "configure:4383: checking whether yytext is a pointer" >&5
4383 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4384 echo $ac_n "(cached) $ac_c" 1>&6
4386 # POSIX says lex can declare yytext either as a pointer or an array; the
4387 # default is implementation-dependent. Figure out which it is, since
4388 # not all implementations provide the %pointer and %array declarations.
4389 ac_cv_prog_lex_yytext_pointer
=no
4390 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4391 ac_save_LIBS
="$LIBS"
4392 LIBS
="$LIBS $LEXLIB"
4393 cat > conftest.
$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 `cat $LEX_OUTPUT_ROOT.c`
4401 if { (eval echo configure
:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4403 ac_cv_prog_lex_yytext_pointer
=yes
4405 echo "configure: failed program was:" >&5
4406 cat conftest.
$ac_ext >&5
4409 LIBS
="$ac_save_LIBS"
4410 rm -f "${LEX_OUTPUT_ROOT}.c"
4414 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4415 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4416 cat >> confdefs.h
<<\EOF
4417 #define YYTEXT_POINTER 1
4423 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4424 echo "configure:4425: checking whether to enable maintainer-specific portions of Makefiles" >&5
4425 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4426 if test "${enable_maintainer_mode+set}" = set; then
4427 enableval
="$enable_maintainer_mode"
4428 USE_MAINTAINER_MODE
=$enableval
4430 USE_MAINTAINER_MODE
=no
4433 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4436 if test $USE_MAINTAINER_MODE = yes; then
4437 MAINTAINER_MODE_TRUE
=
4438 MAINTAINER_MODE_FALSE
='#'
4440 MAINTAINER_MODE_TRUE
='#'
4441 MAINTAINER_MODE_FALSE
=
4443 MAINT
=$MAINTAINER_MODE_TRUE
4447 .
${srcdir}/configure.
host
4454 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
4456 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4458 echo "configure:4459: checking for $ac_hdr" >&5
4459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.
$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4467 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4468 { (eval echo configure
:4469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4469 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4470 if test -z "$ac_err"; then
4472 eval "ac_cv_header_$ac_safe=yes"
4475 echo "configure: failed program was:" >&5
4476 cat conftest.
$ac_ext >&5
4478 eval "ac_cv_header_$ac_safe=no"
4482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4483 echo "$ac_t""yes" 1>&6
4484 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4485 cat >> confdefs.h
<<EOF
4486 #define $ac_tr_hdr 1
4490 echo "$ac_t""no" 1>&6
4496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4497 echo "configure:4498: checking for $ac_func" >&5
4498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4501 cat > conftest.
$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 /* System header to define __stub macros and hopefully few prototypes,
4505 which can conflict with char $ac_func(); below. */
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4514 /* The GNU C library defines this for functions which it implements
4515 to always fail with ENOSYS. Some functions are actually named
4516 something starting with __ and the normal name is an alias. */
4517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4525 if { (eval echo configure
:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4527 eval "ac_cv_func_$ac_func=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.
$ac_ext >&5
4532 eval "ac_cv_func_$ac_func=no"
4537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4538 echo "$ac_t""yes" 1>&6
4539 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4540 cat >> confdefs.h
<<EOF
4541 #define $ac_tr_func 1
4545 echo "$ac_t""no" 1>&6
4550 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4552 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4553 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_hdr that defines DIR" >&5
4555 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 cat > conftest.
$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 #include <sys/types.h>
4567 if { (eval echo configure
:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4569 eval "ac_cv_header_dirent_$ac_safe=yes"
4571 echo "configure: failed program was:" >&5
4572 cat conftest.
$ac_ext >&5
4574 eval "ac_cv_header_dirent_$ac_safe=no"
4578 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4579 echo "$ac_t""yes" 1>&6
4580 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4581 cat >> confdefs.h
<<EOF
4582 #define $ac_tr_hdr 1
4584 ac_header_dirent
=$ac_hdr; break
4586 echo "$ac_t""no" 1>&6
4589 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4590 if test $ac_header_dirent = dirent.h
; then
4591 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4592 echo "configure:4593: checking for opendir in -ldir" >&5
4593 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 ac_save_LIBS
="$LIBS"
4599 cat > conftest.
$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 /* Override any gcc2 internal prototype to avoid an error. */
4603 /* We use char because int might match the return type of a gcc2
4604 builtin and then its argument prototype would still apply. */
4611 if { (eval echo configure
:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4613 eval "ac_cv_lib_$ac_lib_var=yes"
4615 echo "configure: failed program was:" >&5
4616 cat conftest.
$ac_ext >&5
4618 eval "ac_cv_lib_$ac_lib_var=no"
4621 LIBS
="$ac_save_LIBS"
4624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4628 echo "$ac_t""no" 1>&6
4632 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4633 echo "configure:4634: checking for opendir in -lx" >&5
4634 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 ac_save_LIBS
="$LIBS"
4640 cat > conftest.
$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 /* Override any gcc2 internal prototype to avoid an error. */
4644 /* We use char because int might match the return type of a gcc2
4645 builtin and then its argument prototype would still apply. */
4652 if { (eval echo configure
:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4654 eval "ac_cv_lib_$ac_lib_var=yes"
4656 echo "configure: failed program was:" >&5
4657 cat conftest.
$ac_ext >&5
4659 eval "ac_cv_lib_$ac_lib_var=no"
4662 LIBS
="$ac_save_LIBS"
4665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4669 echo "$ac_t""no" 1>&6
4677 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4678 cat >> confdefs.h
<<\EOF
4679 #define USE_BINARY_FOPEN 1
4684 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4685 echo "configure:4686: checking whether strstr must be declared" >&5
4686 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 cat > conftest.
$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4694 #ifdef HAVE_STRING_H
4697 #ifdef HAVE_STRINGS_H
4698 #include <strings.h>
4701 #ifdef HAVE_STDLIB_H
4704 #ifdef HAVE_UNISTD_H
4708 char *(*pfn) = (char *(*)) strstr
4711 if { (eval echo configure
:4712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4713 bfd_cv_decl_needed_strstr
=no
4715 echo "configure: failed program was:" >&5
4716 cat conftest.
$ac_ext >&5
4718 bfd_cv_decl_needed_strstr
=yes
4723 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4724 if test $bfd_cv_decl_needed_strstr = yes; then
4725 cat >> confdefs.h
<<\EOF
4726 #define NEED_DECLARATION_STRSTR 1
4731 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4732 echo "configure:4733: checking whether free must be declared" >&5
4733 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4734 echo $ac_n "(cached) $ac_c" 1>&6
4736 cat > conftest.
$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4741 #ifdef HAVE_STRING_H
4744 #ifdef HAVE_STRINGS_H
4745 #include <strings.h>
4748 #ifdef HAVE_STDLIB_H
4751 #ifdef HAVE_UNISTD_H
4755 char *(*pfn) = (char *(*)) free
4758 if { (eval echo configure
:4759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4760 bfd_cv_decl_needed_free
=no
4762 echo "configure: failed program was:" >&5
4763 cat conftest.
$ac_ext >&5
4765 bfd_cv_decl_needed_free
=yes
4770 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4771 if test $bfd_cv_decl_needed_free = yes; then
4772 cat >> confdefs.h
<<\EOF
4773 #define NEED_DECLARATION_FREE 1
4778 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4779 echo "configure:4780: checking whether sbrk must be declared" >&5
4780 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4783 cat > conftest.
$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4788 #ifdef HAVE_STRING_H
4791 #ifdef HAVE_STRINGS_H
4792 #include <strings.h>
4795 #ifdef HAVE_STDLIB_H
4798 #ifdef HAVE_UNISTD_H
4802 char *(*pfn) = (char *(*)) sbrk
4805 if { (eval echo configure
:4806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4807 bfd_cv_decl_needed_sbrk
=no
4809 echo "configure: failed program was:" >&5
4810 cat conftest.
$ac_ext >&5
4812 bfd_cv_decl_needed_sbrk
=yes
4817 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4818 if test $bfd_cv_decl_needed_sbrk = yes; then
4819 cat >> confdefs.h
<<\EOF
4820 #define NEED_DECLARATION_SBRK 1
4825 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4826 echo "configure:4827: checking whether getenv must be declared" >&5
4827 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.
$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4835 #ifdef HAVE_STRING_H
4838 #ifdef HAVE_STRINGS_H
4839 #include <strings.h>
4842 #ifdef HAVE_STDLIB_H
4845 #ifdef HAVE_UNISTD_H
4849 char *(*pfn) = (char *(*)) getenv
4852 if { (eval echo configure
:4853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4854 bfd_cv_decl_needed_getenv
=no
4856 echo "configure: failed program was:" >&5
4857 cat conftest.
$ac_ext >&5
4859 bfd_cv_decl_needed_getenv
=yes
4864 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4865 if test $bfd_cv_decl_needed_getenv = yes; then
4866 cat >> confdefs.h
<<\EOF
4867 #define NEED_DECLARATION_GETENV 1
4872 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4873 echo "configure:4874: checking whether environ must be declared" >&5
4874 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 cat > conftest.
$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4882 #ifdef HAVE_STRING_H
4885 #ifdef HAVE_STRINGS_H
4886 #include <strings.h>
4889 #ifdef HAVE_STDLIB_H
4892 #ifdef HAVE_UNISTD_H
4896 char *(*pfn) = (char *(*)) environ
4899 if { (eval echo configure
:4900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4901 bfd_cv_decl_needed_environ
=no
4903 echo "configure: failed program was:" >&5
4904 cat conftest.
$ac_ext >&5
4906 bfd_cv_decl_needed_environ
=yes
4911 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
4912 if test $bfd_cv_decl_needed_environ = yes; then
4913 cat >> confdefs.h
<<\EOF
4914 #define NEED_DECLARATION_ENVIRON 1
4920 # When converting linker scripts into strings for use in emulation
4921 # files, use astring.sed if the compiler supports ANSI string
4922 # concatenation, or ostring.sed otherwise. This is to support the
4923 # broken Microsoft MSVC compiler, which limits the length of string
4924 # constants, while still supporting pre-ANSI compilers which do not
4925 # support string concatenation.
4926 echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
4927 echo "configure:4928: checking whether ANSI C string concatenation works" >&5
4928 if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 cat > conftest.
$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4939 if { (eval echo configure
:4940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4941 ld_cv_string_concatenation
=yes
4943 echo "configure: failed program was:" >&5
4944 cat conftest.
$ac_ext >&5
4946 ld_cv_string_concatenation
=no
4951 echo "$ac_t""$ld_cv_string_concatenation" 1>&6
4952 if test "$ld_cv_string_concatenation" = "yes"; then
4953 STRINGIFY
=astring.
sed
4955 STRINGIFY
=ostring.
sed
4959 # target-specific stuff:
4969 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4971 if test "$targ_alias" = "all"; then
4974 # Canonicalize the secondary target names.
4975 result
=`$ac_config_sub $targ_alias 2>/dev/null`
4976 if test -n "$result"; then
4982 .
${srcdir}/configure.tgt
4984 if test "$targ" = "$target"; then
4988 for i
in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
4989 case " $all_emuls " in
4992 all_emuls
="$all_emuls e${i}.o"
4993 eval result
=\
$tdir_$i
4994 test -z "$result" && result
=$targ_alias
4995 echo tdir_
$i=$result >> tdirs
5000 for i
in $targ_emul $targ_extra_libpath; do
5001 case " $all_libpath " in
5004 if test -z "$all_libpath"; then
5007 all_libpath
="$all_libpath ${i}"
5013 for i
in $targ_extra_ofiles; do
5014 case " $all_emul_extras " in
5017 all_emul_extras
="$all_emul_extras ${i}"
5029 if test x
${all_targets} = xtrue
; then
5030 if test x
${want64} = xtrue
; then
5031 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
5033 EMULATION_OFILES
='$(ALL_EMULATIONS)'
5035 EMUL_EXTRA_OFILES
='$(ALL_EMUL_EXTRA_OFILES)'
5037 EMULATION_OFILES
=$all_emuls
5038 EMUL_EXTRA_OFILES
=$all_emul_extras
5043 EMULATION_LIBPATH
=$all_libpath
5046 if test x
${enable_static} = xno
; then
5047 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
5049 TESTBFDLIB
="../bfd/.libs/libbfd.a"
5053 target_vendor
=${target_vendor=$host_vendor}
5054 case "$target_vendor" in
5055 hp
) EXTRA_SHLIB_EXTENSION
=".sl" ;;
5056 *) EXTRA_SHLIB_EXTENSION
= ;;
5058 if test x
${EXTRA_SHLIB_EXTENSION} != x
; then
5059 cat >> confdefs.h
<<EOF
5060 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
5066 cat > confcache
<<\EOF
5067 # This file is a shell script that caches the results of configure
5068 # tests run on this system so they can be shared between configure
5069 # scripts and configure runs. It is not useful on other systems.
5070 # If it contains results you don't want to keep, you may remove or edit it.
5072 # By default, configure uses ./config.cache as the cache file,
5073 # creating it if it does not exist already. You can give configure
5074 # the --cache-file=FILE option to use a different cache file; that is
5075 # what configure does when it calls configure scripts in
5076 # subdirectories, so they share the cache.
5077 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5078 # config.status only pays attention to the cache file if you give it the
5079 # --recheck option to rerun configure.
5082 # The following way of writing the cache mishandles newlines in values,
5083 # but we know of no workaround that is simple, portable, and efficient.
5084 # So, don't put newlines in cache variables' values.
5085 # Ultrix sh set writes to stderr and can't be redirected directly,
5086 # and sets the high bit in the cache file unless we assign to the vars.
5088 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5090 # `set' does not quote correctly, so add quotes (double-quote substitution
5091 # turns \\\\ into \\, and sed turns \\ into \).
5093 -e "s/'/'\\\\''/g" \
5094 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5097 # `set' quotes correctly as required by POSIX, so do not add quotes.
5098 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5101 if cmp -s $cache_file confcache
; then
5104 if test -w $cache_file; then
5105 echo "updating cache $cache_file"
5106 cat confcache
> $cache_file
5108 echo "not updating unwritable cache $cache_file"
5113 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5115 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5116 # Let make expand exec_prefix.
5117 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5119 # Any assignment to VPATH causes Sun make to only execute
5120 # the first set of double-colon rules, so remove it if not needed.
5121 # If there is a colon in the path, we need to keep it.
5122 if test "x$srcdir" = x.
; then
5123 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5126 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5128 DEFS
=-DHAVE_CONFIG_H
5130 # Without the "./", some shells look in PATH for config.status.
5131 : ${CONFIG_STATUS=./config.status}
5133 echo creating
$CONFIG_STATUS
5134 rm -f $CONFIG_STATUS
5135 cat > $CONFIG_STATUS <<EOF
5137 # Generated automatically by configure.
5138 # Run this file to recreate the current configuration.
5139 # This directory was configured as follows,
5140 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5142 # $0 $ac_configure_args
5144 # Compiler output produced by configure, useful for debugging
5145 # configure, is in ./config.log if it exists.
5147 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5150 case "\$ac_option" in
5151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5152 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5153 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5154 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5155 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5157 -help | --help | --hel | --he | --h)
5158 echo "\$ac_cs_usage"; exit 0 ;;
5159 *) echo "\$ac_cs_usage"; exit 1 ;;
5163 ac_given_srcdir=$srcdir
5164 ac_given_INSTALL="$INSTALL"
5166 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5168 cat >> $CONFIG_STATUS <<EOF
5170 # Protect against being on the right side of a sed subst in config.status.
5171 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5172 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5176 s%@CFLAGS@%$CFLAGS%g
5177 s%@CPPFLAGS@%$CPPFLAGS%g
5178 s%@CXXFLAGS@%$CXXFLAGS%g
5179 s%@FFLAGS@%$FFLAGS%g
5181 s%@LDFLAGS@%$LDFLAGS%g
5183 s%@exec_prefix@%$exec_prefix%g
5184 s%@prefix@%$prefix%g
5185 s%@program_transform_name@%$program_transform_name%g
5186 s%@bindir@%$bindir%g
5187 s%@sbindir@%$sbindir%g
5188 s%@libexecdir@%$libexecdir%g
5189 s%@datadir@%$datadir%g
5190 s%@sysconfdir@%$sysconfdir%g
5191 s%@sharedstatedir@%$sharedstatedir%g
5192 s%@localstatedir@%$localstatedir%g
5193 s%@libdir@%$libdir%g
5194 s%@includedir@%$includedir%g
5195 s%@oldincludedir@%$oldincludedir%g
5196 s%@infodir@%$infodir%g
5197 s%@mandir@%$mandir%g
5199 s%@host_alias@%$host_alias%g
5200 s%@host_cpu@%$host_cpu%g
5201 s%@host_vendor@%$host_vendor%g
5202 s%@host_os@%$host_os%g
5203 s%@target@%$target%g
5204 s%@target_alias@%$target_alias%g
5205 s%@target_cpu@%$target_cpu%g
5206 s%@target_vendor@%$target_vendor%g
5207 s%@target_os@%$target_os%g
5209 s%@build_alias@%$build_alias%g
5210 s%@build_cpu@%$build_cpu%g
5211 s%@build_vendor@%$build_vendor%g
5212 s%@build_os@%$build_os%g
5213 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5214 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5215 s%@INSTALL_DATA@%$INSTALL_DATA%g
5216 s%@PACKAGE@%$PACKAGE%g
5217 s%@VERSION@%$VERSION%g
5218 s%@ACLOCAL@%$ACLOCAL%g
5219 s%@AUTOCONF@%$AUTOCONF%g
5220 s%@AUTOMAKE@%$AUTOMAKE%g
5221 s%@AUTOHEADER@%$AUTOHEADER%g
5222 s%@MAKEINFO@%$MAKEINFO%g
5223 s%@SET_MAKE@%$SET_MAKE%g
5226 s%@OBJEXT@%$OBJEXT%g
5227 s%@EXEEXT@%$EXEEXT%g
5228 s%@RANLIB@%$RANLIB%g
5230 s%@LIBTOOL@%$LIBTOOL%g
5231 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5233 s%@ALLOCA@%$ALLOCA%g
5234 s%@USE_NLS@%$USE_NLS%g
5235 s%@MSGFMT@%$MSGFMT%g
5236 s%@GMSGFMT@%$GMSGFMT%g
5237 s%@XGETTEXT@%$XGETTEXT%g
5238 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5239 s%@CATALOGS@%$CATALOGS%g
5240 s%@CATOBJEXT@%$CATOBJEXT%g
5241 s%@DATADIRNAME@%$DATADIRNAME%g
5242 s%@GMOFILES@%$GMOFILES%g
5243 s%@INSTOBJEXT@%$INSTOBJEXT%g
5244 s%@INTLDEPS@%$INTLDEPS%g
5245 s%@INTLLIBS@%$INTLLIBS%g
5246 s%@INTLOBJS@%$INTLOBJS%g
5247 s%@POFILES@%$POFILES%g
5249 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5251 s%@GT_YES@%$GT_YES%g
5252 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5256 s%@LEXLIB@%$LEXLIB%g
5257 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5258 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5259 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5261 s%@HDEFINES@%$HDEFINES%g
5262 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
5263 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
5264 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
5265 s%@STRINGIFY@%$STRINGIFY%g
5269 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
5270 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
5271 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
5272 s%@TESTBFDLIB@%$TESTBFDLIB%g
5277 cat >> $CONFIG_STATUS <<\EOF
5279 # Split the substitutions into bite-sized pieces for seds with
5280 # small command number limits, like on Digital OSF/1 and HP-UX.
5281 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5282 ac_file
=1 # Number of current file.
5283 ac_beg
=1 # First line for current file.
5284 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5287 while $ac_more_lines; do
5288 if test $ac_beg -gt 1; then
5289 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5291 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5293 if test ! -s conftest.s
$ac_file; then
5295 rm -f conftest.s
$ac_file
5297 if test -z "$ac_sed_cmds"; then
5298 ac_sed_cmds
="sed -f conftest.s$ac_file"
5300 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5302 ac_file
=`expr $ac_file + 1`
5304 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5307 if test -z "$ac_sed_cmds"; then
5312 cat >> $CONFIG_STATUS <<EOF
5314 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5316 cat >> $CONFIG_STATUS <<\EOF
5317 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5320 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5321 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5322 *) ac_file_in
="${ac_file}.in" ;;
5325 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5327 # Remove last slash and all that follows it. Not all systems have dirname.
5328 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5329 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5330 # The file is in a subdirectory.
5331 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5332 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5333 # A "../" for each directory in $ac_dir_suffix.
5334 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5336 ac_dir_suffix
= ac_dots
=
5339 case "$ac_given_srcdir" in
5341 if test -z "$ac_dots"; then top_srcdir
=.
5342 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5343 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5345 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5346 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5349 case "$ac_given_INSTALL" in
5350 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5351 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5354 echo creating
"$ac_file"
5356 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5358 *Makefile
*) ac_comsub
="1i\\
5359 # $configure_input" ;;
5363 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5365 s%@configure_input@%$configure_input%g
5366 s%@srcdir@%$srcdir%g
5367 s%@top_srcdir@%$top_srcdir%g
5368 s%@INSTALL@%$INSTALL%g
5369 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5373 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5374 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5376 # ac_d sets the value in "#define NAME VALUE" lines.
5377 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5378 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5381 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5382 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5383 ac_uB
='\([ ]\)%\1#\2define\3'
5386 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5387 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5388 ac_eB
='$%\1#\2define\3'
5392 if test "${CONFIG_HEADERS+set}" != set; then
5394 cat >> $CONFIG_STATUS <<EOF
5395 CONFIG_HEADERS="config.h:config.in"
5397 cat >> $CONFIG_STATUS <<\EOF
5399 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5402 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5403 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5404 *) ac_file_in
="${ac_file}.in" ;;
5407 echo creating
$ac_file
5409 rm -f conftest.frag conftest.
in conftest.out
5410 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5411 cat $ac_file_inputs > conftest.
in
5415 # Transform confdefs.h into a sed script conftest.vals that substitutes
5416 # the proper values into config.h.in to produce config.h. And first:
5417 # Protect against being on the right side of a sed subst in config.status.
5418 # Protect against being in an unquoted here document in config.status.
5420 cat > conftest.hdr
<<\EOF
5423 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5427 sed -n -f conftest.hdr confdefs.h > conftest.vals
5430 # This sed command replaces #undef with comments. This is necessary, for
5431 # example, in the case of _POSIX_SOURCE, which is predefined and required
5432 # on some systems where configure will not decide to define it.
5433 cat >> conftest.vals <<\EOF
5434 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5437 # Break up conftest.vals because some shells have a limit on
5438 # the size of here documents, and old seds have small limits too.
5443 ac_lines=`grep -c . conftest.vals
`
5444 # grep -c gives empty output for an empty file on some AIX systems.
5445 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5446 # Write a limited-size here document to conftest.frag.
5447 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5448 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5450 sed -f conftest.frag conftest.in > conftest.out
5452 mv conftest.out conftest.in
5454 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5456 mv conftest.tail conftest.vals
5460 cat >> $CONFIG_STATUS <<\EOF
5461 rm -f conftest.frag conftest.h
5462 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5463 cat conftest.in >> conftest.h
5465 if cmp -s $ac_file conftest.h 2>/dev/null; then
5466 echo "$ac_file is unchanged"
5469 # Remove last slash and all that follows it. Not all systems have dirname.
5470 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5471 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5472 # The file is in a subdirectory.
5473 test ! -d "$ac_dir" && mkdir "$ac_dir"
5476 mv conftest.h $ac_file
5481 cat >> $CONFIG_STATUS <<EOF
5485 cat >> $CONFIG_STATUS <<\EOF
5486 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5487 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5490 chmod +x $CONFIG_STATUS
5491 rm -fr confdefs* $ac_clean_files
5492 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1