3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock force libtool not to do file locking"
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.13"
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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
547 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
548 if test -f $ac_dir/install-sh
; then
550 ac_install_sh
="$ac_aux_dir/install-sh -c"
552 elif test -f $ac_dir/install.sh
; then
554 ac_install_sh
="$ac_aux_dir/install.sh -c"
558 if test -z "$ac_aux_dir"; then
559 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
561 ac_config_guess
=$ac_aux_dir/config.guess
562 ac_config_sub
=$ac_aux_dir/config.sub
563 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
566 # Do some error checking and defaulting for the host and target type.
568 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
571 # 1. You are not allowed to specify --host, --target, and nonopt at the
573 # 2. Host defaults to nonopt.
574 # 3. If nonopt is not specified, then host defaults to the current host,
575 # as determined by config.guess.
576 # 4. Target and build default to nonopt.
577 # 5. If nonopt is not specified, then target and build default to host.
579 # The aliases save the names the user supplied, while $host etc.
580 # will get canonicalized.
581 case $host---$target---$nonopt in
582 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
583 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
587 # Make sure we can run config.sub.
588 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
589 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
592 echo $ac_n "checking host system type""... $ac_c" 1>&6
593 echo "configure:594: checking host system type" >&5
596 case "$host_alias" in
600 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
601 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
603 *) host_alias
=$nonopt ;;
607 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
608 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
609 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
610 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
611 echo "$ac_t""$host" 1>&6
613 echo $ac_n "checking target system type""... $ac_c" 1>&6
614 echo "configure:615: checking target system type" >&5
617 case "$target_alias" in
620 NONE
) target_alias
=$host_alias ;;
621 *) target_alias
=$nonopt ;;
625 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
626 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
627 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
628 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
629 echo "$ac_t""$target" 1>&6
631 echo $ac_n "checking build system type""... $ac_c" 1>&6
632 echo "configure:633: checking build system type" >&5
635 case "$build_alias" in
638 NONE
) build_alias
=$host_alias ;;
639 *) build_alias
=$nonopt ;;
643 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
644 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$build" 1>&6
649 test "$host_alias" != "$target_alias" &&
650 test "$program_prefix$program_suffix$program_transform_name" = \
652 program_prefix
=${target_alias}-
655 # Find a good install program. We prefer a C program (faster),
656 # so one script is as good as another. But avoid the broken or
657 # incompatible versions:
658 # SysV /etc/install, /usr/sbin/install
659 # SunOS /usr/etc/install
662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
665 # ./install, which can be erroneously created by make from ./install.sh.
666 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
667 echo "configure:668: checking for a BSD compatible install" >&5
668 if test -z "$INSTALL"; then
669 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
673 for ac_dir
in $PATH; do
674 # Account for people who put trailing slashes in PATH elements.
676 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
678 # OSF1 and SCO ODT 3.0 have their own names for install.
679 # Don't use installbsd from OSF since it installs stuff as root
681 for ac_prog
in ginstall scoinst
install; do
682 if test -f $ac_dir/$ac_prog; then
683 if test $ac_prog = install &&
684 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
685 # AIX install. It has an incompatible calling convention.
688 ac_cv_path_install
="$ac_dir/$ac_prog -c"
699 if test "${ac_cv_path_install+set}" = set; then
700 INSTALL
="$ac_cv_path_install"
702 # As a last resort, use the slow shell script. We don't cache a
703 # path for INSTALL within a source directory, because that will
704 # break other packages using the cache if that directory is
705 # removed, or if the path is relative.
706 INSTALL
="$ac_install_sh"
709 echo "$ac_t""$INSTALL" 1>&6
711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
712 # It thinks the first close brace ends the variable substitution.
713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
717 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
719 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
720 echo "configure:721: checking whether build environment is sane" >&5
723 echo timestamp
> conftestfile
724 # Do `set' in a subshell so we don't clobber the current shell's
725 # arguments. Must try -L first in case configure is actually a
726 # symlink; some systems play weird games with the mod time of symlinks
727 # (eg FreeBSD returns the mod time of the symlink's containing
730 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
731 if test "$*" = "X"; then
733 set X
`ls -t $srcdir/configure conftestfile`
735 if test "$*" != "X $srcdir/configure conftestfile" \
736 && test "$*" != "X conftestfile $srcdir/configure"; then
738 # If neither matched, then we have a broken ls. This can happen
739 # if, for instance, CONFIG_SHELL is bash and it inherits a
740 # broken ls alias from the environment. This has actually
741 # happened. Such a system could not be considered "sane".
742 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
743 alias in your environment" 1>&2; exit 1; }
746 test "$2" = conftestfile
752 { echo "configure: error: newly created file is older than distributed files!
753 Check your system clock" 1>&2; exit 1; }
756 echo "$ac_t""yes" 1>&6
757 if test "$program_transform_name" = s
,x
,x
,; then
758 program_transform_name
=
760 # Double any \ or $. echo might interpret backslashes.
761 cat <<\EOF_SED
> conftestsed
762 s
,\\,\\\\,g
; s
,\$
,$$
,g
764 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
767 test "$program_prefix" != NONE
&&
768 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
769 # Use a double $ so make ignores it.
770 test "$program_suffix" != NONE
&&
771 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
773 # sed with no file args requires a program.
774 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
776 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
777 echo "configure:778: checking whether ${MAKE-make} sets \${MAKE}" >&5
778 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
779 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 cat > conftestmake
<<\EOF
784 @
echo 'ac_maketemp="${MAKE}"'
786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
787 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
788 if test -n "$ac_maketemp"; then
789 eval ac_cv_prog_make_
${ac_make}_set
=yes
791 eval ac_cv_prog_make_
${ac_make}_set
=no
795 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
796 echo "$ac_t""yes" 1>&6
799 echo "$ac_t""no" 1>&6
800 SET_MAKE
="MAKE=${MAKE-make}"
808 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
809 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
811 cat >> confdefs.h
<<EOF
812 #define PACKAGE "$PACKAGE"
815 cat >> confdefs.h
<<EOF
816 #define VERSION "$VERSION"
821 missing_dir
=`cd $ac_aux_dir && pwd`
822 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
823 echo "configure:824: checking for working aclocal" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
829 echo "$ac_t""found" 1>&6
831 ACLOCAL
="$missing_dir/missing aclocal"
832 echo "$ac_t""missing" 1>&6
835 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
836 echo "configure:837: checking for working autoconf" >&5
837 # Run test in a subshell; some versions of sh will print an error if
838 # an executable is not found, even if stderr is redirected.
839 # Redirect stdin to placate older versions of autoconf. Sigh.
840 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
842 echo "$ac_t""found" 1>&6
844 AUTOCONF
="$missing_dir/missing autoconf"
845 echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking for working automake""... $ac_c" 1>&6
849 echo "configure:850: checking for working automake" >&5
850 # Run test in a subshell; some versions of sh will print an error if
851 # an executable is not found, even if stderr is redirected.
852 # Redirect stdin to placate older versions of autoconf. Sigh.
853 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
855 echo "$ac_t""found" 1>&6
857 AUTOMAKE
="$missing_dir/missing automake"
858 echo "$ac_t""missing" 1>&6
861 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
862 echo "configure:863: checking for working autoheader" >&5
863 # Run test in a subshell; some versions of sh will print an error if
864 # an executable is not found, even if stderr is redirected.
865 # Redirect stdin to placate older versions of autoconf. Sigh.
866 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
867 AUTOHEADER
=autoheader
868 echo "$ac_t""found" 1>&6
870 AUTOHEADER
="$missing_dir/missing autoheader"
871 echo "$ac_t""missing" 1>&6
874 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
875 echo "configure:876: checking for working makeinfo" >&5
876 # Run test in a subshell; some versions of sh will print an error if
877 # an executable is not found, even if stderr is redirected.
878 # Redirect stdin to placate older versions of autoconf. Sigh.
879 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
881 echo "$ac_t""found" 1>&6
883 MAKEINFO
="$missing_dir/missing makeinfo"
884 echo "$ac_t""missing" 1>&6
889 # Check whether --enable-shared or --disable-shared was given.
890 if test "${enable_shared+set}" = set; then
891 enableval
="$enable_shared"
894 yes) enable_shared
=yes ;;
895 no
) enable_shared
=no
;;
898 # Look at the argument we got. We use all the common list separators.
899 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
900 for pkg
in $enableval; do
901 if test "X$pkg" = "X$p"; then
912 # Check whether --enable-static or --disable-static was given.
913 if test "${enable_static+set}" = set; then
914 enableval
="$enable_static"
917 yes) enable_static
=yes ;;
918 no
) enable_static
=no
;;
921 # Look at the argument we got. We use all the common list separators.
922 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
923 for pkg
in $enableval; do
924 if test "X$pkg" = "X$p"; then
935 # Check whether --enable-fast-install or --disable-fast-install was given.
936 if test "${enable_fast_install+set}" = set; then
937 enableval
="$enable_fast_install"
940 yes) enable_fast_install
=yes ;;
941 no
) enable_fast_install
=no
;;
943 enable_fast_install
=no
944 # Look at the argument we got. We use all the common list separators.
945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
946 for pkg
in $enableval; do
947 if test "X$pkg" = "X$p"; then
948 enable_fast_install
=yes
955 enable_fast_install
=yes
958 # Extract the first word of "ranlib", so it can be a program name with args.
959 set dummy ranlib
; ac_word
=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$RANLIB"; then
966 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
968 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
970 for ac_dir
in $ac_dummy; do
971 test -z "$ac_dir" && ac_dir
=.
972 if test -f $ac_dir/$ac_word; then
973 ac_cv_prog_RANLIB
="ranlib"
978 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
981 RANLIB
="$ac_cv_prog_RANLIB"
982 if test -n "$RANLIB"; then
983 echo "$ac_t""$RANLIB" 1>&6
985 echo "$ac_t""no" 1>&6
988 # Extract the first word of "gcc", so it can be a program name with args.
989 set dummy gcc
; ac_word
=$2
990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
991 echo "configure:992: checking for $ac_word" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 if test -n "$CC"; then
996 ac_cv_prog_CC
="$CC" # Let the user override the test.
998 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1000 for ac_dir
in $ac_dummy; do
1001 test -z "$ac_dir" && ac_dir
=.
1002 if test -f $ac_dir/$ac_word; then
1011 if test -n "$CC"; then
1012 echo "$ac_t""$CC" 1>&6
1014 echo "$ac_t""no" 1>&6
1017 if test -z "$CC"; then
1018 # Extract the first word of "cc", so it can be a program name with args.
1019 set dummy cc
; ac_word
=$2
1020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1021 echo "configure:1022: checking for $ac_word" >&5
1022 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 if test -n "$CC"; then
1026 ac_cv_prog_CC
="$CC" # Let the user override the test.
1028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1031 for ac_dir
in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir
=.
1033 if test -f $ac_dir/$ac_word; then
1034 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1035 ac_prog_rejected
=yes
1043 if test $ac_prog_rejected = yes; then
1044 # We found a bogon in the path, so make sure we never use it.
1045 set dummy
$ac_cv_prog_CC
1047 if test $# -gt 0; then
1048 # We chose a different compiler from the bogus one.
1049 # However, it has the same basename, so the bogon will be chosen
1050 # first if we set CC to just the basename; use the full file name.
1052 set dummy
"$ac_dir/$ac_word" "$@"
1060 if test -n "$CC"; then
1061 echo "$ac_t""$CC" 1>&6
1063 echo "$ac_t""no" 1>&6
1066 if test -z "$CC"; then
1067 case "`uname -s`" in
1069 # Extract the first word of "cl", so it can be a program name with args.
1070 set dummy cl
; ac_word
=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC
="$CC" # Let the user override the test.
1079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1081 for ac_dir
in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1092 if test -n "$CC"; then
1093 echo "$ac_t""$CC" 1>&6
1095 echo "$ac_t""no" 1>&6
1100 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1103 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1108 ac_cpp
='$CPP $CPPFLAGS'
1109 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1110 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1111 cross_compiling
=$ac_cv_prog_cc_cross
1113 cat > conftest.
$ac_ext << EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1120 if { (eval echo configure
:1121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1121 ac_cv_prog_cc_works
=yes
1122 # If we can't run a trivial program, we are probably using a cross compiler.
1123 if (.
/conftest
; exit) 2>/dev
/null
; then
1124 ac_cv_prog_cc_cross
=no
1126 ac_cv_prog_cc_cross
=yes
1129 echo "configure: failed program was:" >&5
1130 cat conftest.
$ac_ext >&5
1131 ac_cv_prog_cc_works
=no
1135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1136 ac_cpp
='$CPP $CPPFLAGS'
1137 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1138 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1139 cross_compiling
=$ac_cv_prog_cc_cross
1141 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1142 if test $ac_cv_prog_cc_works = no
; then
1143 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1145 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1146 echo "configure:1147: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1147 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1148 cross_compiling
=$ac_cv_prog_cc_cross
1150 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether we are using GNU C" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 cat > conftest.c
<<EOF
1160 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1167 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1169 if test $ac_cv_prog_gcc = yes; then
1175 ac_test_CFLAGS
="${CFLAGS+set}"
1176 ac_save_CFLAGS
="$CFLAGS"
1178 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether ${CC-cc} accepts -g" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 echo 'void f(){}' > conftest.c
1184 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1193 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1194 if test "$ac_test_CFLAGS" = set; then
1195 CFLAGS
="$ac_save_CFLAGS"
1196 elif test $ac_cv_prog_cc_g = yes; then
1197 if test "$GCC" = yes; then
1203 if test "$GCC" = yes; then
1210 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1211 if test "${with_gnu_ld+set}" = set; then
1212 withval
="$with_gnu_ld"
1213 test "$withval" = no || with_gnu_ld
=yes
1219 if test "$ac_cv_prog_gcc" = yes; then
1220 # Check if gcc -print-prog-name=ld gives a path.
1221 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1222 echo "configure:1223: checking for ld used by GCC" >&5
1223 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1225 # Accept absolute paths.
1226 /* |
[A-Za-z
]:[\\/]*)
1227 re_direlt
='/[^/][^/]*/\.\./'
1228 # Canonicalize the path of ld
1229 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1230 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1231 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1233 test -z "$LD" && LD
="$ac_prog"
1236 # If it fails, then pretend we aren't using GCC.
1240 # If it is relative, then search for the first ld in PATH.
1244 elif test "$with_gnu_ld" = yes; then
1245 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1246 echo "configure:1247: checking for GNU ld" >&5
1248 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1249 echo "configure:1250: checking for non-GNU ld" >&5
1251 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 if test -z "$LD"; then
1255 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1256 for ac_dir
in $PATH; do
1257 test -z "$ac_dir" && ac_dir
=.
1258 if test -f "$ac_dir/$ac_prog"; then
1259 ac_cv_path_LD
="$ac_dir/$ac_prog"
1260 # Check to see if the program is GNU ld. I'd rather use --version,
1261 # but apparently some GNU ld's only accept -v.
1262 # Break only if it was the GNU/non-GNU ld that we prefer.
1263 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1264 test "$with_gnu_ld" != no
&& break
1266 test "$with_gnu_ld" != yes && break
1272 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1277 if test -n "$LD"; then
1278 echo "$ac_t""$LD" 1>&6
1280 echo "$ac_t""no" 1>&6
1282 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1284 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1285 echo "configure:1286: checking if the linker ($LD) is GNU ld" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1290 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1291 ac_cv_prog_gnu_ld
=yes
1293 ac_cv_prog_gnu_ld
=no
1297 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1300 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1301 echo "configure:1302: checking for BSD-compatible nm" >&5
1302 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 if test -n "$NM"; then
1306 # Let the user override the test.
1309 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1310 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1311 test -z "$ac_dir" && ac_dir
=.
1312 if test -f $ac_dir/nm
; then
1313 # Check to see if the nm accepts a BSD-compat flag.
1314 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1315 # nm: unknown option "B" ignored
1316 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1317 ac_cv_path_NM
="$ac_dir/nm -B"
1319 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1320 ac_cv_path_NM
="$ac_dir/nm -p"
1323 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1324 continue # so that we can try to find one that supports BSD flags
1329 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1334 echo "$ac_t""$NM" 1>&6
1337 # Check for command to grab the raw symbol name followed by C symbol from nm.
1338 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1339 echo "configure:1340: checking command to parse $NM output" >&5
1340 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 # These are sane defaults that work on at least a few old systems.
1344 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1346 # Character class describing NM global symbol codes.
1347 ac_symcode
='[BCDEGRST]'
1349 # Regexp to match symbols that can be accessed directly from C.
1350 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1352 # Transform the above into a raw symbol and a C symbol.
1353 ac_symxfrm
='\1 \2\3 \3'
1355 # Transform an extracted symbol line into a proper C declaration
1356 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1358 # Define system-specific variables.
1364 ac_symcode
='[ABCDGISTW]'
1367 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1370 ac_symcode
='[BCDEGRST]'
1377 # If we're using GNU nm, then use its standard symbol codes.
1378 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1379 ac_symcode
='[ABCDGISTW]'
1382 # Try without a prefix undercore, then with it.
1383 for ac_symprfx
in "" "_"; do
1385 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1387 # Check to see that the pipe works correctly.
1389 rm -f conftest.
$ac_ext
1390 cat > conftest.
$ac_ext <<EOF
1395 void nm_test_func(){}
1399 int main(){nm_test_var='a';nm_test_func;return 0;}
1402 if { (eval echo configure
:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403 # Now try to grab the symbols.
1404 ac_nlist
=conftest.nm
1406 if { (eval echo configure
:1407: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1408 # Try sorting and uniquifying the output.
1409 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1410 mv -f "$ac_nlist"T
"$ac_nlist"
1415 # Make sure that we snagged all the symbols we need.
1416 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1417 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1418 cat <<EOF > conftest.c
1424 # Now generate the symbol file.
1425 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1427 cat <<EOF >> conftest.c
1428 #if defined (__STDC__) && __STDC__
1429 # define lt_ptr_t void *
1431 # define lt_ptr_t char *
1435 /* The mapping between symbol names and symbols. */
1440 lt_preloaded_symbols[] =
1443 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1444 cat <<\EOF
>> conftest.c
1452 # Now try linking the two files.
1453 mv conftest.
$ac_objext conftestm.
$ac_objext
1454 ac_save_LIBS
="$LIBS"
1455 ac_save_CFLAGS
="$CFLAGS"
1456 LIBS
="conftestm.$ac_objext"
1457 CFLAGS
="$CFLAGS$no_builtin_flag"
1458 if { (eval echo configure
:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1461 echo "configure: failed program was:" >&5
1464 LIBS
="$ac_save_LIBS"
1465 CFLAGS
="$ac_save_CFLAGS"
1467 echo "cannot find nm_test_func in $ac_nlist" >&5
1470 echo "cannot find nm_test_var in $ac_nlist" >&5
1473 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1476 echo "$progname: failed program was:" >&5
1481 # Do not use the global_symbol_pipe unless it works.
1482 if test "$ac_pipe_works" = yes; then
1483 if test x
"$ac_symprfx" = x
"_"; then
1484 ac_cv_sys_symbol_underscore
=yes
1486 ac_cv_sys_symbol_underscore
=no
1490 ac_cv_sys_global_symbol_pipe
=
1498 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1501 echo "$ac_t""$ac_result" 1>&6
1503 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1504 echo "configure:1505: checking for _ prefix in compiled symbols" >&5
1505 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 ac_cv_sys_symbol_underscore
=no
1509 cat > conftest.
$ac_ext <<EOF
1510 void nm_test_func(){}
1511 int main(){nm_test_func;return 0;}
1513 if { (eval echo configure
:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1514 # Now try to grab the symbols.
1515 ac_nlist
=conftest.nm
1516 if { (eval echo configure
:1517: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1517 # See whether the symbols have a leading underscore.
1518 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
1519 ac_cv_sys_symbol_underscore
=yes
1521 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
1524 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1528 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1531 echo "configure: failed program was:" >&5
1538 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1539 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
1541 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1542 echo "configure:1543: checking whether ln -s works" >&5
1543 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1547 if ln -s X conftestdata
2>/dev
/null
1550 ac_cv_prog_LN_S
="ln -s"
1555 LN_S
="$ac_cv_prog_LN_S"
1556 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1557 echo "$ac_t""yes" 1>&6
1559 echo "$ac_t""no" 1>&6
1562 if test $host != $build; then
1563 ac_tool_prefix
=${host_alias}-
1569 # Check for any special flags to pass to ltconfig.
1570 libtool_flags
="--cache-file=$cache_file"
1571 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1572 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1573 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1574 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
1575 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1576 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1577 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1579 # Some flags need to be propagated to the compiler or linker for good
1583 # Find out which ABI we are using.
1584 echo '#line 1585 "configure"' > conftest.
$ac_ext
1585 if { (eval echo configure
:1586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1586 case "`/usr/bin/file conftest.o`" in
1602 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1603 SAVE_CFLAGS
="$CFLAGS"
1604 CFLAGS
="$CFLAGS -belf"
1605 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1606 echo "configure:1607: checking whether the C compiler needs -belf" >&5
1607 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 cat > conftest.
$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1618 if { (eval echo configure
:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1620 lt_cv_cc_needs_belf
=yes
1622 echo "configure: failed program was:" >&5
1623 cat conftest.
$ac_ext >&5
1625 lt_cv_cc_needs_belf
=no
1630 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1631 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1633 CFLAGS
="$SAVE_CFLAGS"
1638 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1639 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1641 echo "configure:1642: checking for $ac_word" >&5
1642 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 if test -n "$DLLTOOL"; then
1646 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1648 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1650 for ac_dir
in $ac_dummy; do
1651 test -z "$ac_dir" && ac_dir
=.
1652 if test -f $ac_dir/$ac_word; then
1653 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1660 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1661 if test -n "$DLLTOOL"; then
1662 echo "$ac_t""$DLLTOOL" 1>&6
1664 echo "$ac_t""no" 1>&6
1668 if test -z "$ac_cv_prog_DLLTOOL"; then
1669 if test -n "$ac_tool_prefix"; then
1670 # Extract the first word of "dlltool", so it can be a program name with args.
1671 set dummy dlltool
; ac_word
=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 if test -n "$DLLTOOL"; then
1678 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1682 for ac_dir
in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir
=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_prog_DLLTOOL
="dlltool"
1690 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1693 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1694 if test -n "$DLLTOOL"; then
1695 echo "$ac_t""$DLLTOOL" 1>&6
1697 echo "$ac_t""no" 1>&6
1705 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1706 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_word" >&5
1709 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 if test -n "$AS"; then
1713 ac_cv_prog_AS
="$AS" # Let the user override the test.
1715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1717 for ac_dir
in $ac_dummy; do
1718 test -z "$ac_dir" && ac_dir
=.
1719 if test -f $ac_dir/$ac_word; then
1720 ac_cv_prog_AS
="${ac_tool_prefix}as"
1728 if test -n "$AS"; then
1729 echo "$ac_t""$AS" 1>&6
1731 echo "$ac_t""no" 1>&6
1735 if test -z "$ac_cv_prog_AS"; then
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "as", so it can be a program name with args.
1738 set dummy as
; ac_word
=$2
1739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_word" >&5
1741 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 if test -n "$AS"; then
1745 ac_cv_prog_AS
="$AS" # Let the user override the test.
1747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1749 for ac_dir
in $ac_dummy; do
1750 test -z "$ac_dir" && ac_dir
=.
1751 if test -f $ac_dir/$ac_word; then
1757 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1761 if test -n "$AS"; then
1762 echo "$ac_t""$AS" 1>&6
1764 echo "$ac_t""no" 1>&6
1777 # enable the --disable-libtool-lock switch
1779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1780 if test "${enable_libtool_lock+set}" = set; then
1781 enableval
="$enable_libtool_lock"
1782 need_locks
=$enableval
1788 if test x
"$need_locks" = xno
; then
1789 libtool_flags
="$libtool_flags --disable-lock"
1793 # Save cache, so that ltconfig can load it
1794 cat > confcache
<<\EOF
1795 # This file is a shell script that caches the results of configure
1796 # tests run on this system so they can be shared between configure
1797 # scripts and configure runs. It is not useful on other systems.
1798 # If it contains results you don't want to keep, you may remove or edit it.
1800 # By default, configure uses ./config.cache as the cache file,
1801 # creating it if it does not exist already. You can give configure
1802 # the --cache-file=FILE option to use a different cache file; that is
1803 # what configure does when it calls configure scripts in
1804 # subdirectories, so they share the cache.
1805 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1806 # config.status only pays attention to the cache file if you give it the
1807 # --recheck option to rerun configure.
1810 # The following way of writing the cache mishandles newlines in values,
1811 # but we know of no workaround that is simple, portable, and efficient.
1812 # So, don't put newlines in cache variables' values.
1813 # Ultrix sh set writes to stderr and can't be redirected directly,
1814 # and sets the high bit in the cache file unless we assign to the vars.
1816 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1818 # `set' does not quote correctly, so add quotes (double-quote substitution
1819 # turns \\\\ into \\, and sed turns \\ into \).
1821 -e "s/'/'\\\\''/g" \
1822 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1825 # `set' quotes correctly as required by POSIX, so do not add quotes.
1826 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1829 if cmp -s $cache_file confcache
; then
1832 if test -w $cache_file; then
1833 echo "updating cache $cache_file"
1834 cat confcache
> $cache_file
1836 echo "not updating unwritable cache $cache_file"
1842 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1843 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1844 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1845 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1846 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1847 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1848 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1850 # Reload cache, that may have been modified by ltconfig
1851 if test -r "$cache_file"; then
1852 echo "loading cache $cache_file"
1855 echo "creating cache $cache_file"
1860 # This can be used to rebuild libtool when needed
1861 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1863 # Always use our own libtool.
1864 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1866 # Redirect the config.log output again, so that the ltconfig log is not
1867 # clobbered by the next message.
1868 exec 5>>.
/config.log
1871 # Check whether --enable-targets or --disable-targets was given.
1872 if test "${enable_targets+set}" = set; then
1873 enableval
="$enable_targets"
1874 case "${enableval}" in
1875 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1877 no
) enable_targets
= ;;
1878 *) enable_targets
=$enableval ;;
1881 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1882 if test "${enable_commonbfdlib+set}" = set; then
1883 enableval
="$enable_commonbfdlib"
1884 case "${enableval}" in
1885 yes) commonbfdlib
=true
;;
1886 no
) commonbfdlib
=false
;;
1887 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1895 if test -z "$target" ; then
1896 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1898 if test -z "$host" ; then
1899 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1902 # Extract the first word of "gcc", so it can be a program name with args.
1903 set dummy gcc
; ac_word
=$2
1904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_word" >&5
1906 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC
="$CC" # Let the user override the test.
1912 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1914 for ac_dir
in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir
=.
1916 if test -f $ac_dir/$ac_word; then
1925 if test -n "$CC"; then
1926 echo "$ac_t""$CC" 1>&6
1928 echo "$ac_t""no" 1>&6
1931 if test -z "$CC"; then
1932 # Extract the first word of "cc", so it can be a program name with args.
1933 set dummy cc
; ac_word
=$2
1934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1935 echo "configure:1936: checking for $ac_word" >&5
1936 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC
="$CC" # Let the user override the test.
1942 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1945 for ac_dir
in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir
=.
1947 if test -f $ac_dir/$ac_word; then
1948 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1949 ac_prog_rejected
=yes
1957 if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy
$ac_cv_prog_CC
1961 if test $# -gt 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1966 set dummy
"$ac_dir/$ac_word" "$@"
1974 if test -n "$CC"; then
1975 echo "$ac_t""$CC" 1>&6
1977 echo "$ac_t""no" 1>&6
1980 if test -z "$CC"; then
1981 case "`uname -s`" in
1983 # Extract the first word of "cl", so it can be a program name with args.
1984 set dummy cl
; ac_word
=$2
1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_word" >&5
1987 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC
="$CC" # Let the user override the test.
1993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1995 for ac_dir
in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir
=.
1997 if test -f $ac_dir/$ac_word; then
2006 if test -n "$CC"; then
2007 echo "$ac_t""$CC" 1>&6
2009 echo "$ac_t""no" 1>&6
2014 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2017 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2022 ac_cpp
='$CPP $CPPFLAGS'
2023 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2024 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2025 cross_compiling
=$ac_cv_prog_cc_cross
2027 cat > conftest.
$ac_ext << EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2034 if { (eval echo configure
:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2035 ac_cv_prog_cc_works
=yes
2036 # If we can't run a trivial program, we are probably using a cross compiler.
2037 if (.
/conftest
; exit) 2>/dev
/null
; then
2038 ac_cv_prog_cc_cross
=no
2040 ac_cv_prog_cc_cross
=yes
2043 echo "configure: failed program was:" >&5
2044 cat conftest.
$ac_ext >&5
2045 ac_cv_prog_cc_works
=no
2049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2050 ac_cpp
='$CPP $CPPFLAGS'
2051 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2052 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2053 cross_compiling
=$ac_cv_prog_cc_cross
2055 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2056 if test $ac_cv_prog_cc_works = no
; then
2057 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2059 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2060 echo "configure:2061: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2061 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2062 cross_compiling
=$ac_cv_prog_cc_cross
2064 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2065 echo "configure:2066: checking whether we are using GNU C" >&5
2066 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.c
<<EOF
2074 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2081 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2083 if test $ac_cv_prog_gcc = yes; then
2089 ac_test_CFLAGS
="${CFLAGS+set}"
2090 ac_save_CFLAGS
="$CFLAGS"
2092 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2093 echo "configure:2094: checking whether ${CC-cc} accepts -g" >&5
2094 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 echo 'void f(){}' > conftest.c
2098 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2107 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2108 if test "$ac_test_CFLAGS" = set; then
2109 CFLAGS
="$ac_save_CFLAGS"
2110 elif test $ac_cv_prog_cc_g = yes; then
2111 if test "$GCC" = yes; then
2117 if test "$GCC" = yes; then
2125 for ac_prog
in 'bison -y' byacc
2127 # Extract the first word of "$ac_prog", so it can be a program name with args.
2128 set dummy
$ac_prog; ac_word
=$2
2129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2130 echo "configure:2131: checking for $ac_word" >&5
2131 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 if test -n "$YACC"; then
2135 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2137 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2139 for ac_dir
in $ac_dummy; do
2140 test -z "$ac_dir" && ac_dir
=.
2141 if test -f $ac_dir/$ac_word; then
2142 ac_cv_prog_YACC
="$ac_prog"
2149 YACC
="$ac_cv_prog_YACC"
2150 if test -n "$YACC"; then
2151 echo "$ac_t""$YACC" 1>&6
2153 echo "$ac_t""no" 1>&6
2156 test -n "$YACC" && break
2158 test -n "$YACC" || YACC
="yacc"
2160 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2161 echo "configure:2162: checking how to run the C preprocessor" >&5
2162 # On Suns, sometimes $CPP names a directory.
2163 if test -n "$CPP" && test -d "$CPP"; then
2166 if test -z "$CPP"; then
2167 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 # This must be in double quotes, not single quotes, because CPP may get
2171 # substituted into the Makefile and "${CC-cc}" will confuse make.
2173 # On the NeXT, cc -E runs the code through the compiler's parser,
2174 # not just through cpp.
2175 cat > conftest.
$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2181 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2182 { (eval echo configure
:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2183 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2184 if test -z "$ac_err"; then
2188 echo "configure: failed program was:" >&5
2189 cat conftest.
$ac_ext >&5
2191 CPP
="${CC-cc} -E -traditional-cpp"
2192 cat > conftest.
$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2198 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure
:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2205 echo "configure: failed program was:" >&5
2206 cat conftest.
$ac_ext >&5
2208 CPP
="${CC-cc} -nologo -E"
2209 cat > conftest.
$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2215 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2216 { (eval echo configure
:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2217 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2218 if test -z "$ac_err"; then
2222 echo "configure: failed program was:" >&5
2223 cat conftest.
$ac_ext >&5
2232 ac_cv_prog_CPP
="$CPP"
2234 CPP
="$ac_cv_prog_CPP"
2236 ac_cv_prog_CPP
="$CPP"
2238 echo "$ac_t""$CPP" 1>&6
2240 missing_dir
=`cd $ac_aux_dir && pwd`
2241 for ac_prog
in flex
lex
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy
$ac_prog; ac_word
=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 if test -n "$LEX"; then
2251 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2253 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2255 for ac_dir
in $ac_dummy; do
2256 test -z "$ac_dir" && ac_dir
=.
2257 if test -f $ac_dir/$ac_word; then
2258 ac_cv_prog_LEX
="$ac_prog"
2265 LEX
="$ac_cv_prog_LEX"
2266 if test -n "$LEX"; then
2267 echo "$ac_t""$LEX" 1>&6
2269 echo "$ac_t""no" 1>&6
2272 test -n "$LEX" && break
2274 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2276 # Extract the first word of "flex", so it can be a program name with args.
2277 set dummy flex
; ac_word
=$2
2278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2279 echo "configure:2280: checking for $ac_word" >&5
2280 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 if test -n "$LEX"; then
2284 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2286 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2288 for ac_dir
in $ac_dummy; do
2289 test -z "$ac_dir" && ac_dir
=.
2290 if test -f $ac_dir/$ac_word; then
2291 ac_cv_prog_LEX
="flex"
2296 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2299 LEX
="$ac_cv_prog_LEX"
2300 if test -n "$LEX"; then
2301 echo "$ac_t""$LEX" 1>&6
2303 echo "$ac_t""no" 1>&6
2306 if test -z "$LEXLIB"
2312 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2313 echo "configure:2314: checking for yywrap in -l$ac_lib" >&5
2314 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 ac_save_LIBS
="$LIBS"
2319 LIBS
="-l$ac_lib $LIBS"
2320 cat > conftest.
$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 /* Override any gcc2 internal prototype to avoid an error. */
2324 /* We use char because int might match the return type of a gcc2
2325 builtin and then its argument prototype would still apply. */
2332 if { (eval echo configure
:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2334 eval "ac_cv_lib_$ac_lib_var=yes"
2336 echo "configure: failed program was:" >&5
2337 cat conftest.
$ac_ext >&5
2339 eval "ac_cv_lib_$ac_lib_var=no"
2342 LIBS
="$ac_save_LIBS"
2345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2349 echo "$ac_t""no" 1>&6
2354 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2355 echo "configure:2356: checking lex output file root" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 # The minimal lex program is just a single line: %%. But some broken lexes
2360 # (Solaris, I think it was) want two %% lines, so accommodate them.
2363 if test -f lex.yy.c
; then
2364 ac_cv_prog_lex_root
=lex.yy
2365 elif test -f lexyy.c
; then
2366 ac_cv_prog_lex_root
=lexyy
2368 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2372 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2373 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2375 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2376 echo "configure:2377: checking whether yytext is a pointer" >&5
2377 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 # POSIX says lex can declare yytext either as a pointer or an array; the
2381 # default is implementation-dependent. Figure out which it is, since
2382 # not all implementations provide the %pointer and %array declarations.
2383 ac_cv_prog_lex_yytext_pointer
=no
2384 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2385 ac_save_LIBS
="$LIBS"
2386 LIBS
="$LIBS $LEXLIB"
2387 cat > conftest.
$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 `cat $LEX_OUTPUT_ROOT.c`
2395 if { (eval echo configure
:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2397 ac_cv_prog_lex_yytext_pointer
=yes
2399 echo "configure: failed program was:" >&5
2400 cat conftest.
$ac_ext >&5
2403 LIBS
="$ac_save_LIBS"
2404 rm -f "${LEX_OUTPUT_ROOT}.c"
2408 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2409 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2410 cat >> confdefs.h
<<\EOF
2411 #define YYTEXT_POINTER 1
2418 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2419 echo "configure:2420: checking for POSIXized ISC" >&5
2420 if test -d /etc
/conf
/kconfig.d
&&
2421 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2423 echo "$ac_t""yes" 1>&6
2424 ISC
=yes # If later tests want to check for ISC.
2425 cat >> confdefs.h
<<\EOF
2426 #define _POSIX_SOURCE 1
2429 if test "$GCC" = yes; then
2435 echo "$ac_t""no" 1>&6
2439 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2440 echo "configure:2441: checking for ANSI C header files" >&5
2441 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 cat > conftest.
$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2452 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2453 { (eval echo configure
:2454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2454 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2455 if test -z "$ac_err"; then
2457 ac_cv_header_stdc
=yes
2460 echo "configure: failed program was:" >&5
2461 cat conftest.
$ac_ext >&5
2463 ac_cv_header_stdc
=no
2467 if test $ac_cv_header_stdc = yes; then
2468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2475 egrep "memchr" >/dev
/null
2>&1; then
2479 ac_cv_header_stdc
=no
2485 if test $ac_cv_header_stdc = yes; then
2486 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2487 cat > conftest.
$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2493 egrep "free" >/dev
/null
2>&1; then
2497 ac_cv_header_stdc
=no
2503 if test $ac_cv_header_stdc = yes; then
2504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2505 if test "$cross_compiling" = yes; then
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2512 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2513 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2515 int main () { int i; for (i = 0; i < 256; i++)
2516 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2520 if { (eval echo configure
:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2524 echo "configure: failed program was:" >&5
2525 cat conftest.
$ac_ext >&5
2527 ac_cv_header_stdc
=no
2535 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2536 if test $ac_cv_header_stdc = yes; then
2537 cat >> confdefs.h
<<\EOF
2538 #define STDC_HEADERS 1
2543 echo $ac_n "checking for working const""... $ac_c" 1>&6
2544 echo "configure:2545: checking for working const" >&5
2545 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.
$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2554 /* Ultrix mips cc rejects this. */
2555 typedef int charset[2]; const charset x;
2556 /* SunOS 4.1.1 cc rejects this. */
2557 char const *const *ccp;
2559 /* NEC SVR4.0.2 mips cc rejects this. */
2560 struct point {int x, y;};
2561 static struct point const zero = {0,0};
2562 /* AIX XL C 1.02.0.0 rejects this.
2563 It does not let you subtract one const X* pointer from another in an arm
2564 of an if-expression whose if-part is not a constant expression */
2565 const char *g = "string";
2566 ccp = &g + (g ? g-g : 0);
2567 /* HPUX 7.0 cc rejects these. */
2570 ccp = (char const *const *) p;
2571 { /* SCO 3.2v4 cc rejects this. */
2573 char const *s = 0 ? (char *) 0 : (char const *) 0;
2577 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2579 const int *foo = &x[0];
2582 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2583 typedef const int *iptr;
2587 { /* AIX XL C 1.02.0.0 rejects this saying
2588 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2589 struct s { int j; const int *ap[3]; };
2590 struct s *b; b->j = 5;
2592 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2598 if { (eval echo configure
:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2602 echo "configure: failed program was:" >&5
2603 cat conftest.
$ac_ext >&5
2610 echo "$ac_t""$ac_cv_c_const" 1>&6
2611 if test $ac_cv_c_const = no
; then
2612 cat >> confdefs.h
<<\EOF
2618 echo $ac_n "checking for inline""... $ac_c" 1>&6
2619 echo "configure:2620: checking for inline" >&5
2620 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2624 for ac_kw
in inline __inline__ __inline
; do
2625 cat > conftest.
$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2633 if { (eval echo configure
:2634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2635 ac_cv_c_inline
=$ac_kw; break
2637 echo "configure: failed program was:" >&5
2638 cat conftest.
$ac_ext >&5
2645 echo "$ac_t""$ac_cv_c_inline" 1>&6
2646 case "$ac_cv_c_inline" in
2648 no
) cat >> confdefs.h
<<\EOF
2652 *) cat >> confdefs.h
<<EOF
2653 #define inline $ac_cv_c_inline
2658 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2659 echo "configure:2660: checking for off_t" >&5
2660 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 cat > conftest.
$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 #include <sys/types.h>
2672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2673 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2675 ac_cv_type_off_t
=yes
2683 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2684 if test $ac_cv_type_off_t = no
; then
2685 cat >> confdefs.h
<<\EOF
2691 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2692 echo "configure:2693: checking for size_t" >&5
2693 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.
$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 #include <sys/types.h>
2705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2706 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2708 ac_cv_type_size_t
=yes
2711 ac_cv_type_size_t
=no
2716 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2717 if test $ac_cv_type_size_t = no
; then
2718 cat >> confdefs.h
<<\EOF
2719 #define size_t unsigned
2724 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2725 # for constant arguments. Useless!
2726 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2727 echo "configure:2728: checking for working alloca.h" >&5
2728 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.
$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2736 char *p = alloca(2 * sizeof(int));
2739 if { (eval echo configure
:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2741 ac_cv_header_alloca_h
=yes
2743 echo "configure: failed program was:" >&5
2744 cat conftest.
$ac_ext >&5
2746 ac_cv_header_alloca_h
=no
2751 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2752 if test $ac_cv_header_alloca_h = yes; then
2753 cat >> confdefs.h
<<\EOF
2754 #define HAVE_ALLOCA_H 1
2759 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2760 echo "configure:2761: checking for alloca" >&5
2761 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.
$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2769 # define alloca __builtin_alloca
2772 # include <malloc.h>
2773 # define alloca _alloca
2776 # include <alloca.h>
2781 # ifndef alloca /* predefined by HP cc +Olibcalls */
2790 char *p = (char *) alloca(1);
2793 if { (eval echo configure
:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2795 ac_cv_func_alloca_works
=yes
2797 echo "configure: failed program was:" >&5
2798 cat conftest.
$ac_ext >&5
2800 ac_cv_func_alloca_works
=no
2805 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2806 if test $ac_cv_func_alloca_works = yes; then
2807 cat >> confdefs.h
<<\EOF
2808 #define HAVE_ALLOCA 1
2813 if test $ac_cv_func_alloca_works = no
; then
2814 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2815 # that cause trouble. Some versions do not even contain alloca or
2816 # contain a buggy version. If you still want to use their alloca,
2817 # use ar to extract alloca.o from them instead of compiling alloca.c.
2818 ALLOCA
=alloca.
${ac_objext}
2819 cat >> confdefs.h
<<\EOF
2824 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2825 echo "configure:2826: checking whether alloca needs Cray hooks" >&5
2826 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.
$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 #if defined(CRAY) && ! defined(CRAY2)
2839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2840 egrep "webecray" >/dev
/null
2>&1; then
2851 echo "$ac_t""$ac_cv_os_cray" 1>&6
2852 if test $ac_cv_os_cray = yes; then
2853 for ac_func
in _getb67 GETB67 getb67
; do
2854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_func" >&5
2856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.
$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 /* System header to define __stub macros and hopefully few prototypes,
2863 which can conflict with char $ac_func(); below. */
2865 /* Override any gcc2 internal prototype to avoid an error. */
2866 /* We use char because int might match the return type of a gcc2
2867 builtin and then its argument prototype would still apply. */
2872 /* The GNU C library defines this for functions which it implements
2873 to always fail with ENOSYS. Some functions are actually named
2874 something starting with __ and the normal name is an alias. */
2875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2883 if { (eval echo configure
:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2885 eval "ac_cv_func_$ac_func=yes"
2887 echo "configure: failed program was:" >&5
2888 cat conftest.
$ac_ext >&5
2890 eval "ac_cv_func_$ac_func=no"
2895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 cat >> confdefs.h
<<EOF
2898 #define CRAY_STACKSEG_END $ac_func
2903 echo "$ac_t""no" 1>&6
2909 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2910 echo "configure:2911: checking stack direction for C alloca" >&5
2911 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 if test "$cross_compiling" = yes; then
2915 ac_cv_c_stack_direction
=0
2917 cat > conftest.
$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2920 find_stack_direction ()
2922 static char *addr = 0;
2927 return find_stack_direction ();
2930 return (&dummy > addr) ? 1 : -1;
2934 exit (find_stack_direction() < 0);
2937 if { (eval echo configure
:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2939 ac_cv_c_stack_direction
=1
2941 echo "configure: failed program was:" >&5
2942 cat conftest.
$ac_ext >&5
2944 ac_cv_c_stack_direction
=-1
2951 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2952 cat >> confdefs.h
<<EOF
2953 #define STACK_DIRECTION $ac_cv_c_stack_direction
2958 for ac_hdr
in unistd.h
2960 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2962 echo "configure:2963: checking for $ac_hdr" >&5
2963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.
$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2971 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2972 { (eval echo configure
:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2973 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2974 if test -z "$ac_err"; then
2976 eval "ac_cv_header_$ac_safe=yes"
2979 echo "configure: failed program was:" >&5
2980 cat conftest.
$ac_ext >&5
2982 eval "ac_cv_header_$ac_safe=no"
2986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2988 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2989 cat >> confdefs.h
<<EOF
2990 #define $ac_tr_hdr 1
2994 echo "$ac_t""no" 1>&6
2998 for ac_func
in getpagesize
3000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_func" >&5
3002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.
$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 /* System header to define __stub macros and hopefully few prototypes,
3009 which can conflict with char $ac_func(); below. */
3011 /* Override any gcc2 internal prototype to avoid an error. */
3012 /* We use char because int might match the return type of a gcc2
3013 builtin and then its argument prototype would still apply. */
3018 /* The GNU C library defines this for functions which it implements
3019 to always fail with ENOSYS. Some functions are actually named
3020 something starting with __ and the normal name is an alias. */
3021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3029 if { (eval echo configure
:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3031 eval "ac_cv_func_$ac_func=yes"
3033 echo "configure: failed program was:" >&5
3034 cat conftest.
$ac_ext >&5
3036 eval "ac_cv_func_$ac_func=no"
3041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3042 echo "$ac_t""yes" 1>&6
3043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3044 cat >> confdefs.h
<<EOF
3045 #define $ac_tr_func 1
3049 echo "$ac_t""no" 1>&6
3053 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3054 echo "configure:3055: checking for working mmap" >&5
3055 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 if test "$cross_compiling" = yes; then
3059 ac_cv_func_mmap_fixed_mapped
=no
3061 cat > conftest.
$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3065 /* Thanks to Mike Haertel and Jim Avera for this test.
3066 Here is a matrix of mmap possibilities:
3067 mmap private not fixed
3068 mmap private fixed at somewhere currently unmapped
3069 mmap private fixed at somewhere already mapped
3070 mmap shared not fixed
3071 mmap shared fixed at somewhere currently unmapped
3072 mmap shared fixed at somewhere already mapped
3073 For private mappings, we should verify that changes cannot be read()
3074 back from the file, nor mmap's back from the file at a different
3075 address. (There have been systems where private was not correctly
3076 implemented like the infamous i386 svr4.0, and systems where the
3077 VM page cache was not coherent with the filesystem buffer cache
3078 like early versions of FreeBSD and possibly contemporary NetBSD.)
3079 For shared mappings, we should conversely verify that changes get
3080 propogated back to all the places they're supposed to be.
3082 Grep wants private fixed already mapped.
3083 The main things grep needs to know about mmap are:
3084 * does it exist and is it safe to write into the mmap'd area
3085 * how to use it (BSD variants) */
3086 #include <sys/types.h>
3088 #include <sys/mman.h>
3090 /* This mess was copied from the GNU getpagesize.h. */
3091 #ifndef HAVE_GETPAGESIZE
3092 # ifdef HAVE_UNISTD_H
3093 # include <unistd.h>
3096 /* Assume that all systems that can run configure have sys/param.h. */
3097 # ifndef HAVE_SYS_PARAM_H
3098 # define HAVE_SYS_PARAM_H 1
3101 # ifdef _SC_PAGESIZE
3102 # define getpagesize() sysconf(_SC_PAGESIZE)
3103 # else /* no _SC_PAGESIZE */
3104 # ifdef HAVE_SYS_PARAM_H
3105 # include <sys/param.h>
3106 # ifdef EXEC_PAGESIZE
3107 # define getpagesize() EXEC_PAGESIZE
3108 # else /* no EXEC_PAGESIZE */
3110 # define getpagesize() NBPG * CLSIZE
3113 # endif /* no CLSIZE */
3114 # else /* no NBPG */
3116 # define getpagesize() NBPC
3117 # else /* no NBPC */
3119 # define getpagesize() PAGESIZE
3120 # endif /* PAGESIZE */
3121 # endif /* no NBPC */
3122 # endif /* no NBPG */
3123 # endif /* no EXEC_PAGESIZE */
3124 # else /* no HAVE_SYS_PARAM_H */
3125 # define getpagesize() 8192 /* punt totally */
3126 # endif /* no HAVE_SYS_PARAM_H */
3127 # endif /* no _SC_PAGESIZE */
3129 #endif /* no HAVE_GETPAGESIZE */
3132 extern "C" { void *malloc(unsigned); }
3140 char *data, *data2, *data3;
3144 pagesize = getpagesize();
3147 * First, make a file with some known garbage in it.
3149 data = malloc(pagesize);
3152 for (i = 0; i < pagesize; ++i)
3153 *(data + i) = rand();
3155 fd = creat("conftestmmap", 0600);
3158 if (write(fd, data, pagesize) != pagesize)
3163 * Next, try to mmap the file at a fixed address which
3164 * already has something else allocated at it. If we can,
3165 * also make sure that we see the same garbage.
3167 fd = open("conftestmmap", O_RDWR);
3170 data2 = malloc(2 * pagesize);
3173 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3174 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3175 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3177 for (i = 0; i < pagesize; ++i)
3178 if (*(data + i) != *(data2 + i))
3182 * Finally, make sure that changes to the mapped area
3183 * do not percolate back to the file as seen by read().
3184 * (This is a bug on some variants of i386 svr4.0.)
3186 for (i = 0; i < pagesize; ++i)
3187 *(data2 + i) = *(data2 + i) + 1;
3188 data3 = malloc(pagesize);
3191 if (read(fd, data3, pagesize) != pagesize)
3193 for (i = 0; i < pagesize; ++i)
3194 if (*(data + i) != *(data3 + i))
3197 unlink("conftestmmap");
3202 if { (eval echo configure
:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3204 ac_cv_func_mmap_fixed_mapped
=yes
3206 echo "configure: failed program was:" >&5
3207 cat conftest.
$ac_ext >&5
3209 ac_cv_func_mmap_fixed_mapped
=no
3216 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3217 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3218 cat >> confdefs.h
<<\EOF
3225 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3226 unistd.h values.h sys
/param.h
3228 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_hdr" >&5
3231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 cat > conftest.
$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3239 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3240 { (eval echo configure
:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3241 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3242 if test -z "$ac_err"; then
3244 eval "ac_cv_header_$ac_safe=yes"
3247 echo "configure: failed program was:" >&5
3248 cat conftest.
$ac_ext >&5
3250 eval "ac_cv_header_$ac_safe=no"
3254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3257 cat >> confdefs.h
<<EOF
3258 #define $ac_tr_hdr 1
3262 echo "$ac_t""no" 1>&6
3266 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3267 __argz_count __argz_stringify __argz_next
3269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3270 echo "configure:3271: checking for $ac_func" >&5
3271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3274 cat > conftest.
$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277 /* System header to define __stub macros and hopefully few prototypes,
3278 which can conflict with char $ac_func(); below. */
3280 /* Override any gcc2 internal prototype to avoid an error. */
3281 /* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3287 /* The GNU C library defines this for functions which it implements
3288 to always fail with ENOSYS. Some functions are actually named
3289 something starting with __ and the normal name is an alias. */
3290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3298 if { (eval echo configure
:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3300 eval "ac_cv_func_$ac_func=yes"
3302 echo "configure: failed program was:" >&5
3303 cat conftest.
$ac_ext >&5
3305 eval "ac_cv_func_$ac_func=no"
3310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3311 echo "$ac_t""yes" 1>&6
3312 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3313 cat >> confdefs.h
<<EOF
3314 #define $ac_tr_func 1
3318 echo "$ac_t""no" 1>&6
3323 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3324 for ac_func
in stpcpy
3326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_func" >&5
3328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 cat > conftest.
$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 /* System header to define __stub macros and hopefully few prototypes,
3335 which can conflict with char $ac_func(); below. */
3337 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3344 /* The GNU C library defines this for functions which it implements
3345 to always fail with ENOSYS. Some functions are actually named
3346 something starting with __ and the normal name is an alias. */
3347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3355 if { (eval echo configure
:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3357 eval "ac_cv_func_$ac_func=yes"
3359 echo "configure: failed program was:" >&5
3360 cat conftest.
$ac_ext >&5
3362 eval "ac_cv_func_$ac_func=no"
3367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3369 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3370 cat >> confdefs.h
<<EOF
3371 #define $ac_tr_func 1
3375 echo "$ac_t""no" 1>&6
3380 if test "${ac_cv_func_stpcpy}" = "yes"; then
3381 cat >> confdefs.h
<<\EOF
3382 #define HAVE_STPCPY 1
3387 if test $ac_cv_header_locale_h = yes; then
3388 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3389 echo "configure:3390: checking for LC_MESSAGES" >&5
3390 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 cat > conftest.
$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3401 if { (eval echo configure
:3402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3403 am_cv_val_LC_MESSAGES
=yes
3405 echo "configure: failed program was:" >&5
3406 cat conftest.
$ac_ext >&5
3408 am_cv_val_LC_MESSAGES
=no
3413 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3414 if test $am_cv_val_LC_MESSAGES = yes; then
3415 cat >> confdefs.h
<<\EOF
3416 #define HAVE_LC_MESSAGES 1
3421 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3422 echo "configure:3423: checking whether NLS is requested" >&5
3423 # Check whether --enable-nls or --disable-nls was given.
3424 if test "${enable_nls+set}" = set; then
3425 enableval
="$enable_nls"
3431 echo "$ac_t""$USE_NLS" 1>&6
3434 USE_INCLUDED_LIBINTL
=no
3436 if test "$USE_NLS" = "yes"; then
3437 cat >> confdefs.h
<<\EOF
3438 #define ENABLE_NLS 1
3441 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3442 echo "configure:3443: checking whether included gettext is requested" >&5
3443 # Check whether --with-included-gettext or --without-included-gettext was given.
3444 if test "${with_included_gettext+set}" = set; then
3445 withval
="$with_included_gettext"
3446 nls_cv_force_use_gnu_gettext
=$withval
3448 nls_cv_force_use_gnu_gettext
=no
3451 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3453 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3454 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3456 nls_cv_header_libgt
=
3459 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3460 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3461 echo "configure:3462: checking for libintl.h" >&5
3462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.
$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 #include <libintl.h>
3470 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3471 { (eval echo configure
:3472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3472 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3473 if test -z "$ac_err"; then
3475 eval "ac_cv_header_$ac_safe=yes"
3478 echo "configure: failed program was:" >&5
3479 cat conftest.
$ac_ext >&5
3481 eval "ac_cv_header_$ac_safe=no"
3485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3486 echo "$ac_t""yes" 1>&6
3487 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3488 echo "configure:3489: checking for gettext in libc" >&5
3489 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 cat > conftest.
$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 #include <libintl.h>
3497 return (int) gettext ("")
3500 if { (eval echo configure
:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3502 gt_cv_func_gettext_libc
=yes
3504 echo "configure: failed program was:" >&5
3505 cat conftest.
$ac_ext >&5
3507 gt_cv_func_gettext_libc
=no
3512 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3514 if test "$gt_cv_func_gettext_libc" != "yes"; then
3515 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3516 echo "configure:3517: checking for bindtextdomain in -lintl" >&5
3517 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 ac_save_LIBS
="$LIBS"
3523 cat > conftest.
$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3529 char bindtextdomain();
3535 if { (eval echo configure
:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3537 eval "ac_cv_lib_$ac_lib_var=yes"
3539 echo "configure: failed program was:" >&5
3540 cat conftest.
$ac_ext >&5
3542 eval "ac_cv_lib_$ac_lib_var=no"
3545 LIBS
="$ac_save_LIBS"
3548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3549 echo "$ac_t""yes" 1>&6
3550 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3551 echo "configure:3552: checking for gettext in libintl" >&5
3552 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 cat > conftest.
$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3560 return (int) gettext ("")
3563 if { (eval echo configure
:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3565 gt_cv_func_gettext_libintl
=yes
3567 echo "configure: failed program was:" >&5
3568 cat conftest.
$ac_ext >&5
3570 gt_cv_func_gettext_libintl
=no
3575 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3577 echo "$ac_t""no" 1>&6
3582 if test "$gt_cv_func_gettext_libc" = "yes" \
3583 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3584 cat >> confdefs.h
<<\EOF
3585 #define HAVE_GETTEXT 1
3588 # Extract the first word of "msgfmt", so it can be a program name with args.
3589 set dummy msgfmt
; ac_word
=$2
3590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3591 echo "configure:3592: checking for $ac_word" >&5
3592 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3597 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3600 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3601 for ac_dir
in $PATH; do
3602 test -z "$ac_dir" && ac_dir
=.
3603 if test -f $ac_dir/$ac_word; then
3604 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3605 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3611 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3615 MSGFMT
="$ac_cv_path_MSGFMT"
3616 if test -n "$MSGFMT"; then
3617 echo "$ac_t""$MSGFMT" 1>&6
3619 echo "$ac_t""no" 1>&6
3621 if test "$MSGFMT" != "no"; then
3622 for ac_func
in dcgettext
3624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3625 echo "configure:3626: checking for $ac_func" >&5
3626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 cat > conftest.
$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 /* System header to define __stub macros and hopefully few prototypes,
3633 which can conflict with char $ac_func(); below. */
3635 /* Override any gcc2 internal prototype to avoid an error. */
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3642 /* The GNU C library defines this for functions which it implements
3643 to always fail with ENOSYS. Some functions are actually named
3644 something starting with __ and the normal name is an alias. */
3645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3653 if { (eval echo configure
:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3655 eval "ac_cv_func_$ac_func=yes"
3657 echo "configure: failed program was:" >&5
3658 cat conftest.
$ac_ext >&5
3660 eval "ac_cv_func_$ac_func=no"
3665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3668 cat >> confdefs.h
<<EOF
3669 #define $ac_tr_func 1
3673 echo "$ac_t""no" 1>&6
3677 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3678 set dummy gmsgfmt
; 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_path_GMSGFMT'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3686 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3689 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3692 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3694 for ac_dir
in $ac_dummy; do
3695 test -z "$ac_dir" && ac_dir
=.
3696 if test -f $ac_dir/$ac_word; then
3697 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3702 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3706 GMSGFMT
="$ac_cv_path_GMSGFMT"
3707 if test -n "$GMSGFMT"; then
3708 echo "$ac_t""$GMSGFMT" 1>&6
3710 echo "$ac_t""no" 1>&6
3713 # Extract the first word of "xgettext", so it can be a program name with args.
3714 set dummy xgettext
; ac_word
=$2
3715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3716 echo "configure:3717: checking for $ac_word" >&5
3717 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3722 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3725 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3726 for ac_dir
in $PATH; do
3727 test -z "$ac_dir" && ac_dir
=.
3728 if test -f $ac_dir/$ac_word; then
3729 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3730 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3736 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3740 XGETTEXT
="$ac_cv_path_XGETTEXT"
3741 if test -n "$XGETTEXT"; then
3742 echo "$ac_t""$XGETTEXT" 1>&6
3744 echo "$ac_t""no" 1>&6
3747 cat > conftest.
$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3752 extern int _nl_msg_cat_cntr;
3753 return _nl_msg_cat_cntr
3756 if { (eval echo configure
:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3761 echo "configure: failed program was:" >&5
3762 cat conftest.
$ac_ext >&5
3773 echo "$ac_t""no" 1>&6
3778 if test "$CATOBJEXT" = "NONE"; then
3779 nls_cv_use_gnu_gettext
=yes
3783 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3784 INTLOBJS
="\$(GETTOBJS)"
3785 # Extract the first word of "msgfmt", so it can be a program name with args.
3786 set dummy msgfmt
; ac_word
=$2
3787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3788 echo "configure:3789: checking for $ac_word" >&5
3789 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3794 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3797 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3798 for ac_dir
in $PATH; do
3799 test -z "$ac_dir" && ac_dir
=.
3800 if test -f $ac_dir/$ac_word; then
3801 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3802 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3808 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3812 MSGFMT
="$ac_cv_path_MSGFMT"
3813 if test -n "$MSGFMT"; then
3814 echo "$ac_t""$MSGFMT" 1>&6
3816 echo "$ac_t""no" 1>&6
3819 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3820 set dummy gmsgfmt
; ac_word
=$2
3821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3822 echo "configure:3823: checking for $ac_word" >&5
3823 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3828 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3831 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3836 for ac_dir
in $ac_dummy; do
3837 test -z "$ac_dir" && ac_dir
=.
3838 if test -f $ac_dir/$ac_word; then
3839 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3844 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3848 GMSGFMT
="$ac_cv_path_GMSGFMT"
3849 if test -n "$GMSGFMT"; then
3850 echo "$ac_t""$GMSGFMT" 1>&6
3852 echo "$ac_t""no" 1>&6
3855 # Extract the first word of "xgettext", so it can be a program name with args.
3856 set dummy xgettext
; ac_word
=$2
3857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3858 echo "configure:3859: checking for $ac_word" >&5
3859 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3864 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3867 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3868 for ac_dir
in $PATH; do
3869 test -z "$ac_dir" && ac_dir
=.
3870 if test -f $ac_dir/$ac_word; then
3871 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3872 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3878 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3882 XGETTEXT
="$ac_cv_path_XGETTEXT"
3883 if test -n "$XGETTEXT"; then
3884 echo "$ac_t""$XGETTEXT" 1>&6
3886 echo "$ac_t""no" 1>&6
3890 USE_INCLUDED_LIBINTL
=yes
3894 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3896 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3897 nls_cv_header_intl
=libintl.h
3898 nls_cv_header_libgt
=libgettext.h
3901 if test "$XGETTEXT" != ":"; then
3902 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3905 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3910 # We need to process the po/ directory.
3914 nls_cv_header_intl
=libintl.h
3915 nls_cv_header_libgt
=libgettext.h
3918 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3919 # because some of the sources are only built for this goal.
3920 if test "$PACKAGE" = gettext; then
3922 USE_INCLUDED_LIBINTL
=yes
3925 for lang
in $ALL_LINGUAS; do
3926 GMOFILES
="$GMOFILES $lang.gmo"
3927 POFILES
="$POFILES $lang.po"
3943 if test "x$CATOBJEXT" != "x"; then
3944 if test "x$ALL_LINGUAS" = "x"; then
3947 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3948 echo "configure:3949: checking for catalogs to be installed" >&5
3950 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3951 case "$ALL_LINGUAS" in
3952 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3955 LINGUAS
=$NEW_LINGUAS
3956 echo "$ac_t""$LINGUAS" 1>&6
3959 if test -n "$LINGUAS"; then
3960 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3964 if test $ac_cv_header_locale_h = yes; then
3965 INCLUDE_LOCALE_H
="#include <locale.h>"
3968 /* The system does not provide the header <locale.h>. Take care yourself. */"
3972 if test -f $srcdir/po2tbl.
sed.
in; then
3973 if test "$CATOBJEXT" = ".cat"; then
3974 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3975 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3976 echo "configure:3977: checking for linux/version.h" >&5
3977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 cat > conftest.
$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 #include <linux/version.h>
3985 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3986 { (eval echo configure
:3987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3987 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3988 if test -z "$ac_err"; then
3990 eval "ac_cv_header_$ac_safe=yes"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.
$ac_ext >&5
3996 eval "ac_cv_header_$ac_safe=no"
4000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4004 echo "$ac_t""no" 1>&6
4009 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4011 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4012 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4015 if test "$PACKAGE" = "gettext"; then
4025 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4031 if test -d $srcdir/po
; then
4032 test -d po || mkdir po
4033 if test "x$srcdir" != "x."; then
4034 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4035 posrcprefix
="$srcdir/"
4037 posrcprefix
="../$srcdir/"
4043 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4044 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4048 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4049 echo "configure:4050: checking whether to enable maintainer-specific portions of Makefiles" >&5
4050 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4051 if test "${enable_maintainer_mode+set}" = set; then
4052 enableval
="$enable_maintainer_mode"
4053 USE_MAINTAINER_MODE
=$enableval
4055 USE_MAINTAINER_MODE
=no
4058 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4061 if test $USE_MAINTAINER_MODE = yes; then
4062 MAINTAINER_MODE_TRUE
=
4063 MAINTAINER_MODE_FALSE
='#'
4065 MAINTAINER_MODE_TRUE
='#'
4066 MAINTAINER_MODE_FALSE
=
4068 MAINT
=$MAINTAINER_MODE_TRUE
4071 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4072 echo "configure:4073: checking for Cygwin environment" >&5
4073 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.
$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4083 #define __CYGWIN__ __CYGWIN32__
4088 if { (eval echo configure
:4089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4092 echo "configure: failed program was:" >&5
4093 cat conftest.
$ac_ext >&5
4101 echo "$ac_t""$ac_cv_cygwin" 1>&6
4103 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
4104 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4105 echo "configure:4106: checking for mingw32 environment" >&5
4106 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4109 cat > conftest.
$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4117 if { (eval echo configure
:4118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4121 echo "configure: failed program was:" >&5
4122 cat conftest.
$ac_ext >&5
4130 echo "$ac_t""$ac_cv_mingw32" 1>&6
4132 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4135 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4136 echo "configure:4137: checking for executable suffix" >&5
4137 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4144 echo 'int main () { return 0; }' > conftest.
$ac_ext
4146 if { (eval echo configure
:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4147 for file in conftest.
*; do
4149 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4150 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4154 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4157 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4162 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4163 echo "$ac_t""${ac_cv_exeext}" 1>&6
4167 # host-specific stuff:
4171 .
${srcdir}/..
/bfd
/configure.
host
4176 # Extract the first word of "ranlib", so it can be a program name with args.
4177 set dummy ranlib
; ac_word
=$2
4178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4179 echo "configure:4180: checking for $ac_word" >&5
4180 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4183 if test -n "$RANLIB"; then
4184 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4186 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4188 for ac_dir
in $ac_dummy; do
4189 test -z "$ac_dir" && ac_dir
=.
4190 if test -f $ac_dir/$ac_word; then
4191 ac_cv_prog_RANLIB
="ranlib"
4196 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
4199 RANLIB
="$ac_cv_prog_RANLIB"
4200 if test -n "$RANLIB"; then
4201 echo "$ac_t""$RANLIB" 1>&6
4203 echo "$ac_t""no" 1>&6
4206 # Find a good install program. We prefer a C program (faster),
4207 # so one script is as good as another. But avoid the broken or
4208 # incompatible versions:
4209 # SysV /etc/install, /usr/sbin/install
4210 # SunOS /usr/etc/install
4211 # IRIX /sbin/install
4213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4216 # ./install, which can be erroneously created by make from ./install.sh.
4217 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4218 echo "configure:4219: checking for a BSD compatible install" >&5
4219 if test -z "$INSTALL"; then
4220 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4224 for ac_dir
in $PATH; do
4225 # Account for people who put trailing slashes in PATH elements.
4227 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4229 # OSF1 and SCO ODT 3.0 have their own names for install.
4230 # Don't use installbsd from OSF since it installs stuff as root
4232 for ac_prog
in ginstall scoinst
install; do
4233 if test -f $ac_dir/$ac_prog; then
4234 if test $ac_prog = install &&
4235 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4236 # AIX install. It has an incompatible calling convention.
4239 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4250 if test "${ac_cv_path_install+set}" = set; then
4251 INSTALL
="$ac_cv_path_install"
4253 # As a last resort, use the slow shell script. We don't cache a
4254 # path for INSTALL within a source directory, because that will
4255 # break other packages using the cache if that directory is
4256 # removed, or if the path is relative.
4257 INSTALL
="$ac_install_sh"
4260 echo "$ac_t""$INSTALL" 1>&6
4262 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4263 # It thinks the first close brace ends the variable substitution.
4264 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4266 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4268 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4271 # Put a plausible default for CC_FOR_BUILD in Makefile.
4272 if test -z "$CC_FOR_BUILD"; then
4273 if test "x$cross_compiling" = "xno"; then
4274 CC_FOR_BUILD
='$(CC)'
4280 # Also set EXEEXT_FOR_BUILD.
4281 if test "x$cross_compiling" = "xno"; then
4282 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4284 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4285 echo "configure:4286: checking for build system executable suffix" >&5
4286 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 cat > ac_c_test.c
<< 'EOF'
4291 /* Nothing needed here
*/
4294 ${CC_FOR_BUILD} -o ac_c_test am_c_test.c
1>&5 2>&5
4295 bfd_cv_build_exeext
=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
4297 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4300 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4302 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4306 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
4308 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4310 echo "configure:4311: checking for $ac_hdr" >&5
4311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 cat > conftest.
$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4319 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4320 { (eval echo configure
:4321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4321 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4322 if test -z "$ac_err"; then
4324 eval "ac_cv_header_$ac_safe=yes"
4327 echo "configure: failed program was:" >&5
4328 cat conftest.
$ac_ext >&5
4330 eval "ac_cv_header_$ac_safe=no"
4334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4336 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4337 cat >> confdefs.h
<<EOF
4338 #define $ac_tr_hdr 1
4342 echo "$ac_t""no" 1>&6
4346 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4347 echo "configure:4348: checking for sys/wait.h that is POSIX.1 compatible" >&5
4348 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 cat > conftest.
$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4354 #include <sys/types.h>
4355 #include <sys/wait.h>
4357 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4360 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4365 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4368 if { (eval echo configure
:4369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4370 ac_cv_header_sys_wait_h
=yes
4372 echo "configure: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4375 ac_cv_header_sys_wait_h
=no
4380 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4381 if test $ac_cv_header_sys_wait_h = yes; then
4382 cat >> confdefs.h
<<\EOF
4383 #define HAVE_SYS_WAIT_H 1
4388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4389 # for constant arguments. Useless!
4390 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4391 echo "configure:4392: checking for working alloca.h" >&5
4392 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 cat > conftest.
$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4400 char *p = alloca(2 * sizeof(int));
4403 if { (eval echo configure
:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4405 ac_cv_header_alloca_h
=yes
4407 echo "configure: failed program was:" >&5
4408 cat conftest.
$ac_ext >&5
4410 ac_cv_header_alloca_h
=no
4415 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4416 if test $ac_cv_header_alloca_h = yes; then
4417 cat >> confdefs.h
<<\EOF
4418 #define HAVE_ALLOCA_H 1
4423 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4424 echo "configure:4425: checking for alloca" >&5
4425 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.
$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4433 # define alloca __builtin_alloca
4436 # include <malloc.h>
4437 # define alloca _alloca
4440 # include <alloca.h>
4445 # ifndef alloca /* predefined by HP cc +Olibcalls */
4454 char *p = (char *) alloca(1);
4457 if { (eval echo configure
:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4459 ac_cv_func_alloca_works
=yes
4461 echo "configure: failed program was:" >&5
4462 cat conftest.
$ac_ext >&5
4464 ac_cv_func_alloca_works
=no
4469 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4470 if test $ac_cv_func_alloca_works = yes; then
4471 cat >> confdefs.h
<<\EOF
4472 #define HAVE_ALLOCA 1
4477 if test $ac_cv_func_alloca_works = no
; then
4478 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4479 # that cause trouble. Some versions do not even contain alloca or
4480 # contain a buggy version. If you still want to use their alloca,
4481 # use ar to extract alloca.o from them instead of compiling alloca.c.
4482 ALLOCA
=alloca.
${ac_objext}
4483 cat >> confdefs.h
<<\EOF
4488 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4489 echo "configure:4490: checking whether alloca needs Cray hooks" >&5
4490 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.
$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 #if defined(CRAY) && ! defined(CRAY2)
4503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4504 egrep "webecray" >/dev
/null
2>&1; then
4515 echo "$ac_t""$ac_cv_os_cray" 1>&6
4516 if test $ac_cv_os_cray = yes; then
4517 for ac_func
in _getb67 GETB67 getb67
; do
4518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4519 echo "configure:4520: checking for $ac_func" >&5
4520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 cat > conftest.
$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 /* System header to define __stub macros and hopefully few prototypes,
4527 which can conflict with char $ac_func(); below. */
4529 /* Override any gcc2 internal prototype to avoid an error. */
4530 /* We use char because int might match the return type of a gcc2
4531 builtin and then its argument prototype would still apply. */
4536 /* The GNU C library defines this for functions which it implements
4537 to always fail with ENOSYS. Some functions are actually named
4538 something starting with __ and the normal name is an alias. */
4539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4547 if { (eval echo configure
:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4549 eval "ac_cv_func_$ac_func=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.
$ac_ext >&5
4554 eval "ac_cv_func_$ac_func=no"
4559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4560 echo "$ac_t""yes" 1>&6
4561 cat >> confdefs.h
<<EOF
4562 #define CRAY_STACKSEG_END $ac_func
4567 echo "$ac_t""no" 1>&6
4573 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4574 echo "configure:4575: checking stack direction for C alloca" >&5
4575 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 if test "$cross_compiling" = yes; then
4579 ac_cv_c_stack_direction
=0
4581 cat > conftest.
$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 find_stack_direction ()
4586 static char *addr = 0;
4591 return find_stack_direction ();
4594 return (&dummy > addr) ? 1 : -1;
4598 exit (find_stack_direction() < 0);
4601 if { (eval echo configure
:4602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4603 ac_cv_c_stack_direction
=1
4605 echo "configure: failed program was:" >&5
4606 cat conftest.
$ac_ext >&5
4608 ac_cv_c_stack_direction
=-1
4615 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4616 cat >> confdefs.h
<<EOF
4617 #define STACK_DIRECTION $ac_cv_c_stack_direction
4622 for ac_func
in sbrk utimes
4624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_func" >&5
4626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.
$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 /* System header to define __stub macros and hopefully few prototypes,
4633 which can conflict with char $ac_func(); below. */
4635 /* Override any gcc2 internal prototype to avoid an error. */
4636 /* We use char because int might match the return type of a gcc2
4637 builtin and then its argument prototype would still apply. */
4642 /* The GNU C library defines this for functions which it implements
4643 to always fail with ENOSYS. Some functions are actually named
4644 something starting with __ and the normal name is an alias. */
4645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4653 if { (eval echo configure
:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4655 eval "ac_cv_func_$ac_func=yes"
4657 echo "configure: failed program was:" >&5
4658 cat conftest.
$ac_ext >&5
4660 eval "ac_cv_func_$ac_func=no"
4665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4667 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4668 cat >> confdefs.h
<<EOF
4669 #define $ac_tr_func 1
4673 echo "$ac_t""no" 1>&6
4678 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
4679 echo "configure:4680: checking for time_t in time.h" >&5
4680 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 cat > conftest.
$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4691 if { (eval echo configure
:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4693 bu_cv_decl_time_t_time_h
=yes
4695 echo "configure: failed program was:" >&5
4696 cat conftest.
$ac_ext >&5
4698 bu_cv_decl_time_t_time_h
=no
4703 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
4704 if test $bu_cv_decl_time_t_time_h = yes; then
4705 cat >> confdefs.h
<<\EOF
4706 #define HAVE_TIME_T_IN_TIME_H 1
4711 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
4712 echo "configure:4713: checking for time_t in sys/types.h" >&5
4713 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 cat > conftest.
$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4719 #include <sys/types.h>
4724 if { (eval echo configure
:4725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4726 bu_cv_decl_time_t_types_h
=yes
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 bu_cv_decl_time_t_types_h
=no
4736 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
4737 if test $bu_cv_decl_time_t_types_h = yes; then
4738 cat >> confdefs.h
<<\EOF
4739 #define HAVE_TIME_T_IN_TYPES_H 1
4744 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
4746 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
4747 echo "configure:4748: checking for utime.h" >&5
4748 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4751 cat > conftest.
$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 #include <sys/types.h>
4763 if { (eval echo configure
:4764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4765 bu_cv_header_utime_h
=yes
4767 echo "configure: failed program was:" >&5
4768 cat conftest.
$ac_ext >&5
4770 bu_cv_header_utime_h
=no
4775 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
4776 if test $bu_cv_header_utime_h = yes; then
4777 cat >> confdefs.h
<<\EOF
4778 #define HAVE_GOOD_UTIME_H 1
4783 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
4784 echo "configure:4785: checking whether fprintf must be declared" >&5
4785 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 cat > conftest.
$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4793 #ifdef HAVE_STRING_H
4796 #ifdef HAVE_STRINGS_H
4797 #include <strings.h>
4800 #ifdef HAVE_STDLIB_H
4803 #ifdef HAVE_UNISTD_H
4807 char *(*pfn) = (char *(*)) fprintf
4810 if { (eval echo configure
:4811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4812 bfd_cv_decl_needed_fprintf
=no
4814 echo "configure: failed program was:" >&5
4815 cat conftest.
$ac_ext >&5
4817 bfd_cv_decl_needed_fprintf
=yes
4822 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
4823 if test $bfd_cv_decl_needed_fprintf = yes; then
4824 cat >> confdefs.h
<<\EOF
4825 #define NEED_DECLARATION_FPRINTF 1
4830 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4831 echo "configure:4832: checking whether strstr must be declared" >&5
4832 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.
$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4840 #ifdef HAVE_STRING_H
4843 #ifdef HAVE_STRINGS_H
4844 #include <strings.h>
4847 #ifdef HAVE_STDLIB_H
4850 #ifdef HAVE_UNISTD_H
4854 char *(*pfn) = (char *(*)) strstr
4857 if { (eval echo configure
:4858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4859 bfd_cv_decl_needed_strstr
=no
4861 echo "configure: failed program was:" >&5
4862 cat conftest.
$ac_ext >&5
4864 bfd_cv_decl_needed_strstr
=yes
4869 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4870 if test $bfd_cv_decl_needed_strstr = yes; then
4871 cat >> confdefs.h
<<\EOF
4872 #define NEED_DECLARATION_STRSTR 1
4877 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4878 echo "configure:4879: checking whether sbrk must be declared" >&5
4879 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4882 cat > conftest.
$ac_ext <<EOF
4883 #line 4884 "configure"
4884 #include "confdefs.h"
4887 #ifdef HAVE_STRING_H
4890 #ifdef HAVE_STRINGS_H
4891 #include <strings.h>
4894 #ifdef HAVE_STDLIB_H
4897 #ifdef HAVE_UNISTD_H
4901 char *(*pfn) = (char *(*)) sbrk
4904 if { (eval echo configure
:4905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4906 bfd_cv_decl_needed_sbrk
=no
4908 echo "configure: failed program was:" >&5
4909 cat conftest.
$ac_ext >&5
4911 bfd_cv_decl_needed_sbrk
=yes
4916 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4917 if test $bfd_cv_decl_needed_sbrk = yes; then
4918 cat >> confdefs.h
<<\EOF
4919 #define NEED_DECLARATION_SBRK 1
4924 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4925 echo "configure:4926: checking whether getenv must be declared" >&5
4926 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4929 cat > conftest.
$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4934 #ifdef HAVE_STRING_H
4937 #ifdef HAVE_STRINGS_H
4938 #include <strings.h>
4941 #ifdef HAVE_STDLIB_H
4944 #ifdef HAVE_UNISTD_H
4948 char *(*pfn) = (char *(*)) getenv
4951 if { (eval echo configure
:4952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4953 bfd_cv_decl_needed_getenv
=no
4955 echo "configure: failed program was:" >&5
4956 cat conftest.
$ac_ext >&5
4958 bfd_cv_decl_needed_getenv
=yes
4963 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4964 if test $bfd_cv_decl_needed_getenv = yes; then
4965 cat >> confdefs.h
<<\EOF
4966 #define NEED_DECLARATION_GETENV 1
4971 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4972 echo "configure:4973: checking whether environ must be declared" >&5
4973 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 cat > conftest.
$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4981 #ifdef HAVE_STRING_H
4984 #ifdef HAVE_STRINGS_H
4985 #include <strings.h>
4988 #ifdef HAVE_STDLIB_H
4991 #ifdef HAVE_UNISTD_H
4995 char *(*pfn) = (char *(*)) environ
4998 if { (eval echo configure
:4999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5000 bfd_cv_decl_needed_environ
=no
5002 echo "configure: failed program was:" >&5
5003 cat conftest.
$ac_ext >&5
5005 bfd_cv_decl_needed_environ
=yes
5010 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5011 if test $bfd_cv_decl_needed_environ = yes; then
5012 cat >> confdefs.h
<<\EOF
5013 #define NEED_DECLARATION_ENVIRON 1
5021 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows)
5022 cat >> confdefs.h
<<\EOF
5023 #define USE_BINARY_FOPEN 1
5028 # target-specific stuff:
5030 # Canonicalize the secondary target names.
5031 if test -n "$enable_targets"; then
5032 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5034 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
5035 if test -n "$result"; then
5036 canon_targets
="$canon_targets $result"
5038 # Allow targets that config.sub doesn't recognize, like "all".
5039 canon_targets
="$canon_targets $targ"
5054 for targ
in $target $canon_targets
5056 if test "x$targ" = "xall"; then
5058 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5059 BUILD_SRCONV
='$(SRCONV_PROG)'
5060 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5063 i
[3456]86*-*-netware*)
5064 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5065 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
5068 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5069 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5071 powerpc
*-*-netware*)
5072 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5073 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5076 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5077 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
5081 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
5085 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5086 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5087 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5090 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5091 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5092 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5094 i
[3-6]86-*pe
* | i
[3-6]86-*-cygwin* | i
[3-6]86-*-mingw32*)
5095 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5096 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5097 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5098 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
5100 powerpc
*-*-*pe
* | powerpc
*-*-cygwin*)
5101 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5102 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5103 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5106 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5107 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5108 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5111 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5112 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5127 cat >> confdefs.h
<<EOF
5128 #define TARGET "${target}"
5133 .
$srcdir/..
/bfd
/config.bfd
5134 if test "x$targ_underscore" = "xyes"; then
5142 cat > confcache
<<\EOF
5143 # This file is a shell script that caches the results of configure
5144 # tests run on this system so they can be shared between configure
5145 # scripts and configure runs. It is not useful on other systems.
5146 # If it contains results you don't want to keep, you may remove or edit it.
5148 # By default, configure uses ./config.cache as the cache file,
5149 # creating it if it does not exist already. You can give configure
5150 # the --cache-file=FILE option to use a different cache file; that is
5151 # what configure does when it calls configure scripts in
5152 # subdirectories, so they share the cache.
5153 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5154 # config.status only pays attention to the cache file if you give it the
5155 # --recheck option to rerun configure.
5158 # The following way of writing the cache mishandles newlines in values,
5159 # but we know of no workaround that is simple, portable, and efficient.
5160 # So, don't put newlines in cache variables' values.
5161 # Ultrix sh set writes to stderr and can't be redirected directly,
5162 # and sets the high bit in the cache file unless we assign to the vars.
5164 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5166 # `set' does not quote correctly, so add quotes (double-quote substitution
5167 # turns \\\\ into \\, and sed turns \\ into \).
5169 -e "s/'/'\\\\''/g" \
5170 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5173 # `set' quotes correctly as required by POSIX, so do not add quotes.
5174 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5177 if cmp -s $cache_file confcache
; then
5180 if test -w $cache_file; then
5181 echo "updating cache $cache_file"
5182 cat confcache
> $cache_file
5184 echo "not updating unwritable cache $cache_file"
5189 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5191 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5192 # Let make expand exec_prefix.
5193 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5195 # Any assignment to VPATH causes Sun make to only execute
5196 # the first set of double-colon rules, so remove it if not needed.
5197 # If there is a colon in the path, we need to keep it.
5198 if test "x$srcdir" = x.
; then
5199 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5202 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5204 DEFS
=-DHAVE_CONFIG_H
5206 # Without the "./", some shells look in PATH for config.status.
5207 : ${CONFIG_STATUS=./config.status}
5209 echo creating
$CONFIG_STATUS
5210 rm -f $CONFIG_STATUS
5211 cat > $CONFIG_STATUS <<EOF
5213 # Generated automatically by configure.
5214 # Run this file to recreate the current configuration.
5215 # This directory was configured as follows,
5216 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5218 # $0 $ac_configure_args
5220 # Compiler output produced by configure, useful for debugging
5221 # configure, is in ./config.log if it exists.
5223 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5226 case "\$ac_option" in
5227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5228 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5229 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5230 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5231 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5233 -help | --help | --hel | --he | --h)
5234 echo "\$ac_cs_usage"; exit 0 ;;
5235 *) echo "\$ac_cs_usage"; exit 1 ;;
5239 ac_given_srcdir=$srcdir
5240 ac_given_INSTALL="$INSTALL"
5242 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5244 cat >> $CONFIG_STATUS <<EOF
5246 # Protect against being on the right side of a sed subst in config.status.
5247 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5248 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5252 s%@CFLAGS@%$CFLAGS%g
5253 s%@CPPFLAGS@%$CPPFLAGS%g
5254 s%@CXXFLAGS@%$CXXFLAGS%g
5255 s%@FFLAGS@%$FFLAGS%g
5257 s%@LDFLAGS@%$LDFLAGS%g
5259 s%@exec_prefix@%$exec_prefix%g
5260 s%@prefix@%$prefix%g
5261 s%@program_transform_name@%$program_transform_name%g
5262 s%@bindir@%$bindir%g
5263 s%@sbindir@%$sbindir%g
5264 s%@libexecdir@%$libexecdir%g
5265 s%@datadir@%$datadir%g
5266 s%@sysconfdir@%$sysconfdir%g
5267 s%@sharedstatedir@%$sharedstatedir%g
5268 s%@localstatedir@%$localstatedir%g
5269 s%@libdir@%$libdir%g
5270 s%@includedir@%$includedir%g
5271 s%@oldincludedir@%$oldincludedir%g
5272 s%@infodir@%$infodir%g
5273 s%@mandir@%$mandir%g
5275 s%@host_alias@%$host_alias%g
5276 s%@host_cpu@%$host_cpu%g
5277 s%@host_vendor@%$host_vendor%g
5278 s%@host_os@%$host_os%g
5279 s%@target@%$target%g
5280 s%@target_alias@%$target_alias%g
5281 s%@target_cpu@%$target_cpu%g
5282 s%@target_vendor@%$target_vendor%g
5283 s%@target_os@%$target_os%g
5285 s%@build_alias@%$build_alias%g
5286 s%@build_cpu@%$build_cpu%g
5287 s%@build_vendor@%$build_vendor%g
5288 s%@build_os@%$build_os%g
5289 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5290 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5291 s%@INSTALL_DATA@%$INSTALL_DATA%g
5292 s%@PACKAGE@%$PACKAGE%g
5293 s%@VERSION@%$VERSION%g
5294 s%@ACLOCAL@%$ACLOCAL%g
5295 s%@AUTOCONF@%$AUTOCONF%g
5296 s%@AUTOMAKE@%$AUTOMAKE%g
5297 s%@AUTOHEADER@%$AUTOHEADER%g
5298 s%@MAKEINFO@%$MAKEINFO%g
5299 s%@SET_MAKE@%$SET_MAKE%g
5300 s%@RANLIB@%$RANLIB%g
5304 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5306 s%@DLLTOOL@%$DLLTOOL%g
5308 s%@LIBTOOL@%$LIBTOOL%g
5311 s%@LEXLIB@%$LEXLIB%g
5313 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5314 s%@ALLOCA@%$ALLOCA%g
5315 s%@USE_NLS@%$USE_NLS%g
5316 s%@MSGFMT@%$MSGFMT%g
5317 s%@GMSGFMT@%$GMSGFMT%g
5318 s%@XGETTEXT@%$XGETTEXT%g
5319 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5320 s%@CATALOGS@%$CATALOGS%g
5321 s%@CATOBJEXT@%$CATOBJEXT%g
5322 s%@DATADIRNAME@%$DATADIRNAME%g
5323 s%@GMOFILES@%$GMOFILES%g
5324 s%@INSTOBJEXT@%$INSTOBJEXT%g
5325 s%@INTLDEPS@%$INTLDEPS%g
5326 s%@INTLLIBS@%$INTLLIBS%g
5327 s%@INTLOBJS@%$INTLOBJS%g
5328 s%@POFILES@%$POFILES%g
5330 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5332 s%@GT_YES@%$GT_YES%g
5333 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5335 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5336 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5338 s%@EXEEXT@%$EXEEXT%g
5339 s%@HDEFINES@%$HDEFINES%g
5341 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5342 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5343 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5344 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5345 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5346 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5347 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5348 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5349 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5350 s%@BUILD_MISC@%$BUILD_MISC%g
5351 s%@UNDERSCORE@%$UNDERSCORE%g
5356 cat >> $CONFIG_STATUS <<\EOF
5358 # Split the substitutions into bite-sized pieces for seds with
5359 # small command number limits, like on Digital OSF/1 and HP-UX.
5360 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5361 ac_file
=1 # Number of current file.
5362 ac_beg
=1 # First line for current file.
5363 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5366 while $ac_more_lines; do
5367 if test $ac_beg -gt 1; then
5368 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5370 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5372 if test ! -s conftest.s
$ac_file; then
5374 rm -f conftest.s
$ac_file
5376 if test -z "$ac_sed_cmds"; then
5377 ac_sed_cmds
="sed -f conftest.s$ac_file"
5379 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5381 ac_file
=`expr $ac_file + 1`
5383 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5386 if test -z "$ac_sed_cmds"; then
5391 cat >> $CONFIG_STATUS <<EOF
5393 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5395 cat >> $CONFIG_STATUS <<\EOF
5396 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5399 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5400 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5401 *) ac_file_in
="${ac_file}.in" ;;
5404 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5406 # Remove last slash and all that follows it. Not all systems have dirname.
5407 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5408 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5409 # The file is in a subdirectory.
5410 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5411 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5412 # A "../" for each directory in $ac_dir_suffix.
5413 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5415 ac_dir_suffix
= ac_dots
=
5418 case "$ac_given_srcdir" in
5420 if test -z "$ac_dots"; then top_srcdir
=.
5421 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5422 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5424 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5425 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5428 case "$ac_given_INSTALL" in
5429 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5430 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5433 echo creating
"$ac_file"
5435 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5437 *Makefile
*) ac_comsub
="1i\\
5438 # $configure_input" ;;
5442 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5444 s%@configure_input@%$configure_input%g
5445 s%@srcdir@%$srcdir%g
5446 s%@top_srcdir@%$top_srcdir%g
5447 s%@INSTALL@%$INSTALL%g
5448 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5452 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5453 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5455 # ac_d sets the value in "#define NAME VALUE" lines.
5456 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5457 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5460 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5461 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5462 ac_uB
='\([ ]\)%\1#\2define\3'
5465 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5466 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5467 ac_eB
='$%\1#\2define\3'
5471 if test "${CONFIG_HEADERS+set}" != set; then
5473 cat >> $CONFIG_STATUS <<EOF
5474 CONFIG_HEADERS="config.h:config.in"
5476 cat >> $CONFIG_STATUS <<\EOF
5478 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5479 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5481 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5482 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5483 *) ac_file_in
="${ac_file}.in" ;;
5486 echo creating
$ac_file
5488 rm -f conftest.frag conftest.
in conftest.out
5489 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5490 cat $ac_file_inputs > conftest.
in
5494 # Transform confdefs.h into a sed script conftest.vals that substitutes
5495 # the proper values into config.h.in to produce config.h. And first:
5496 # Protect against being on the right side of a sed subst in config.status.
5497 # Protect against being in an unquoted here document in config.status.
5499 cat > conftest.hdr
<<\EOF
5502 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5506 sed -n -f conftest.hdr confdefs.h > conftest.vals
5509 # This sed command replaces #undef with comments. This is necessary, for
5510 # example, in the case of _POSIX_SOURCE, which is predefined and required
5511 # on some systems where configure will not decide to define it.
5512 cat >> conftest.vals <<\EOF
5513 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5516 # Break up conftest.vals because some shells have a limit on
5517 # the size of here documents, and old seds have small limits too.
5522 ac_lines=`grep -c . conftest.vals
`
5523 # grep -c gives empty output for an empty file on some AIX systems.
5524 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5525 # Write a limited-size here document to conftest.frag.
5526 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5527 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5529 sed -f conftest.frag conftest.in > conftest.out
5531 mv conftest.out conftest.in
5533 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5535 mv conftest.tail conftest.vals
5539 cat >> $CONFIG_STATUS <<\EOF
5540 rm -f conftest.frag conftest.h
5541 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5542 cat conftest.in >> conftest.h
5544 if cmp -s $ac_file conftest.h 2>/dev/null; then
5545 echo "$ac_file is unchanged"
5548 # Remove last slash and all that follows it. Not all systems have dirname.
5549 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5550 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5551 # The file is in a subdirectory.
5552 test ! -d "$ac_dir" && mkdir "$ac_dir"
5555 mv conftest.h $ac_file
5560 cat >> $CONFIG_STATUS <<EOF
5564 cat >> $CONFIG_STATUS <<\EOF
5565 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5567 case "x$CONFIG_FILES" in
5568 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
5573 chmod +x $CONFIG_STATUS
5574 rm -fr confdefs* $ac_clean_files
5575 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1