3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-bfd-assembler use BFD back end for writing object files"
27 targets alternative target configurations besides the primary"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
33 --disable-nls do not use Native Language Support"
35 --with-included-gettext use the GNU gettext library included here"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 SHELL
=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
551 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
552 if test -f $ac_dir/install-sh
; then
554 ac_install_sh
="$ac_aux_dir/install-sh -c"
556 elif test -f $ac_dir/install.sh
; then
558 ac_install_sh
="$ac_aux_dir/install.sh -c"
562 if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
565 ac_config_guess
=$ac_aux_dir/config.guess
566 ac_config_sub
=$ac_aux_dir/config.sub
567 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
570 # Do some error checking and defaulting for the host and target type.
572 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
575 # 1. You are not allowed to specify --host, --target, and nonopt at the
577 # 2. Host defaults to nonopt.
578 # 3. If nonopt is not specified, then host defaults to the current host,
579 # as determined by config.guess.
580 # 4. Target and build default to nonopt.
581 # 5. If nonopt is not specified, then target and build default to host.
583 # The aliases save the names the user supplied, while $host etc.
584 # will get canonicalized.
585 case $host---$target---$nonopt in
586 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
587 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
591 # Make sure we can run config.sub.
592 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
593 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
596 echo $ac_n "checking host system type""... $ac_c" 1>&6
597 echo "configure:598: checking host system type" >&5
600 case "$host_alias" in
604 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
605 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
607 *) host_alias
=$nonopt ;;
611 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
612 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
613 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
614 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
615 echo "$ac_t""$host" 1>&6
617 echo $ac_n "checking target system type""... $ac_c" 1>&6
618 echo "configure:619: checking target system type" >&5
621 case "$target_alias" in
624 NONE
) target_alias
=$host_alias ;;
625 *) target_alias
=$nonopt ;;
629 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
630 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
631 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
632 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
633 echo "$ac_t""$target" 1>&6
635 echo $ac_n "checking build system type""... $ac_c" 1>&6
636 echo "configure:637: checking build system type" >&5
639 case "$build_alias" in
642 NONE
) build_alias
=$host_alias ;;
643 *) build_alias
=$nonopt ;;
647 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
648 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
649 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
650 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
651 echo "$ac_t""$build" 1>&6
653 test "$host_alias" != "$target_alias" &&
654 test "$program_prefix$program_suffix$program_transform_name" = \
656 program_prefix
=${target_alias}-
659 # Find a good install program. We prefer a C program (faster),
660 # so one script is as good as another. But avoid the broken or
661 # incompatible versions:
662 # SysV /etc/install, /usr/sbin/install
663 # SunOS /usr/etc/install
666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
669 # ./install, which can be erroneously created by make from ./install.sh.
670 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
671 echo "configure:672: checking for a BSD compatible install" >&5
672 if test -z "$INSTALL"; then
673 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
677 for ac_dir
in $PATH; do
678 # Account for people who put trailing slashes in PATH elements.
680 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
682 # OSF1 and SCO ODT 3.0 have their own names for install.
683 # Don't use installbsd from OSF since it installs stuff as root
685 for ac_prog
in ginstall scoinst
install; do
686 if test -f $ac_dir/$ac_prog; then
687 if test $ac_prog = install &&
688 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
689 # AIX install. It has an incompatible calling convention.
692 ac_cv_path_install
="$ac_dir/$ac_prog -c"
703 if test "${ac_cv_path_install+set}" = set; then
704 INSTALL
="$ac_cv_path_install"
706 # As a last resort, use the slow shell script. We don't cache a
707 # path for INSTALL within a source directory, because that will
708 # break other packages using the cache if that directory is
709 # removed, or if the path is relative.
710 INSTALL
="$ac_install_sh"
713 echo "$ac_t""$INSTALL" 1>&6
715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
716 # It thinks the first close brace ends the variable substitution.
717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
721 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
723 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
724 echo "configure:725: checking whether build environment is sane" >&5
727 echo timestamp
> conftestfile
728 # Do `set' in a subshell so we don't clobber the current shell's
729 # arguments. Must try -L first in case configure is actually a
730 # symlink; some systems play weird games with the mod time of symlinks
731 # (eg FreeBSD returns the mod time of the symlink's containing
734 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
735 if test "$*" = "X"; then
737 set X
`ls -t $srcdir/configure conftestfile`
739 if test "$*" != "X $srcdir/configure conftestfile" \
740 && test "$*" != "X conftestfile $srcdir/configure"; then
742 # If neither matched, then we have a broken ls. This can happen
743 # if, for instance, CONFIG_SHELL is bash and it inherits a
744 # broken ls alias from the environment. This has actually
745 # happened. Such a system could not be considered "sane".
746 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
747 alias in your environment" 1>&2; exit 1; }
750 test "$2" = conftestfile
756 { echo "configure: error: newly created file is older than distributed files!
757 Check your system clock" 1>&2; exit 1; }
760 echo "$ac_t""yes" 1>&6
761 if test "$program_transform_name" = s
,x
,x
,; then
762 program_transform_name
=
764 # Double any \ or $. echo might interpret backslashes.
765 cat <<\EOF_SED
> conftestsed
766 s
,\\,\\\\,g
; s
,\$
,$$
,g
768 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
771 test "$program_prefix" != NONE
&&
772 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
773 # Use a double $ so make ignores it.
774 test "$program_suffix" != NONE
&&
775 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
777 # sed with no file args requires a program.
778 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
780 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
781 echo "configure:782: checking whether ${MAKE-make} sets \${MAKE}" >&5
782 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
783 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 cat > conftestmake
<<\EOF
788 @
echo 'ac_maketemp="${MAKE}"'
790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
791 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
792 if test -n "$ac_maketemp"; then
793 eval ac_cv_prog_make_
${ac_make}_set
=yes
795 eval ac_cv_prog_make_
${ac_make}_set
=no
799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
800 echo "$ac_t""yes" 1>&6
803 echo "$ac_t""no" 1>&6
804 SET_MAKE
="MAKE=${MAKE-make}"
812 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
813 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
815 cat >> confdefs.h
<<EOF
816 #define PACKAGE "$PACKAGE"
819 cat >> confdefs.h
<<EOF
820 #define VERSION "$VERSION"
825 missing_dir
=`cd $ac_aux_dir && pwd`
826 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
827 echo "configure:828: checking for working aclocal" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
833 echo "$ac_t""found" 1>&6
835 ACLOCAL
="$missing_dir/missing aclocal"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
840 echo "configure:841: checking for working autoconf" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
846 echo "$ac_t""found" 1>&6
848 AUTOCONF
="$missing_dir/missing autoconf"
849 echo "$ac_t""missing" 1>&6
852 echo $ac_n "checking for working automake""... $ac_c" 1>&6
853 echo "configure:854: checking for working automake" >&5
854 # Run test in a subshell; some versions of sh will print an error if
855 # an executable is not found, even if stderr is redirected.
856 # Redirect stdin to placate older versions of autoconf. Sigh.
857 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
859 echo "$ac_t""found" 1>&6
861 AUTOMAKE
="$missing_dir/missing automake"
862 echo "$ac_t""missing" 1>&6
865 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
866 echo "configure:867: checking for working autoheader" >&5
867 # Run test in a subshell; some versions of sh will print an error if
868 # an executable is not found, even if stderr is redirected.
869 # Redirect stdin to placate older versions of autoconf. Sigh.
870 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
871 AUTOHEADER
=autoheader
872 echo "$ac_t""found" 1>&6
874 AUTOHEADER
="$missing_dir/missing autoheader"
875 echo "$ac_t""missing" 1>&6
878 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
879 echo "configure:880: checking for working makeinfo" >&5
880 # Run test in a subshell; some versions of sh will print an error if
881 # an executable is not found, even if stderr is redirected.
882 # Redirect stdin to placate older versions of autoconf. Sigh.
883 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
885 echo "$ac_t""found" 1>&6
887 MAKEINFO
="$missing_dir/missing makeinfo"
888 echo "$ac_t""missing" 1>&6
893 # Check whether --enable-shared or --disable-shared was given.
894 if test "${enable_shared+set}" = set; then
895 enableval
="$enable_shared"
898 yes) enable_shared
=yes ;;
899 no
) enable_shared
=no
;;
902 # Look at the argument we got. We use all the common list separators.
903 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
904 for pkg
in $enableval; do
905 if test "X$pkg" = "X$p"; then
916 # Check whether --enable-static or --disable-static was given.
917 if test "${enable_static+set}" = set; then
918 enableval
="$enable_static"
921 yes) enable_static
=yes ;;
922 no
) enable_static
=no
;;
925 # Look at the argument we got. We use all the common list separators.
926 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
927 for pkg
in $enableval; do
928 if test "X$pkg" = "X$p"; then
939 # Check whether --enable-fast-install or --disable-fast-install was given.
940 if test "${enable_fast_install+set}" = set; then
941 enableval
="$enable_fast_install"
944 yes) enable_fast_install
=yes ;;
945 no
) enable_fast_install
=no
;;
947 enable_fast_install
=no
948 # Look at the argument we got. We use all the common list separators.
949 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
950 for pkg
in $enableval; do
951 if test "X$pkg" = "X$p"; then
952 enable_fast_install
=yes
959 enable_fast_install
=yes
962 # Extract the first word of "ranlib", so it can be a program name with args.
963 set dummy ranlib
; ac_word
=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 if test -n "$RANLIB"; then
970 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
972 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
974 for ac_dir
in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir
=.
976 if test -f $ac_dir/$ac_word; then
977 ac_cv_prog_RANLIB
="ranlib"
982 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
985 RANLIB
="$ac_cv_prog_RANLIB"
986 if test -n "$RANLIB"; then
987 echo "$ac_t""$RANLIB" 1>&6
989 echo "$ac_t""no" 1>&6
992 # Extract the first word of "gcc", so it can be a program name with args.
993 set dummy gcc
; ac_word
=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:996: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 if test -n "$CC"; then
1000 ac_cv_prog_CC
="$CC" # Let the user override the test.
1002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1004 for ac_dir
in $ac_dummy; do
1005 test -z "$ac_dir" && ac_dir
=.
1006 if test -f $ac_dir/$ac_word; then
1015 if test -n "$CC"; then
1016 echo "$ac_t""$CC" 1>&6
1018 echo "$ac_t""no" 1>&6
1021 if test -z "$CC"; then
1022 # Extract the first word of "cc", so it can be a program name with args.
1023 set dummy cc
; ac_word
=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC
="$CC" # Let the user override the test.
1032 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1035 for ac_dir
in $ac_dummy; do
1036 test -z "$ac_dir" && ac_dir
=.
1037 if test -f $ac_dir/$ac_word; then
1038 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1039 ac_prog_rejected
=yes
1047 if test $ac_prog_rejected = yes; then
1048 # We found a bogon in the path, so make sure we never use it.
1049 set dummy
$ac_cv_prog_CC
1051 if test $# -gt 0; then
1052 # We chose a different compiler from the bogus one.
1053 # However, it has the same basename, so the bogon will be chosen
1054 # first if we set CC to just the basename; use the full file name.
1056 set dummy
"$ac_dir/$ac_word" "$@"
1064 if test -n "$CC"; then
1065 echo "$ac_t""$CC" 1>&6
1067 echo "$ac_t""no" 1>&6
1070 if test -z "$CC"; then
1071 case "`uname -s`" in
1073 # Extract the first word of "cl", so it can be a program name with args.
1074 set dummy cl
; ac_word
=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 if test -n "$CC"; then
1081 ac_cv_prog_CC
="$CC" # Let the user override the test.
1083 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1085 for ac_dir
in $ac_dummy; do
1086 test -z "$ac_dir" && ac_dir
=.
1087 if test -f $ac_dir/$ac_word; then
1096 if test -n "$CC"; then
1097 echo "$ac_t""$CC" 1>&6
1099 echo "$ac_t""no" 1>&6
1104 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1107 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1108 echo "configure:1109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112 ac_cpp
='$CPP $CPPFLAGS'
1113 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115 cross_compiling
=$ac_cv_prog_cc_cross
1117 cat > conftest.
$ac_ext << EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1124 if { (eval echo configure
:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1125 ac_cv_prog_cc_works
=yes
1126 # If we can't run a trivial program, we are probably using a cross compiler.
1127 if (.
/conftest
; exit) 2>/dev
/null
; then
1128 ac_cv_prog_cc_cross
=no
1130 ac_cv_prog_cc_cross
=yes
1133 echo "configure: failed program was:" >&5
1134 cat conftest.
$ac_ext >&5
1135 ac_cv_prog_cc_works
=no
1139 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1140 ac_cpp
='$CPP $CPPFLAGS'
1141 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1142 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1143 cross_compiling
=$ac_cv_prog_cc_cross
1145 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1146 if test $ac_cv_prog_cc_works = no
; then
1147 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1149 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1151 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1152 cross_compiling
=$ac_cv_prog_cc_cross
1154 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether we are using GNU C" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 cat > conftest.c
<<EOF
1164 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1171 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1173 if test $ac_cv_prog_gcc = yes; then
1179 ac_test_CFLAGS
="${CFLAGS+set}"
1180 ac_save_CFLAGS
="$CFLAGS"
1182 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1183 echo "configure:1184: checking whether ${CC-cc} accepts -g" >&5
1184 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 echo 'void f(){}' > conftest.c
1188 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1197 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1198 if test "$ac_test_CFLAGS" = set; then
1199 CFLAGS
="$ac_save_CFLAGS"
1200 elif test $ac_cv_prog_cc_g = yes; then
1201 if test "$GCC" = yes; then
1207 if test "$GCC" = yes; then
1214 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1215 if test "${with_gnu_ld+set}" = set; then
1216 withval
="$with_gnu_ld"
1217 test "$withval" = no || with_gnu_ld
=yes
1223 if test "$ac_cv_prog_gcc" = yes; then
1224 # Check if gcc -print-prog-name=ld gives a path.
1225 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1226 echo "configure:1227: checking for ld used by GCC" >&5
1227 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1229 # Accept absolute paths.
1230 [\\/]* |
[A-Za-z
]:[\\/]*)
1231 re_direlt
='/[^/][^/]*/\.\./'
1232 # Canonicalize the path of ld
1233 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1234 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1235 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1237 test -z "$LD" && LD
="$ac_prog"
1240 # If it fails, then pretend we aren't using GCC.
1244 # If it is relative, then search for the first ld in PATH.
1248 elif test "$with_gnu_ld" = yes; then
1249 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1250 echo "configure:1251: checking for GNU ld" >&5
1252 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1253 echo "configure:1254: checking for non-GNU ld" >&5
1255 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test -z "$LD"; then
1259 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1260 for ac_dir
in $PATH; do
1261 test -z "$ac_dir" && ac_dir
=.
1262 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1263 ac_cv_path_LD
="$ac_dir/$ac_prog"
1264 # Check to see if the program is GNU ld. I'd rather use --version,
1265 # but apparently some GNU ld's only accept -v.
1266 # Break only if it was the GNU/non-GNU ld that we prefer.
1267 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1268 test "$with_gnu_ld" != no
&& break
1270 test "$with_gnu_ld" != yes && break
1276 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1281 if test -n "$LD"; then
1282 echo "$ac_t""$LD" 1>&6
1284 echo "$ac_t""no" 1>&6
1286 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1287 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1288 echo "configure:1289: checking if the linker ($LD) is GNU ld" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1293 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1294 ac_cv_prog_gnu_ld
=yes
1296 ac_cv_prog_gnu_ld
=no
1300 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1303 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1304 echo "configure:1305: checking for BSD-compatible nm" >&5
1305 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 if test -n "$NM"; then
1309 # Let the user override the test.
1312 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1313 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1314 test -z "$ac_dir" && ac_dir
=.
1315 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1316 # Check to see if the nm accepts a BSD-compat flag.
1317 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1318 # nm: unknown option "B" ignored
1319 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1320 ac_cv_path_NM
="$ac_dir/nm -B"
1322 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1323 ac_cv_path_NM
="$ac_dir/nm -p"
1326 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1327 continue # so that we can try to find one that supports BSD flags
1332 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1337 echo "$ac_t""$NM" 1>&6
1339 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1340 echo "configure:1341: checking whether ln -s works" >&5
1341 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1345 if ln -s X conftestdata
2>/dev
/null
1348 ac_cv_prog_LN_S
="ln -s"
1353 LN_S
="$ac_cv_prog_LN_S"
1354 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1355 echo "$ac_t""yes" 1>&6
1357 echo "$ac_t""no" 1>&6
1362 NONE
) lt_target
="$host" ;;
1363 *) lt_target
="$target" ;;
1366 # Check for any special flags to pass to ltconfig.
1367 libtool_flags
="--cache-file=$cache_file"
1368 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1369 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1370 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1371 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1372 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1375 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1376 if test "${enable_libtool_lock+set}" = set; then
1377 enableval
="$enable_libtool_lock"
1381 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1382 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1384 # Some flags need to be propagated to the compiler or linker for good
1386 case "$lt_target" in
1388 # Find out which ABI we are using.
1389 echo '#line 1390 "configure"' > conftest.
$ac_ext
1390 if { (eval echo configure
:1391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1391 case "`/usr/bin/file conftest.o`" in
1407 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1408 SAVE_CFLAGS
="$CFLAGS"
1409 CFLAGS
="$CFLAGS -belf"
1410 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1411 echo "configure:1412: checking whether the C compiler needs -belf" >&5
1412 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1415 cat > conftest.
$ac_ext <<EOF
1416 #line 1417 "configure"
1417 #include "confdefs.h"
1423 if { (eval echo configure
:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1425 lt_cv_cc_needs_belf
=yes
1427 echo "configure: failed program was:" >&5
1428 cat conftest.
$ac_ext >&5
1430 lt_cv_cc_needs_belf
=no
1435 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1436 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1438 CFLAGS
="$SAVE_CFLAGS"
1446 # Save cache, so that ltconfig can load it
1447 cat > confcache
<<\EOF
1448 # This file is a shell script that caches the results of configure
1449 # tests run on this system so they can be shared between configure
1450 # scripts and configure runs. It is not useful on other systems.
1451 # If it contains results you don't want to keep, you may remove or edit it.
1453 # By default, configure uses ./config.cache as the cache file,
1454 # creating it if it does not exist already. You can give configure
1455 # the --cache-file=FILE option to use a different cache file; that is
1456 # what configure does when it calls configure scripts in
1457 # subdirectories, so they share the cache.
1458 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1459 # config.status only pays attention to the cache file if you give it the
1460 # --recheck option to rerun configure.
1463 # The following way of writing the cache mishandles newlines in values,
1464 # but we know of no workaround that is simple, portable, and efficient.
1465 # So, don't put newlines in cache variables' values.
1466 # Ultrix sh set writes to stderr and can't be redirected directly,
1467 # and sets the high bit in the cache file unless we assign to the vars.
1469 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1471 # `set' does not quote correctly, so add quotes (double-quote substitution
1472 # turns \\\\ into \\, and sed turns \\ into \).
1474 -e "s/'/'\\\\''/g" \
1475 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1478 # `set' quotes correctly as required by POSIX, so do not add quotes.
1479 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1482 if cmp -s $cache_file confcache
; then
1485 if test -w $cache_file; then
1486 echo "updating cache $cache_file"
1487 cat confcache
> $cache_file
1489 echo "not updating unwritable cache $cache_file"
1495 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1496 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1497 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1498 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1499 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1500 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1501 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1502 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1504 # Reload cache, that may have been modified by ltconfig
1505 if test -r "$cache_file"; then
1506 echo "loading cache $cache_file"
1509 echo "creating cache $cache_file"
1514 # This can be used to rebuild libtool when needed
1515 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1517 # Always use our own libtool.
1518 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1520 # Redirect the config.log output again, so that the ltconfig log is not
1521 # clobbered by the next message.
1522 exec 5>>.
/config.log
1526 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1527 if test "${enable_bfd_assembler+set}" = set; then
1528 enableval
="$enable_bfd_assembler"
1529 case "${enableval}" in
1530 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1531 no
) user_bfd_gas
=no
;;
1532 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1535 # Check whether --enable-targets or --disable-targets was given.
1536 if test "${enable_targets+set}" = set; then
1537 enableval
="$enable_targets"
1538 case "${enableval}" in
1539 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1541 no
) enable_targets
= ;;
1542 *) enable_targets
=$enableval ;;
1545 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1546 if test "${enable_commonbfdlib+set}" = set; then
1547 enableval
="$enable_commonbfdlib"
1548 case "${enableval}" in
1549 yes) commonbfdlib
=true
;;
1550 no
) commonbfdlib
=false
;;
1551 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1557 build_warnings
="-W -Wall"
1558 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1559 if test "${enable_build_warnings+set}" = set; then
1560 enableval
="$enable_build_warnings"
1561 case "${enableval}" in
1563 no
) build_warnings
="-w";;
1564 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1565 build_warnings
="${build_warnings} ${t}";;
1566 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1567 build_warnings
="${t} ${build_warnings}";;
1568 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1570 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
1571 echo "Setting warning flags = $build_warnings" 6>&1
1575 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
1576 WARN_CFLAGS
="${build_warnings}"
1580 # Generate a header file
1585 # If we are on a DOS filesystem, we must use gdb.ini rather than
1589 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
1597 # Makefile target for installing gas in $(tooldir)/bin.
1598 install_tooldir
=install-exec-tooldir
1602 if test -n "$enable_targets" ; then
1603 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1604 if test $t = "all"; then
1608 result
=`$ac_config_sub $t 2>/dev/null`
1609 if test -n "$result" ; then
1610 canon_targets
="$canon_targets $result"
1612 # # Permit "all", etc. We don't support it yet though.
1613 # canon_targets="$canon_targets $t"
1616 _gas_uniq_list
="$canon_targets"
1617 _gas_uniq_newlist
=""
1618 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1619 case $_gas_uniq_i in
1621 *) case " $_gas_uniq_newlist " in
1622 *" $_gas_uniq_i "*) ;;
1623 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1627 canon_targets
=$_gas_uniq_newlist
1633 for this_target
in $target $canon_targets ; do
1635 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1637 # check for architecture variants
1641 alpha
*) cpu_type
=alpha
;;
1642 armeb
) cpu_type
=arm endian
=big
;;
1643 arm
*) cpu_type
=arm endian
=little
;;
1644 armb
*) cpu_type
=arm endian
=little
;;
1645 armv
*l
) cpu_type
=arm endian
=little
;;
1646 armv
*b
) cpu_type
=arm endian
=big
;;
1647 strongarm
*) cpu_type
=arm endian
=little
;;
1648 thumb
*) cpu_type
=arm endian
=little
;;
1649 hppa
*) cpu_type
=hppa
;;
1650 i
[456]86) cpu_type
=i386
;;
1651 ia64
) cpu_type
=ia64
;;
1652 m6811|m6812
) cpu_type
=m68hc11
;;
1653 m680
[012346]0) cpu_type
=m68k
;;
1654 m68008
) cpu_type
=m68k
;;
1655 m683??
) cpu_type
=m68k
;;
1656 m5200
) cpu_type
=m68k
;;
1657 m8
*) cpu_type
=m88k
;;
1658 mips
*el
) cpu_type
=mips endian
=little
;;
1659 mips
*) cpu_type
=mips endian
=big
;;
1660 pjl
*) cpu_type
=pj endian
=little
;;
1661 pj
*) cpu_type
=pj endian
=big
;;
1662 powerpcle
*) cpu_type
=ppc endian
=little
;;
1663 powerpc
*) cpu_type
=ppc endian
=big
;;
1664 rs6000
*) cpu_type
=ppc
;;
1665 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1666 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1667 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
1668 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
1669 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1670 v850
*) cpu_type
=v850
;;
1671 *) cpu_type
=${cpu} ;;
1674 if test ${this_target} = $target ; then
1675 target_cpu_type
=${cpu_type}
1676 elif test ${target_cpu_type} != ${cpu_type} ; then
1680 generic_target
=${cpu_type}-$vendor-$os
1685 # assign object format
1686 case ${generic_target} in
1687 a29k-
*-coff) fmt=coff
;;
1688 a29k-amd-udi
) fmt=coff
;;
1689 a29k-amd-ebmon
) fmt=coff
;;
1690 a29k-nyu-sym1
) fmt=coff
;;
1691 a29k-
*-vxworks*) fmt=coff
;;
1693 alpha
*-*-*vms
*) fmt=evax
;;
1694 alpha
*-*-netware*) fmt=ecoff
;;
1695 alpha
*-*-openbsd*) fmt=ecoff
;;
1696 alpha
*-*-osf*) fmt=ecoff
;;
1697 alpha
*-*-linuxecoff*) fmt=ecoff
;;
1698 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
1699 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
1701 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1703 arm-
*-aout) fmt=aout
;;
1704 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1705 arm-
*-elf | thumb-
*-elf) fmt=elf
;;
1706 arm
*-*-conix*) fmt=elf
;;
1707 arm-
*-linux*aout
*) fmt=aout em
=linux
;;
1708 arm
*-*-linux-gnu*) fmt=elf em
=linux
;;
1709 arm-
*-netbsd*) fmt=aout em
=nbsd
;;
1710 arm-
*-oabi | thumb-
*-oabi) fmt=elf
;;
1711 arm-epoc-pe | thumb-epoc-pe
) fmt=coff em
=epoc-pe
;;
1712 arm-
*-wince) fmt=coff em
=wince-pe
;;
1713 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
1714 arm-
*-riscix*) fmt=aout em
=riscix
;;
1716 avr-
*-*) fmt=elf bfd_gas
=yes ;;
1718 cris-
*-*) fmt=multi bfd_gas
=yes ;;
1720 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1721 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1724 fr30-
*-*) fmt=elf bfd_gas
=yes ;;
1726 hppa-
*-linux-gnu*) case ${cpu} in
1728 fmt=elf em
=hppalinux64
;;
1732 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1733 hppa-
*-lites*) fmt=elf em
=hppa
;;
1734 hppa-
*-osf*) fmt=som em
=hppa
;;
1735 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1736 hppa-
*-hpux11*) case ${cpu} in
1738 fmt=elf em
=hppa64
;;
1742 hppa-
*-hpux*) fmt=som em
=hppa
;;
1743 hppa-
*-mpeix*) fmt=som em
=hppa
;;
1744 hppa-
*-bsd*) fmt=som em
=hppa
;;
1745 hppa-
*-hiux*) fmt=som em
=hppa
;;
1747 h8300-
*-coff) fmt=coff
;;
1749 i370-
*-elf* | i370-
*-linux*) fmt=elf
;;
1750 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1751 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1752 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
1753 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
1754 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1755 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1756 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1757 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1758 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1759 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1760 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
1761 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1762 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
1763 fmt=elf bfd_gas
=yes ;;
1764 i386-
*-freebsdaout* | i386-
*-freebsd[12].
* | i386-
*-freebsd[12])
1765 fmt=aout em
=386bsd
;;
1766 i386-
*-freebsd*) fmt=elf bfd_gas
=yes ;;
1767 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
1769 i386-
*-sco3.2v5
*) fmt=elf
1770 if test ${this_target} = $target; then
1771 cat >> confdefs.h
<<\EOF
1777 i386-
*-sco3.2
*) fmt=coff
;;
1778 i386-
*-vsta) fmt=aout
;;
1779 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
1781 i386-
*-rtemself*) fmt=elf
;;
1782 i386-
*-rtems*) fmt=coff
;;
1783 i386-
*-gnu*) fmt=elf
;;
1785 fmt=aout em
=mach bfd_gas
=yes ;;
1786 i386-
*-msdos*) fmt=aout
;;
1787 i386-
*-moss*) fmt=elf
;;
1788 i386-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
1789 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
1790 i386-
*-interix*) fmt=coff em
=interix bfd_gas
=yes ;;
1791 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
1792 i386-
*-*nt
*) fmt=coff em
=pe bfd_gas
=yes ;;
1793 i386-
*-vxworks*) fmt=aout
;;
1794 i860-stardent-sysv4
* | i860-stardent-elf
*)
1795 fmt=elf bfd_gas
=yes endian
=little
1796 echo "configure: warning: GAS support for ${generic_target} is preliminary and a work in progress" 1>&2 ;;
1797 i960-
*-bout) fmt=bout
;;
1798 i960-
*-coff) fmt=coff em
=ic960
;;
1799 i960-
*-rtems*) fmt=coff em
=ic960
;;
1800 i960-
*-nindy*) fmt=bout
;;
1801 i960-
*-vxworks4*) fmt=bout
;;
1802 i960-
*-vxworks5.0
) fmt=bout
;;
1803 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1804 i960-
*-vxworks*) fmt=bout
;;
1805 i960-
*-elf*) fmt=elf
;;
1807 ia64-
*-elf*) fmt=elf
;;
1808 ia64-
*-linux-gnu*) fmt=elf em
=linux
;;
1810 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1812 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)fmt=elf bfd_gas
=yes ;;
1814 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1816 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1817 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1818 m68k-apollo-
*) fmt=coff em
=apollo
;;
1819 m68k-
*-sysv4*) # must be before -sysv*
1821 m68k-
*-elf*) fmt=elf
;;
1822 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1824 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1825 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1826 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
1827 m68k-
*-gnu*) fmt=elf
;;
1828 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1829 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1830 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1831 m68k-apple-aux
*) fmt=coff em
=aux
;;
1832 m68k-
*-psos*) fmt=elf em
=psos
;;
1834 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1835 m88k-
*-coff*) fmt=coff
;;
1837 mcore-
*-elf) fmt=elf bfd_gas
=yes ;;
1838 mcore-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
1840 # don't change em like *-*-bsd does
1841 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1842 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1843 mips-dec-bsd
*) fmt=aout endian
=little
;;
1844 mips-sony-bsd
*) fmt=ecoff
;;
1845 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1846 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1847 mips-
*-osf*) fmt=ecoff endian
=little
;;
1848 mips-
*-ecoff*) fmt=ecoff
;;
1849 mips-
*-ecoff*) fmt=ecoff
;;
1850 mips-
*-pe*) fmt=coff endian
=little em
=pe
;;
1851 mips-
*-irix6*) fmt=elf
;;
1852 mips-
*-irix5*) fmt=elf
;;
1853 mips-
*-irix*) fmt=ecoff
;;
1854 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1855 mips-
*-riscos*) fmt=ecoff
;;
1856 mips-
*-sysv4*MP
*) fmt=elf em
=tmips
;;
1857 mips-
*-sysv*) fmt=ecoff
;;
1858 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
1860 mips-
*-vxworks*) fmt=elf
1861 cat >> confdefs.h
<<\EOF
1862 #define MIPS_STABS_ELF 1
1866 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1867 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1869 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
1871 ppc-
*-aix*) fmt=coff
;;
1872 ppc-
*-beos*) fmt=coff
;;
1873 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1875 ppc-
*-linux-gnu*) fmt=elf
1878 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
1881 ppc-
*-solaris*) fmt=elf
1882 if test ${this_target} = $target; then
1883 cat >> confdefs.h
<<\EOF
1884 #define TARGET_SOLARIS_COMMENT 1
1888 if test x
${endian} = xbig
; then
1889 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1892 ppc-
*-rtems*) fmt=elf
;;
1893 ppc-
*-macos* | ppc-
*-mpw*)
1894 fmt=coff em
=macos
;;
1895 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1896 ppc-
*-vxworks*) fmt=elf
;;
1898 sh-
*-elf*) fmt=elf
;;
1899 sh-
*-coff*) fmt=coff
;;
1900 sh-
*-pe*) fmt=coff em
=pe bfd_gas
=yes;;
1901 sh-
*-rtemself*) fmt=elf
;;
1902 sh-
*-rtems*) fmt=coff
;;
1904 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1905 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1906 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1908 sparc-
*-rtems*) fmt=aout
;;
1909 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1910 sparc-
*-aout | sparc
*-*-vxworks*)
1911 fmt=aout em
=sparcaout
;;
1912 sparc-
*-coff) fmt=coff
;;
1913 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1914 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
1915 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1916 sparc-fujitsu-none
) fmt=aout
;;
1917 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1919 sparc-
*-netbsd*) em
=nbsd bfd_gas
=yes
1921 sparc
) case ${os} in
1928 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
1930 strongarm-
*-coff) fmt=coff
;;
1931 strongarm-
*-elf) fmt=elf
;;
1933 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
1934 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
1935 tic54x-
*-* | c54x
*-*-*)
1936 fmt=coff bfd_gas
=yes need_libm
=yes;;
1937 tic80-
*-*) fmt=coff
;;
1939 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1940 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
1941 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
1943 vax-
*-bsd* | vax-
*-ultrix*)
1945 vax-
*-vms) fmt=vms
;;
1948 z8k-
*-coff | z8k-
*-sim)
1951 w65-
*-*) fmt=coff
;;
1953 *-*-aout |
*-*-scout)
1959 *-*-generic) fmt=generic
;;
1960 *-*-xray |
*-*-hms) fmt=coff
;;
1961 *-*-sim) fmt=coff
;;
1962 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1963 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1965 *-*-vxworks) fmt=aout
;;
1966 *-*-netware) fmt=elf
;;
1969 if test ${this_target} = $target ; then
1971 if test x
${endian} = xbig
; then
1973 elif test x
${endian} = xlittle
; then
1976 if test x
${endian_def} != x
; then
1977 cat >> confdefs.h
<<EOF
1978 #define TARGET_BYTES_BIG_ENDIAN $endian_def
1984 case ${cpu_type}-${fmt} in
1985 alpha
*-*) bfd_gas
=yes ;;
1986 arm-
*) bfd_gas
=yes ;;
1988 # i386-aout) bfd_gas=preferred ;;
1989 ia64
*-*) bfd_gas
=yes ;;
1990 mips-
*) bfd_gas
=yes ;;
1991 ns32k-
*) bfd_gas
=yes ;;
1992 ppc-
*) bfd_gas
=yes ;;
1993 sparc-
*) bfd_gas
=yes ;;
1994 strongarm-
*) bfd_gas
=yes ;;
1995 *-elf) bfd_gas
=yes ;;
1996 *-ecoff) bfd_gas
=yes ;;
1997 *-som) bfd_gas
=yes ;;
1998 #enable bfd for coff and aout to allow testing if a bfd target is
1999 #the primary target, but not for coff or aout as the primary target
2000 i386-coff
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
2001 i386-aout
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
2005 # Other random stuff.
2007 # Do we need the opcodes library?
2015 case "${enable_shared}" in
2016 yes) shared_opcodes
=true
;;
2017 *opcodes
*) shared_opcodes
=true
;;
2018 *) shared_opcodes
=false
;;
2020 if test "${shared_opcodes}" = "true"; then
2021 # A shared libopcodes must be linked against libbfd.
2027 # Any other special object files needed ?
2034 case ${extra_objects} in
2036 *) extra_objects
="$extra_objects m68k-parse.o" ;;
2041 echo ${extra_objects} |
grep -s "itbl-parse.o"
2042 if test $?
-ne 0 ; then
2043 extra_objects
="$extra_objects itbl-parse.o"
2046 echo ${extra_objects} |
grep -s "itbl-lex.o"
2047 if test $?
-ne 0 ; then
2048 extra_objects
="$extra_objects itbl-lex.o"
2051 echo ${extra_objects} |
grep -s "itbl-ops.o"
2052 if test $?
-ne 0 ; then
2053 extra_objects
="$extra_objects itbl-ops.o"
2058 if test $this_target = $target ; then
2059 cat >> confdefs.h
<<EOF
2060 #define DEFAULT_ARCH "${arch}"
2069 if test $using_cgen = yes ; then
2070 case "x${extra_objects}" in
2072 *) extra_objects
="$extra_objects cgen.o" ;;
2076 # See if we really can support this configuration with the emulation code.
2078 if test $this_target = $target ; then
2079 primary_bfd_gas
=$bfd_gas
2083 if test $bfd_gas = no
; then
2084 # Can't support other configurations this way.
2087 elif test $bfd_gas = no
; then
2088 # Can't support this configuration.
2092 # From target name and format, produce a list of supported emulations.
2094 case ${generic_target}-${fmt} in
2095 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2096 mips-
*-linux-gnu*-*) case "$endian" in
2097 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2098 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2100 mips-
*-lnews*-ecoff) ;;
2101 mips-
*-*-ecoff) case "$endian" in
2102 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
2103 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
2105 mips-
*-*-elf) case "$endian" in
2106 big
) emulation
="mipsbelf mipslelf mipself" ;;
2107 *) emulation
="mipslelf mipsbelf mipself" ;;
2109 mips-
*-sysv4*MP
*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2110 # i386-pc-pe-coff != i386-pc-coff.
2112 # Uncommenting the next line will turn on support for i386 AOUT
2113 # for the default linux configuration
2114 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
2116 i386-
*-aout) emulation
="i386aout" ;;
2117 i386-
*-coff) emulation
="i386coff" ;;
2118 i386-
*-elf) emulation
="i386elf" ;;
2120 # Always all formats. Having a.out first makes it the default.
2121 cris-
*-*) emulation
="crisaout criself" ;;
2124 emulations
="$emulations $emulation"
2128 # Turn on all targets if possible
2129 if test ${all_targets} = "yes"; then
2130 case ${target_cpu_type} in
2132 case ${obj_format} in
2134 emulations
="$emulations i386coff i386elf"
2137 emulations
="$emulations i386aout i386elf"
2140 emulations
="$emulations i386aout i386coff"
2147 # Assign floating point type. Most processors with FP support
2148 # IEEE FP. On those that don't support FP at all, usually IEEE
2150 case ${target_cpu} in
2151 vax | tahoe
) atof
=${target_cpu} ;;
2155 case "${obj_format}" in
2156 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2159 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2161 if test $using_cgen = yes ; then
2162 case ${target_cpu} in
2163 *) cgen_cpu_prefix
=${target_cpu} ;;
2166 cat >> confdefs.h
<<\EOF
2167 #define USING_CGEN 1
2173 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2174 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2177 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2178 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2181 case ${user_bfd_gas}-${primary_bfd_gas} in
2183 # We didn't override user's choice.
2186 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2198 # User specified nothing.
2202 # Some COFF configurations want these random other flags set.
2203 case ${obj_format} in
2205 case ${target_cpu_type} in
2206 i386
) cat >> confdefs.h
<<\EOF
2210 m68k
) cat >> confdefs.h
<<\EOF
2214 m88k
) cat >> confdefs.h
<<\EOF
2222 # Getting this done right is going to be a bitch. Each configuration specified
2223 # with --enable-targets=... should be checked for environment, format, cpu, and
2226 # For each configuration, the necessary object file support code must be linked
2227 # in. This might be only one, it might be up to four. The necessary emulation
2228 # code needs to be provided, too.
2230 # And then there's "--enable-targets=all"....
2232 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2234 formats
="${obj_format}"
2237 _gas_uniq_list
="$emulations"
2238 _gas_uniq_newlist
=""
2239 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2240 case $_gas_uniq_i in
2242 *) case " $_gas_uniq_newlist " in
2243 *" $_gas_uniq_i "*) ;;
2244 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2248 emulations
=$_gas_uniq_newlist
2250 for em
in .
$emulations ; do
2253 mipsbelf | mipslelf
)
2254 fmt=elf
file=mipself
;;
2255 mipsbecoff | mipslecoff
)
2256 fmt=ecoff
file=mipsecoff
;;
2258 fmt=coff
file=$em ;;
2260 fmt=aout
file=$em ;;
2264 formats
="$formats $fmt"
2265 emfiles
="$emfiles e-$file.o"
2266 EMULATIONS
="$EMULATIONS &$em,"
2268 _gas_uniq_list
="$formats"
2269 _gas_uniq_newlist
=""
2270 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2271 case $_gas_uniq_i in
2273 *) case " $_gas_uniq_newlist " in
2274 *" $_gas_uniq_i "*) ;;
2275 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2279 formats
=$_gas_uniq_newlist
2281 _gas_uniq_list
="$emfiles"
2282 _gas_uniq_newlist
=""
2283 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2284 case $_gas_uniq_i in
2286 *) case " $_gas_uniq_newlist " in
2287 *" $_gas_uniq_i "*) ;;
2288 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2292 emfiles
=$_gas_uniq_newlist
2294 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2295 for fmt in $formats ; do
2297 aout
) cat >> confdefs.h
<<\EOF
2298 #define OBJ_MAYBE_AOUT 1
2301 bout
) cat >> confdefs.h
<<\EOF
2302 #define OBJ_MAYBE_BOUT 1
2305 coff
) cat >> confdefs.h
<<\EOF
2306 #define OBJ_MAYBE_COFF 1
2309 ecoff
) cat >> confdefs.h
<<\EOF
2310 #define OBJ_MAYBE_ECOFF 1
2313 elf
) cat >> confdefs.h
<<\EOF
2314 #define OBJ_MAYBE_ELF 1
2317 generic
) cat >> confdefs.h
<<\EOF
2318 #define OBJ_MAYBE_GENERIC 1
2321 hp300
) cat >> confdefs.h
<<\EOF
2322 #define OBJ_MAYBE_HP300 1
2325 ieee
) cat >> confdefs.h
<<\EOF
2326 #define OBJ_MAYBE_IEEE 1
2329 som
) cat >> confdefs.h
<<\EOF
2330 #define OBJ_MAYBE_SOM 1
2333 vms
) cat >> confdefs.h
<<\EOF
2334 #define OBJ_MAYBE_VMS 1
2338 extra_objects
="$extra_objects obj-$fmt.o"
2342 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2343 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2344 # e-mips* has more than one emulation per file, e-i386* has just one at the
2345 # moment. If only one emulation is specified, then don't define
2346 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
2347 case "${obj_format}${emfiles}" in
2349 extra_objects
="$extra_objects $emfiles"
2350 cat >> confdefs.h
<<\EOF
2351 #define USE_EMULATIONS 1
2357 cat >> confdefs.h
<<EOF
2358 #define EMULATIONS $EMULATIONS
2361 cat >> confdefs.h
<<EOF
2362 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2366 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2367 yes-
*-coff) need_bfd
=yes ;;
2368 no-
*-coff) need_bfd
=yes
2369 cat >> confdefs.h
<<\EOF
2370 #define MANY_SEGMENTS 1
2375 reject_dev_configs
=yes
2377 case ${reject_dev_configs}-${dev} in
2379 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2389 case "${primary_bfd_gas}" in
2390 yes) cat >> confdefs.h
<<\EOF
2391 #define BFD_ASSEMBLER 1
2397 # do we need the opcodes library?
2398 case "${need_opcodes}" in
2400 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2404 case "${need_bfd}" in
2406 BFDLIB
=..
/bfd
/libbfd.la
2407 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2416 cat >> confdefs.h
<<EOF
2417 #define TARGET_ALIAS "${target_alias}"
2420 cat >> confdefs.h
<<EOF
2421 #define TARGET_CANONICAL "${target}"
2424 cat >> confdefs.h
<<EOF
2425 #define TARGET_CPU "${target_cpu}"
2428 cat >> confdefs.h
<<EOF
2429 #define TARGET_VENDOR "${target_vendor}"
2432 cat >> confdefs.h
<<EOF
2433 #define TARGET_OS "${target_os}"
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438 set dummy gcc
; ac_word
=$2
2439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440 echo "configure:2441: checking for $ac_word" >&5
2441 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 if test -n "$CC"; then
2445 ac_cv_prog_CC
="$CC" # Let the user override the test.
2447 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2449 for ac_dir
in $ac_dummy; do
2450 test -z "$ac_dir" && ac_dir
=.
2451 if test -f $ac_dir/$ac_word; then
2460 if test -n "$CC"; then
2461 echo "$ac_t""$CC" 1>&6
2463 echo "$ac_t""no" 1>&6
2466 if test -z "$CC"; then
2467 # Extract the first word of "cc", so it can be a program name with args.
2468 set dummy cc
; ac_word
=$2
2469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_word" >&5
2471 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 if test -n "$CC"; then
2475 ac_cv_prog_CC
="$CC" # Let the user override the test.
2477 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2480 for ac_dir
in $ac_dummy; do
2481 test -z "$ac_dir" && ac_dir
=.
2482 if test -f $ac_dir/$ac_word; then
2483 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2484 ac_prog_rejected
=yes
2492 if test $ac_prog_rejected = yes; then
2493 # We found a bogon in the path, so make sure we never use it.
2494 set dummy
$ac_cv_prog_CC
2496 if test $# -gt 0; then
2497 # We chose a different compiler from the bogus one.
2498 # However, it has the same basename, so the bogon will be chosen
2499 # first if we set CC to just the basename; use the full file name.
2501 set dummy
"$ac_dir/$ac_word" "$@"
2509 if test -n "$CC"; then
2510 echo "$ac_t""$CC" 1>&6
2512 echo "$ac_t""no" 1>&6
2515 if test -z "$CC"; then
2516 case "`uname -s`" in
2518 # Extract the first word of "cl", so it can be a program name with args.
2519 set dummy cl
; ac_word
=$2
2520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2521 echo "configure:2522: checking for $ac_word" >&5
2522 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC
="$CC" # Let the user override the test.
2528 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2530 for ac_dir
in $ac_dummy; do
2531 test -z "$ac_dir" && ac_dir
=.
2532 if test -f $ac_dir/$ac_word; then
2541 if test -n "$CC"; then
2542 echo "$ac_t""$CC" 1>&6
2544 echo "$ac_t""no" 1>&6
2549 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2552 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2553 echo "configure:2554: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2557 ac_cpp
='$CPP $CPPFLAGS'
2558 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2559 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2560 cross_compiling
=$ac_cv_prog_cc_cross
2562 cat > conftest.
$ac_ext << EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2569 if { (eval echo configure
:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2570 ac_cv_prog_cc_works
=yes
2571 # If we can't run a trivial program, we are probably using a cross compiler.
2572 if (.
/conftest
; exit) 2>/dev
/null
; then
2573 ac_cv_prog_cc_cross
=no
2575 ac_cv_prog_cc_cross
=yes
2578 echo "configure: failed program was:" >&5
2579 cat conftest.
$ac_ext >&5
2580 ac_cv_prog_cc_works
=no
2584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2585 ac_cpp
='$CPP $CPPFLAGS'
2586 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2587 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2588 cross_compiling
=$ac_cv_prog_cc_cross
2590 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2591 if test $ac_cv_prog_cc_works = no
; then
2592 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2594 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2595 echo "configure:2596: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2596 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2597 cross_compiling
=$ac_cv_prog_cc_cross
2599 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2600 echo "configure:2601: checking whether we are using GNU C" >&5
2601 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.c
<<EOF
2609 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2616 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2618 if test $ac_cv_prog_gcc = yes; then
2624 ac_test_CFLAGS
="${CFLAGS+set}"
2625 ac_save_CFLAGS
="$CFLAGS"
2627 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2628 echo "configure:2629: checking whether ${CC-cc} accepts -g" >&5
2629 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 echo 'void f(){}' > conftest.c
2633 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2642 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2643 if test "$ac_test_CFLAGS" = set; then
2644 CFLAGS
="$ac_save_CFLAGS"
2645 elif test $ac_cv_prog_cc_g = yes; then
2646 if test "$GCC" = yes; then
2652 if test "$GCC" = yes; then
2660 for ac_prog
in 'bison -y' byacc
2662 # Extract the first word of "$ac_prog", so it can be a program name with args.
2663 set dummy
$ac_prog; ac_word
=$2
2664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2665 echo "configure:2666: checking for $ac_word" >&5
2666 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 if test -n "$YACC"; then
2670 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2672 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2674 for ac_dir
in $ac_dummy; do
2675 test -z "$ac_dir" && ac_dir
=.
2676 if test -f $ac_dir/$ac_word; then
2677 ac_cv_prog_YACC
="$ac_prog"
2684 YACC
="$ac_cv_prog_YACC"
2685 if test -n "$YACC"; then
2686 echo "$ac_t""$YACC" 1>&6
2688 echo "$ac_t""no" 1>&6
2691 test -n "$YACC" && break
2693 test -n "$YACC" || YACC
="yacc"
2695 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2696 echo "configure:2697: checking how to run the C preprocessor" >&5
2697 # On Suns, sometimes $CPP names a directory.
2698 if test -n "$CPP" && test -d "$CPP"; then
2701 if test -z "$CPP"; then
2702 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 # This must be in double quotes, not single quotes, because CPP may get
2706 # substituted into the Makefile and "${CC-cc}" will confuse make.
2708 # On the NeXT, cc -E runs the code through the compiler's parser,
2709 # not just through cpp.
2710 cat > conftest.
$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2716 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2717 { (eval echo configure
:2718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2718 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2719 if test -z "$ac_err"; then
2723 echo "configure: failed program was:" >&5
2724 cat conftest.
$ac_ext >&5
2726 CPP
="${CC-cc} -E -traditional-cpp"
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2734 { (eval echo configure
:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2735 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2736 if test -z "$ac_err"; then
2740 echo "configure: failed program was:" >&5
2741 cat conftest.
$ac_ext >&5
2743 CPP
="${CC-cc} -nologo -E"
2744 cat > conftest.
$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure
:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2757 echo "configure: failed program was:" >&5
2758 cat conftest.
$ac_ext >&5
2767 ac_cv_prog_CPP
="$CPP"
2769 CPP
="$ac_cv_prog_CPP"
2771 ac_cv_prog_CPP
="$CPP"
2773 echo "$ac_t""$CPP" 1>&6
2775 missing_dir
=`cd $ac_aux_dir && pwd`
2776 for ac_prog
in flex
lex
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy
$ac_prog; ac_word
=$2
2780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_word" >&5
2782 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 if test -n "$LEX"; then
2786 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2788 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2790 for ac_dir
in $ac_dummy; do
2791 test -z "$ac_dir" && ac_dir
=.
2792 if test -f $ac_dir/$ac_word; then
2793 ac_cv_prog_LEX
="$ac_prog"
2800 LEX
="$ac_cv_prog_LEX"
2801 if test -n "$LEX"; then
2802 echo "$ac_t""$LEX" 1>&6
2804 echo "$ac_t""no" 1>&6
2807 test -n "$LEX" && break
2809 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2811 # Extract the first word of "flex", so it can be a program name with args.
2812 set dummy flex
; ac_word
=$2
2813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_word" >&5
2815 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 if test -n "$LEX"; then
2819 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2821 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2823 for ac_dir
in $ac_dummy; do
2824 test -z "$ac_dir" && ac_dir
=.
2825 if test -f $ac_dir/$ac_word; then
2826 ac_cv_prog_LEX
="flex"
2831 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2834 LEX
="$ac_cv_prog_LEX"
2835 if test -n "$LEX"; then
2836 echo "$ac_t""$LEX" 1>&6
2838 echo "$ac_t""no" 1>&6
2841 if test -z "$LEXLIB"
2847 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2848 echo "configure:2849: checking for yywrap in -l$ac_lib" >&5
2849 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 ac_save_LIBS
="$LIBS"
2854 LIBS
="-l$ac_lib $LIBS"
2855 cat > conftest.
$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2858 /* Override any gcc2 internal prototype to avoid an error. */
2859 /* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2867 if { (eval echo configure
:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2869 eval "ac_cv_lib_$ac_lib_var=yes"
2871 echo "configure: failed program was:" >&5
2872 cat conftest.
$ac_ext >&5
2874 eval "ac_cv_lib_$ac_lib_var=no"
2877 LIBS
="$ac_save_LIBS"
2880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2881 echo "$ac_t""yes" 1>&6
2884 echo "$ac_t""no" 1>&6
2889 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2890 echo "configure:2891: checking lex output file root" >&5
2891 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 # The minimal lex program is just a single line: %%. But some broken lexes
2895 # (Solaris, I think it was) want two %% lines, so accommodate them.
2898 if test -f lex.yy.c
; then
2899 ac_cv_prog_lex_root
=lex.yy
2900 elif test -f lexyy.c
; then
2901 ac_cv_prog_lex_root
=lexyy
2903 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2907 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2908 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2910 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2911 echo "configure:2912: checking whether yytext is a pointer" >&5
2912 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 # POSIX says lex can declare yytext either as a pointer or an array; the
2916 # default is implementation-dependent. Figure out which it is, since
2917 # not all implementations provide the %pointer and %array declarations.
2918 ac_cv_prog_lex_yytext_pointer
=no
2919 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2920 ac_save_LIBS
="$LIBS"
2921 LIBS
="$LIBS $LEXLIB"
2922 cat > conftest.
$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2925 `cat $LEX_OUTPUT_ROOT.c`
2930 if { (eval echo configure
:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2932 ac_cv_prog_lex_yytext_pointer
=yes
2934 echo "configure: failed program was:" >&5
2935 cat conftest.
$ac_ext >&5
2938 LIBS
="$ac_save_LIBS"
2939 rm -f "${LEX_OUTPUT_ROOT}.c"
2943 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2944 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2945 cat >> confdefs.h
<<\EOF
2946 #define YYTEXT_POINTER 1
2953 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2954 echo "configure:2955: checking for POSIXized ISC" >&5
2955 if test -d /etc
/conf
/kconfig.d
&&
2956 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2958 echo "$ac_t""yes" 1>&6
2959 ISC
=yes # If later tests want to check for ISC.
2960 cat >> confdefs.h
<<\EOF
2961 #define _POSIX_SOURCE 1
2964 if test "$GCC" = yes; then
2970 echo "$ac_t""no" 1>&6
2974 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2975 echo "configure:2976: checking for ANSI C header files" >&5
2976 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.
$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2987 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2988 { (eval echo configure
:2989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2989 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2990 if test -z "$ac_err"; then
2992 ac_cv_header_stdc
=yes
2995 echo "configure: failed program was:" >&5
2996 cat conftest.
$ac_ext >&5
2998 ac_cv_header_stdc
=no
3002 if test $ac_cv_header_stdc = yes; then
3003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3004 cat > conftest.
$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3010 egrep "memchr" >/dev
/null
2>&1; then
3014 ac_cv_header_stdc
=no
3020 if test $ac_cv_header_stdc = yes; then
3021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3022 cat > conftest.
$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "free" >/dev
/null
2>&1; then
3032 ac_cv_header_stdc
=no
3038 if test $ac_cv_header_stdc = yes; then
3039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3040 if test "$cross_compiling" = yes; then
3043 cat > conftest.
$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3047 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3048 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3050 int main () { int i; for (i = 0; i < 256; i++)
3051 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3055 if { (eval echo configure
:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3059 echo "configure: failed program was:" >&5
3060 cat conftest.
$ac_ext >&5
3062 ac_cv_header_stdc
=no
3070 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3071 if test $ac_cv_header_stdc = yes; then
3072 cat >> confdefs.h
<<\EOF
3073 #define STDC_HEADERS 1
3078 echo $ac_n "checking for working const""... $ac_c" 1>&6
3079 echo "configure:3080: checking for working const" >&5
3080 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.
$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3089 /* Ultrix mips cc rejects this. */
3090 typedef int charset[2]; const charset x;
3091 /* SunOS 4.1.1 cc rejects this. */
3092 char const *const *ccp;
3094 /* NEC SVR4.0.2 mips cc rejects this. */
3095 struct point {int x, y;};
3096 static struct point const zero = {0,0};
3097 /* AIX XL C 1.02.0.0 rejects this.
3098 It does not let you subtract one const X* pointer from another in an arm
3099 of an if-expression whose if-part is not a constant expression */
3100 const char *g = "string";
3101 ccp = &g + (g ? g-g : 0);
3102 /* HPUX 7.0 cc rejects these. */
3105 ccp = (char const *const *) p;
3106 { /* SCO 3.2v4 cc rejects this. */
3108 char const *s = 0 ? (char *) 0 : (char const *) 0;
3112 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3114 const int *foo = &x[0];
3117 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3118 typedef const int *iptr;
3122 { /* AIX XL C 1.02.0.0 rejects this saying
3123 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3124 struct s { int j; const int *ap[3]; };
3125 struct s *b; b->j = 5;
3127 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3133 if { (eval echo configure
:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3137 echo "configure: failed program was:" >&5
3138 cat conftest.
$ac_ext >&5
3145 echo "$ac_t""$ac_cv_c_const" 1>&6
3146 if test $ac_cv_c_const = no
; then
3147 cat >> confdefs.h
<<\EOF
3153 echo $ac_n "checking for inline""... $ac_c" 1>&6
3154 echo "configure:3155: checking for inline" >&5
3155 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3159 for ac_kw
in inline __inline__ __inline
; do
3160 cat > conftest.
$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3168 if { (eval echo configure
:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170 ac_cv_c_inline
=$ac_kw; break
3172 echo "configure: failed program was:" >&5
3173 cat conftest.
$ac_ext >&5
3180 echo "$ac_t""$ac_cv_c_inline" 1>&6
3181 case "$ac_cv_c_inline" in
3183 no
) cat >> confdefs.h
<<\EOF
3187 *) cat >> confdefs.h
<<EOF
3188 #define inline $ac_cv_c_inline
3193 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3194 echo "configure:3195: checking for off_t" >&5
3195 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.
$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 #include <sys/types.h>
3207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3208 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3210 ac_cv_type_off_t
=yes
3218 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3219 if test $ac_cv_type_off_t = no
; then
3220 cat >> confdefs.h
<<\EOF
3226 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3227 echo "configure:3228: checking for size_t" >&5
3228 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 #include <sys/types.h>
3240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3241 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3243 ac_cv_type_size_t
=yes
3246 ac_cv_type_size_t
=no
3251 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3252 if test $ac_cv_type_size_t = no
; then
3253 cat >> confdefs.h
<<\EOF
3254 #define size_t unsigned
3259 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3260 # for constant arguments. Useless!
3261 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3262 echo "configure:3263: checking for working alloca.h" >&5
3263 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 cat > conftest.
$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3271 char *p = alloca(2 * sizeof(int));
3274 if { (eval echo configure
:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3276 ac_cv_header_alloca_h
=yes
3278 echo "configure: failed program was:" >&5
3279 cat conftest.
$ac_ext >&5
3281 ac_cv_header_alloca_h
=no
3286 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3287 if test $ac_cv_header_alloca_h = yes; then
3288 cat >> confdefs.h
<<\EOF
3289 #define HAVE_ALLOCA_H 1
3294 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3295 echo "configure:3296: checking for alloca" >&5
3296 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 cat > conftest.
$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3304 # define alloca __builtin_alloca
3307 # include <malloc.h>
3308 # define alloca _alloca
3311 # include <alloca.h>
3316 # ifndef alloca /* predefined by HP cc +Olibcalls */
3325 char *p = (char *) alloca(1);
3328 if { (eval echo configure
:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3330 ac_cv_func_alloca_works
=yes
3332 echo "configure: failed program was:" >&5
3333 cat conftest.
$ac_ext >&5
3335 ac_cv_func_alloca_works
=no
3340 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3341 if test $ac_cv_func_alloca_works = yes; then
3342 cat >> confdefs.h
<<\EOF
3343 #define HAVE_ALLOCA 1
3348 if test $ac_cv_func_alloca_works = no
; then
3349 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3350 # that cause trouble. Some versions do not even contain alloca or
3351 # contain a buggy version. If you still want to use their alloca,
3352 # use ar to extract alloca.o from them instead of compiling alloca.c.
3353 ALLOCA
=alloca.
${ac_objext}
3354 cat >> confdefs.h
<<\EOF
3359 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3360 echo "configure:3361: checking whether alloca needs Cray hooks" >&5
3361 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #if defined(CRAY) && ! defined(CRAY2)
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 egrep "webecray" >/dev
/null
2>&1; then
3386 echo "$ac_t""$ac_cv_os_cray" 1>&6
3387 if test $ac_cv_os_cray = yes; then
3388 for ac_func
in _getb67 GETB67 getb67
; do
3389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3390 echo "configure:3391: checking for $ac_func" >&5
3391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* System header to define __stub macros and hopefully few prototypes,
3398 which can conflict with char $ac_func(); below. */
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 /* We use char because int might match the return type of a gcc2
3402 builtin and then its argument prototype would still apply. */
3407 /* The GNU C library defines this for functions which it implements
3408 to always fail with ENOSYS. Some functions are actually named
3409 something starting with __ and the normal name is an alias. */
3410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3418 if { (eval echo configure
:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3420 eval "ac_cv_func_$ac_func=yes"
3422 echo "configure: failed program was:" >&5
3423 cat conftest.
$ac_ext >&5
3425 eval "ac_cv_func_$ac_func=no"
3430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3432 cat >> confdefs.h
<<EOF
3433 #define CRAY_STACKSEG_END $ac_func
3438 echo "$ac_t""no" 1>&6
3444 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3445 echo "configure:3446: checking stack direction for C alloca" >&5
3446 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 if test "$cross_compiling" = yes; then
3450 ac_cv_c_stack_direction
=0
3452 cat > conftest.
$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 find_stack_direction ()
3457 static char *addr = 0;
3462 return find_stack_direction ();
3465 return (&dummy > addr) ? 1 : -1;
3469 exit (find_stack_direction() < 0);
3472 if { (eval echo configure
:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3474 ac_cv_c_stack_direction
=1
3476 echo "configure: failed program was:" >&5
3477 cat conftest.
$ac_ext >&5
3479 ac_cv_c_stack_direction
=-1
3486 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3487 cat >> confdefs.h
<<EOF
3488 #define STACK_DIRECTION $ac_cv_c_stack_direction
3493 for ac_hdr
in unistd.h
3495 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3497 echo "configure:3498: checking for $ac_hdr" >&5
3498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 cat > conftest.
$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3506 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3507 { (eval echo configure
:3508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3508 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3509 if test -z "$ac_err"; then
3511 eval "ac_cv_header_$ac_safe=yes"
3514 echo "configure: failed program was:" >&5
3515 cat conftest.
$ac_ext >&5
3517 eval "ac_cv_header_$ac_safe=no"
3521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3522 echo "$ac_t""yes" 1>&6
3523 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3524 cat >> confdefs.h
<<EOF
3525 #define $ac_tr_hdr 1
3529 echo "$ac_t""no" 1>&6
3533 for ac_func
in getpagesize
3535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3536 echo "configure:3537: checking for $ac_func" >&5
3537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.
$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* System header to define __stub macros and hopefully few prototypes,
3544 which can conflict with char $ac_func(); below. */
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3553 /* The GNU C library defines this for functions which it implements
3554 to always fail with ENOSYS. Some functions are actually named
3555 something starting with __ and the normal name is an alias. */
3556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3564 if { (eval echo configure
:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3566 eval "ac_cv_func_$ac_func=yes"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.
$ac_ext >&5
3571 eval "ac_cv_func_$ac_func=no"
3576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3578 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3579 cat >> confdefs.h
<<EOF
3580 #define $ac_tr_func 1
3584 echo "$ac_t""no" 1>&6
3588 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3589 echo "configure:3590: checking for working mmap" >&5
3590 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 if test "$cross_compiling" = yes; then
3594 ac_cv_func_mmap_fixed_mapped
=no
3596 cat > conftest.
$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3600 /* Thanks to Mike Haertel and Jim Avera for this test.
3601 Here is a matrix of mmap possibilities:
3602 mmap private not fixed
3603 mmap private fixed at somewhere currently unmapped
3604 mmap private fixed at somewhere already mapped
3605 mmap shared not fixed
3606 mmap shared fixed at somewhere currently unmapped
3607 mmap shared fixed at somewhere already mapped
3608 For private mappings, we should verify that changes cannot be read()
3609 back from the file, nor mmap's back from the file at a different
3610 address. (There have been systems where private was not correctly
3611 implemented like the infamous i386 svr4.0, and systems where the
3612 VM page cache was not coherent with the filesystem buffer cache
3613 like early versions of FreeBSD and possibly contemporary NetBSD.)
3614 For shared mappings, we should conversely verify that changes get
3615 propogated back to all the places they're supposed to be.
3617 Grep wants private fixed already mapped.
3618 The main things grep needs to know about mmap are:
3619 * does it exist and is it safe to write into the mmap'd area
3620 * how to use it (BSD variants) */
3621 #include <sys/types.h>
3623 #include <sys/mman.h>
3625 /* This mess was copied from the GNU getpagesize.h. */
3626 #ifndef HAVE_GETPAGESIZE
3627 # ifdef HAVE_UNISTD_H
3628 # include <unistd.h>
3631 /* Assume that all systems that can run configure have sys/param.h. */
3632 # ifndef HAVE_SYS_PARAM_H
3633 # define HAVE_SYS_PARAM_H 1
3636 # ifdef _SC_PAGESIZE
3637 # define getpagesize() sysconf(_SC_PAGESIZE)
3638 # else /* no _SC_PAGESIZE */
3639 # ifdef HAVE_SYS_PARAM_H
3640 # include <sys/param.h>
3641 # ifdef EXEC_PAGESIZE
3642 # define getpagesize() EXEC_PAGESIZE
3643 # else /* no EXEC_PAGESIZE */
3645 # define getpagesize() NBPG * CLSIZE
3648 # endif /* no CLSIZE */
3649 # else /* no NBPG */
3651 # define getpagesize() NBPC
3652 # else /* no NBPC */
3654 # define getpagesize() PAGESIZE
3655 # endif /* PAGESIZE */
3656 # endif /* no NBPC */
3657 # endif /* no NBPG */
3658 # endif /* no EXEC_PAGESIZE */
3659 # else /* no HAVE_SYS_PARAM_H */
3660 # define getpagesize() 8192 /* punt totally */
3661 # endif /* no HAVE_SYS_PARAM_H */
3662 # endif /* no _SC_PAGESIZE */
3664 #endif /* no HAVE_GETPAGESIZE */
3667 extern "C" { void *malloc(unsigned); }
3675 char *data, *data2, *data3;
3679 pagesize = getpagesize();
3682 * First, make a file with some known garbage in it.
3684 data = malloc(pagesize);
3687 for (i = 0; i < pagesize; ++i)
3688 *(data + i) = rand();
3690 fd = creat("conftestmmap", 0600);
3693 if (write(fd, data, pagesize) != pagesize)
3698 * Next, try to mmap the file at a fixed address which
3699 * already has something else allocated at it. If we can,
3700 * also make sure that we see the same garbage.
3702 fd = open("conftestmmap", O_RDWR);
3705 data2 = malloc(2 * pagesize);
3708 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3709 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3710 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3712 for (i = 0; i < pagesize; ++i)
3713 if (*(data + i) != *(data2 + i))
3717 * Finally, make sure that changes to the mapped area
3718 * do not percolate back to the file as seen by read().
3719 * (This is a bug on some variants of i386 svr4.0.)
3721 for (i = 0; i < pagesize; ++i)
3722 *(data2 + i) = *(data2 + i) + 1;
3723 data3 = malloc(pagesize);
3726 if (read(fd, data3, pagesize) != pagesize)
3728 for (i = 0; i < pagesize; ++i)
3729 if (*(data + i) != *(data3 + i))
3732 unlink("conftestmmap");
3737 if { (eval echo configure
:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3739 ac_cv_func_mmap_fixed_mapped
=yes
3741 echo "configure: failed program was:" >&5
3742 cat conftest.
$ac_ext >&5
3744 ac_cv_func_mmap_fixed_mapped
=no
3751 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3752 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3753 cat >> confdefs.h
<<\EOF
3760 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3761 unistd.h values.h sys
/param.h
3763 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3765 echo "configure:3766: checking for $ac_hdr" >&5
3766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 cat > conftest.
$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3774 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3775 { (eval echo configure
:3776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3776 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3777 if test -z "$ac_err"; then
3779 eval "ac_cv_header_$ac_safe=yes"
3782 echo "configure: failed program was:" >&5
3783 cat conftest.
$ac_ext >&5
3785 eval "ac_cv_header_$ac_safe=no"
3789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3790 echo "$ac_t""yes" 1>&6
3791 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3792 cat >> confdefs.h
<<EOF
3793 #define $ac_tr_hdr 1
3797 echo "$ac_t""no" 1>&6
3801 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3802 __argz_count __argz_stringify __argz_next
3804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3805 echo "configure:3806: checking for $ac_func" >&5
3806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 cat > conftest.
$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* System header to define __stub macros and hopefully few prototypes,
3813 which can conflict with char $ac_func(); below. */
3815 /* Override any gcc2 internal prototype to avoid an error. */
3816 /* We use char because int might match the return type of a gcc2
3817 builtin and then its argument prototype would still apply. */
3822 /* The GNU C library defines this for functions which it implements
3823 to always fail with ENOSYS. Some functions are actually named
3824 something starting with __ and the normal name is an alias. */
3825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3833 if { (eval echo configure
:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3835 eval "ac_cv_func_$ac_func=yes"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.
$ac_ext >&5
3840 eval "ac_cv_func_$ac_func=no"
3845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3847 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3848 cat >> confdefs.h
<<EOF
3849 #define $ac_tr_func 1
3853 echo "$ac_t""no" 1>&6
3858 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3859 for ac_func
in stpcpy
3861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3862 echo "configure:3863: checking for $ac_func" >&5
3863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 cat > conftest.
$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 /* System header to define __stub macros and hopefully few prototypes,
3870 which can conflict with char $ac_func(); below. */
3872 /* Override any gcc2 internal prototype to avoid an error. */
3873 /* We use char because int might match the return type of a gcc2
3874 builtin and then its argument prototype would still apply. */
3879 /* The GNU C library defines this for functions which it implements
3880 to always fail with ENOSYS. Some functions are actually named
3881 something starting with __ and the normal name is an alias. */
3882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3890 if { (eval echo configure
:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3892 eval "ac_cv_func_$ac_func=yes"
3894 echo "configure: failed program was:" >&5
3895 cat conftest.
$ac_ext >&5
3897 eval "ac_cv_func_$ac_func=no"
3902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3904 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3905 cat >> confdefs.h
<<EOF
3906 #define $ac_tr_func 1
3910 echo "$ac_t""no" 1>&6
3915 if test "${ac_cv_func_stpcpy}" = "yes"; then
3916 cat >> confdefs.h
<<\EOF
3917 #define HAVE_STPCPY 1
3922 if test $ac_cv_header_locale_h = yes; then
3923 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3924 echo "configure:3925: checking for LC_MESSAGES" >&5
3925 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.
$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3936 if { (eval echo configure
:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3938 am_cv_val_LC_MESSAGES
=yes
3940 echo "configure: failed program was:" >&5
3941 cat conftest.
$ac_ext >&5
3943 am_cv_val_LC_MESSAGES
=no
3948 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3949 if test $am_cv_val_LC_MESSAGES = yes; then
3950 cat >> confdefs.h
<<\EOF
3951 #define HAVE_LC_MESSAGES 1
3956 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3957 echo "configure:3958: checking whether NLS is requested" >&5
3958 # Check whether --enable-nls or --disable-nls was given.
3959 if test "${enable_nls+set}" = set; then
3960 enableval
="$enable_nls"
3966 echo "$ac_t""$USE_NLS" 1>&6
3969 USE_INCLUDED_LIBINTL
=no
3971 if test "$USE_NLS" = "yes"; then
3972 cat >> confdefs.h
<<\EOF
3973 #define ENABLE_NLS 1
3976 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3977 echo "configure:3978: checking whether included gettext is requested" >&5
3978 # Check whether --with-included-gettext or --without-included-gettext was given.
3979 if test "${with_included_gettext+set}" = set; then
3980 withval
="$with_included_gettext"
3981 nls_cv_force_use_gnu_gettext
=$withval
3983 nls_cv_force_use_gnu_gettext
=no
3986 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3988 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3989 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3991 nls_cv_header_libgt
=
3994 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3995 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3996 echo "configure:3997: checking for libintl.h" >&5
3997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
4000 cat > conftest.
$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 #include <libintl.h>
4005 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4006 { (eval echo configure
:4007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4007 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4008 if test -z "$ac_err"; then
4010 eval "ac_cv_header_$ac_safe=yes"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 eval "ac_cv_header_$ac_safe=no"
4020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4022 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4023 echo "configure:4024: checking for gettext in libc" >&5
4024 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 cat > conftest.
$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4030 #include <libintl.h>
4032 return (int) gettext ("")
4035 if { (eval echo configure
:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4037 gt_cv_func_gettext_libc
=yes
4039 echo "configure: failed program was:" >&5
4040 cat conftest.
$ac_ext >&5
4042 gt_cv_func_gettext_libc
=no
4047 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4049 if test "$gt_cv_func_gettext_libc" != "yes"; then
4050 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4051 echo "configure:4052: checking for bindtextdomain in -lintl" >&5
4052 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 ac_save_LIBS
="$LIBS"
4058 cat > conftest.
$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 /* Override any gcc2 internal prototype to avoid an error. */
4062 /* We use char because int might match the return type of a gcc2
4063 builtin and then its argument prototype would still apply. */
4064 char bindtextdomain();
4070 if { (eval echo configure
:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4072 eval "ac_cv_lib_$ac_lib_var=yes"
4074 echo "configure: failed program was:" >&5
4075 cat conftest.
$ac_ext >&5
4077 eval "ac_cv_lib_$ac_lib_var=no"
4080 LIBS
="$ac_save_LIBS"
4083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4084 echo "$ac_t""yes" 1>&6
4085 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4086 echo "configure:4087: checking for gettext in libintl" >&5
4087 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.
$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4095 return (int) gettext ("")
4098 if { (eval echo configure
:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4100 gt_cv_func_gettext_libintl
=yes
4102 echo "configure: failed program was:" >&5
4103 cat conftest.
$ac_ext >&5
4105 gt_cv_func_gettext_libintl
=no
4110 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4112 echo "$ac_t""no" 1>&6
4117 if test "$gt_cv_func_gettext_libc" = "yes" \
4118 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4119 cat >> confdefs.h
<<\EOF
4120 #define HAVE_GETTEXT 1
4123 # Extract the first word of "msgfmt", so it can be a program name with args.
4124 set dummy msgfmt
; ac_word
=$2
4125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4126 echo "configure:4127: checking for $ac_word" >&5
4127 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4132 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4135 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4136 for ac_dir
in $PATH; do
4137 test -z "$ac_dir" && ac_dir
=.
4138 if test -f $ac_dir/$ac_word; then
4139 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4140 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4146 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4150 MSGFMT
="$ac_cv_path_MSGFMT"
4151 if test -n "$MSGFMT"; then
4152 echo "$ac_t""$MSGFMT" 1>&6
4154 echo "$ac_t""no" 1>&6
4156 if test "$MSGFMT" != "no"; then
4157 for ac_func
in dcgettext
4159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4160 echo "configure:4161: checking for $ac_func" >&5
4161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 cat > conftest.
$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 /* System header to define __stub macros and hopefully few prototypes,
4168 which can conflict with char $ac_func(); below. */
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4177 /* The GNU C library defines this for functions which it implements
4178 to always fail with ENOSYS. Some functions are actually named
4179 something starting with __ and the normal name is an alias. */
4180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4188 if { (eval echo configure
:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4190 eval "ac_cv_func_$ac_func=yes"
4192 echo "configure: failed program was:" >&5
4193 cat conftest.
$ac_ext >&5
4195 eval "ac_cv_func_$ac_func=no"
4200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4201 echo "$ac_t""yes" 1>&6
4202 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4203 cat >> confdefs.h
<<EOF
4204 #define $ac_tr_func 1
4208 echo "$ac_t""no" 1>&6
4212 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4213 set dummy gmsgfmt
; ac_word
=$2
4214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4215 echo "configure:4216: checking for $ac_word" >&5
4216 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4217 echo $ac_n "(cached) $ac_c" 1>&6
4221 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4224 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4227 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4229 for ac_dir
in $ac_dummy; do
4230 test -z "$ac_dir" && ac_dir
=.
4231 if test -f $ac_dir/$ac_word; then
4232 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4237 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4241 GMSGFMT
="$ac_cv_path_GMSGFMT"
4242 if test -n "$GMSGFMT"; then
4243 echo "$ac_t""$GMSGFMT" 1>&6
4245 echo "$ac_t""no" 1>&6
4248 # Extract the first word of "xgettext", so it can be a program name with args.
4249 set dummy xgettext
; ac_word
=$2
4250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4251 echo "configure:4252: checking for $ac_word" >&5
4252 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4257 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4260 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4261 for ac_dir
in $PATH; do
4262 test -z "$ac_dir" && ac_dir
=.
4263 if test -f $ac_dir/$ac_word; then
4264 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4265 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4271 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4275 XGETTEXT
="$ac_cv_path_XGETTEXT"
4276 if test -n "$XGETTEXT"; then
4277 echo "$ac_t""$XGETTEXT" 1>&6
4279 echo "$ac_t""no" 1>&6
4282 cat > conftest.
$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4287 extern int _nl_msg_cat_cntr;
4288 return _nl_msg_cat_cntr
4291 if { (eval echo configure
:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4296 echo "configure: failed program was:" >&5
4297 cat conftest.
$ac_ext >&5
4308 echo "$ac_t""no" 1>&6
4313 if test "$CATOBJEXT" = "NONE"; then
4314 nls_cv_use_gnu_gettext
=yes
4318 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4319 INTLOBJS
="\$(GETTOBJS)"
4320 # Extract the first word of "msgfmt", so it can be a program name with args.
4321 set dummy msgfmt
; ac_word
=$2
4322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4323 echo "configure:4324: checking for $ac_word" >&5
4324 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4329 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4332 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4333 for ac_dir
in $PATH; do
4334 test -z "$ac_dir" && ac_dir
=.
4335 if test -f $ac_dir/$ac_word; then
4336 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4337 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4343 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4347 MSGFMT
="$ac_cv_path_MSGFMT"
4348 if test -n "$MSGFMT"; then
4349 echo "$ac_t""$MSGFMT" 1>&6
4351 echo "$ac_t""no" 1>&6
4354 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4355 set dummy gmsgfmt
; ac_word
=$2
4356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4357 echo "configure:4358: checking for $ac_word" >&5
4358 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4363 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4366 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4369 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4371 for ac_dir
in $ac_dummy; do
4372 test -z "$ac_dir" && ac_dir
=.
4373 if test -f $ac_dir/$ac_word; then
4374 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4379 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4383 GMSGFMT
="$ac_cv_path_GMSGFMT"
4384 if test -n "$GMSGFMT"; then
4385 echo "$ac_t""$GMSGFMT" 1>&6
4387 echo "$ac_t""no" 1>&6
4390 # Extract the first word of "xgettext", so it can be a program name with args.
4391 set dummy xgettext
; ac_word
=$2
4392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4393 echo "configure:4394: checking for $ac_word" >&5
4394 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4399 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4402 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4403 for ac_dir
in $PATH; do
4404 test -z "$ac_dir" && ac_dir
=.
4405 if test -f $ac_dir/$ac_word; then
4406 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4407 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4413 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4417 XGETTEXT
="$ac_cv_path_XGETTEXT"
4418 if test -n "$XGETTEXT"; then
4419 echo "$ac_t""$XGETTEXT" 1>&6
4421 echo "$ac_t""no" 1>&6
4425 USE_INCLUDED_LIBINTL
=yes
4429 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4431 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4432 nls_cv_header_intl
=libintl.h
4433 nls_cv_header_libgt
=libgettext.h
4436 if test "$XGETTEXT" != ":"; then
4437 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4440 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4445 # We need to process the po/ directory.
4449 nls_cv_header_intl
=libintl.h
4450 nls_cv_header_libgt
=libgettext.h
4453 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4454 # because some of the sources are only built for this goal.
4455 if test "$PACKAGE" = gettext; then
4457 USE_INCLUDED_LIBINTL
=yes
4460 for lang
in $ALL_LINGUAS; do
4461 GMOFILES
="$GMOFILES $lang.gmo"
4462 POFILES
="$POFILES $lang.po"
4478 if test "x$CATOBJEXT" != "x"; then
4479 if test "x$ALL_LINGUAS" = "x"; then
4482 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4483 echo "configure:4484: checking for catalogs to be installed" >&5
4485 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4486 case "$ALL_LINGUAS" in
4487 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4490 LINGUAS
=$NEW_LINGUAS
4491 echo "$ac_t""$LINGUAS" 1>&6
4494 if test -n "$LINGUAS"; then
4495 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4499 if test $ac_cv_header_locale_h = yes; then
4500 INCLUDE_LOCALE_H
="#include <locale.h>"
4503 /* The system does not provide the header <locale.h>. Take care yourself. */"
4507 if test -f $srcdir/po2tbl.
sed.
in; then
4508 if test "$CATOBJEXT" = ".cat"; then
4509 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4510 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4511 echo "configure:4512: checking for linux/version.h" >&5
4512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 cat > conftest.
$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 #include <linux/version.h>
4520 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4521 { (eval echo configure
:4522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4522 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4523 if test -z "$ac_err"; then
4525 eval "ac_cv_header_$ac_safe=yes"
4528 echo "configure: failed program was:" >&5
4529 cat conftest.
$ac_ext >&5
4531 eval "ac_cv_header_$ac_safe=no"
4535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4539 echo "$ac_t""no" 1>&6
4544 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4546 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4547 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4550 if test "$PACKAGE" = "gettext"; then
4560 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4566 if test -d $srcdir/po
; then
4567 test -d po || mkdir po
4568 if test "x$srcdir" != "x."; then
4569 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4570 posrcprefix
="$srcdir/"
4572 posrcprefix
="../$srcdir/"
4578 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4579 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4583 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4584 echo "configure:4585: checking whether to enable maintainer-specific portions of Makefiles" >&5
4585 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4586 if test "${enable_maintainer_mode+set}" = set; then
4587 enableval
="$enable_maintainer_mode"
4588 USE_MAINTAINER_MODE
=$enableval
4590 USE_MAINTAINER_MODE
=no
4593 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4596 if test $USE_MAINTAINER_MODE = yes; then
4597 MAINTAINER_MODE_TRUE
=
4598 MAINTAINER_MODE_FALSE
='#'
4600 MAINTAINER_MODE_TRUE
='#'
4601 MAINTAINER_MODE_FALSE
=
4603 MAINT
=$MAINTAINER_MODE_TRUE
4606 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4607 echo "configure:4608: checking for Cygwin environment" >&5
4608 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4611 cat > conftest.
$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4618 #define __CYGWIN__ __CYGWIN32__
4623 if { (eval echo configure
:4624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4627 echo "configure: failed program was:" >&5
4628 cat conftest.
$ac_ext >&5
4636 echo "$ac_t""$ac_cv_cygwin" 1>&6
4638 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
4639 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4640 echo "configure:4641: checking for mingw32 environment" >&5
4641 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 cat > conftest.
$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4652 if { (eval echo configure
:4653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4656 echo "configure: failed program was:" >&5
4657 cat conftest.
$ac_ext >&5
4665 echo "$ac_t""$ac_cv_mingw32" 1>&6
4667 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4670 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4671 echo "configure:4672: checking for executable suffix" >&5
4672 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4673 echo $ac_n "(cached) $ac_c" 1>&6
4675 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4679 echo 'int main () { return 0; }' > conftest.
$ac_ext
4681 if { (eval echo configure
:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4682 for file in conftest.
*; do
4684 *.c |
*.o |
*.obj
) ;;
4685 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4689 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4692 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4697 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4698 echo "$ac_t""${ac_cv_exeext}" 1>&6
4702 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4704 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4706 echo "configure:4707: checking for $ac_hdr" >&5
4707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 cat > conftest.
$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4715 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4716 { (eval echo configure
:4717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4717 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4718 if test -z "$ac_err"; then
4720 eval "ac_cv_header_$ac_safe=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.
$ac_ext >&5
4726 eval "ac_cv_header_$ac_safe=no"
4730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4731 echo "$ac_t""yes" 1>&6
4732 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4733 cat >> confdefs.h
<<EOF
4734 #define $ac_tr_hdr 1
4738 echo "$ac_t""no" 1>&6
4743 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4744 # people who are not cross-compiling but are compiling cross-assemblers.
4745 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4746 echo "configure:4747: checking whether compiling a cross-assembler" >&5
4747 if test "${host}" = "${target}"; then
4751 cat >> confdefs.h
<<\EOF
4752 #define CROSS_COMPILE 1
4756 echo "$ac_t""$cross_gas" 1>&6
4758 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4759 # for constant arguments. Useless!
4760 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4761 echo "configure:4762: checking for working alloca.h" >&5
4762 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 cat > conftest.
$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4770 char *p = alloca(2 * sizeof(int));
4773 if { (eval echo configure
:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4775 ac_cv_header_alloca_h
=yes
4777 echo "configure: failed program was:" >&5
4778 cat conftest.
$ac_ext >&5
4780 ac_cv_header_alloca_h
=no
4785 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4786 if test $ac_cv_header_alloca_h = yes; then
4787 cat >> confdefs.h
<<\EOF
4788 #define HAVE_ALLOCA_H 1
4793 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4794 echo "configure:4795: checking for alloca" >&5
4795 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 cat > conftest.
$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4803 # define alloca __builtin_alloca
4806 # include <malloc.h>
4807 # define alloca _alloca
4810 # include <alloca.h>
4815 # ifndef alloca /* predefined by HP cc +Olibcalls */
4824 char *p = (char *) alloca(1);
4827 if { (eval echo configure
:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4829 ac_cv_func_alloca_works
=yes
4831 echo "configure: failed program was:" >&5
4832 cat conftest.
$ac_ext >&5
4834 ac_cv_func_alloca_works
=no
4839 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4840 if test $ac_cv_func_alloca_works = yes; then
4841 cat >> confdefs.h
<<\EOF
4842 #define HAVE_ALLOCA 1
4847 if test $ac_cv_func_alloca_works = no
; then
4848 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4849 # that cause trouble. Some versions do not even contain alloca or
4850 # contain a buggy version. If you still want to use their alloca,
4851 # use ar to extract alloca.o from them instead of compiling alloca.c.
4852 ALLOCA
=alloca.
${ac_objext}
4853 cat >> confdefs.h
<<\EOF
4858 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4859 echo "configure:4860: checking whether alloca needs Cray hooks" >&5
4860 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 cat > conftest.
$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4866 #if defined(CRAY) && ! defined(CRAY2)
4873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874 egrep "webecray" >/dev
/null
2>&1; then
4885 echo "$ac_t""$ac_cv_os_cray" 1>&6
4886 if test $ac_cv_os_cray = yes; then
4887 for ac_func
in _getb67 GETB67 getb67
; do
4888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4889 echo "configure:4890: checking for $ac_func" >&5
4890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4893 cat > conftest.
$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 /* System header to define __stub macros and hopefully few prototypes,
4897 which can conflict with char $ac_func(); below. */
4899 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4906 /* The GNU C library defines this for functions which it implements
4907 to always fail with ENOSYS. Some functions are actually named
4908 something starting with __ and the normal name is an alias. */
4909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4917 if { (eval echo configure
:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4919 eval "ac_cv_func_$ac_func=yes"
4921 echo "configure: failed program was:" >&5
4922 cat conftest.
$ac_ext >&5
4924 eval "ac_cv_func_$ac_func=no"
4929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 cat >> confdefs.h
<<EOF
4932 #define CRAY_STACKSEG_END $ac_func
4937 echo "$ac_t""no" 1>&6
4943 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4944 echo "configure:4945: checking stack direction for C alloca" >&5
4945 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 if test "$cross_compiling" = yes; then
4949 ac_cv_c_stack_direction
=0
4951 cat > conftest.
$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 find_stack_direction ()
4956 static char *addr = 0;
4961 return find_stack_direction ();
4964 return (&dummy > addr) ? 1 : -1;
4968 exit (find_stack_direction() < 0);
4971 if { (eval echo configure
:4972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4973 ac_cv_c_stack_direction
=1
4975 echo "configure: failed program was:" >&5
4976 cat conftest.
$ac_ext >&5
4978 ac_cv_c_stack_direction
=-1
4985 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4986 cat >> confdefs.h
<<EOF
4987 #define STACK_DIRECTION $ac_cv_c_stack_direction
4992 echo $ac_n "checking for inline""... $ac_c" 1>&6
4993 echo "configure:4994: checking for inline" >&5
4994 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4998 for ac_kw
in inline __inline__ __inline
; do
4999 cat > conftest.
$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5007 if { (eval echo configure
:5008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5009 ac_cv_c_inline
=$ac_kw; break
5011 echo "configure: failed program was:" >&5
5012 cat conftest.
$ac_ext >&5
5019 echo "$ac_t""$ac_cv_c_inline" 1>&6
5020 case "$ac_cv_c_inline" in
5022 no
) cat >> confdefs.h
<<\EOF
5026 *) cat >> confdefs.h
<<EOF
5027 #define inline $ac_cv_c_inline
5033 # VMS doesn't have unlink.
5034 for ac_func
in unlink remove
5036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5037 echo "configure:5038: checking for $ac_func" >&5
5038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 cat > conftest.
$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char $ac_func(); below. */
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5054 /* The GNU C library defines this for functions which it implements
5055 to always fail with ENOSYS. Some functions are actually named
5056 something starting with __ and the normal name is an alias. */
5057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5065 if { (eval echo configure
:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5067 eval "ac_cv_func_$ac_func=yes"
5069 echo "configure: failed program was:" >&5
5070 cat conftest.
$ac_ext >&5
5072 eval "ac_cv_func_$ac_func=no"
5077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5080 cat >> confdefs.h
<<EOF
5081 #define $ac_tr_func 1
5085 echo "$ac_t""no" 1>&6
5090 # Some systems don't have sbrk().
5093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5094 echo "configure:5095: checking for $ac_func" >&5
5095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 cat > conftest.
$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* System header to define __stub macros and hopefully few prototypes,
5102 which can conflict with char $ac_func(); below. */
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5111 /* The GNU C library defines this for functions which it implements
5112 to always fail with ENOSYS. Some functions are actually named
5113 something starting with __ and the normal name is an alias. */
5114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5122 if { (eval echo configure
:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5124 eval "ac_cv_func_$ac_func=yes"
5126 echo "configure: failed program was:" >&5
5127 cat conftest.
$ac_ext >&5
5129 eval "ac_cv_func_$ac_func=no"
5134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5135 echo "$ac_t""yes" 1>&6
5136 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5137 cat >> confdefs.h
<<EOF
5138 #define $ac_tr_func 1
5142 echo "$ac_t""no" 1>&6
5147 # do we need the math library?
5148 case "${need_libm}" in
5151 case "$lt_target" in
5152 *-*-beos* |
*-*-cygwin*)
5153 # These system don't have libm
5156 echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6
5157 echo "configure:5158: checking for _mwvalidcheckl in -lmw" >&5
5158 ac_lib_var
=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'`
5159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5162 ac_save_LIBS
="$LIBS"
5164 cat > conftest.
$ac_ext <<EOF
5165 #line 5166 "configure"
5166 #include "confdefs.h"
5167 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5170 char _mwvalidcheckl();
5176 if { (eval echo configure
:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5178 eval "ac_cv_lib_$ac_lib_var=yes"
5180 echo "configure: failed program was:" >&5
5181 cat conftest.
$ac_ext >&5
5183 eval "ac_cv_lib_$ac_lib_var=no"
5186 LIBS
="$ac_save_LIBS"
5189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5190 echo "$ac_t""yes" 1>&6
5193 echo "$ac_t""no" 1>&6
5196 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5197 echo "configure:5198: checking for main in -lm" >&5
5198 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 ac_save_LIBS
="$LIBS"
5204 cat > conftest.
$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5212 if { (eval echo configure
:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5214 eval "ac_cv_lib_$ac_lib_var=yes"
5216 echo "configure: failed program was:" >&5
5217 cat conftest.
$ac_ext >&5
5219 eval "ac_cv_lib_$ac_lib_var=no"
5222 LIBS
="$ac_save_LIBS"
5225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5226 echo "$ac_t""yes" 1>&6
5229 echo "$ac_t""no" 1>&6
5234 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5235 echo "configure:5236: checking for main in -lm" >&5
5236 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 ac_save_LIBS
="$LIBS"
5242 cat > conftest.
$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5250 if { (eval echo configure
:5251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5252 eval "ac_cv_lib_$ac_lib_var=yes"
5254 echo "configure: failed program was:" >&5
5255 cat conftest.
$ac_ext >&5
5257 eval "ac_cv_lib_$ac_lib_var=no"
5260 LIBS
="$ac_save_LIBS"
5263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5264 echo "$ac_t""yes" 1>&6
5267 echo "$ac_t""no" 1>&6
5277 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5278 # enough, but on some of those systems, the assert macro relies on requoting
5280 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5281 echo "configure:5282: checking for working assert macro" >&5
5282 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5285 cat > conftest.
$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5292 /* check for requoting problems */
5293 static int a, b, c, d;
5295 assert (!strcmp(s, "foo bar baz quux"));
5296 /* check for newline handling */
5302 if { (eval echo configure
:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5304 gas_cv_assert_ok
=yes
5306 echo "configure: failed program was:" >&5
5307 cat conftest.
$ac_ext >&5
5313 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5314 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
5315 #define BROKEN_ASSERT 1
5320 # On some systems, the system header files may not declare malloc, realloc,
5321 # and free. There are places where gas needs these functions to have been
5322 # declared -- such as when taking their addresses.
5324 #ifdef HAVE_MEMORY_H
5327 #ifdef HAVE_STRING_H
5330 #ifdef HAVE_STRINGS_H
5331 #include <strings.h>
5334 #ifdef HAVE_STDLIB_H
5337 #ifdef HAVE_UNISTD_H
5342 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5343 echo "configure:5344: checking whether declaration is required for strstr" >&5
5344 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5345 echo $ac_n "(cached) $ac_c" 1>&6
5347 cat > conftest.
$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5353 typedef char *(*f)();
5359 if { (eval echo configure
:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5361 gas_cv_decl_needed_strstr
=no
5363 echo "configure: failed program was:" >&5
5364 cat conftest.
$ac_ext >&5
5366 gas_cv_decl_needed_strstr
=yes
5370 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5371 if test $gas_cv_decl_needed_strstr = yes; then
5372 cat >> confdefs.h
<<\EOF
5373 #define NEED_DECLARATION_STRSTR 1
5379 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5380 echo "configure:5381: checking whether declaration is required for malloc" >&5
5381 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 cat > conftest.
$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5390 typedef char *(*f)();
5396 if { (eval echo configure
:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5398 gas_cv_decl_needed_malloc
=no
5400 echo "configure: failed program was:" >&5
5401 cat conftest.
$ac_ext >&5
5403 gas_cv_decl_needed_malloc
=yes
5407 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5408 if test $gas_cv_decl_needed_malloc = yes; then
5409 cat >> confdefs.h
<<\EOF
5410 #define NEED_DECLARATION_MALLOC 1
5416 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5417 echo "configure:5418: checking whether declaration is required for free" >&5
5418 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 cat > conftest.
$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5427 typedef void (*f)();
5433 if { (eval echo configure
:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5435 gas_cv_decl_needed_free
=no
5437 echo "configure: failed program was:" >&5
5438 cat conftest.
$ac_ext >&5
5440 gas_cv_decl_needed_free
=yes
5444 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5445 if test $gas_cv_decl_needed_free = yes; then
5446 cat >> confdefs.h
<<\EOF
5447 #define NEED_DECLARATION_FREE 1
5453 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5454 echo "configure:5455: checking whether declaration is required for sbrk" >&5
5455 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 cat > conftest.
$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5464 typedef char *(*f)();
5470 if { (eval echo configure
:5471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5472 gas_cv_decl_needed_sbrk
=no
5474 echo "configure: failed program was:" >&5
5475 cat conftest.
$ac_ext >&5
5477 gas_cv_decl_needed_sbrk
=yes
5481 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5482 if test $gas_cv_decl_needed_sbrk = yes; then
5483 cat >> confdefs.h
<<\EOF
5484 #define NEED_DECLARATION_SBRK 1
5490 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
5491 echo "configure:5492: checking whether declaration is required for environ" >&5
5492 if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5495 cat > conftest.
$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5507 if { (eval echo configure
:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5509 gas_cv_decl_needed_environ
=no
5511 echo "configure: failed program was:" >&5
5512 cat conftest.
$ac_ext >&5
5514 gas_cv_decl_needed_environ
=yes
5518 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
5519 if test $gas_cv_decl_needed_environ = yes; then
5520 cat >> confdefs.h
<<\EOF
5521 #define NEED_DECLARATION_ENVIRON 1
5527 # Does errno.h declare errno, or do we have to add a separate declaration
5530 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5531 echo "configure:5532: checking whether declaration is required for errno" >&5
5532 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5533 echo $ac_n "(cached) $ac_c" 1>&6
5535 cat > conftest.
$ac_ext <<EOF
5536 #line 5537 "configure"
5537 #include "confdefs.h"
5551 if { (eval echo configure
:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5553 gas_cv_decl_needed_errno
=no
5555 echo "configure: failed program was:" >&5
5556 cat conftest.
$ac_ext >&5
5558 gas_cv_decl_needed_errno
=yes
5562 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5563 if test $gas_cv_decl_needed_errno = yes; then
5564 cat >> confdefs.h
<<\EOF
5565 #define NEED_DECLARATION_ERRNO 1
5574 cat > confcache
<<\EOF
5575 # This file is a shell script that caches the results of configure
5576 # tests run on this system so they can be shared between configure
5577 # scripts and configure runs. It is not useful on other systems.
5578 # If it contains results you don't want to keep, you may remove or edit it.
5580 # By default, configure uses ./config.cache as the cache file,
5581 # creating it if it does not exist already. You can give configure
5582 # the --cache-file=FILE option to use a different cache file; that is
5583 # what configure does when it calls configure scripts in
5584 # subdirectories, so they share the cache.
5585 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5586 # config.status only pays attention to the cache file if you give it the
5587 # --recheck option to rerun configure.
5590 # The following way of writing the cache mishandles newlines in values,
5591 # but we know of no workaround that is simple, portable, and efficient.
5592 # So, don't put newlines in cache variables' values.
5593 # Ultrix sh set writes to stderr and can't be redirected directly,
5594 # and sets the high bit in the cache file unless we assign to the vars.
5596 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5598 # `set' does not quote correctly, so add quotes (double-quote substitution
5599 # turns \\\\ into \\, and sed turns \\ into \).
5601 -e "s/'/'\\\\''/g" \
5602 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5605 # `set' quotes correctly as required by POSIX, so do not add quotes.
5606 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5609 if cmp -s $cache_file confcache
; then
5612 if test -w $cache_file; then
5613 echo "updating cache $cache_file"
5614 cat confcache
> $cache_file
5616 echo "not updating unwritable cache $cache_file"
5621 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5623 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5624 # Let make expand exec_prefix.
5625 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5627 # Any assignment to VPATH causes Sun make to only execute
5628 # the first set of double-colon rules, so remove it if not needed.
5629 # If there is a colon in the path, we need to keep it.
5630 if test "x$srcdir" = x.
; then
5631 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5634 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5636 DEFS
=-DHAVE_CONFIG_H
5638 # Without the "./", some shells look in PATH for config.status.
5639 : ${CONFIG_STATUS=./config.status}
5641 echo creating
$CONFIG_STATUS
5642 rm -f $CONFIG_STATUS
5643 cat > $CONFIG_STATUS <<EOF
5645 # Generated automatically by configure.
5646 # Run this file to recreate the current configuration.
5647 # This directory was configured as follows,
5648 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5650 # $0 $ac_configure_args
5652 # Compiler output produced by configure, useful for debugging
5653 # configure, is in ./config.log if it exists.
5655 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5658 case "\$ac_option" in
5659 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5660 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5661 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5662 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5663 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5665 -help | --help | --hel | --he | --h)
5666 echo "\$ac_cs_usage"; exit 0 ;;
5667 *) echo "\$ac_cs_usage"; exit 1 ;;
5671 ac_given_srcdir=$srcdir
5672 ac_given_INSTALL="$INSTALL"
5674 trap 'rm -fr `echo "Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5676 cat >> $CONFIG_STATUS <<EOF
5678 # Protect against being on the right side of a sed subst in config.status.
5679 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5680 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5684 s%@CFLAGS@%$CFLAGS%g
5685 s%@CPPFLAGS@%$CPPFLAGS%g
5686 s%@CXXFLAGS@%$CXXFLAGS%g
5687 s%@FFLAGS@%$FFLAGS%g
5689 s%@LDFLAGS@%$LDFLAGS%g
5691 s%@exec_prefix@%$exec_prefix%g
5692 s%@prefix@%$prefix%g
5693 s%@program_transform_name@%$program_transform_name%g
5694 s%@bindir@%$bindir%g
5695 s%@sbindir@%$sbindir%g
5696 s%@libexecdir@%$libexecdir%g
5697 s%@datadir@%$datadir%g
5698 s%@sysconfdir@%$sysconfdir%g
5699 s%@sharedstatedir@%$sharedstatedir%g
5700 s%@localstatedir@%$localstatedir%g
5701 s%@libdir@%$libdir%g
5702 s%@includedir@%$includedir%g
5703 s%@oldincludedir@%$oldincludedir%g
5704 s%@infodir@%$infodir%g
5705 s%@mandir@%$mandir%g
5707 s%@host_alias@%$host_alias%g
5708 s%@host_cpu@%$host_cpu%g
5709 s%@host_vendor@%$host_vendor%g
5710 s%@host_os@%$host_os%g
5711 s%@target@%$target%g
5712 s%@target_alias@%$target_alias%g
5713 s%@target_cpu@%$target_cpu%g
5714 s%@target_vendor@%$target_vendor%g
5715 s%@target_os@%$target_os%g
5717 s%@build_alias@%$build_alias%g
5718 s%@build_cpu@%$build_cpu%g
5719 s%@build_vendor@%$build_vendor%g
5720 s%@build_os@%$build_os%g
5721 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5722 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5723 s%@INSTALL_DATA@%$INSTALL_DATA%g
5724 s%@PACKAGE@%$PACKAGE%g
5725 s%@VERSION@%$VERSION%g
5726 s%@ACLOCAL@%$ACLOCAL%g
5727 s%@AUTOCONF@%$AUTOCONF%g
5728 s%@AUTOMAKE@%$AUTOMAKE%g
5729 s%@AUTOHEADER@%$AUTOHEADER%g
5730 s%@MAKEINFO@%$MAKEINFO%g
5731 s%@SET_MAKE@%$SET_MAKE%g
5732 s%@RANLIB@%$RANLIB%g
5735 s%@LIBTOOL@%$LIBTOOL%g
5736 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5737 s%@GDBINIT@%$GDBINIT%g
5738 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5739 s%@extra_objects@%$extra_objects%g
5740 s%@target_cpu_type@%$target_cpu_type%g
5741 s%@obj_format@%$obj_format%g
5742 s%@te_file@%$te_file%g
5743 s%@install_tooldir@%$install_tooldir%g
5745 s%@BFDLIB@%$BFDLIB%g
5746 s%@OPCODES_LIB@%$OPCODES_LIB%g
5747 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5750 s%@LEXLIB@%$LEXLIB%g
5752 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5753 s%@ALLOCA@%$ALLOCA%g
5754 s%@USE_NLS@%$USE_NLS%g
5755 s%@MSGFMT@%$MSGFMT%g
5756 s%@GMSGFMT@%$GMSGFMT%g
5757 s%@XGETTEXT@%$XGETTEXT%g
5758 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5759 s%@CATALOGS@%$CATALOGS%g
5760 s%@CATOBJEXT@%$CATOBJEXT%g
5761 s%@DATADIRNAME@%$DATADIRNAME%g
5762 s%@GMOFILES@%$GMOFILES%g
5763 s%@INSTOBJEXT@%$INSTOBJEXT%g
5764 s%@INTLDEPS@%$INTLDEPS%g
5765 s%@INTLLIBS@%$INTLLIBS%g
5766 s%@INTLOBJS@%$INTLOBJS%g
5767 s%@POFILES@%$POFILES%g
5769 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5771 s%@GT_YES@%$GT_YES%g
5772 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5774 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5775 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5777 s%@EXEEXT@%$EXEEXT%g
5783 cat >> $CONFIG_STATUS <<\EOF
5785 # Split the substitutions into bite-sized pieces for seds with
5786 # small command number limits, like on Digital OSF/1 and HP-UX.
5787 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5788 ac_file
=1 # Number of current file.
5789 ac_beg
=1 # First line for current file.
5790 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5793 while $ac_more_lines; do
5794 if test $ac_beg -gt 1; then
5795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5797 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5799 if test ! -s conftest.s
$ac_file; then
5801 rm -f conftest.s
$ac_file
5803 if test -z "$ac_sed_cmds"; then
5804 ac_sed_cmds
="sed -f conftest.s$ac_file"
5806 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5808 ac_file
=`expr $ac_file + 1`
5810 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5813 if test -z "$ac_sed_cmds"; then
5818 cat >> $CONFIG_STATUS <<EOF
5820 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
5822 cat >> $CONFIG_STATUS <<\EOF
5823 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5826 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5827 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5828 *) ac_file_in
="${ac_file}.in" ;;
5831 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5833 # Remove last slash and all that follows it. Not all systems have dirname.
5834 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5835 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5836 # The file is in a subdirectory.
5837 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5838 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5839 # A "../" for each directory in $ac_dir_suffix.
5840 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5842 ac_dir_suffix
= ac_dots
=
5845 case "$ac_given_srcdir" in
5847 if test -z "$ac_dots"; then top_srcdir
=.
5848 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5849 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5851 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5852 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5855 case "$ac_given_INSTALL" in
5856 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5857 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5860 echo creating
"$ac_file"
5862 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5864 *Makefile
*) ac_comsub
="1i\\
5865 # $configure_input" ;;
5869 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5871 s%@configure_input@%$configure_input%g
5872 s%@srcdir@%$srcdir%g
5873 s%@top_srcdir@%$top_srcdir%g
5874 s%@INSTALL@%$INSTALL%g
5875 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5879 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5880 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5882 # ac_d sets the value in "#define NAME VALUE" lines.
5883 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5884 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5887 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5888 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5889 ac_uB
='\([ ]\)%\1#\2define\3'
5892 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5893 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5894 ac_eB
='$%\1#\2define\3'
5898 if test "${CONFIG_HEADERS+set}" != set; then
5900 cat >> $CONFIG_STATUS <<EOF
5901 CONFIG_HEADERS="config.h:config.in"
5903 cat >> $CONFIG_STATUS <<\EOF
5905 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5908 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5909 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5910 *) ac_file_in
="${ac_file}.in" ;;
5913 echo creating
$ac_file
5915 rm -f conftest.frag conftest.
in conftest.out
5916 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5917 cat $ac_file_inputs > conftest.
in
5921 # Transform confdefs.h into a sed script conftest.vals that substitutes
5922 # the proper values into config.h.in to produce config.h. And first:
5923 # Protect against being on the right side of a sed subst in config.status.
5924 # Protect against being in an unquoted here document in config.status.
5926 cat > conftest.hdr
<<\EOF
5929 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5933 sed -n -f conftest.hdr confdefs.h > conftest.vals
5936 # This sed command replaces #undef with comments. This is necessary, for
5937 # example, in the case of _POSIX_SOURCE, which is predefined and required
5938 # on some systems where configure will not decide to define it.
5939 cat >> conftest.vals <<\EOF
5940 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5943 # Break up conftest.vals because some shells have a limit on
5944 # the size of here documents, and old seds have small limits too.
5949 ac_lines=`grep -c . conftest.vals
`
5950 # grep -c gives empty output for an empty file on some AIX systems.
5951 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5952 # Write a limited-size here document to conftest.frag.
5953 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5954 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5956 sed -f conftest.frag conftest.in > conftest.out
5958 mv conftest.out conftest.in
5960 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5962 mv conftest.tail conftest.vals
5966 cat >> $CONFIG_STATUS <<\EOF
5967 rm -f conftest.frag conftest.h
5968 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5969 cat conftest.in >> conftest.h
5971 if cmp -s $ac_file conftest.h 2>/dev/null; then
5972 echo "$ac_file is unchanged"
5975 # Remove last slash and all that follows it. Not all systems have dirname.
5976 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5977 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5978 # The file is in a subdirectory.
5979 test ! -d "$ac_dir" && mkdir "$ac_dir"
5982 mv conftest.h $ac_file
5987 cat >> $CONFIG_STATUS <<EOF
5989 target_cpu_type=${target_cpu_type}
5990 cgen_cpu_prefix=${cgen_cpu_prefix}
5991 obj_format=${obj_format}
5994 cat >> $CONFIG_STATUS <<\EOF
5995 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5996 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
5997 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
5998 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
5999 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6000 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6001 if test "x$cgen_cpu_prefix" != x ; then
6002 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6005 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6008 chmod +x $CONFIG_STATUS
6009 rm -fr confdefs* $ac_clean_files
6010 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1