3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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 build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --enable-targets alternative target configurations"
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
29 --disable-nls do not use Native Language Support"
31 --with-included-gettext use the GNU gettext library included here"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.12.1"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=ldmain.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
545 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
546 if test -f $ac_dir/install-sh
; then
548 ac_install_sh
="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh
; then
552 ac_install_sh
="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess
=$ac_aux_dir/config.guess
560 ac_config_sub
=$ac_aux_dir/config.sub
561 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
564 # Do some error checking and defaulting for the host and target type.
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 # as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
585 # Make sure we can run config.sub.
586 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
594 case "$host_alias" in
598 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601 *) host_alias
=$nonopt ;;
605 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
606 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
615 case "$target_alias" in
618 NONE
) target_alias
=$host_alias ;;
619 *) target_alias
=$nonopt ;;
623 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
624 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
633 case "$build_alias" in
636 NONE
) build_alias
=$host_alias ;;
637 *) build_alias
=$nonopt ;;
641 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
642 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
647 test "$host_alias" != "$target_alias" &&
648 test "$program_prefix$program_suffix$program_transform_name" = \
650 program_prefix
=${target_alias}-
653 # Find a good install program. We prefer a C program (faster),
654 # so one script is as good as another. But avoid the broken or
655 # incompatible versions:
656 # SysV /etc/install, /usr/sbin/install
657 # SunOS /usr/etc/install
660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
663 # ./install, which can be erroneously created by make from ./install.sh.
664 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
665 echo "configure:666: checking for a BSD compatible install" >&5
666 if test -z "$INSTALL"; then
667 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
671 for ac_dir
in $PATH; do
672 # Account for people who put trailing slashes in PATH elements.
674 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
676 # OSF1 and SCO ODT 3.0 have their own names for install.
677 # Don't use installbsd from OSF since it installs stuff as root
679 for ac_prog
in ginstall scoinst
install; do
680 if test -f $ac_dir/$ac_prog; then
681 if test $ac_prog = install &&
682 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
683 # AIX install. It has an incompatible calling convention.
686 ac_cv_path_install
="$ac_dir/$ac_prog -c"
697 if test "${ac_cv_path_install+set}" = set; then
698 INSTALL
="$ac_cv_path_install"
700 # As a last resort, use the slow shell script. We don't cache a
701 # path for INSTALL within a source directory, because that will
702 # break other packages using the cache if that directory is
703 # removed, or if the path is relative.
704 INSTALL
="$ac_install_sh"
707 echo "$ac_t""$INSTALL" 1>&6
709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
710 # It thinks the first close brace ends the variable substitution.
711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
713 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
718 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
719 echo "configure:720: checking whether build environment is sane" >&5
722 echo timestamp
> conftestfile
723 # Do `set' in a subshell so we don't clobber the current shell's
724 # arguments. Must try -L first in case configure is actually a
725 # symlink; some systems play weird games with the mod time of symlinks
726 # (eg FreeBSD returns the mod time of the symlink's containing
729 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
730 if test "$*" = "X"; then
732 set X
`ls -t $srcdir/configure conftestfile`
734 if test "$*" != "X $srcdir/configure conftestfile" \
735 && test "$*" != "X conftestfile $srcdir/configure"; then
737 # If neither matched, then we have a broken ls. This can happen
738 # if, for instance, CONFIG_SHELL is bash and it inherits a
739 # broken ls alias from the environment. This has actually
740 # happened. Such a system could not be considered "sane".
741 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
742 alias in your environment" 1>&2; exit 1; }
745 test "$2" = conftestfile
751 { echo "configure: error: newly created file is older than distributed files!
752 Check your system clock" 1>&2; exit 1; }
755 echo "$ac_t""yes" 1>&6
756 if test "$program_transform_name" = s
,x
,x
,; then
757 program_transform_name
=
759 # Double any \ or $. echo might interpret backslashes.
760 cat <<\EOF_SED
> conftestsed
761 s
,\\,\\\\,g
; s
,\$
,$$
,g
763 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
766 test "$program_prefix" != NONE
&&
767 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
768 # Use a double $ so make ignores it.
769 test "$program_suffix" != NONE
&&
770 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
772 # sed with no file args requires a program.
773 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
775 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
776 echo "configure:777: checking whether ${MAKE-make} sets \${MAKE}" >&5
777 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
778 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 cat > conftestmake
<<\EOF
783 @
echo 'ac_maketemp="${MAKE}"'
785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
786 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
787 if test -n "$ac_maketemp"; then
788 eval ac_cv_prog_make_
${ac_make}_set
=yes
790 eval ac_cv_prog_make_
${ac_make}_set
=no
794 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
795 echo "$ac_t""yes" 1>&6
798 echo "$ac_t""no" 1>&6
799 SET_MAKE
="MAKE=${MAKE-make}"
807 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
808 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
810 cat >> confdefs.h
<<EOF
811 #define PACKAGE "$PACKAGE"
814 cat >> confdefs.h
<<EOF
815 #define VERSION "$VERSION"
820 missing_dir
=`cd $ac_aux_dir && pwd`
821 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
822 echo "configure:823: checking for working aclocal" >&5
823 # Run test in a subshell; some versions of sh will print an error if
824 # an executable is not found, even if stderr is redirected.
825 # Redirect stdin to placate older versions of autoconf. Sigh.
826 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
828 echo "$ac_t""found" 1>&6
830 ACLOCAL
="$missing_dir/missing aclocal"
831 echo "$ac_t""missing" 1>&6
834 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
835 echo "configure:836: checking for working autoconf" >&5
836 # Run test in a subshell; some versions of sh will print an error if
837 # an executable is not found, even if stderr is redirected.
838 # Redirect stdin to placate older versions of autoconf. Sigh.
839 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
841 echo "$ac_t""found" 1>&6
843 AUTOCONF
="$missing_dir/missing autoconf"
844 echo "$ac_t""missing" 1>&6
847 echo $ac_n "checking for working automake""... $ac_c" 1>&6
848 echo "configure:849: checking for working automake" >&5
849 # Run test in a subshell; some versions of sh will print an error if
850 # an executable is not found, even if stderr is redirected.
851 # Redirect stdin to placate older versions of autoconf. Sigh.
852 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
854 echo "$ac_t""found" 1>&6
856 AUTOMAKE
="$missing_dir/missing automake"
857 echo "$ac_t""missing" 1>&6
860 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
861 echo "configure:862: checking for working autoheader" >&5
862 # Run test in a subshell; some versions of sh will print an error if
863 # an executable is not found, even if stderr is redirected.
864 # Redirect stdin to placate older versions of autoconf. Sigh.
865 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
866 AUTOHEADER
=autoheader
867 echo "$ac_t""found" 1>&6
869 AUTOHEADER
="$missing_dir/missing autoheader"
870 echo "$ac_t""missing" 1>&6
873 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
874 echo "configure:875: checking for working makeinfo" >&5
875 # Run test in a subshell; some versions of sh will print an error if
876 # an executable is not found, even if stderr is redirected.
877 # Redirect stdin to placate older versions of autoconf. Sigh.
878 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
880 echo "$ac_t""found" 1>&6
882 MAKEINFO
="$missing_dir/missing makeinfo"
883 echo "$ac_t""missing" 1>&6
888 # Check whether --enable-shared or --disable-shared was given.
889 if test "${enable_shared+set}" = set; then
890 enableval
="$enable_shared"
893 yes) enable_shared
=yes ;;
894 no
) enable_shared
=no
;;
897 # Look at the argument we got. We use all the common list separators.
898 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
899 for pkg
in $enableval; do
900 if test "X$pkg" = "X$p"; then
911 # Check whether --enable-static or --disable-static was given.
912 if test "${enable_static+set}" = set; then
913 enableval
="$enable_static"
916 yes) enable_static
=yes ;;
917 no
) enable_static
=no
;;
920 # Look at the argument we got. We use all the common list separators.
921 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
922 for pkg
in $enableval; do
923 if test "X$pkg" = "X$p"; then
934 # Extract the first word of "ranlib", so it can be a program name with args.
935 set dummy ranlib
; ac_word
=$2
936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
937 echo "configure:938: checking for $ac_word" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 if test -n "$RANLIB"; then
942 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
944 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
945 for ac_dir
in $PATH; do
946 test -z "$ac_dir" && ac_dir
=.
947 if test -f $ac_dir/$ac_word; then
948 ac_cv_prog_RANLIB
="ranlib"
953 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
956 RANLIB
="$ac_cv_prog_RANLIB"
957 if test -n "$RANLIB"; then
958 echo "$ac_t""$RANLIB" 1>&6
960 echo "$ac_t""no" 1>&6
963 # Extract the first word of "gcc", so it can be a program name with args.
964 set dummy gcc
; ac_word
=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 if test -n "$CC"; then
971 ac_cv_prog_CC
="$CC" # Let the user override the test.
973 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
974 for ac_dir
in $PATH; do
975 test -z "$ac_dir" && ac_dir
=.
976 if test -f $ac_dir/$ac_word; then
985 if test -n "$CC"; then
986 echo "$ac_t""$CC" 1>&6
988 echo "$ac_t""no" 1>&6
991 if test -z "$CC"; then
992 # Extract the first word of "cc", so it can be a program name with args.
993 set dummy cc
; ac_word
=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:996: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 if test -n "$CC"; then
1000 ac_cv_prog_CC
="$CC" # Let the user override the test.
1002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1004 for ac_dir
in $PATH; do
1005 test -z "$ac_dir" && ac_dir
=.
1006 if test -f $ac_dir/$ac_word; then
1007 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1008 ac_prog_rejected
=yes
1016 if test $ac_prog_rejected = yes; then
1017 # We found a bogon in the path, so make sure we never use it.
1018 set dummy
$ac_cv_prog_CC
1020 if test $# -gt 0; then
1021 # We chose a different compiler from the bogus one.
1022 # However, it has the same basename, so the bogon will be chosen
1023 # first if we set CC to just the basename; use the full file name.
1025 set dummy
"$ac_dir/$ac_word" "$@"
1033 if test -n "$CC"; then
1034 echo "$ac_t""$CC" 1>&6
1036 echo "$ac_t""no" 1>&6
1039 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1042 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1043 echo "configure:1044: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1047 ac_cpp
='$CPP $CPPFLAGS'
1048 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1049 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1050 cross_compiling
=$ac_cv_prog_cc_cross
1052 cat > conftest.
$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1057 if { (eval echo configure
:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1058 ac_cv_prog_cc_works
=yes
1059 # If we can't run a trivial program, we are probably using a cross compiler.
1060 if (.
/conftest
; exit) 2>/dev
/null
; then
1061 ac_cv_prog_cc_cross
=no
1063 ac_cv_prog_cc_cross
=yes
1066 echo "configure: failed program was:" >&5
1067 cat conftest.
$ac_ext >&5
1068 ac_cv_prog_cc_works
=no
1072 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1073 if test $ac_cv_prog_cc_works = no
; then
1074 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1076 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1077 echo "configure:1078: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1078 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1079 cross_compiling
=$ac_cv_prog_cc_cross
1081 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether we are using GNU C" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.c
<<EOF
1091 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1098 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1100 if test $ac_cv_prog_gcc = yes; then
1102 ac_test_CFLAGS
="${CFLAGS+set}"
1103 ac_save_CFLAGS
="$CFLAGS"
1105 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1106 echo "configure:1107: checking whether ${CC-cc} accepts -g" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 echo 'void f(){}' > conftest.c
1111 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1120 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1121 if test "$ac_test_CFLAGS" = set; then
1122 CFLAGS
="$ac_save_CFLAGS"
1123 elif test $ac_cv_prog_cc_g = yes; then
1130 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1133 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1134 if test "${with_gnu_ld+set}" = set; then
1135 withval
="$with_gnu_ld"
1136 test "$withval" = no || with_gnu_ld
=yes
1143 if test "$ac_cv_prog_gcc" = yes; then
1144 # Check if gcc -print-prog-name=ld gives a path.
1145 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1146 echo "configure:1147: checking for ld used by GCC" >&5
1147 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1149 # Accept absolute paths.
1151 test -z "$LD" && LD
="$ac_prog"
1154 # If it fails, then pretend we aren't using GCC.
1158 # If it is relative, then search for the first ld in PATH.
1162 elif test "$with_gnu_ld" = yes; then
1163 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1164 echo "configure:1165: checking for GNU ld" >&5
1166 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1167 echo "configure:1168: checking for non-GNU ld" >&5
1169 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 if test -z "$LD"; then
1173 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1174 for ac_dir
in $PATH; do
1175 test -z "$ac_dir" && ac_dir
=.
1176 if test -f "$ac_dir/$ac_prog"; then
1177 ac_cv_path_LD
="$ac_dir/$ac_prog"
1178 # Check to see if the program is GNU ld. I'd rather use --version,
1179 # but apparently some GNU ld's only accept -v.
1180 # Break only if it was the GNU/non-GNU ld that we prefer.
1181 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1182 test "$with_gnu_ld" != no
&& break
1184 test "$with_gnu_ld" != yes && break
1190 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1195 if test -n "$LD"; then
1196 echo "$ac_t""$LD" 1>&6
1198 echo "$ac_t""no" 1>&6
1200 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1202 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1203 echo "configure:1204: checking if the linker ($LD) is GNU ld" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1208 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1209 ac_cv_prog_gnu_ld
=yes
1211 ac_cv_prog_gnu_ld
=no
1215 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1218 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1219 echo "configure:1220: checking for BSD-compatible nm" >&5
1220 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -z "$NM"; then
1224 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1225 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1226 test -z "$ac_dir" && ac_dir
=.
1227 if test -f $ac_dir/nm
; then
1228 # Check to see if the nm accepts a BSD-compat flag.
1229 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1230 # nm: unknown option "B" ignored
1231 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1232 ac_cv_path_NM
="$ac_dir/nm -B"
1233 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1234 ac_cv_path_NM
="$ac_dir/nm -p"
1236 ac_cv_path_NM
="$ac_dir/nm"
1242 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1244 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1249 echo "$ac_t""$NM" 1>&6
1252 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1253 echo "configure:1254: checking whether ln -s works" >&5
1254 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1258 if ln -s X conftestdata
2>/dev
/null
1261 ac_cv_prog_LN_S
="ln -s"
1266 LN_S
="$ac_cv_prog_LN_S"
1267 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1268 echo "$ac_t""yes" 1>&6
1270 echo "$ac_t""no" 1>&6
1273 if test $host != $build; then
1274 ac_tool_prefix
=${host_alias}-
1279 # Always use our own libtool.
1280 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1282 # Check for any special flags to pass to ltconfig.
1284 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1285 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1286 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1287 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1288 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1290 # Some flags need to be propagated to the compiler or linker for good
1294 # Find out which ABI we are using.
1295 echo '#line 1296 "configure"' > conftest.
$ac_ext
1296 if { (eval echo configure
:1297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1297 case "`/usr/bin/file conftest.o`" in
1313 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1314 CFLAGS
="$CFLAGS -belf"
1318 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1319 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321 echo "configure:1322: checking for $ac_word" >&5
1322 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1325 if test -n "$DLLTOOL"; then
1326 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1328 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1329 for ac_dir
in $PATH; do
1330 test -z "$ac_dir" && ac_dir
=.
1331 if test -f $ac_dir/$ac_word; then
1332 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1339 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1340 if test -n "$DLLTOOL"; then
1341 echo "$ac_t""$DLLTOOL" 1>&6
1343 echo "$ac_t""no" 1>&6
1347 if test -z "$ac_cv_prog_DLLTOOL"; then
1348 if test -n "$ac_tool_prefix"; then
1349 # Extract the first word of "dlltool", so it can be a program name with args.
1350 set dummy dlltool
; ac_word
=$2
1351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_word" >&5
1353 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 if test -n "$DLLTOOL"; then
1357 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1359 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1360 for ac_dir
in $PATH; do
1361 test -z "$ac_dir" && ac_dir
=.
1362 if test -f $ac_dir/$ac_word; then
1363 ac_cv_prog_DLLTOOL
="dlltool"
1368 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1371 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1372 if test -n "$DLLTOOL"; then
1373 echo "$ac_t""$DLLTOOL" 1>&6
1375 echo "$ac_t""no" 1>&6
1383 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1384 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test -n "$AS"; then
1391 ac_cv_prog_AS
="$AS" # Let the user override the test.
1393 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1394 for ac_dir
in $PATH; do
1395 test -z "$ac_dir" && ac_dir
=.
1396 if test -f $ac_dir/$ac_word; then
1397 ac_cv_prog_AS
="${ac_tool_prefix}as"
1405 if test -n "$AS"; then
1406 echo "$ac_t""$AS" 1>&6
1408 echo "$ac_t""no" 1>&6
1412 if test -z "$ac_cv_prog_AS"; then
1413 if test -n "$ac_tool_prefix"; then
1414 # Extract the first word of "as", so it can be a program name with args.
1415 set dummy as
; ac_word
=$2
1416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1417 echo "configure:1418: checking for $ac_word" >&5
1418 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 if test -n "$AS"; then
1422 ac_cv_prog_AS
="$AS" # Let the user override the test.
1424 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1425 for ac_dir
in $PATH; do
1426 test -z "$ac_dir" && ac_dir
=.
1427 if test -f $ac_dir/$ac_word; then
1433 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1437 if test -n "$AS"; then
1438 echo "$ac_t""$AS" 1>&6
1440 echo "$ac_t""no" 1>&6
1453 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1454 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1455 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1456 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1457 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1458 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1459 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1462 # Check whether --enable-targets or --disable-targets was given.
1463 if test "${enable_targets+set}" = set; then
1464 enableval
="$enable_targets"
1465 case "${enableval}" in
1466 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1468 no
) enable_targets
= ;;
1469 *) enable_targets
=$enableval ;;
1472 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1473 if test "${enable_64_bit_bfd+set}" = set; then
1474 enableval
="$enable_64_bit_bfd"
1475 case "${enableval}" in
1478 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1488 if test -z "$target" ; then
1489 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1491 if test -z "$host" ; then
1492 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1495 # host-specific stuff:
1497 # Extract the first word of "gcc", so it can be a program name with args.
1498 set dummy gcc
; ac_word
=$2
1499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1500 echo "configure:1501: checking for $ac_word" >&5
1501 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1504 if test -n "$CC"; then
1505 ac_cv_prog_CC
="$CC" # Let the user override the test.
1507 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1508 for ac_dir
in $PATH; do
1509 test -z "$ac_dir" && ac_dir
=.
1510 if test -f $ac_dir/$ac_word; then
1519 if test -n "$CC"; then
1520 echo "$ac_t""$CC" 1>&6
1522 echo "$ac_t""no" 1>&6
1525 if test -z "$CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527 set dummy cc
; ac_word
=$2
1528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1529 echo "configure:1530: checking for $ac_word" >&5
1530 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC
="$CC" # Let the user override the test.
1536 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1538 for ac_dir
in $PATH; do
1539 test -z "$ac_dir" && ac_dir
=.
1540 if test -f $ac_dir/$ac_word; then
1541 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1542 ac_prog_rejected
=yes
1550 if test $ac_prog_rejected = yes; then
1551 # We found a bogon in the path, so make sure we never use it.
1552 set dummy
$ac_cv_prog_CC
1554 if test $# -gt 0; then
1555 # We chose a different compiler from the bogus one.
1556 # However, it has the same basename, so the bogon will be chosen
1557 # first if we set CC to just the basename; use the full file name.
1559 set dummy
"$ac_dir/$ac_word" "$@"
1567 if test -n "$CC"; then
1568 echo "$ac_t""$CC" 1>&6
1570 echo "$ac_t""no" 1>&6
1573 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1576 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1577 echo "configure:1578: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1581 ac_cpp
='$CPP $CPPFLAGS'
1582 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1583 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1584 cross_compiling
=$ac_cv_prog_cc_cross
1586 cat > conftest.
$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1591 if { (eval echo configure
:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1592 ac_cv_prog_cc_works
=yes
1593 # If we can't run a trivial program, we are probably using a cross compiler.
1594 if (.
/conftest
; exit) 2>/dev
/null
; then
1595 ac_cv_prog_cc_cross
=no
1597 ac_cv_prog_cc_cross
=yes
1600 echo "configure: failed program was:" >&5
1601 cat conftest.
$ac_ext >&5
1602 ac_cv_prog_cc_works
=no
1606 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1607 if test $ac_cv_prog_cc_works = no
; then
1608 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1610 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1611 echo "configure:1612: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1612 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1613 cross_compiling
=$ac_cv_prog_cc_cross
1615 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1616 echo "configure:1617: checking whether we are using GNU C" >&5
1617 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 cat > conftest.c
<<EOF
1625 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1632 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1634 if test $ac_cv_prog_gcc = yes; then
1636 ac_test_CFLAGS
="${CFLAGS+set}"
1637 ac_save_CFLAGS
="$CFLAGS"
1639 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1640 echo "configure:1641: checking whether ${CC-cc} accepts -g" >&5
1641 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 echo 'void f(){}' > conftest.c
1645 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1654 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1655 if test "$ac_test_CFLAGS" = set; then
1656 CFLAGS
="$ac_save_CFLAGS"
1657 elif test $ac_cv_prog_cc_g = yes; then
1664 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1668 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1672 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1673 echo "configure:1674: checking how to run the C preprocessor" >&5
1674 # On Suns, sometimes $CPP names a directory.
1675 if test -n "$CPP" && test -d "$CPP"; then
1678 if test -z "$CPP"; then
1679 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 # This must be in double quotes, not single quotes, because CPP may get
1683 # substituted into the Makefile and "${CC-cc}" will confuse make.
1685 # On the NeXT, cc -E runs the code through the compiler's parser,
1686 # not just through cpp.
1687 cat > conftest.
$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694 { (eval echo configure
:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1695 ac_err
=`grep -v '^ *+' conftest.out`
1696 if test -z "$ac_err"; then
1700 echo "configure: failed program was:" >&5
1701 cat conftest.
$ac_ext >&5
1703 CPP
="${CC-cc} -E -traditional-cpp"
1704 cat > conftest.
$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1710 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711 { (eval echo configure
:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712 ac_err
=`grep -v '^ *+' conftest.out`
1713 if test -z "$ac_err"; then
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1725 ac_cv_prog_CPP
="$CPP"
1727 CPP
="$ac_cv_prog_CPP"
1729 ac_cv_prog_CPP
="$CPP"
1731 echo "$ac_t""$CPP" 1>&6
1733 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1734 echo "configure:1735: checking for POSIXized ISC" >&5
1735 if test -d /etc
/conf
/kconfig.d
&&
1736 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1738 echo "$ac_t""yes" 1>&6
1739 ISC
=yes # If later tests want to check for ISC.
1740 cat >> confdefs.h
<<\EOF
1741 #define _POSIX_SOURCE 1
1744 if test "$GCC" = yes; then
1750 echo "$ac_t""no" 1>&6
1754 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1755 echo "configure:1756: checking for ANSI C header files" >&5
1756 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1759 cat > conftest.
$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1767 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1768 { (eval echo configure
:1769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1769 ac_err
=`grep -v '^ *+' conftest.out`
1770 if test -z "$ac_err"; then
1772 ac_cv_header_stdc
=yes
1775 echo "configure: failed program was:" >&5
1776 cat conftest.
$ac_ext >&5
1778 ac_cv_header_stdc
=no
1782 if test $ac_cv_header_stdc = yes; then
1783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1784 cat > conftest.
$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1790 egrep "memchr" >/dev
/null
2>&1; then
1794 ac_cv_header_stdc
=no
1800 if test $ac_cv_header_stdc = yes; then
1801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1802 cat > conftest.
$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1808 egrep "free" >/dev
/null
2>&1; then
1812 ac_cv_header_stdc
=no
1818 if test $ac_cv_header_stdc = yes; then
1819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1820 if test "$cross_compiling" = yes; then
1823 cat > conftest.
$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1827 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1828 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1830 int main () { int i; for (i = 0; i < 256; i++)
1831 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1835 if { (eval echo configure
:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1839 echo "configure: failed program was:" >&5
1840 cat conftest.
$ac_ext >&5
1842 ac_cv_header_stdc
=no
1850 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1851 if test $ac_cv_header_stdc = yes; then
1852 cat >> confdefs.h
<<\EOF
1853 #define STDC_HEADERS 1
1858 echo $ac_n "checking for working const""... $ac_c" 1>&6
1859 echo "configure:1860: checking for working const" >&5
1860 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.
$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1869 /* Ultrix mips cc rejects this. */
1870 typedef int charset[2]; const charset x;
1871 /* SunOS 4.1.1 cc rejects this. */
1872 char const *const *ccp;
1874 /* NEC SVR4.0.2 mips cc rejects this. */
1875 struct point {int x, y;};
1876 static struct point const zero = {0,0};
1877 /* AIX XL C 1.02.0.0 rejects this.
1878 It does not let you subtract one const X* pointer from another in an arm
1879 of an if-expression whose if-part is not a constant expression */
1880 const char *g = "string";
1881 ccp = &g + (g ? g-g : 0);
1882 /* HPUX 7.0 cc rejects these. */
1885 ccp = (char const *const *) p;
1886 { /* SCO 3.2v4 cc rejects this. */
1888 char const *s = 0 ? (char *) 0 : (char const *) 0;
1892 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1894 const int *foo = &x[0];
1897 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1898 typedef const int *iptr;
1902 { /* AIX XL C 1.02.0.0 rejects this saying
1903 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1904 struct s { int j; const int *ap[3]; };
1905 struct s *b; b->j = 5;
1907 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1913 if { (eval echo configure
:1914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1917 echo "configure: failed program was:" >&5
1918 cat conftest.
$ac_ext >&5
1925 echo "$ac_t""$ac_cv_c_const" 1>&6
1926 if test $ac_cv_c_const = no
; then
1927 cat >> confdefs.h
<<\EOF
1933 echo $ac_n "checking for inline""... $ac_c" 1>&6
1934 echo "configure:1935: checking for inline" >&5
1935 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1939 for ac_kw
in inline __inline__ __inline
; do
1940 cat > conftest.
$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1948 if { (eval echo configure
:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1950 ac_cv_c_inline
=$ac_kw; break
1952 echo "configure: failed program was:" >&5
1953 cat conftest.
$ac_ext >&5
1960 echo "$ac_t""$ac_cv_c_inline" 1>&6
1961 case "$ac_cv_c_inline" in
1963 no
) cat >> confdefs.h
<<\EOF
1967 *) cat >> confdefs.h
<<EOF
1968 #define inline $ac_cv_c_inline
1973 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1974 echo "configure:1975: checking for off_t" >&5
1975 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.
$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981 #include <sys/types.h>
1987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1988 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1990 ac_cv_type_off_t
=yes
1998 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1999 if test $ac_cv_type_off_t = no
; then
2000 cat >> confdefs.h
<<\EOF
2006 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2007 echo "configure:2008: checking for size_t" >&5
2008 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 cat > conftest.
$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2014 #include <sys/types.h>
2020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2021 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2023 ac_cv_type_size_t
=yes
2026 ac_cv_type_size_t
=no
2031 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2032 if test $ac_cv_type_size_t = no
; then
2033 cat >> confdefs.h
<<\EOF
2034 #define size_t unsigned
2039 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2040 # for constant arguments. Useless!
2041 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2042 echo "configure:2043: checking for working alloca.h" >&5
2043 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.
$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2051 char *p = alloca(2 * sizeof(int));
2054 if { (eval echo configure
:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2056 ac_cv_header_alloca_h
=yes
2058 echo "configure: failed program was:" >&5
2059 cat conftest.
$ac_ext >&5
2061 ac_cv_header_alloca_h
=no
2066 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2067 if test $ac_cv_header_alloca_h = yes; then
2068 cat >> confdefs.h
<<\EOF
2069 #define HAVE_ALLOCA_H 1
2074 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2075 echo "configure:2076: checking for alloca" >&5
2076 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 cat > conftest.
$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2084 # define alloca __builtin_alloca
2087 # include <alloca.h>
2092 # ifndef alloca /* predefined by HP cc +Olibcalls */
2100 char *p = (char *) alloca(1);
2103 if { (eval echo configure
:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2105 ac_cv_func_alloca_works
=yes
2107 echo "configure: failed program was:" >&5
2108 cat conftest.
$ac_ext >&5
2110 ac_cv_func_alloca_works
=no
2115 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2116 if test $ac_cv_func_alloca_works = yes; then
2117 cat >> confdefs.h
<<\EOF
2118 #define HAVE_ALLOCA 1
2123 if test $ac_cv_func_alloca_works = no
; then
2124 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2125 # that cause trouble. Some versions do not even contain alloca or
2126 # contain a buggy version. If you still want to use their alloca,
2127 # use ar to extract alloca.o from them instead of compiling alloca.c.
2129 cat >> confdefs.h
<<\EOF
2134 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2135 echo "configure:2136: checking whether alloca needs Cray hooks" >&5
2136 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 cat > conftest.
$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2142 #if defined(CRAY) && ! defined(CRAY2)
2149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2150 egrep "webecray" >/dev
/null
2>&1; then
2161 echo "$ac_t""$ac_cv_os_cray" 1>&6
2162 if test $ac_cv_os_cray = yes; then
2163 for ac_func
in _getb67 GETB67 getb67
; do
2164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_func" >&5
2166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 /* System header to define __stub macros and hopefully few prototypes,
2173 which can conflict with char $ac_func(); below. */
2175 /* Override any gcc2 internal prototype to avoid an error. */
2176 /* We use char because int might match the return type of a gcc2
2177 builtin and then its argument prototype would still apply. */
2182 /* The GNU C library defines this for functions which it implements
2183 to always fail with ENOSYS. Some functions are actually named
2184 something starting with __ and the normal name is an alias. */
2185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2193 if { (eval echo configure
:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2195 eval "ac_cv_func_$ac_func=yes"
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2200 eval "ac_cv_func_$ac_func=no"
2205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2207 cat >> confdefs.h
<<EOF
2208 #define CRAY_STACKSEG_END $ac_func
2213 echo "$ac_t""no" 1>&6
2219 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2220 echo "configure:2221: checking stack direction for C alloca" >&5
2221 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 if test "$cross_compiling" = yes; then
2225 ac_cv_c_stack_direction
=0
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 find_stack_direction ()
2232 static char *addr = 0;
2237 return find_stack_direction ();
2240 return (&dummy > addr) ? 1 : -1;
2244 exit (find_stack_direction() < 0);
2247 if { (eval echo configure
:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2249 ac_cv_c_stack_direction
=1
2251 echo "configure: failed program was:" >&5
2252 cat conftest.
$ac_ext >&5
2254 ac_cv_c_stack_direction
=-1
2261 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2262 cat >> confdefs.h
<<EOF
2263 #define STACK_DIRECTION $ac_cv_c_stack_direction
2268 for ac_hdr
in unistd.h
2270 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_hdr" >&5
2273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 cat > conftest.
$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2281 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2282 { (eval echo configure
:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2283 ac_err
=`grep -v '^ *+' conftest.out`
2284 if test -z "$ac_err"; then
2286 eval "ac_cv_header_$ac_safe=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.
$ac_ext >&5
2292 eval "ac_cv_header_$ac_safe=no"
2296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2297 echo "$ac_t""yes" 1>&6
2298 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2299 cat >> confdefs.h
<<EOF
2300 #define $ac_tr_hdr 1
2304 echo "$ac_t""no" 1>&6
2308 for ac_func
in getpagesize
2310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2311 echo "configure:2312: checking for $ac_func" >&5
2312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2315 cat > conftest.
$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2318 /* System header to define __stub macros and hopefully few prototypes,
2319 which can conflict with char $ac_func(); below. */
2321 /* Override any gcc2 internal prototype to avoid an error. */
2322 /* We use char because int might match the return type of a gcc2
2323 builtin and then its argument prototype would still apply. */
2328 /* The GNU C library defines this for functions which it implements
2329 to always fail with ENOSYS. Some functions are actually named
2330 something starting with __ and the normal name is an alias. */
2331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2339 if { (eval echo configure
:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2341 eval "ac_cv_func_$ac_func=yes"
2343 echo "configure: failed program was:" >&5
2344 cat conftest.
$ac_ext >&5
2346 eval "ac_cv_func_$ac_func=no"
2351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2353 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2354 cat >> confdefs.h
<<EOF
2355 #define $ac_tr_func 1
2359 echo "$ac_t""no" 1>&6
2363 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2364 echo "configure:2365: checking for working mmap" >&5
2365 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 if test "$cross_compiling" = yes; then
2369 ac_cv_func_mmap_fixed_mapped
=no
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2375 /* Thanks to Mike Haertel and Jim Avera for this test.
2376 Here is a matrix of mmap possibilities:
2377 mmap private not fixed
2378 mmap private fixed at somewhere currently unmapped
2379 mmap private fixed at somewhere already mapped
2380 mmap shared not fixed
2381 mmap shared fixed at somewhere currently unmapped
2382 mmap shared fixed at somewhere already mapped
2383 For private mappings, we should verify that changes cannot be read()
2384 back from the file, nor mmap's back from the file at a different
2385 address. (There have been systems where private was not correctly
2386 implemented like the infamous i386 svr4.0, and systems where the
2387 VM page cache was not coherent with the filesystem buffer cache
2388 like early versions of FreeBSD and possibly contemporary NetBSD.)
2389 For shared mappings, we should conversely verify that changes get
2390 propogated back to all the places they're supposed to be.
2392 Grep wants private fixed already mapped.
2393 The main things grep needs to know about mmap are:
2394 * does it exist and is it safe to write into the mmap'd area
2395 * how to use it (BSD variants) */
2396 #include <sys/types.h>
2398 #include <sys/mman.h>
2400 /* This mess was copied from the GNU getpagesize.h. */
2401 #ifndef HAVE_GETPAGESIZE
2402 # ifdef HAVE_UNISTD_H
2403 # include <unistd.h>
2406 /* Assume that all systems that can run configure have sys/param.h. */
2407 # ifndef HAVE_SYS_PARAM_H
2408 # define HAVE_SYS_PARAM_H 1
2411 # ifdef _SC_PAGESIZE
2412 # define getpagesize() sysconf(_SC_PAGESIZE)
2413 # else /* no _SC_PAGESIZE */
2414 # ifdef HAVE_SYS_PARAM_H
2415 # include <sys/param.h>
2416 # ifdef EXEC_PAGESIZE
2417 # define getpagesize() EXEC_PAGESIZE
2418 # else /* no EXEC_PAGESIZE */
2420 # define getpagesize() NBPG * CLSIZE
2423 # endif /* no CLSIZE */
2424 # else /* no NBPG */
2426 # define getpagesize() NBPC
2427 # else /* no NBPC */
2429 # define getpagesize() PAGESIZE
2430 # endif /* PAGESIZE */
2431 # endif /* no NBPC */
2432 # endif /* no NBPG */
2433 # endif /* no EXEC_PAGESIZE */
2434 # else /* no HAVE_SYS_PARAM_H */
2435 # define getpagesize() 8192 /* punt totally */
2436 # endif /* no HAVE_SYS_PARAM_H */
2437 # endif /* no _SC_PAGESIZE */
2439 #endif /* no HAVE_GETPAGESIZE */
2442 extern "C" { void *malloc(unsigned); }
2450 char *data, *data2, *data3;
2454 pagesize = getpagesize();
2457 * First, make a file with some known garbage in it.
2459 data = malloc(pagesize);
2462 for (i = 0; i < pagesize; ++i)
2463 *(data + i) = rand();
2465 fd = creat("conftestmmap", 0600);
2468 if (write(fd, data, pagesize) != pagesize)
2473 * Next, try to mmap the file at a fixed address which
2474 * already has something else allocated at it. If we can,
2475 * also make sure that we see the same garbage.
2477 fd = open("conftestmmap", O_RDWR);
2480 data2 = malloc(2 * pagesize);
2483 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2484 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2485 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2487 for (i = 0; i < pagesize; ++i)
2488 if (*(data + i) != *(data2 + i))
2492 * Finally, make sure that changes to the mapped area
2493 * do not percolate back to the file as seen by read().
2494 * (This is a bug on some variants of i386 svr4.0.)
2496 for (i = 0; i < pagesize; ++i)
2497 *(data2 + i) = *(data2 + i) + 1;
2498 data3 = malloc(pagesize);
2501 if (read(fd, data3, pagesize) != pagesize)
2503 for (i = 0; i < pagesize; ++i)
2504 if (*(data + i) != *(data3 + i))
2507 unlink("conftestmmap");
2512 if { (eval echo configure
:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2514 ac_cv_func_mmap_fixed_mapped
=yes
2516 echo "configure: failed program was:" >&5
2517 cat conftest.
$ac_ext >&5
2519 ac_cv_func_mmap_fixed_mapped
=no
2526 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2527 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2528 cat >> confdefs.h
<<\EOF
2535 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2536 unistd.h values.h sys
/param.h
2538 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_hdr" >&5
2541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.
$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2549 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure
:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err
=`grep -v '^ *+' conftest.out`
2552 if test -z "$ac_err"; then
2554 eval "ac_cv_header_$ac_safe=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.
$ac_ext >&5
2560 eval "ac_cv_header_$ac_safe=no"
2564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2565 echo "$ac_t""yes" 1>&6
2566 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2567 cat >> confdefs.h
<<EOF
2568 #define $ac_tr_hdr 1
2572 echo "$ac_t""no" 1>&6
2576 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2577 __argz_count __argz_stringify __argz_next
2579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_func" >&5
2581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.
$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 /* System header to define __stub macros and hopefully few prototypes,
2588 which can conflict with char $ac_func(); below. */
2590 /* Override any gcc2 internal prototype to avoid an error. */
2591 /* We use char because int might match the return type of a gcc2
2592 builtin and then its argument prototype would still apply. */
2597 /* The GNU C library defines this for functions which it implements
2598 to always fail with ENOSYS. Some functions are actually named
2599 something starting with __ and the normal name is an alias. */
2600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2608 if { (eval echo configure
:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2610 eval "ac_cv_func_$ac_func=yes"
2612 echo "configure: failed program was:" >&5
2613 cat conftest.
$ac_ext >&5
2615 eval "ac_cv_func_$ac_func=no"
2620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2623 cat >> confdefs.h
<<EOF
2624 #define $ac_tr_func 1
2628 echo "$ac_t""no" 1>&6
2633 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2634 for ac_func
in stpcpy
2636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2637 echo "configure:2638: checking for $ac_func" >&5
2638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.
$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 /* System header to define __stub macros and hopefully few prototypes,
2645 which can conflict with char $ac_func(); below. */
2647 /* Override any gcc2 internal prototype to avoid an error. */
2648 /* We use char because int might match the return type of a gcc2
2649 builtin and then its argument prototype would still apply. */
2654 /* The GNU C library defines this for functions which it implements
2655 to always fail with ENOSYS. Some functions are actually named
2656 something starting with __ and the normal name is an alias. */
2657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2665 if { (eval echo configure
:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2667 eval "ac_cv_func_$ac_func=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.
$ac_ext >&5
2672 eval "ac_cv_func_$ac_func=no"
2677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2678 echo "$ac_t""yes" 1>&6
2679 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2680 cat >> confdefs.h
<<EOF
2681 #define $ac_tr_func 1
2685 echo "$ac_t""no" 1>&6
2690 if test "${ac_cv_func_stpcpy}" = "yes"; then
2691 cat >> confdefs.h
<<\EOF
2692 #define HAVE_STPCPY 1
2697 if test $ac_cv_header_locale_h = yes; then
2698 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2699 echo "configure:2700: checking for LC_MESSAGES" >&5
2700 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 cat > conftest.
$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2711 if { (eval echo configure
:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2713 am_cv_val_LC_MESSAGES
=yes
2715 echo "configure: failed program was:" >&5
2716 cat conftest.
$ac_ext >&5
2718 am_cv_val_LC_MESSAGES
=no
2723 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2724 if test $am_cv_val_LC_MESSAGES = yes; then
2725 cat >> confdefs.h
<<\EOF
2726 #define HAVE_LC_MESSAGES 1
2731 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2732 echo "configure:2733: checking whether NLS is requested" >&5
2733 # Check whether --enable-nls or --disable-nls was given.
2734 if test "${enable_nls+set}" = set; then
2735 enableval
="$enable_nls"
2741 echo "$ac_t""$USE_NLS" 1>&6
2744 USE_INCLUDED_LIBINTL
=no
2746 if test "$USE_NLS" = "yes"; then
2747 cat >> confdefs.h
<<\EOF
2748 #define ENABLE_NLS 1
2751 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2752 echo "configure:2753: checking whether included gettext is requested" >&5
2753 # Check whether --with-included-gettext or --without-included-gettext was given.
2754 if test "${with_included_gettext+set}" = set; then
2755 withval
="$with_included_gettext"
2756 nls_cv_force_use_gnu_gettext
=$withval
2758 nls_cv_force_use_gnu_gettext
=no
2761 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2763 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2764 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2766 nls_cv_header_libgt
=
2769 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2771 echo "configure:2772: checking for libintl.h" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.
$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 #include <libintl.h>
2780 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure
:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err
=`grep -v '^ *+' conftest.out`
2783 if test -z "$ac_err"; then
2785 eval "ac_cv_header_$ac_safe=yes"
2788 echo "configure: failed program was:" >&5
2789 cat conftest.
$ac_ext >&5
2791 eval "ac_cv_header_$ac_safe=no"
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2798 echo "configure:2799: checking for gettext in libc" >&5
2799 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 cat > conftest.
$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2805 #include <libintl.h>
2807 return (int) gettext ("")
2810 if { (eval echo configure
:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2812 gt_cv_func_gettext_libc
=yes
2814 echo "configure: failed program was:" >&5
2815 cat conftest.
$ac_ext >&5
2817 gt_cv_func_gettext_libc
=no
2822 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2824 if test "$gt_cv_func_gettext_libc" != "yes"; then
2825 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2826 echo "configure:2827: checking for bindtextdomain in -lintl" >&5
2827 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 ac_save_LIBS
="$LIBS"
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 /* Override any gcc2 internal prototype to avoid an error. */
2837 /* We use char because int might match the return type of a gcc2
2838 builtin and then its argument prototype would still apply. */
2839 char bindtextdomain();
2845 if { (eval echo configure
:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2847 eval "ac_cv_lib_$ac_lib_var=yes"
2849 echo "configure: failed program was:" >&5
2850 cat conftest.
$ac_ext >&5
2852 eval "ac_cv_lib_$ac_lib_var=no"
2855 LIBS
="$ac_save_LIBS"
2858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2859 echo "$ac_t""yes" 1>&6
2860 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2861 echo "configure:2862: checking for gettext in libintl" >&5
2862 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2865 cat > conftest.
$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2870 return (int) gettext ("")
2873 if { (eval echo configure
:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2875 gt_cv_func_gettext_libintl
=yes
2877 echo "configure: failed program was:" >&5
2878 cat conftest.
$ac_ext >&5
2880 gt_cv_func_gettext_libintl
=no
2885 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2887 echo "$ac_t""no" 1>&6
2892 if test "$gt_cv_func_gettext_libc" = "yes" \
2893 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2894 cat >> confdefs.h
<<\EOF
2895 #define HAVE_GETTEXT 1
2898 # Extract the first word of "msgfmt", so it can be a program name with args.
2899 set dummy msgfmt
; ac_word
=$2
2900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_word" >&5
2902 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2907 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2910 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2911 for ac_dir
in $PATH; do
2912 test -z "$ac_dir" && ac_dir
=.
2913 if test -f $ac_dir/$ac_word; then
2914 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2915 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2921 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2925 MSGFMT
="$ac_cv_path_MSGFMT"
2926 if test -n "$MSGFMT"; then
2927 echo "$ac_t""$MSGFMT" 1>&6
2929 echo "$ac_t""no" 1>&6
2931 if test "$MSGFMT" != "no"; then
2932 for ac_func
in dcgettext
2934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2935 echo "configure:2936: checking for $ac_func" >&5
2936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 cat > conftest.
$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 /* System header to define __stub macros and hopefully few prototypes,
2943 which can conflict with char $ac_func(); below. */
2945 /* Override any gcc2 internal prototype to avoid an error. */
2946 /* We use char because int might match the return type of a gcc2
2947 builtin and then its argument prototype would still apply. */
2952 /* The GNU C library defines this for functions which it implements
2953 to always fail with ENOSYS. Some functions are actually named
2954 something starting with __ and the normal name is an alias. */
2955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2963 if { (eval echo configure
:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2965 eval "ac_cv_func_$ac_func=yes"
2967 echo "configure: failed program was:" >&5
2968 cat conftest.
$ac_ext >&5
2970 eval "ac_cv_func_$ac_func=no"
2975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2976 echo "$ac_t""yes" 1>&6
2977 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2978 cat >> confdefs.h
<<EOF
2979 #define $ac_tr_func 1
2983 echo "$ac_t""no" 1>&6
2987 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2988 set dummy gmsgfmt
; ac_word
=$2
2989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2990 echo "configure:2991: checking for $ac_word" >&5
2991 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2996 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2999 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3003 for ac_dir
in $PATH; do
3004 test -z "$ac_dir" && ac_dir
=.
3005 if test -f $ac_dir/$ac_word; then
3006 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3011 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3015 GMSGFMT
="$ac_cv_path_GMSGFMT"
3016 if test -n "$GMSGFMT"; then
3017 echo "$ac_t""$GMSGFMT" 1>&6
3019 echo "$ac_t""no" 1>&6
3022 # Extract the first word of "xgettext", so it can be a program name with args.
3023 set dummy xgettext
; ac_word
=$2
3024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3025 echo "configure:3026: checking for $ac_word" >&5
3026 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3031 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3034 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3035 for ac_dir
in $PATH; do
3036 test -z "$ac_dir" && ac_dir
=.
3037 if test -f $ac_dir/$ac_word; then
3038 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3039 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3045 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3049 XGETTEXT
="$ac_cv_path_XGETTEXT"
3050 if test -n "$XGETTEXT"; then
3051 echo "$ac_t""$XGETTEXT" 1>&6
3053 echo "$ac_t""no" 1>&6
3056 cat > conftest.
$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3061 extern int _nl_msg_cat_cntr;
3062 return _nl_msg_cat_cntr
3065 if { (eval echo configure
:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3070 echo "configure: failed program was:" >&5
3071 cat conftest.
$ac_ext >&5
3082 echo "$ac_t""no" 1>&6
3087 if test "$CATOBJEXT" = "NONE"; then
3088 nls_cv_use_gnu_gettext
=yes
3092 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3093 INTLOBJS
="\$(GETTOBJS)"
3094 # Extract the first word of "msgfmt", so it can be a program name with args.
3095 set dummy msgfmt
; ac_word
=$2
3096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3097 echo "configure:3098: checking for $ac_word" >&5
3098 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3103 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3106 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3107 for ac_dir
in $PATH; do
3108 test -z "$ac_dir" && ac_dir
=.
3109 if test -f $ac_dir/$ac_word; then
3110 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3111 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3117 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3121 MSGFMT
="$ac_cv_path_MSGFMT"
3122 if test -n "$MSGFMT"; then
3123 echo "$ac_t""$MSGFMT" 1>&6
3125 echo "$ac_t""no" 1>&6
3128 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3129 set dummy gmsgfmt
; ac_word
=$2
3130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3131 echo "configure:3132: checking for $ac_word" >&5
3132 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3137 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3140 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3144 for ac_dir
in $PATH; do
3145 test -z "$ac_dir" && ac_dir
=.
3146 if test -f $ac_dir/$ac_word; then
3147 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3152 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3156 GMSGFMT
="$ac_cv_path_GMSGFMT"
3157 if test -n "$GMSGFMT"; then
3158 echo "$ac_t""$GMSGFMT" 1>&6
3160 echo "$ac_t""no" 1>&6
3163 # Extract the first word of "xgettext", so it can be a program name with args.
3164 set dummy xgettext
; ac_word
=$2
3165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3166 echo "configure:3167: checking for $ac_word" >&5
3167 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3172 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3175 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3176 for ac_dir
in $PATH; do
3177 test -z "$ac_dir" && ac_dir
=.
3178 if test -f $ac_dir/$ac_word; then
3179 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3180 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3186 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3190 XGETTEXT
="$ac_cv_path_XGETTEXT"
3191 if test -n "$XGETTEXT"; then
3192 echo "$ac_t""$XGETTEXT" 1>&6
3194 echo "$ac_t""no" 1>&6
3198 USE_INCLUDED_LIBINTL
=yes
3202 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3204 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3205 nls_cv_header_intl
=libintl.h
3206 nls_cv_header_libgt
=libgettext.h
3209 if test "$XGETTEXT" != ":"; then
3210 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3213 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3218 # We need to process the po/ directory.
3222 nls_cv_header_intl
=libintl.h
3223 nls_cv_header_libgt
=libgettext.h
3226 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3227 # because some of the sources are only built for this goal.
3228 if test "$PACKAGE" = gettext; then
3230 USE_INCLUDED_LIBINTL
=yes
3233 for lang
in $ALL_LINGUAS; do
3234 GMOFILES
="$GMOFILES $lang.gmo"
3235 POFILES
="$POFILES $lang.po"
3251 if test "x$CATOBJEXT" != "x"; then
3252 if test "x$ALL_LINGUAS" = "x"; then
3255 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3256 echo "configure:3257: checking for catalogs to be installed" >&5
3258 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3259 case "$ALL_LINGUAS" in
3260 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3263 LINGUAS
=$NEW_LINGUAS
3264 echo "$ac_t""$LINGUAS" 1>&6
3267 if test -n "$LINGUAS"; then
3268 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3272 if test $ac_cv_header_locale_h = yes; then
3273 INCLUDE_LOCALE_H
="#include <locale.h>"
3276 /* The system does not provide the header <locale.h>. Take care yourself. */"
3280 if test -f $srcdir/po2tbl.
sed.
in; then
3281 if test "$CATOBJEXT" = ".cat"; then
3282 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3283 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3284 echo "configure:3285: checking for linux/version.h" >&5
3285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.
$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 #include <linux/version.h>
3293 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure
:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err
=`grep -v '^ *+' conftest.out`
3296 if test -z "$ac_err"; then
3298 eval "ac_cv_header_$ac_safe=yes"
3301 echo "configure: failed program was:" >&5
3302 cat conftest.
$ac_ext >&5
3304 eval "ac_cv_header_$ac_safe=no"
3308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3312 echo "$ac_t""no" 1>&6
3317 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3319 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3320 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3323 if test "$PACKAGE" = "gettext"; then
3333 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3339 if test -d $srcdir/po
; then
3340 test -d po || mkdir po
3341 if test "x$srcdir" != "x."; then
3342 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3343 posrcprefix
="$srcdir/"
3345 posrcprefix
="../$srcdir/"
3351 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3352 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3356 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
3357 echo "configure:3358: checking for Cygwin32 environment" >&5
3358 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3361 cat > conftest.
$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3366 return __CYGWIN32__;
3369 if { (eval echo configure
:3370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3373 echo "configure: failed program was:" >&5
3374 cat conftest.
$ac_ext >&5
3382 echo "$ac_t""$am_cv_cygwin32" 1>&6
3384 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
3385 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
3386 echo "configure:3387: checking for Mingw32 environment" >&5
3387 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3390 cat > conftest.
$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3398 if { (eval echo configure
:3399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3402 echo "configure: failed program was:" >&5
3403 cat conftest.
$ac_ext >&5
3411 echo "$ac_t""$am_cv_mingw32" 1>&6
3413 test "$am_cv_mingw32" = yes && MINGW32
=yes
3416 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3417 echo "configure:3418: checking for executable suffix" >&5
3418 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
3424 cat > am_c_test.c
<< 'EOF'
3426 /* Nothing needed here
*/
3429 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
3431 for file in am_c_test.
*; do
3435 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
3441 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
3444 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
3445 echo "$ac_t""${am_cv_exeext}" 1>&6
3448 for ac_prog
in 'bison -y' byacc
3450 # Extract the first word of "$ac_prog", so it can be a program name with args.
3451 set dummy
$ac_prog; ac_word
=$2
3452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3453 echo "configure:3454: checking for $ac_word" >&5
3454 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 if test -n "$YACC"; then
3458 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3460 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3461 for ac_dir
in $PATH; do
3462 test -z "$ac_dir" && ac_dir
=.
3463 if test -f $ac_dir/$ac_word; then
3464 ac_cv_prog_YACC
="$ac_prog"
3471 YACC
="$ac_cv_prog_YACC"
3472 if test -n "$YACC"; then
3473 echo "$ac_t""$YACC" 1>&6
3475 echo "$ac_t""no" 1>&6
3478 test -n "$YACC" && break
3480 test -n "$YACC" || YACC
="yacc"
3482 missing_dir
=`cd $ac_aux_dir && pwd`
3483 for ac_prog
in flex
lex
3485 # Extract the first word of "$ac_prog", so it can be a program name with args.
3486 set dummy
$ac_prog; ac_word
=$2
3487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3488 echo "configure:3489: checking for $ac_word" >&5
3489 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 if test -n "$LEX"; then
3493 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3495 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3496 for ac_dir
in $PATH; do
3497 test -z "$ac_dir" && ac_dir
=.
3498 if test -f $ac_dir/$ac_word; then
3499 ac_cv_prog_LEX
="$ac_prog"
3506 LEX
="$ac_cv_prog_LEX"
3507 if test -n "$LEX"; then
3508 echo "$ac_t""$LEX" 1>&6
3510 echo "$ac_t""no" 1>&6
3513 test -n "$LEX" && break
3515 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3517 # Extract the first word of "flex", so it can be a program name with args.
3518 set dummy flex
; ac_word
=$2
3519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3520 echo "configure:3521: checking for $ac_word" >&5
3521 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 if test -n "$LEX"; then
3525 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3527 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3528 for ac_dir
in $PATH; do
3529 test -z "$ac_dir" && ac_dir
=.
3530 if test -f $ac_dir/$ac_word; then
3531 ac_cv_prog_LEX
="flex"
3536 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3539 LEX
="$ac_cv_prog_LEX"
3540 if test -n "$LEX"; then
3541 echo "$ac_t""$LEX" 1>&6
3543 echo "$ac_t""no" 1>&6
3546 if test -z "$LEXLIB"
3552 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3553 echo "configure:3554: checking for yywrap in -l$ac_lib" >&5
3554 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3558 ac_save_LIBS
="$LIBS"
3559 LIBS
="-l$ac_lib $LIBS"
3560 cat > conftest.
$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3572 if { (eval echo configure
:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3574 eval "ac_cv_lib_$ac_lib_var=yes"
3576 echo "configure: failed program was:" >&5
3577 cat conftest.
$ac_ext >&5
3579 eval "ac_cv_lib_$ac_lib_var=no"
3582 LIBS
="$ac_save_LIBS"
3585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3589 echo "$ac_t""no" 1>&6
3594 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3595 echo "configure:3596: checking lex output file root" >&5
3596 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 # The minimal lex program is just a single line: %%. But some broken lexes
3600 # (Solaris, I think it was) want two %% lines, so accommodate them.
3603 if test -f lex.yy.c
; then
3604 ac_cv_prog_lex_root
=lex.yy
3605 elif test -f lexyy.c
; then
3606 ac_cv_prog_lex_root
=lexyy
3608 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3612 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3613 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3615 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3616 echo "configure:3617: checking whether yytext is a pointer" >&5
3617 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 # POSIX says lex can declare yytext either as a pointer or an array; the
3621 # default is implementation-dependent. Figure out which it is, since
3622 # not all implementations provide the %pointer and %array declarations.
3623 ac_cv_prog_lex_yytext_pointer
=no
3624 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3625 ac_save_LIBS
="$LIBS"
3626 LIBS
="$LIBS $LEXLIB"
3627 cat > conftest.
$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 `cat $LEX_OUTPUT_ROOT.c`
3635 if { (eval echo configure
:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3637 ac_cv_prog_lex_yytext_pointer
=yes
3639 echo "configure: failed program was:" >&5
3640 cat conftest.
$ac_ext >&5
3643 LIBS
="$ac_save_LIBS"
3644 rm -f "${LEX_OUTPUT_ROOT}.c"
3648 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3649 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3650 cat >> confdefs.h
<<\EOF
3651 #define YYTEXT_POINTER 1
3657 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3658 echo "configure:3659: checking whether to enable maintainer-specific portions of Makefiles" >&5
3659 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3660 if test "${enable_maintainer_mode+set}" = set; then
3661 enableval
="$enable_maintainer_mode"
3662 USE_MAINTAINER_MODE
=$enableval
3664 USE_MAINTAINER_MODE
=no
3667 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3668 if test $USE_MAINTAINER_MODE = yes; then
3676 .
${srcdir}/configure.
host
3683 for ac_hdr
in string.h
strings.h stdlib.h unistd.h
3685 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3687 echo "configure:3688: checking for $ac_hdr" >&5
3688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.
$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3696 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3697 { (eval echo configure
:3698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3698 ac_err
=`grep -v '^ *+' conftest.out`
3699 if test -z "$ac_err"; then
3701 eval "ac_cv_header_$ac_safe=yes"
3704 echo "configure: failed program was:" >&5
3705 cat conftest.
$ac_ext >&5
3707 eval "ac_cv_header_$ac_safe=no"
3711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3712 echo "$ac_t""yes" 1>&6
3713 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3714 cat >> confdefs.h
<<EOF
3715 #define $ac_tr_hdr 1
3719 echo "$ac_t""no" 1>&6
3725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3726 echo "configure:3727: checking for $ac_func" >&5
3727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 cat > conftest.
$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 /* System header to define __stub macros and hopefully few prototypes,
3734 which can conflict with char $ac_func(); below. */
3736 /* Override any gcc2 internal prototype to avoid an error. */
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3743 /* The GNU C library defines this for functions which it implements
3744 to always fail with ENOSYS. Some functions are actually named
3745 something starting with __ and the normal name is an alias. */
3746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3754 if { (eval echo configure
:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3756 eval "ac_cv_func_$ac_func=yes"
3758 echo "configure: failed program was:" >&5
3759 cat conftest.
$ac_ext >&5
3761 eval "ac_cv_func_$ac_func=no"
3766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3767 echo "$ac_t""yes" 1>&6
3768 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3769 cat >> confdefs.h
<<EOF
3770 #define $ac_tr_func 1
3774 echo "$ac_t""no" 1>&6
3779 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3781 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3782 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3783 echo "configure:3784: checking for $ac_hdr that defines DIR" >&5
3784 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3787 cat > conftest.
$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 #include <sys/types.h>
3796 if { (eval echo configure
:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3798 eval "ac_cv_header_dirent_$ac_safe=yes"
3800 echo "configure: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 eval "ac_cv_header_dirent_$ac_safe=no"
3807 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3809 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3810 cat >> confdefs.h
<<EOF
3811 #define $ac_tr_hdr 1
3813 ac_header_dirent
=$ac_hdr; break
3815 echo "$ac_t""no" 1>&6
3818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3819 if test $ac_header_dirent = dirent.h
; then
3820 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3821 echo "configure:3822: checking for opendir in -ldir" >&5
3822 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 ac_save_LIBS
="$LIBS"
3828 cat > conftest.
$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 /* Override any gcc2 internal prototype to avoid an error. */
3832 /* We use char because int might match the return type of a gcc2
3833 builtin and then its argument prototype would still apply. */
3840 if { (eval echo configure
:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3842 eval "ac_cv_lib_$ac_lib_var=yes"
3844 echo "configure: failed program was:" >&5
3845 cat conftest.
$ac_ext >&5
3847 eval "ac_cv_lib_$ac_lib_var=no"
3850 LIBS
="$ac_save_LIBS"
3853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3857 echo "$ac_t""no" 1>&6
3861 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3862 echo "configure:3863: checking for opendir in -lx" >&5
3863 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3867 ac_save_LIBS
="$LIBS"
3869 cat > conftest.
$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 /* Override any gcc2 internal prototype to avoid an error. */
3873 /* We use char because int might match the return type of a gcc2
3874 builtin and then its argument prototype would still apply. */
3881 if { (eval echo configure
:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3883 eval "ac_cv_lib_$ac_lib_var=yes"
3885 echo "configure: failed program was:" >&5
3886 cat conftest.
$ac_ext >&5
3888 eval "ac_cv_lib_$ac_lib_var=no"
3891 LIBS
="$ac_save_LIBS"
3894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3898 echo "$ac_t""no" 1>&6
3906 i
[345]86-*-msdos* | i
[345]86-*-go32* | i
[345]86-*-mingw32* |
*-*-cygwin32* |
*-*-windows)
3907 cat >> confdefs.h
<<\EOF
3908 #define USE_BINARY_FOPEN 1
3913 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
3914 echo "configure:3915: checking whether strstr must be declared" >&5
3915 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3918 cat > conftest.
$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3923 #ifdef HAVE_STRING_H
3926 #ifdef HAVE_STRINGS_H
3927 #include <strings.h>
3930 #ifdef HAVE_STDLIB_H
3933 #ifdef HAVE_UNISTD_H
3937 char *(*pfn) = (char *(*)) strstr
3940 if { (eval echo configure
:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3942 bfd_cv_decl_needed_strstr
=no
3944 echo "configure: failed program was:" >&5
3945 cat conftest.
$ac_ext >&5
3947 bfd_cv_decl_needed_strstr
=yes
3952 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
3953 if test $bfd_cv_decl_needed_strstr = yes; then
3954 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3955 cat >> confdefs.h
<<EOF
3956 #define $bfd_tr_decl 1
3961 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3962 echo "configure:3963: checking whether free must be declared" >&5
3963 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 cat > conftest.
$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3971 #ifdef HAVE_STRING_H
3974 #ifdef HAVE_STRINGS_H
3975 #include <strings.h>
3978 #ifdef HAVE_STDLIB_H
3981 #ifdef HAVE_UNISTD_H
3985 char *(*pfn) = (char *(*)) free
3988 if { (eval echo configure
:3989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3990 bfd_cv_decl_needed_free
=no
3992 echo "configure: failed program was:" >&5
3993 cat conftest.
$ac_ext >&5
3995 bfd_cv_decl_needed_free
=yes
4000 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4001 if test $bfd_cv_decl_needed_free = yes; then
4002 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4003 cat >> confdefs.h
<<EOF
4004 #define $bfd_tr_decl 1
4009 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4010 echo "configure:4011: checking whether sbrk must be declared" >&5
4011 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4014 cat > conftest.
$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4019 #ifdef HAVE_STRING_H
4022 #ifdef HAVE_STRINGS_H
4023 #include <strings.h>
4026 #ifdef HAVE_STDLIB_H
4029 #ifdef HAVE_UNISTD_H
4033 char *(*pfn) = (char *(*)) sbrk
4036 if { (eval echo configure
:4037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4038 bfd_cv_decl_needed_sbrk
=no
4040 echo "configure: failed program was:" >&5
4041 cat conftest.
$ac_ext >&5
4043 bfd_cv_decl_needed_sbrk
=yes
4048 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4049 if test $bfd_cv_decl_needed_sbrk = yes; then
4050 bfd_tr_decl
=NEED_DECLARATION_
`echo sbrk | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4051 cat >> confdefs.h
<<EOF
4052 #define $bfd_tr_decl 1
4057 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4058 echo "configure:4059: checking whether getenv must be declared" >&5
4059 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 cat > conftest.
$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4067 #ifdef HAVE_STRING_H
4070 #ifdef HAVE_STRINGS_H
4071 #include <strings.h>
4074 #ifdef HAVE_STDLIB_H
4077 #ifdef HAVE_UNISTD_H
4081 char *(*pfn) = (char *(*)) getenv
4084 if { (eval echo configure
:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 bfd_cv_decl_needed_getenv
=no
4088 echo "configure: failed program was:" >&5
4089 cat conftest.
$ac_ext >&5
4091 bfd_cv_decl_needed_getenv
=yes
4096 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4097 if test $bfd_cv_decl_needed_getenv = yes; then
4098 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4099 cat >> confdefs.h
<<EOF
4100 #define $bfd_tr_decl 1
4106 # target-specific stuff:
4114 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4116 if test "$targ_alias" = "all"; then
4119 # Canonicalize the secondary target names.
4120 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ_alias 2>/dev/null`
4121 if test -n "$result"; then
4127 .
${srcdir}/configure.tgt
4129 if test "$targ" = "$target"; then
4133 for i
in $targ_emul $targ_extra_emuls; do
4134 case " $all_emuls " in
4137 all_emuls
="$all_emuls e${i}.o"
4138 eval result
=\
$tdir_$i
4139 test -z "$result" && result
=$targ_alias
4140 echo tdir_
$i=$result >> tdirs
4152 if test x
${all_targets} = xtrue
; then
4153 if test x
${want64} = xtrue
; then
4154 EMULATION_OFILES
='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
4156 EMULATION_OFILES
='$(ALL_EMULATIONS)'
4159 EMULATION_OFILES
=$all_emuls
4163 if test x
${enable_static} = xno
; then
4164 TESTBFDLIB
="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
4166 TESTBFDLIB
="../bfd/.libs/libbfd.a"
4171 cat > confcache
<<\EOF
4172 # This file is a shell script that caches the results of configure
4173 # tests run on this system so they can be shared between configure
4174 # scripts and configure runs. It is not useful on other systems.
4175 # If it contains results you don't want to keep, you may remove or edit it.
4177 # By default, configure uses ./config.cache as the cache file,
4178 # creating it if it does not exist already. You can give configure
4179 # the --cache-file=FILE option to use a different cache file; that is
4180 # what configure does when it calls configure scripts in
4181 # subdirectories, so they share the cache.
4182 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4183 # config.status only pays attention to the cache file if you give it the
4184 # --recheck option to rerun configure.
4187 # The following way of writing the cache mishandles newlines in values,
4188 # but we know of no workaround that is simple, portable, and efficient.
4189 # So, don't put newlines in cache variables' values.
4190 # Ultrix sh set writes to stderr and can't be redirected directly,
4191 # and sets the high bit in the cache file unless we assign to the vars.
4193 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
4195 # `set' does not quote correctly, so add quotes (double-quote substitution
4196 # turns \\\\ into \\, and sed turns \\ into \).
4198 -e "s/'/'\\\\''/g" \
4199 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4202 # `set' quotes correctly as required by POSIX, so do not add quotes.
4203 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4206 if cmp -s $cache_file confcache
; then
4209 if test -w $cache_file; then
4210 echo "updating cache $cache_file"
4211 cat confcache
> $cache_file
4213 echo "not updating unwritable cache $cache_file"
4218 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4220 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4221 # Let make expand exec_prefix.
4222 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4224 # Any assignment to VPATH causes Sun make to only execute
4225 # the first set of double-colon rules, so remove it if not needed.
4226 # If there is a colon in the path, we need to keep it.
4227 if test "x$srcdir" = x.
; then
4228 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4231 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4233 DEFS
=-DHAVE_CONFIG_H
4235 # Without the "./", some shells look in PATH for config.status.
4236 : ${CONFIG_STATUS=./config.status}
4238 echo creating
$CONFIG_STATUS
4239 rm -f $CONFIG_STATUS
4240 cat > $CONFIG_STATUS <<EOF
4242 # Generated automatically by configure.
4243 # Run this file to recreate the current configuration.
4244 # This directory was configured as follows,
4245 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4247 # $0 $ac_configure_args
4249 # Compiler output produced by configure, useful for debugging
4250 # configure, is in ./config.log if it exists.
4252 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4255 case "\$ac_option" in
4256 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4257 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4258 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4259 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4260 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
4262 -help | --help | --hel | --he | --h)
4263 echo "\$ac_cs_usage"; exit 0 ;;
4264 *) echo "\$ac_cs_usage"; exit 1 ;;
4268 ac_given_srcdir=$srcdir
4269 ac_given_INSTALL="$INSTALL"
4271 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4273 cat >> $CONFIG_STATUS <<EOF
4275 # Protect against being on the right side of a sed subst in config.status.
4276 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4277 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4281 s%@CFLAGS@%$CFLAGS%g
4282 s%@CPPFLAGS@%$CPPFLAGS%g
4283 s%@CXXFLAGS@%$CXXFLAGS%g
4285 s%@LDFLAGS@%$LDFLAGS%g
4287 s%@exec_prefix@%$exec_prefix%g
4288 s%@prefix@%$prefix%g
4289 s%@program_transform_name@%$program_transform_name%g
4290 s%@bindir@%$bindir%g
4291 s%@sbindir@%$sbindir%g
4292 s%@libexecdir@%$libexecdir%g
4293 s%@datadir@%$datadir%g
4294 s%@sysconfdir@%$sysconfdir%g
4295 s%@sharedstatedir@%$sharedstatedir%g
4296 s%@localstatedir@%$localstatedir%g
4297 s%@libdir@%$libdir%g
4298 s%@includedir@%$includedir%g
4299 s%@oldincludedir@%$oldincludedir%g
4300 s%@infodir@%$infodir%g
4301 s%@mandir@%$mandir%g
4303 s%@host_alias@%$host_alias%g
4304 s%@host_cpu@%$host_cpu%g
4305 s%@host_vendor@%$host_vendor%g
4306 s%@host_os@%$host_os%g
4307 s%@target@%$target%g
4308 s%@target_alias@%$target_alias%g
4309 s%@target_cpu@%$target_cpu%g
4310 s%@target_vendor@%$target_vendor%g
4311 s%@target_os@%$target_os%g
4313 s%@build_alias@%$build_alias%g
4314 s%@build_cpu@%$build_cpu%g
4315 s%@build_vendor@%$build_vendor%g
4316 s%@build_os@%$build_os%g
4317 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4318 s%@INSTALL_DATA@%$INSTALL_DATA%g
4319 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4320 s%@PACKAGE@%$PACKAGE%g
4321 s%@VERSION@%$VERSION%g
4322 s%@ACLOCAL@%$ACLOCAL%g
4323 s%@AUTOCONF@%$AUTOCONF%g
4324 s%@AUTOMAKE@%$AUTOMAKE%g
4325 s%@AUTOHEADER@%$AUTOHEADER%g
4326 s%@MAKEINFO@%$MAKEINFO%g
4327 s%@SET_MAKE@%$SET_MAKE%g
4328 s%@RANLIB@%$RANLIB%g
4333 s%@LIBTOOL@%$LIBTOOL%g
4334 s%@DLLTOOL@%$DLLTOOL%g
4337 s%@ALLOCA@%$ALLOCA%g
4338 s%@USE_NLS@%$USE_NLS%g
4339 s%@MSGFMT@%$MSGFMT%g
4340 s%@GMSGFMT@%$GMSGFMT%g
4341 s%@XGETTEXT@%$XGETTEXT%g
4342 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4343 s%@CATALOGS@%$CATALOGS%g
4344 s%@CATOBJEXT@%$CATOBJEXT%g
4345 s%@DATADIRNAME@%$DATADIRNAME%g
4346 s%@GMOFILES@%$GMOFILES%g
4347 s%@INSTOBJEXT@%$INSTOBJEXT%g
4348 s%@INTLDEPS@%$INTLDEPS%g
4349 s%@INTLLIBS@%$INTLLIBS%g
4350 s%@INTLOBJS@%$INTLOBJS%g
4351 s%@POFILES@%$POFILES%g
4353 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4355 s%@GT_YES@%$GT_YES%g
4356 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4358 s%@EXEEXT@%$EXEEXT%g
4361 s%@LEXLIB@%$LEXLIB%g
4362 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4364 s%@HDEFINES@%$HDEFINES%g
4365 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
4366 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
4367 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
4371 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
4372 s%@TESTBFDLIB@%$TESTBFDLIB%g
4377 cat >> $CONFIG_STATUS <<\EOF
4379 # Split the substitutions into bite-sized pieces for seds with
4380 # small command number limits, like on Digital OSF/1 and HP-UX.
4381 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4382 ac_file
=1 # Number of current file.
4383 ac_beg
=1 # First line for current file.
4384 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4387 while $ac_more_lines; do
4388 if test $ac_beg -gt 1; then
4389 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4391 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4393 if test ! -s conftest.s
$ac_file; then
4395 rm -f conftest.s
$ac_file
4397 if test -z "$ac_sed_cmds"; then
4398 ac_sed_cmds
="sed -f conftest.s$ac_file"
4400 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4402 ac_file
=`expr $ac_file + 1`
4404 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4407 if test -z "$ac_sed_cmds"; then
4412 cat >> $CONFIG_STATUS <<EOF
4414 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4416 cat >> $CONFIG_STATUS <<\EOF
4417 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4420 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4421 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4422 *) ac_file_in
="${ac_file}.in" ;;
4425 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4427 # Remove last slash and all that follows it. Not all systems have dirname.
4428 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4429 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4430 # The file is in a subdirectory.
4431 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4432 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4433 # A "../" for each directory in $ac_dir_suffix.
4434 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4436 ac_dir_suffix
= ac_dots
=
4439 case "$ac_given_srcdir" in
4441 if test -z "$ac_dots"; then top_srcdir
=.
4442 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4443 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4445 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4446 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4449 case "$ac_given_INSTALL" in
4450 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4451 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4454 echo creating
"$ac_file"
4456 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4458 *Makefile
*) ac_comsub
="1i\\
4459 # $configure_input" ;;
4463 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4465 s%@configure_input@%$configure_input%g
4466 s%@srcdir@%$srcdir%g
4467 s%@top_srcdir@%$top_srcdir%g
4468 s%@INSTALL@%$INSTALL%g
4469 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4473 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4474 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4476 # ac_d sets the value in "#define NAME VALUE" lines.
4477 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4478 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4481 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4482 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4483 ac_uB
='\([ ]\)%\1#\2define\3'
4486 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4487 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4488 ac_eB
='$%\1#\2define\3'
4492 if test "${CONFIG_HEADERS+set}" != set; then
4494 cat >> $CONFIG_STATUS <<EOF
4495 CONFIG_HEADERS="config.h:config.in"
4497 cat >> $CONFIG_STATUS <<\EOF
4499 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4500 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4502 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4503 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4504 *) ac_file_in
="${ac_file}.in" ;;
4507 echo creating
$ac_file
4509 rm -f conftest.frag conftest.
in conftest.out
4510 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4511 cat $ac_file_inputs > conftest.
in
4515 # Transform confdefs.h into a sed script conftest.vals that substitutes
4516 # the proper values into config.h.in to produce config.h. And first:
4517 # Protect against being on the right side of a sed subst in config.status.
4518 # Protect against being in an unquoted here document in config.status.
4520 cat > conftest.hdr
<<\EOF
4523 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4527 sed -n -f conftest.hdr confdefs.h > conftest.vals
4530 # This sed command replaces #undef with comments. This is necessary, for
4531 # example, in the case of _POSIX_SOURCE, which is predefined and required
4532 # on some systems where configure will not decide to define it.
4533 cat >> conftest.vals <<\EOF
4534 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4537 # Break up conftest.vals because some shells have a limit on
4538 # the size of here documents, and old seds have small limits too.
4543 ac_lines=`grep -c . conftest.vals
`
4544 # grep -c gives empty output for an empty file on some AIX systems.
4545 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4546 # Write a limited-size here document to conftest.frag.
4547 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4548 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4550 sed -f conftest.frag conftest.in > conftest.out
4552 mv conftest.out conftest.in
4554 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4556 mv conftest.tail conftest.vals
4560 cat >> $CONFIG_STATUS <<\EOF
4561 rm -f conftest.frag conftest.h
4562 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4563 cat conftest.in >> conftest.h
4565 if cmp -s $ac_file conftest.h 2>/dev/null; then
4566 echo "$ac_file is unchanged"
4569 # Remove last slash and all that follows it. Not all systems have dirname.
4570 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4571 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4572 # The file is in a subdirectory.
4573 test ! -d "$ac_dir" && mkdir "$ac_dir"
4576 mv conftest.h $ac_file
4581 cat >> $CONFIG_STATUS <<EOF
4585 cat >> $CONFIG_STATUS <<\EOF
4586 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4587 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4590 chmod +x $CONFIG_STATUS
4591 rm -fr confdefs* $ac_clean_files
4592 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1