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-commonbfdlib build shared BFD/opcodes/libiberty library"
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.
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-commonbfdlib or --disable-commonbfdlib was given.
1473 if test "${enable_commonbfdlib+set}" = set; then
1474 enableval
="$enable_commonbfdlib"
1475 case "${enableval}" in
1476 yes) commonbfdlib
=true
;;
1477 no
) commonbfdlib
=false
;;
1478 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1486 if test -z "$target" ; then
1487 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1489 if test -z "$host" ; then
1490 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1493 # Extract the first word of "gcc", so it can be a program name with args.
1494 set dummy gcc
; ac_word
=$2
1495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1496 echo "configure:1497: checking for $ac_word" >&5
1497 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 if test -n "$CC"; then
1501 ac_cv_prog_CC
="$CC" # Let the user override the test.
1503 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1504 for ac_dir
in $PATH; do
1505 test -z "$ac_dir" && ac_dir
=.
1506 if test -f $ac_dir/$ac_word; then
1515 if test -n "$CC"; then
1516 echo "$ac_t""$CC" 1>&6
1518 echo "$ac_t""no" 1>&6
1521 if test -z "$CC"; then
1522 # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc
; ac_word
=$2
1524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1525 echo "configure:1526: checking for $ac_word" >&5
1526 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC
="$CC" # Let the user override the test.
1532 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1534 for ac_dir
in $PATH; do
1535 test -z "$ac_dir" && ac_dir
=.
1536 if test -f $ac_dir/$ac_word; then
1537 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1538 ac_prog_rejected
=yes
1546 if test $ac_prog_rejected = yes; then
1547 # We found a bogon in the path, so make sure we never use it.
1548 set dummy
$ac_cv_prog_CC
1550 if test $# -gt 0; then
1551 # We chose a different compiler from the bogus one.
1552 # However, it has the same basename, so the bogon will be chosen
1553 # first if we set CC to just the basename; use the full file name.
1555 set dummy
"$ac_dir/$ac_word" "$@"
1563 if test -n "$CC"; then
1564 echo "$ac_t""$CC" 1>&6
1566 echo "$ac_t""no" 1>&6
1569 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1572 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1573 echo "configure:1574: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1577 ac_cpp
='$CPP $CPPFLAGS'
1578 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1579 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1580 cross_compiling
=$ac_cv_prog_cc_cross
1582 cat > conftest.
$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1587 if { (eval echo configure
:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1588 ac_cv_prog_cc_works
=yes
1589 # If we can't run a trivial program, we are probably using a cross compiler.
1590 if (.
/conftest
; exit) 2>/dev
/null
; then
1591 ac_cv_prog_cc_cross
=no
1593 ac_cv_prog_cc_cross
=yes
1596 echo "configure: failed program was:" >&5
1597 cat conftest.
$ac_ext >&5
1598 ac_cv_prog_cc_works
=no
1602 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1603 if test $ac_cv_prog_cc_works = no
; then
1604 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1606 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1607 echo "configure:1608: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1608 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1609 cross_compiling
=$ac_cv_prog_cc_cross
1611 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1612 echo "configure:1613: checking whether we are using GNU C" >&5
1613 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 cat > conftest.c
<<EOF
1621 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1628 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1630 if test $ac_cv_prog_gcc = yes; then
1632 ac_test_CFLAGS
="${CFLAGS+set}"
1633 ac_save_CFLAGS
="$CFLAGS"
1635 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1636 echo "configure:1637: checking whether ${CC-cc} accepts -g" >&5
1637 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 echo 'void f(){}' > conftest.c
1641 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1650 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1651 if test "$ac_test_CFLAGS" = set; then
1652 CFLAGS
="$ac_save_CFLAGS"
1653 elif test $ac_cv_prog_cc_g = yes; then
1660 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1664 for ac_prog
in 'bison -y' byacc
1666 # Extract the first word of "$ac_prog", so it can be a program name with args.
1667 set dummy
$ac_prog; ac_word
=$2
1668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_word" >&5
1670 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 if test -n "$YACC"; then
1674 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1676 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1677 for ac_dir
in $PATH; do
1678 test -z "$ac_dir" && ac_dir
=.
1679 if test -f $ac_dir/$ac_word; then
1680 ac_cv_prog_YACC
="$ac_prog"
1687 YACC
="$ac_cv_prog_YACC"
1688 if test -n "$YACC"; then
1689 echo "$ac_t""$YACC" 1>&6
1691 echo "$ac_t""no" 1>&6
1694 test -n "$YACC" && break
1696 test -n "$YACC" || YACC
="yacc"
1698 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1699 echo "configure:1700: checking how to run the C preprocessor" >&5
1700 # On Suns, sometimes $CPP names a directory.
1701 if test -n "$CPP" && test -d "$CPP"; then
1704 if test -z "$CPP"; then
1705 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 # This must be in double quotes, not single quotes, because CPP may get
1709 # substituted into the Makefile and "${CC-cc}" will confuse make.
1711 # On the NeXT, cc -E runs the code through the compiler's parser,
1712 # not just through cpp.
1713 cat > conftest.
$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1719 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1720 { (eval echo configure
:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1721 ac_err
=`grep -v '^ *+' conftest.out`
1722 if test -z "$ac_err"; then
1726 echo "configure: failed program was:" >&5
1727 cat conftest.
$ac_ext >&5
1729 CPP
="${CC-cc} -E -traditional-cpp"
1730 cat > conftest.
$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1736 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1737 { (eval echo configure
:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1738 ac_err
=`grep -v '^ *+' conftest.out`
1739 if test -z "$ac_err"; then
1743 echo "configure: failed program was:" >&5
1744 cat conftest.
$ac_ext >&5
1751 ac_cv_prog_CPP
="$CPP"
1753 CPP
="$ac_cv_prog_CPP"
1755 ac_cv_prog_CPP
="$CPP"
1757 echo "$ac_t""$CPP" 1>&6
1759 missing_dir
=`cd $ac_aux_dir && pwd`
1760 for ac_prog
in flex
lex
1762 # Extract the first word of "$ac_prog", so it can be a program name with args.
1763 set dummy
$ac_prog; ac_word
=$2
1764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1765 echo "configure:1766: checking for $ac_word" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 if test -n "$LEX"; then
1770 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1773 for ac_dir
in $PATH; do
1774 test -z "$ac_dir" && ac_dir
=.
1775 if test -f $ac_dir/$ac_word; then
1776 ac_cv_prog_LEX
="$ac_prog"
1783 LEX
="$ac_cv_prog_LEX"
1784 if test -n "$LEX"; then
1785 echo "$ac_t""$LEX" 1>&6
1787 echo "$ac_t""no" 1>&6
1790 test -n "$LEX" && break
1792 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
1794 # Extract the first word of "flex", so it can be a program name with args.
1795 set dummy flex
; ac_word
=$2
1796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_word" >&5
1798 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 if test -n "$LEX"; then
1802 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1804 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1805 for ac_dir
in $PATH; do
1806 test -z "$ac_dir" && ac_dir
=.
1807 if test -f $ac_dir/$ac_word; then
1808 ac_cv_prog_LEX
="flex"
1813 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1816 LEX
="$ac_cv_prog_LEX"
1817 if test -n "$LEX"; then
1818 echo "$ac_t""$LEX" 1>&6
1820 echo "$ac_t""no" 1>&6
1823 if test -z "$LEXLIB"
1829 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1830 echo "configure:1831: checking for yywrap in -l$ac_lib" >&5
1831 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 ac_save_LIBS
="$LIBS"
1836 LIBS
="-l$ac_lib $LIBS"
1837 cat > conftest.
$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1840 /* Override any gcc2 internal prototype to avoid an error. */
1841 /* We use char because int might match the return type of a gcc2
1842 builtin and then its argument prototype would still apply. */
1849 if { (eval echo configure
:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1851 eval "ac_cv_lib_$ac_lib_var=yes"
1853 echo "configure: failed program was:" >&5
1854 cat conftest.
$ac_ext >&5
1856 eval "ac_cv_lib_$ac_lib_var=no"
1859 LIBS
="$ac_save_LIBS"
1862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1863 echo "$ac_t""yes" 1>&6
1866 echo "$ac_t""no" 1>&6
1871 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1872 echo "configure:1873: checking lex output file root" >&5
1873 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 # The minimal lex program is just a single line: %%. But some broken lexes
1877 # (Solaris, I think it was) want two %% lines, so accommodate them.
1880 if test -f lex.yy.c
; then
1881 ac_cv_prog_lex_root
=lex.yy
1882 elif test -f lexyy.c
; then
1883 ac_cv_prog_lex_root
=lexyy
1885 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1889 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1890 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
1892 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1893 echo "configure:1894: checking whether yytext is a pointer" >&5
1894 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1895 echo $ac_n "(cached) $ac_c" 1>&6
1897 # POSIX says lex can declare yytext either as a pointer or an array; the
1898 # default is implementation-dependent. Figure out which it is, since
1899 # not all implementations provide the %pointer and %array declarations.
1900 ac_cv_prog_lex_yytext_pointer
=no
1901 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1902 ac_save_LIBS
="$LIBS"
1903 LIBS
="$LIBS $LEXLIB"
1904 cat > conftest.
$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 `cat $LEX_OUTPUT_ROOT.c`
1912 if { (eval echo configure
:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1914 ac_cv_prog_lex_yytext_pointer
=yes
1916 echo "configure: failed program was:" >&5
1917 cat conftest.
$ac_ext >&5
1920 LIBS
="$ac_save_LIBS"
1921 rm -f "${LEX_OUTPUT_ROOT}.c"
1925 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1926 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1927 cat >> confdefs.h
<<\EOF
1928 #define YYTEXT_POINTER 1
1935 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1936 echo "configure:1937: checking for POSIXized ISC" >&5
1937 if test -d /etc
/conf
/kconfig.d
&&
1938 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1940 echo "$ac_t""yes" 1>&6
1941 ISC
=yes # If later tests want to check for ISC.
1942 cat >> confdefs.h
<<\EOF
1943 #define _POSIX_SOURCE 1
1946 if test "$GCC" = yes; then
1952 echo "$ac_t""no" 1>&6
1956 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1957 echo "configure:1958: checking for ANSI C header files" >&5
1958 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1961 cat > conftest.
$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1969 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure
:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err
=`grep -v '^ *+' conftest.out`
1972 if test -z "$ac_err"; then
1974 ac_cv_header_stdc
=yes
1977 echo "configure: failed program was:" >&5
1978 cat conftest.
$ac_ext >&5
1980 ac_cv_header_stdc
=no
1984 if test $ac_cv_header_stdc = yes; then
1985 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1986 cat > conftest.
$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1992 egrep "memchr" >/dev
/null
2>&1; then
1996 ac_cv_header_stdc
=no
2002 if test $ac_cv_header_stdc = yes; then
2003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2004 cat > conftest.
$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2010 egrep "free" >/dev
/null
2>&1; then
2014 ac_cv_header_stdc
=no
2020 if test $ac_cv_header_stdc = yes; then
2021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2022 if test "$cross_compiling" = yes; then
2025 cat > conftest.
$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2029 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2030 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2031 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2032 int main () { int i; for (i = 0; i < 256; i++)
2033 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2037 if { (eval echo configure
:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2041 echo "configure: failed program was:" >&5
2042 cat conftest.
$ac_ext >&5
2044 ac_cv_header_stdc
=no
2052 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2053 if test $ac_cv_header_stdc = yes; then
2054 cat >> confdefs.h
<<\EOF
2055 #define STDC_HEADERS 1
2060 echo $ac_n "checking for working const""... $ac_c" 1>&6
2061 echo "configure:2062: checking for working const" >&5
2062 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.
$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2071 /* Ultrix mips cc rejects this. */
2072 typedef int charset[2]; const charset x;
2073 /* SunOS 4.1.1 cc rejects this. */
2074 char const *const *ccp;
2076 /* NEC SVR4.0.2 mips cc rejects this. */
2077 struct point {int x, y;};
2078 static struct point const zero = {0,0};
2079 /* AIX XL C 1.02.0.0 rejects this.
2080 It does not let you subtract one const X* pointer from another in an arm
2081 of an if-expression whose if-part is not a constant expression */
2082 const char *g = "string";
2083 ccp = &g + (g ? g-g : 0);
2084 /* HPUX 7.0 cc rejects these. */
2087 ccp = (char const *const *) p;
2088 { /* SCO 3.2v4 cc rejects this. */
2090 char const *s = 0 ? (char *) 0 : (char const *) 0;
2094 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2096 const int *foo = &x[0];
2099 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2100 typedef const int *iptr;
2104 { /* AIX XL C 1.02.0.0 rejects this saying
2105 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2106 struct s { int j; const int *ap[3]; };
2107 struct s *b; b->j = 5;
2109 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2115 if { (eval echo configure
:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2119 echo "configure: failed program was:" >&5
2120 cat conftest.
$ac_ext >&5
2127 echo "$ac_t""$ac_cv_c_const" 1>&6
2128 if test $ac_cv_c_const = no
; then
2129 cat >> confdefs.h
<<\EOF
2135 echo $ac_n "checking for inline""... $ac_c" 1>&6
2136 echo "configure:2137: checking for inline" >&5
2137 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2141 for ac_kw
in inline __inline__ __inline
; do
2142 cat > conftest.
$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2150 if { (eval echo configure
:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 ac_cv_c_inline
=$ac_kw; break
2154 echo "configure: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2162 echo "$ac_t""$ac_cv_c_inline" 1>&6
2163 case "$ac_cv_c_inline" in
2165 no
) cat >> confdefs.h
<<\EOF
2169 *) cat >> confdefs.h
<<EOF
2170 #define inline $ac_cv_c_inline
2175 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2176 echo "configure:2177: checking for off_t" >&5
2177 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 cat > conftest.
$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 #include <sys/types.h>
2189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2190 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2192 ac_cv_type_off_t
=yes
2200 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2201 if test $ac_cv_type_off_t = no
; then
2202 cat >> confdefs.h
<<\EOF
2208 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2209 echo "configure:2210: checking for size_t" >&5
2210 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 cat > conftest.
$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2216 #include <sys/types.h>
2222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2223 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2225 ac_cv_type_size_t
=yes
2228 ac_cv_type_size_t
=no
2233 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2234 if test $ac_cv_type_size_t = no
; then
2235 cat >> confdefs.h
<<\EOF
2236 #define size_t unsigned
2241 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2242 # for constant arguments. Useless!
2243 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2244 echo "configure:2245: checking for working alloca.h" >&5
2245 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 cat > conftest.
$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2253 char *p = alloca(2 * sizeof(int));
2256 if { (eval echo configure
:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2258 ac_cv_header_alloca_h
=yes
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 ac_cv_header_alloca_h
=no
2268 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2269 if test $ac_cv_header_alloca_h = yes; then
2270 cat >> confdefs.h
<<\EOF
2271 #define HAVE_ALLOCA_H 1
2276 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2277 echo "configure:2278: checking for alloca" >&5
2278 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.
$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2286 # define alloca __builtin_alloca
2289 # include <alloca.h>
2294 # ifndef alloca /* predefined by HP cc +Olibcalls */
2302 char *p = (char *) alloca(1);
2305 if { (eval echo configure
:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2307 ac_cv_func_alloca_works
=yes
2309 echo "configure: failed program was:" >&5
2310 cat conftest.
$ac_ext >&5
2312 ac_cv_func_alloca_works
=no
2317 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2318 if test $ac_cv_func_alloca_works = yes; then
2319 cat >> confdefs.h
<<\EOF
2320 #define HAVE_ALLOCA 1
2325 if test $ac_cv_func_alloca_works = no
; then
2326 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2327 # that cause trouble. Some versions do not even contain alloca or
2328 # contain a buggy version. If you still want to use their alloca,
2329 # use ar to extract alloca.o from them instead of compiling alloca.c.
2331 cat >> confdefs.h
<<\EOF
2336 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether alloca needs Cray hooks" >&5
2338 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #if defined(CRAY) && ! defined(CRAY2)
2351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2352 egrep "webecray" >/dev
/null
2>&1; then
2363 echo "$ac_t""$ac_cv_os_cray" 1>&6
2364 if test $ac_cv_os_cray = yes; then
2365 for ac_func
in _getb67 GETB67 getb67
; do
2366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2367 echo "configure:2368: checking for $ac_func" >&5
2368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 /* System header to define __stub macros and hopefully few prototypes,
2375 which can conflict with char $ac_func(); below. */
2377 /* Override any gcc2 internal prototype to avoid an error. */
2378 /* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2384 /* The GNU C library defines this for functions which it implements
2385 to always fail with ENOSYS. Some functions are actually named
2386 something starting with __ and the normal name is an alias. */
2387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2395 if { (eval echo configure
:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2397 eval "ac_cv_func_$ac_func=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.
$ac_ext >&5
2402 eval "ac_cv_func_$ac_func=no"
2407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 cat >> confdefs.h
<<EOF
2410 #define CRAY_STACKSEG_END $ac_func
2415 echo "$ac_t""no" 1>&6
2421 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2422 echo "configure:2423: checking stack direction for C alloca" >&5
2423 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 if test "$cross_compiling" = yes; then
2427 ac_cv_c_stack_direction
=0
2429 cat > conftest.
$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 find_stack_direction ()
2434 static char *addr = 0;
2439 return find_stack_direction ();
2442 return (&dummy > addr) ? 1 : -1;
2446 exit (find_stack_direction() < 0);
2449 if { (eval echo configure
:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2451 ac_cv_c_stack_direction
=1
2453 echo "configure: failed program was:" >&5
2454 cat conftest.
$ac_ext >&5
2456 ac_cv_c_stack_direction
=-1
2463 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2464 cat >> confdefs.h
<<EOF
2465 #define STACK_DIRECTION $ac_cv_c_stack_direction
2470 for ac_hdr
in unistd.h
2472 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2474 echo "configure:2475: checking for $ac_hdr" >&5
2475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.
$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2483 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2484 { (eval echo configure
:2485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2485 ac_err
=`grep -v '^ *+' conftest.out`
2486 if test -z "$ac_err"; then
2488 eval "ac_cv_header_$ac_safe=yes"
2491 echo "configure: failed program was:" >&5
2492 cat conftest.
$ac_ext >&5
2494 eval "ac_cv_header_$ac_safe=no"
2498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2501 cat >> confdefs.h
<<EOF
2502 #define $ac_tr_hdr 1
2506 echo "$ac_t""no" 1>&6
2510 for ac_func
in getpagesize
2512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_func" >&5
2514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 cat > conftest.
$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* System header to define __stub macros and hopefully few prototypes,
2521 which can conflict with char $ac_func(); below. */
2523 /* Override any gcc2 internal prototype to avoid an error. */
2524 /* We use char because int might match the return type of a gcc2
2525 builtin and then its argument prototype would still apply. */
2530 /* The GNU C library defines this for functions which it implements
2531 to always fail with ENOSYS. Some functions are actually named
2532 something starting with __ and the normal name is an alias. */
2533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2541 if { (eval echo configure
:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2543 eval "ac_cv_func_$ac_func=yes"
2545 echo "configure: failed program was:" >&5
2546 cat conftest.
$ac_ext >&5
2548 eval "ac_cv_func_$ac_func=no"
2553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2556 cat >> confdefs.h
<<EOF
2557 #define $ac_tr_func 1
2561 echo "$ac_t""no" 1>&6
2565 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2566 echo "configure:2567: checking for working mmap" >&5
2567 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 if test "$cross_compiling" = yes; then
2571 ac_cv_func_mmap_fixed_mapped
=no
2573 cat > conftest.
$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2577 /* Thanks to Mike Haertel and Jim Avera for this test.
2578 Here is a matrix of mmap possibilities:
2579 mmap private not fixed
2580 mmap private fixed at somewhere currently unmapped
2581 mmap private fixed at somewhere already mapped
2582 mmap shared not fixed
2583 mmap shared fixed at somewhere currently unmapped
2584 mmap shared fixed at somewhere already mapped
2585 For private mappings, we should verify that changes cannot be read()
2586 back from the file, nor mmap's back from the file at a different
2587 address. (There have been systems where private was not correctly
2588 implemented like the infamous i386 svr4.0, and systems where the
2589 VM page cache was not coherent with the filesystem buffer cache
2590 like early versions of FreeBSD and possibly contemporary NetBSD.)
2591 For shared mappings, we should conversely verify that changes get
2592 propogated back to all the places they're supposed to be.
2594 Grep wants private fixed already mapped.
2595 The main things grep needs to know about mmap are:
2596 * does it exist and is it safe to write into the mmap'd area
2597 * how to use it (BSD variants) */
2598 #include <sys/types.h>
2600 #include <sys/mman.h>
2602 /* This mess was copied from the GNU getpagesize.h. */
2603 #ifndef HAVE_GETPAGESIZE
2604 # ifdef HAVE_UNISTD_H
2605 # include <unistd.h>
2608 /* Assume that all systems that can run configure have sys/param.h. */
2609 # ifndef HAVE_SYS_PARAM_H
2610 # define HAVE_SYS_PARAM_H 1
2613 # ifdef _SC_PAGESIZE
2614 # define getpagesize() sysconf(_SC_PAGESIZE)
2615 # else /* no _SC_PAGESIZE */
2616 # ifdef HAVE_SYS_PARAM_H
2617 # include <sys/param.h>
2618 # ifdef EXEC_PAGESIZE
2619 # define getpagesize() EXEC_PAGESIZE
2620 # else /* no EXEC_PAGESIZE */
2622 # define getpagesize() NBPG * CLSIZE
2625 # endif /* no CLSIZE */
2626 # else /* no NBPG */
2628 # define getpagesize() NBPC
2629 # else /* no NBPC */
2631 # define getpagesize() PAGESIZE
2632 # endif /* PAGESIZE */
2633 # endif /* no NBPC */
2634 # endif /* no NBPG */
2635 # endif /* no EXEC_PAGESIZE */
2636 # else /* no HAVE_SYS_PARAM_H */
2637 # define getpagesize() 8192 /* punt totally */
2638 # endif /* no HAVE_SYS_PARAM_H */
2639 # endif /* no _SC_PAGESIZE */
2641 #endif /* no HAVE_GETPAGESIZE */
2644 extern "C" { void *malloc(unsigned); }
2652 char *data, *data2, *data3;
2656 pagesize = getpagesize();
2659 * First, make a file with some known garbage in it.
2661 data = malloc(pagesize);
2664 for (i = 0; i < pagesize; ++i)
2665 *(data + i) = rand();
2667 fd = creat("conftestmmap", 0600);
2670 if (write(fd, data, pagesize) != pagesize)
2675 * Next, try to mmap the file at a fixed address which
2676 * already has something else allocated at it. If we can,
2677 * also make sure that we see the same garbage.
2679 fd = open("conftestmmap", O_RDWR);
2682 data2 = malloc(2 * pagesize);
2685 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2686 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2687 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2689 for (i = 0; i < pagesize; ++i)
2690 if (*(data + i) != *(data2 + i))
2694 * Finally, make sure that changes to the mapped area
2695 * do not percolate back to the file as seen by read().
2696 * (This is a bug on some variants of i386 svr4.0.)
2698 for (i = 0; i < pagesize; ++i)
2699 *(data2 + i) = *(data2 + i) + 1;
2700 data3 = malloc(pagesize);
2703 if (read(fd, data3, pagesize) != pagesize)
2705 for (i = 0; i < pagesize; ++i)
2706 if (*(data + i) != *(data3 + i))
2709 unlink("conftestmmap");
2714 if { (eval echo configure
:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2716 ac_cv_func_mmap_fixed_mapped
=yes
2718 echo "configure: failed program was:" >&5
2719 cat conftest.
$ac_ext >&5
2721 ac_cv_func_mmap_fixed_mapped
=no
2728 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2729 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2730 cat >> confdefs.h
<<\EOF
2737 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2738 unistd.h values.h sys
/param.h
2740 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_hdr" >&5
2743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.
$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2751 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2752 { (eval echo configure
:2753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2753 ac_err
=`grep -v '^ *+' conftest.out`
2754 if test -z "$ac_err"; then
2756 eval "ac_cv_header_$ac_safe=yes"
2759 echo "configure: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2762 eval "ac_cv_header_$ac_safe=no"
2766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2768 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2769 cat >> confdefs.h
<<EOF
2770 #define $ac_tr_hdr 1
2774 echo "$ac_t""no" 1>&6
2778 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2779 __argz_count __argz_stringify __argz_next
2781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_func" >&5
2783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 cat > conftest.
$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2789 /* System header to define __stub macros and hopefully few prototypes,
2790 which can conflict with char $ac_func(); below. */
2792 /* Override any gcc2 internal prototype to avoid an error. */
2793 /* We use char because int might match the return type of a gcc2
2794 builtin and then its argument prototype would still apply. */
2799 /* The GNU C library defines this for functions which it implements
2800 to always fail with ENOSYS. Some functions are actually named
2801 something starting with __ and the normal name is an alias. */
2802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2810 if { (eval echo configure
:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2812 eval "ac_cv_func_$ac_func=yes"
2814 echo "configure: failed program was:" >&5
2815 cat conftest.
$ac_ext >&5
2817 eval "ac_cv_func_$ac_func=no"
2822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2823 echo "$ac_t""yes" 1>&6
2824 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2825 cat >> confdefs.h
<<EOF
2826 #define $ac_tr_func 1
2830 echo "$ac_t""no" 1>&6
2835 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2836 for ac_func
in stpcpy
2838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2839 echo "configure:2840: checking for $ac_func" >&5
2840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2843 cat > conftest.
$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2846 /* System header to define __stub macros and hopefully few prototypes,
2847 which can conflict with char $ac_func(); below. */
2849 /* Override any gcc2 internal prototype to avoid an error. */
2850 /* We use char because int might match the return type of a gcc2
2851 builtin and then its argument prototype would still apply. */
2856 /* The GNU C library defines this for functions which it implements
2857 to always fail with ENOSYS. Some functions are actually named
2858 something starting with __ and the normal name is an alias. */
2859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2867 if { (eval echo configure
:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2869 eval "ac_cv_func_$ac_func=yes"
2871 echo "configure: failed program was:" >&5
2872 cat conftest.
$ac_ext >&5
2874 eval "ac_cv_func_$ac_func=no"
2879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2882 cat >> confdefs.h
<<EOF
2883 #define $ac_tr_func 1
2887 echo "$ac_t""no" 1>&6
2892 if test "${ac_cv_func_stpcpy}" = "yes"; then
2893 cat >> confdefs.h
<<\EOF
2894 #define HAVE_STPCPY 1
2899 if test $ac_cv_header_locale_h = yes; then
2900 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2901 echo "configure:2902: checking for LC_MESSAGES" >&5
2902 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.
$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2913 if { (eval echo configure
:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2915 am_cv_val_LC_MESSAGES
=yes
2917 echo "configure: failed program was:" >&5
2918 cat conftest.
$ac_ext >&5
2920 am_cv_val_LC_MESSAGES
=no
2925 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2926 if test $am_cv_val_LC_MESSAGES = yes; then
2927 cat >> confdefs.h
<<\EOF
2928 #define HAVE_LC_MESSAGES 1
2933 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2934 echo "configure:2935: checking whether NLS is requested" >&5
2935 # Check whether --enable-nls or --disable-nls was given.
2936 if test "${enable_nls+set}" = set; then
2937 enableval
="$enable_nls"
2943 echo "$ac_t""$USE_NLS" 1>&6
2946 USE_INCLUDED_LIBINTL
=no
2948 if test "$USE_NLS" = "yes"; then
2949 cat >> confdefs.h
<<\EOF
2950 #define ENABLE_NLS 1
2953 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2954 echo "configure:2955: checking whether included gettext is requested" >&5
2955 # Check whether --with-included-gettext or --without-included-gettext was given.
2956 if test "${with_included_gettext+set}" = set; then
2957 withval
="$with_included_gettext"
2958 nls_cv_force_use_gnu_gettext
=$withval
2960 nls_cv_force_use_gnu_gettext
=no
2963 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2965 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2966 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2968 nls_cv_header_libgt
=
2971 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2972 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2973 echo "configure:2974: checking for libintl.h" >&5
2974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 cat > conftest.
$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 #include <libintl.h>
2982 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2983 { (eval echo configure
:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2984 ac_err
=`grep -v '^ *+' conftest.out`
2985 if test -z "$ac_err"; then
2987 eval "ac_cv_header_$ac_safe=yes"
2990 echo "configure: failed program was:" >&5
2991 cat conftest.
$ac_ext >&5
2993 eval "ac_cv_header_$ac_safe=no"
2997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2998 echo "$ac_t""yes" 1>&6
2999 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3000 echo "configure:3001: checking for gettext in libc" >&5
3001 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 cat > conftest.
$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3007 #include <libintl.h>
3009 return (int) gettext ("")
3012 if { (eval echo configure
:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3014 gt_cv_func_gettext_libc
=yes
3016 echo "configure: failed program was:" >&5
3017 cat conftest.
$ac_ext >&5
3019 gt_cv_func_gettext_libc
=no
3024 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3026 if test "$gt_cv_func_gettext_libc" != "yes"; then
3027 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3028 echo "configure:3029: checking for bindtextdomain in -lintl" >&5
3029 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 ac_save_LIBS
="$LIBS"
3035 cat > conftest.
$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3038 /* Override any gcc2 internal prototype to avoid an error. */
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3041 char bindtextdomain();
3047 if { (eval echo configure
:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3049 eval "ac_cv_lib_$ac_lib_var=yes"
3051 echo "configure: failed program was:" >&5
3052 cat conftest.
$ac_ext >&5
3054 eval "ac_cv_lib_$ac_lib_var=no"
3057 LIBS
="$ac_save_LIBS"
3060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3061 echo "$ac_t""yes" 1>&6
3062 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3063 echo "configure:3064: checking for gettext in libintl" >&5
3064 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.
$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3072 return (int) gettext ("")
3075 if { (eval echo configure
:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3077 gt_cv_func_gettext_libintl
=yes
3079 echo "configure: failed program was:" >&5
3080 cat conftest.
$ac_ext >&5
3082 gt_cv_func_gettext_libintl
=no
3087 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3089 echo "$ac_t""no" 1>&6
3094 if test "$gt_cv_func_gettext_libc" = "yes" \
3095 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3096 cat >> confdefs.h
<<\EOF
3097 #define HAVE_GETTEXT 1
3100 # Extract the first word of "msgfmt", so it can be a program name with args.
3101 set dummy msgfmt
; ac_word
=$2
3102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_word" >&5
3104 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3109 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3113 for ac_dir
in $PATH; do
3114 test -z "$ac_dir" && ac_dir
=.
3115 if test -f $ac_dir/$ac_word; then
3116 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3117 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3123 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3127 MSGFMT
="$ac_cv_path_MSGFMT"
3128 if test -n "$MSGFMT"; then
3129 echo "$ac_t""$MSGFMT" 1>&6
3131 echo "$ac_t""no" 1>&6
3133 if test "$MSGFMT" != "no"; then
3134 for ac_func
in dcgettext
3136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_func" >&5
3138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.
$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 /* System header to define __stub macros and hopefully few prototypes,
3145 which can conflict with char $ac_func(); below. */
3147 /* Override any gcc2 internal prototype to avoid an error. */
3148 /* We use char because int might match the return type of a gcc2
3149 builtin and then its argument prototype would still apply. */
3154 /* The GNU C library defines this for functions which it implements
3155 to always fail with ENOSYS. Some functions are actually named
3156 something starting with __ and the normal name is an alias. */
3157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3165 if { (eval echo configure
:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3167 eval "ac_cv_func_$ac_func=yes"
3169 echo "configure: failed program was:" >&5
3170 cat conftest.
$ac_ext >&5
3172 eval "ac_cv_func_$ac_func=no"
3177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3179 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3180 cat >> confdefs.h
<<EOF
3181 #define $ac_tr_func 1
3185 echo "$ac_t""no" 1>&6
3189 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3190 set dummy gmsgfmt
; ac_word
=$2
3191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_word" >&5
3193 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3198 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3201 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3205 for ac_dir
in $PATH; do
3206 test -z "$ac_dir" && ac_dir
=.
3207 if test -f $ac_dir/$ac_word; then
3208 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3213 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3217 GMSGFMT
="$ac_cv_path_GMSGFMT"
3218 if test -n "$GMSGFMT"; then
3219 echo "$ac_t""$GMSGFMT" 1>&6
3221 echo "$ac_t""no" 1>&6
3224 # Extract the first word of "xgettext", so it can be a program name with args.
3225 set dummy xgettext
; ac_word
=$2
3226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_word" >&5
3228 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3233 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3236 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3237 for ac_dir
in $PATH; do
3238 test -z "$ac_dir" && ac_dir
=.
3239 if test -f $ac_dir/$ac_word; then
3240 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3241 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3247 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3251 XGETTEXT
="$ac_cv_path_XGETTEXT"
3252 if test -n "$XGETTEXT"; then
3253 echo "$ac_t""$XGETTEXT" 1>&6
3255 echo "$ac_t""no" 1>&6
3258 cat > conftest.
$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3263 extern int _nl_msg_cat_cntr;
3264 return _nl_msg_cat_cntr
3267 if { (eval echo configure
:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3272 echo "configure: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3284 echo "$ac_t""no" 1>&6
3289 if test "$CATOBJEXT" = "NONE"; then
3290 nls_cv_use_gnu_gettext
=yes
3294 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3295 INTLOBJS
="\$(GETTOBJS)"
3296 # Extract the first word of "msgfmt", so it can be a program name with args.
3297 set dummy msgfmt
; ac_word
=$2
3298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3299 echo "configure:3300: checking for $ac_word" >&5
3300 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3305 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3308 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3309 for ac_dir
in $PATH; do
3310 test -z "$ac_dir" && ac_dir
=.
3311 if test -f $ac_dir/$ac_word; then
3312 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3313 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3319 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3323 MSGFMT
="$ac_cv_path_MSGFMT"
3324 if test -n "$MSGFMT"; then
3325 echo "$ac_t""$MSGFMT" 1>&6
3327 echo "$ac_t""no" 1>&6
3330 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3331 set dummy gmsgfmt
; ac_word
=$2
3332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_word" >&5
3334 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3339 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3342 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3345 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3346 for ac_dir
in $PATH; do
3347 test -z "$ac_dir" && ac_dir
=.
3348 if test -f $ac_dir/$ac_word; then
3349 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3354 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3358 GMSGFMT
="$ac_cv_path_GMSGFMT"
3359 if test -n "$GMSGFMT"; then
3360 echo "$ac_t""$GMSGFMT" 1>&6
3362 echo "$ac_t""no" 1>&6
3365 # Extract the first word of "xgettext", so it can be a program name with args.
3366 set dummy xgettext
; ac_word
=$2
3367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3368 echo "configure:3369: checking for $ac_word" >&5
3369 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3370 echo $ac_n "(cached) $ac_c" 1>&6
3374 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3377 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3378 for ac_dir
in $PATH; do
3379 test -z "$ac_dir" && ac_dir
=.
3380 if test -f $ac_dir/$ac_word; then
3381 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3382 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3388 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3392 XGETTEXT
="$ac_cv_path_XGETTEXT"
3393 if test -n "$XGETTEXT"; then
3394 echo "$ac_t""$XGETTEXT" 1>&6
3396 echo "$ac_t""no" 1>&6
3400 USE_INCLUDED_LIBINTL
=yes
3404 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3406 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3407 nls_cv_header_intl
=libintl.h
3408 nls_cv_header_libgt
=libgettext.h
3411 if test "$XGETTEXT" != ":"; then
3412 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3415 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3420 # We need to process the po/ directory.
3424 nls_cv_header_intl
=libintl.h
3425 nls_cv_header_libgt
=libgettext.h
3428 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3429 # because some of the sources are only built for this goal.
3430 if test "$PACKAGE" = gettext; then
3432 USE_INCLUDED_LIBINTL
=yes
3435 for lang
in $ALL_LINGUAS; do
3436 GMOFILES
="$GMOFILES $lang.gmo"
3437 POFILES
="$POFILES $lang.po"
3453 if test "x$CATOBJEXT" != "x"; then
3454 if test "x$ALL_LINGUAS" = "x"; then
3457 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3458 echo "configure:3459: checking for catalogs to be installed" >&5
3460 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3461 case "$ALL_LINGUAS" in
3462 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3465 LINGUAS
=$NEW_LINGUAS
3466 echo "$ac_t""$LINGUAS" 1>&6
3469 if test -n "$LINGUAS"; then
3470 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3474 if test $ac_cv_header_locale_h = yes; then
3475 INCLUDE_LOCALE_H
="#include <locale.h>"
3478 /* The system does not provide the header <locale.h>. Take care yourself. */"
3482 if test -f $srcdir/po2tbl.
sed.
in; then
3483 if test "$CATOBJEXT" = ".cat"; then
3484 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3485 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3486 echo "configure:3487: checking for linux/version.h" >&5
3487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.
$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 #include <linux/version.h>
3495 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3496 { (eval echo configure
:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3497 ac_err
=`grep -v '^ *+' conftest.out`
3498 if test -z "$ac_err"; then
3500 eval "ac_cv_header_$ac_safe=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.
$ac_ext >&5
3506 eval "ac_cv_header_$ac_safe=no"
3510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3514 echo "$ac_t""no" 1>&6
3519 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3521 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3522 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3525 if test "$PACKAGE" = "gettext"; then
3535 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3541 if test -d $srcdir/po
; then
3542 test -d po || mkdir po
3543 if test "x$srcdir" != "x."; then
3544 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3545 posrcprefix
="$srcdir/"
3547 posrcprefix
="../$srcdir/"
3553 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3554 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3558 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3559 echo "configure:3560: checking whether to enable maintainer-specific portions of Makefiles" >&5
3560 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3561 if test "${enable_maintainer_mode+set}" = set; then
3562 enableval
="$enable_maintainer_mode"
3563 USE_MAINTAINER_MODE
=$enableval
3565 USE_MAINTAINER_MODE
=no
3568 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3569 if test $USE_MAINTAINER_MODE = yes; then
3576 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
3577 echo "configure:3578: checking for Cygwin32 environment" >&5
3578 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3581 cat > conftest.
$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3586 return __CYGWIN32__;
3589 if { (eval echo configure
:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3593 echo "configure: failed program was:" >&5
3594 cat conftest.
$ac_ext >&5
3602 echo "$ac_t""$am_cv_cygwin32" 1>&6
3604 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
3605 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
3606 echo "configure:3607: checking for Mingw32 environment" >&5
3607 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.
$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3618 if { (eval echo configure
:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622 echo "configure: failed program was:" >&5
3623 cat conftest.
$ac_ext >&5
3631 echo "$ac_t""$am_cv_mingw32" 1>&6
3633 test "$am_cv_mingw32" = yes && MINGW32
=yes
3636 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3637 echo "configure:3638: checking for executable suffix" >&5
3638 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
3644 cat > am_c_test.c
<< 'EOF'
3646 /* Nothing needed here
*/
3649 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
3651 for file in am_c_test.
*; do
3655 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
3661 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
3664 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
3665 echo "$ac_t""${am_cv_exeext}" 1>&6
3668 # host-specific stuff:
3672 .
${srcdir}/..
/bfd
/configure.
host
3677 # Extract the first word of "ranlib", so it can be a program name with args.
3678 set dummy ranlib
; ac_word
=$2
3679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3680 echo "configure:3681: checking for $ac_word" >&5
3681 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 if test -n "$RANLIB"; then
3685 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3688 for ac_dir
in $PATH; do
3689 test -z "$ac_dir" && ac_dir
=.
3690 if test -f $ac_dir/$ac_word; then
3691 ac_cv_prog_RANLIB
="ranlib"
3696 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3699 RANLIB
="$ac_cv_prog_RANLIB"
3700 if test -n "$RANLIB"; then
3701 echo "$ac_t""$RANLIB" 1>&6
3703 echo "$ac_t""no" 1>&6
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3710 # Put a plausible default for CC_FOR_BUILD in Makefile.
3711 if test -z "$CC_FOR_BUILD"; then
3712 if test "x$cross_compiling" = "xno"; then
3713 CC_FOR_BUILD
='$(CC)'
3719 # Also set EXEEXT_FOR_BUILD.
3720 if test "x$cross_compiling" = "xno"; then
3721 EXEEXT_FOR_BUILD
='$(EXEEXT)'
3723 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3724 echo "configure:3725: checking for build system executable suffix" >&5
3725 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 cat > ac_c_test.c
<< 'EOF'
3730 /* Nothing needed here
*/
3733 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c
1>&5 2>&5
3734 bfd_cv_build_exeext
=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
3736 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
3739 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
3741 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
3745 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
3747 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3749 echo "configure:3750: checking for $ac_hdr" >&5
3750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3753 cat > conftest.
$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3758 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3759 { (eval echo configure
:3760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3760 ac_err
=`grep -v '^ *+' conftest.out`
3761 if test -z "$ac_err"; then
3763 eval "ac_cv_header_$ac_safe=yes"
3766 echo "configure: failed program was:" >&5
3767 cat conftest.
$ac_ext >&5
3769 eval "ac_cv_header_$ac_safe=no"
3773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3775 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3776 cat >> confdefs.h
<<EOF
3777 #define $ac_tr_hdr 1
3781 echo "$ac_t""no" 1>&6
3785 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3786 echo "configure:3787: checking for sys/wait.h that is POSIX.1 compatible" >&5
3787 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 #include <sys/types.h>
3794 #include <sys/wait.h>
3796 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3799 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3804 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3807 if { (eval echo configure
:3808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3809 ac_cv_header_sys_wait_h
=yes
3811 echo "configure: failed program was:" >&5
3812 cat conftest.
$ac_ext >&5
3814 ac_cv_header_sys_wait_h
=no
3819 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3820 if test $ac_cv_header_sys_wait_h = yes; then
3821 cat >> confdefs.h
<<\EOF
3822 #define HAVE_SYS_WAIT_H 1
3827 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3828 # for constant arguments. Useless!
3829 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3830 echo "configure:3831: checking for working alloca.h" >&5
3831 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 cat > conftest.
$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3839 char *p = alloca(2 * sizeof(int));
3842 if { (eval echo configure
:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3844 ac_cv_header_alloca_h
=yes
3846 echo "configure: failed program was:" >&5
3847 cat conftest.
$ac_ext >&5
3849 ac_cv_header_alloca_h
=no
3854 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3855 if test $ac_cv_header_alloca_h = yes; then
3856 cat >> confdefs.h
<<\EOF
3857 #define HAVE_ALLOCA_H 1
3862 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3863 echo "configure:3864: checking for alloca" >&5
3864 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3867 cat > conftest.
$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3872 # define alloca __builtin_alloca
3875 # include <alloca.h>
3880 # ifndef alloca /* predefined by HP cc +Olibcalls */
3888 char *p = (char *) alloca(1);
3891 if { (eval echo configure
:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3893 ac_cv_func_alloca_works
=yes
3895 echo "configure: failed program was:" >&5
3896 cat conftest.
$ac_ext >&5
3898 ac_cv_func_alloca_works
=no
3903 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3904 if test $ac_cv_func_alloca_works = yes; then
3905 cat >> confdefs.h
<<\EOF
3906 #define HAVE_ALLOCA 1
3911 if test $ac_cv_func_alloca_works = no
; then
3912 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3913 # that cause trouble. Some versions do not even contain alloca or
3914 # contain a buggy version. If you still want to use their alloca,
3915 # use ar to extract alloca.o from them instead of compiling alloca.c.
3917 cat >> confdefs.h
<<\EOF
3922 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3923 echo "configure:3924: checking whether alloca needs Cray hooks" >&5
3924 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3927 cat > conftest.
$ac_ext <<EOF
3928 #line 3929 "configure"
3929 #include "confdefs.h"
3930 #if defined(CRAY) && ! defined(CRAY2)
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 egrep "webecray" >/dev
/null
2>&1; then
3949 echo "$ac_t""$ac_cv_os_cray" 1>&6
3950 if test $ac_cv_os_cray = yes; then
3951 for ac_func
in _getb67 GETB67 getb67
; do
3952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3953 echo "configure:3954: checking for $ac_func" >&5
3954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 cat > conftest.
$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3960 /* System header to define __stub macros and hopefully few prototypes,
3961 which can conflict with char $ac_func(); below. */
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3970 /* The GNU C library defines this for functions which it implements
3971 to always fail with ENOSYS. Some functions are actually named
3972 something starting with __ and the normal name is an alias. */
3973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3981 if { (eval echo configure
:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3983 eval "ac_cv_func_$ac_func=yes"
3985 echo "configure: failed program was:" >&5
3986 cat conftest.
$ac_ext >&5
3988 eval "ac_cv_func_$ac_func=no"
3993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3994 echo "$ac_t""yes" 1>&6
3995 cat >> confdefs.h
<<EOF
3996 #define CRAY_STACKSEG_END $ac_func
4001 echo "$ac_t""no" 1>&6
4007 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4008 echo "configure:4009: checking stack direction for C alloca" >&5
4009 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 if test "$cross_compiling" = yes; then
4013 ac_cv_c_stack_direction
=0
4015 cat > conftest.
$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 find_stack_direction ()
4020 static char *addr = 0;
4025 return find_stack_direction ();
4028 return (&dummy > addr) ? 1 : -1;
4032 exit (find_stack_direction() < 0);
4035 if { (eval echo configure
:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4037 ac_cv_c_stack_direction
=1
4039 echo "configure: failed program was:" >&5
4040 cat conftest.
$ac_ext >&5
4042 ac_cv_c_stack_direction
=-1
4049 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4050 cat >> confdefs.h
<<EOF
4051 #define STACK_DIRECTION $ac_cv_c_stack_direction
4056 for ac_func
in sbrk utimes
4058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4059 echo "configure:4060: checking for $ac_func" >&5
4060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 cat > conftest.
$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 /* System header to define __stub macros and hopefully few prototypes,
4067 which can conflict with char $ac_func(); below. */
4069 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4076 /* The GNU C library defines this for functions which it implements
4077 to always fail with ENOSYS. Some functions are actually named
4078 something starting with __ and the normal name is an alias. */
4079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4087 if { (eval echo configure
:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4089 eval "ac_cv_func_$ac_func=yes"
4091 echo "configure: failed program was:" >&5
4092 cat conftest.
$ac_ext >&5
4094 eval "ac_cv_func_$ac_func=no"
4099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4100 echo "$ac_t""yes" 1>&6
4101 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4102 cat >> confdefs.h
<<EOF
4103 #define $ac_tr_func 1
4107 echo "$ac_t""no" 1>&6
4112 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
4113 echo "configure:4114: checking for time_t in time.h" >&5
4114 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 cat > conftest.
$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4125 if { (eval echo configure
:4126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4127 bu_cv_decl_time_t_time_h
=yes
4129 echo "configure: failed program was:" >&5
4130 cat conftest.
$ac_ext >&5
4132 bu_cv_decl_time_t_time_h
=no
4137 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
4138 if test $bu_cv_decl_time_t_time_h = yes; then
4139 cat >> confdefs.h
<<\EOF
4140 #define HAVE_TIME_T_IN_TIME_H 1
4145 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
4146 echo "configure:4147: checking for time_t in sys/types.h" >&5
4147 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.
$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 #include <sys/types.h>
4158 if { (eval echo configure
:4159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4160 bu_cv_decl_time_t_types_h
=yes
4162 echo "configure: failed program was:" >&5
4163 cat conftest.
$ac_ext >&5
4165 bu_cv_decl_time_t_types_h
=no
4170 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
4171 if test $bu_cv_decl_time_t_types_h = yes; then
4172 cat >> confdefs.h
<<\EOF
4173 #define HAVE_TIME_T_IN_TYPES_H 1
4178 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
4180 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
4181 echo "configure:4182: checking for utime.h" >&5
4182 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 cat > conftest.
$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 #include <sys/types.h>
4197 if { (eval echo configure
:4198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4199 bu_cv_header_utime_h
=yes
4201 echo "configure: failed program was:" >&5
4202 cat conftest.
$ac_ext >&5
4204 bu_cv_header_utime_h
=no
4209 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
4210 if test $bu_cv_header_utime_h = yes; then
4211 cat >> confdefs.h
<<\EOF
4212 #define HAVE_GOOD_UTIME_H 1
4217 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
4218 echo "configure:4219: checking whether fprintf must be declared" >&5
4219 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 cat > conftest.
$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4227 #ifdef HAVE_STRING_H
4230 #ifdef HAVE_STRINGS_H
4231 #include <strings.h>
4234 #ifdef HAVE_STDLIB_H
4237 #ifdef HAVE_UNISTD_H
4241 char *(*pfn) = (char *(*)) fprintf
4244 if { (eval echo configure
:4245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4246 bfd_cv_decl_needed_fprintf
=no
4248 echo "configure: failed program was:" >&5
4249 cat conftest.
$ac_ext >&5
4251 bfd_cv_decl_needed_fprintf
=yes
4256 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
4257 if test $bfd_cv_decl_needed_fprintf = yes; then
4258 bfd_tr_decl
=NEED_DECLARATION_
`echo fprintf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4259 cat >> confdefs.h
<<EOF
4260 #define $bfd_tr_decl 1
4265 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4266 echo "configure:4267: checking whether strstr must be declared" >&5
4267 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 cat > conftest.
$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4275 #ifdef HAVE_STRING_H
4278 #ifdef HAVE_STRINGS_H
4279 #include <strings.h>
4282 #ifdef HAVE_STDLIB_H
4285 #ifdef HAVE_UNISTD_H
4289 char *(*pfn) = (char *(*)) strstr
4292 if { (eval echo configure
:4293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4294 bfd_cv_decl_needed_strstr
=no
4296 echo "configure: failed program was:" >&5
4297 cat conftest.
$ac_ext >&5
4299 bfd_cv_decl_needed_strstr
=yes
4304 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4305 if test $bfd_cv_decl_needed_strstr = yes; then
4306 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4307 cat >> confdefs.h
<<EOF
4308 #define $bfd_tr_decl 1
4313 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4314 echo "configure:4315: checking whether sbrk must be declared" >&5
4315 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 cat > conftest.
$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4323 #ifdef HAVE_STRING_H
4326 #ifdef HAVE_STRINGS_H
4327 #include <strings.h>
4330 #ifdef HAVE_STDLIB_H
4333 #ifdef HAVE_UNISTD_H
4337 char *(*pfn) = (char *(*)) sbrk
4340 if { (eval echo configure
:4341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4342 bfd_cv_decl_needed_sbrk
=no
4344 echo "configure: failed program was:" >&5
4345 cat conftest.
$ac_ext >&5
4347 bfd_cv_decl_needed_sbrk
=yes
4352 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4353 if test $bfd_cv_decl_needed_sbrk = yes; then
4354 bfd_tr_decl
=NEED_DECLARATION_
`echo sbrk | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4355 cat >> confdefs.h
<<EOF
4356 #define $bfd_tr_decl 1
4361 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4362 echo "configure:4363: checking whether getenv must be declared" >&5
4363 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 cat > conftest.
$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4371 #ifdef HAVE_STRING_H
4374 #ifdef HAVE_STRINGS_H
4375 #include <strings.h>
4378 #ifdef HAVE_STDLIB_H
4381 #ifdef HAVE_UNISTD_H
4385 char *(*pfn) = (char *(*)) getenv
4388 if { (eval echo configure
:4389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4390 bfd_cv_decl_needed_getenv
=no
4392 echo "configure: failed program was:" >&5
4393 cat conftest.
$ac_ext >&5
4395 bfd_cv_decl_needed_getenv
=yes
4400 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4401 if test $bfd_cv_decl_needed_getenv = yes; then
4402 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4403 cat >> confdefs.h
<<EOF
4404 #define $bfd_tr_decl 1
4412 i
[345]86-*-msdos* | i
[345]86-*-go32* | i
[345]86-*-mingw32* |
*-*-cygwin32* |
*-*-windows)
4413 cat >> confdefs.h
<<\EOF
4414 #define USE_BINARY_FOPEN 1
4419 # target-specific stuff:
4421 # Canonicalize the secondary target names.
4422 if test -n "$enable_targets"; then
4423 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4425 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4426 if test -n "$result"; then
4427 canon_targets
="$canon_targets $result"
4429 # Allow targets that config.sub doesn't recognize, like "all".
4430 canon_targets
="$canon_targets $targ"
4443 for targ
in $target $canon_targets
4445 if test "x$targ" = "xall"; then
4447 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4448 BUILD_SRCONV
='$(SRCONV_PROG)'
4449 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
4452 i
[3456]86*-*-netware*)
4453 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4454 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
4457 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4458 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
4460 powerpc
*-*-netware*)
4461 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4462 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
4465 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
4466 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
4470 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
4475 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4476 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
4477 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4479 i
[3-6]86-*pe
* | i
[3-6]86-*-cygwin32* | i
[3-6]86-*-mingw32*)
4480 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4481 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
4482 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4484 powerpc
*-*-*pe
* | powerpc
*-*-cygwin32)
4485 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
4486 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
4487 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
4500 cat >> confdefs.h
<<EOF
4501 #define TARGET "${target}"
4506 .
$srcdir/..
/bfd
/config.bfd
4507 if test "x$targ_underscore" = "xyes"; then
4515 cat > confcache
<<\EOF
4516 # This file is a shell script that caches the results of configure
4517 # tests run on this system so they can be shared between configure
4518 # scripts and configure runs. It is not useful on other systems.
4519 # If it contains results you don't want to keep, you may remove or edit it.
4521 # By default, configure uses ./config.cache as the cache file,
4522 # creating it if it does not exist already. You can give configure
4523 # the --cache-file=FILE option to use a different cache file; that is
4524 # what configure does when it calls configure scripts in
4525 # subdirectories, so they share the cache.
4526 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4527 # config.status only pays attention to the cache file if you give it the
4528 # --recheck option to rerun configure.
4531 # The following way of writing the cache mishandles newlines in values,
4532 # but we know of no workaround that is simple, portable, and efficient.
4533 # So, don't put newlines in cache variables' values.
4534 # Ultrix sh set writes to stderr and can't be redirected directly,
4535 # and sets the high bit in the cache file unless we assign to the vars.
4537 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
4539 # `set' does not quote correctly, so add quotes (double-quote substitution
4540 # turns \\\\ into \\, and sed turns \\ into \).
4542 -e "s/'/'\\\\''/g" \
4543 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4546 # `set' quotes correctly as required by POSIX, so do not add quotes.
4547 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4550 if cmp -s $cache_file confcache
; then
4553 if test -w $cache_file; then
4554 echo "updating cache $cache_file"
4555 cat confcache
> $cache_file
4557 echo "not updating unwritable cache $cache_file"
4562 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4564 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4565 # Let make expand exec_prefix.
4566 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4568 # Any assignment to VPATH causes Sun make to only execute
4569 # the first set of double-colon rules, so remove it if not needed.
4570 # If there is a colon in the path, we need to keep it.
4571 if test "x$srcdir" = x.
; then
4572 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4575 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4577 DEFS
=-DHAVE_CONFIG_H
4579 # Without the "./", some shells look in PATH for config.status.
4580 : ${CONFIG_STATUS=./config.status}
4582 echo creating
$CONFIG_STATUS
4583 rm -f $CONFIG_STATUS
4584 cat > $CONFIG_STATUS <<EOF
4586 # Generated automatically by configure.
4587 # Run this file to recreate the current configuration.
4588 # This directory was configured as follows,
4589 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4591 # $0 $ac_configure_args
4593 # Compiler output produced by configure, useful for debugging
4594 # configure, is in ./config.log if it exists.
4596 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4599 case "\$ac_option" in
4600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4601 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4602 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4603 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4604 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
4606 -help | --help | --hel | --he | --h)
4607 echo "\$ac_cs_usage"; exit 0 ;;
4608 *) echo "\$ac_cs_usage"; exit 1 ;;
4612 ac_given_srcdir=$srcdir
4613 ac_given_INSTALL="$INSTALL"
4615 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4617 cat >> $CONFIG_STATUS <<EOF
4619 # Protect against being on the right side of a sed subst in config.status.
4620 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4621 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4625 s%@CFLAGS@%$CFLAGS%g
4626 s%@CPPFLAGS@%$CPPFLAGS%g
4627 s%@CXXFLAGS@%$CXXFLAGS%g
4629 s%@LDFLAGS@%$LDFLAGS%g
4631 s%@exec_prefix@%$exec_prefix%g
4632 s%@prefix@%$prefix%g
4633 s%@program_transform_name@%$program_transform_name%g
4634 s%@bindir@%$bindir%g
4635 s%@sbindir@%$sbindir%g
4636 s%@libexecdir@%$libexecdir%g
4637 s%@datadir@%$datadir%g
4638 s%@sysconfdir@%$sysconfdir%g
4639 s%@sharedstatedir@%$sharedstatedir%g
4640 s%@localstatedir@%$localstatedir%g
4641 s%@libdir@%$libdir%g
4642 s%@includedir@%$includedir%g
4643 s%@oldincludedir@%$oldincludedir%g
4644 s%@infodir@%$infodir%g
4645 s%@mandir@%$mandir%g
4647 s%@host_alias@%$host_alias%g
4648 s%@host_cpu@%$host_cpu%g
4649 s%@host_vendor@%$host_vendor%g
4650 s%@host_os@%$host_os%g
4651 s%@target@%$target%g
4652 s%@target_alias@%$target_alias%g
4653 s%@target_cpu@%$target_cpu%g
4654 s%@target_vendor@%$target_vendor%g
4655 s%@target_os@%$target_os%g
4657 s%@build_alias@%$build_alias%g
4658 s%@build_cpu@%$build_cpu%g
4659 s%@build_vendor@%$build_vendor%g
4660 s%@build_os@%$build_os%g
4661 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4662 s%@INSTALL_DATA@%$INSTALL_DATA%g
4663 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4664 s%@PACKAGE@%$PACKAGE%g
4665 s%@VERSION@%$VERSION%g
4666 s%@ACLOCAL@%$ACLOCAL%g
4667 s%@AUTOCONF@%$AUTOCONF%g
4668 s%@AUTOMAKE@%$AUTOMAKE%g
4669 s%@AUTOHEADER@%$AUTOHEADER%g
4670 s%@MAKEINFO@%$MAKEINFO%g
4671 s%@SET_MAKE@%$SET_MAKE%g
4672 s%@RANLIB@%$RANLIB%g
4677 s%@LIBTOOL@%$LIBTOOL%g
4678 s%@DLLTOOL@%$DLLTOOL%g
4682 s%@LEXLIB@%$LEXLIB%g
4684 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4685 s%@ALLOCA@%$ALLOCA%g
4686 s%@USE_NLS@%$USE_NLS%g
4687 s%@MSGFMT@%$MSGFMT%g
4688 s%@GMSGFMT@%$GMSGFMT%g
4689 s%@XGETTEXT@%$XGETTEXT%g
4690 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4691 s%@CATALOGS@%$CATALOGS%g
4692 s%@CATOBJEXT@%$CATOBJEXT%g
4693 s%@DATADIRNAME@%$DATADIRNAME%g
4694 s%@GMOFILES@%$GMOFILES%g
4695 s%@INSTOBJEXT@%$INSTOBJEXT%g
4696 s%@INTLDEPS@%$INTLDEPS%g
4697 s%@INTLLIBS@%$INTLLIBS%g
4698 s%@INTLOBJS@%$INTLOBJS%g
4699 s%@POFILES@%$POFILES%g
4701 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4703 s%@GT_YES@%$GT_YES%g
4704 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4707 s%@EXEEXT@%$EXEEXT%g
4708 s%@HDEFINES@%$HDEFINES%g
4710 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4711 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
4712 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
4713 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
4714 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
4715 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
4716 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
4717 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
4718 s%@UNDERSCORE@%$UNDERSCORE%g
4723 cat >> $CONFIG_STATUS <<\EOF
4725 # Split the substitutions into bite-sized pieces for seds with
4726 # small command number limits, like on Digital OSF/1 and HP-UX.
4727 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4728 ac_file
=1 # Number of current file.
4729 ac_beg
=1 # First line for current file.
4730 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4733 while $ac_more_lines; do
4734 if test $ac_beg -gt 1; then
4735 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4737 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4739 if test ! -s conftest.s
$ac_file; then
4741 rm -f conftest.s
$ac_file
4743 if test -z "$ac_sed_cmds"; then
4744 ac_sed_cmds
="sed -f conftest.s$ac_file"
4746 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4748 ac_file
=`expr $ac_file + 1`
4750 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4753 if test -z "$ac_sed_cmds"; then
4758 cat >> $CONFIG_STATUS <<EOF
4760 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4762 cat >> $CONFIG_STATUS <<\EOF
4763 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4764 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4766 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4767 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4768 *) ac_file_in
="${ac_file}.in" ;;
4771 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4773 # Remove last slash and all that follows it. Not all systems have dirname.
4774 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4775 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4776 # The file is in a subdirectory.
4777 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4778 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4779 # A "../" for each directory in $ac_dir_suffix.
4780 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4782 ac_dir_suffix
= ac_dots
=
4785 case "$ac_given_srcdir" in
4787 if test -z "$ac_dots"; then top_srcdir
=.
4788 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4789 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4791 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4792 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4795 case "$ac_given_INSTALL" in
4796 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4797 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4800 echo creating
"$ac_file"
4802 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4804 *Makefile
*) ac_comsub
="1i\\
4805 # $configure_input" ;;
4809 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4811 s%@configure_input@%$configure_input%g
4812 s%@srcdir@%$srcdir%g
4813 s%@top_srcdir@%$top_srcdir%g
4814 s%@INSTALL@%$INSTALL%g
4815 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4819 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4820 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4822 # ac_d sets the value in "#define NAME VALUE" lines.
4823 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4824 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4827 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4828 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4829 ac_uB
='\([ ]\)%\1#\2define\3'
4832 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4833 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4834 ac_eB
='$%\1#\2define\3'
4838 if test "${CONFIG_HEADERS+set}" != set; then
4840 cat >> $CONFIG_STATUS <<EOF
4841 CONFIG_HEADERS="config.h:config.in"
4843 cat >> $CONFIG_STATUS <<\EOF
4845 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4848 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4849 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4850 *) ac_file_in
="${ac_file}.in" ;;
4853 echo creating
$ac_file
4855 rm -f conftest.frag conftest.
in conftest.out
4856 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4857 cat $ac_file_inputs > conftest.
in
4861 # Transform confdefs.h into a sed script conftest.vals that substitutes
4862 # the proper values into config.h.in to produce config.h. And first:
4863 # Protect against being on the right side of a sed subst in config.status.
4864 # Protect against being in an unquoted here document in config.status.
4866 cat > conftest.hdr
<<\EOF
4869 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4873 sed -n -f conftest.hdr confdefs.h > conftest.vals
4876 # This sed command replaces #undef with comments. This is necessary, for
4877 # example, in the case of _POSIX_SOURCE, which is predefined and required
4878 # on some systems where configure will not decide to define it.
4879 cat >> conftest.vals <<\EOF
4880 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4883 # Break up conftest.vals because some shells have a limit on
4884 # the size of here documents, and old seds have small limits too.
4889 ac_lines=`grep -c . conftest.vals
`
4890 # grep -c gives empty output for an empty file on some AIX systems.
4891 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4892 # Write a limited-size here document to conftest.frag.
4893 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4894 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4896 sed -f conftest.frag conftest.in > conftest.out
4898 mv conftest.out conftest.in
4900 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4902 mv conftest.tail conftest.vals
4906 cat >> $CONFIG_STATUS <<\EOF
4907 rm -f conftest.frag conftest.h
4908 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4909 cat conftest.in >> conftest.h
4911 if cmp -s $ac_file conftest.h 2>/dev/null; then
4912 echo "$ac_file is unchanged"
4915 # Remove last slash and all that follows it. Not all systems have dirname.
4916 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4917 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4918 # The file is in a subdirectory.
4919 test ! -d "$ac_dir" && mkdir "$ac_dir"
4922 mv conftest.h $ac_file
4927 cat >> $CONFIG_STATUS <<EOF
4931 cat >> $CONFIG_STATUS <<\EOF
4932 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4933 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4936 chmod +x $CONFIG_STATUS
4937 rm -fr confdefs* $ac_clean_files
4938 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1