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=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock force libtool not to do file locking"
25 --enable-targets alternative target configurations"
27 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 --disable-nls do not use Native Language Support"
34 --with-included-gettext use the GNU gettext library included here"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --site-file=FILE use FILE as the site file
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -site-file | --site-file | --site-fil | --site-fi | --site-f)
340 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341 sitefile="$ac_optarg" ;;
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=z8k-dis.c
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 CONFIG_SITE="$sitefile"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
558 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
559 if test -f $ac_dir/install-sh; then
561 ac_install_sh="$ac_aux_dir/install-sh -c"
563 elif test -f $ac_dir/install.sh; then
565 ac_install_sh="$ac_aux_dir/install.sh -c"
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
628 case "$target_alias" in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
646 case "$build_alias" in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
663 program_prefix=${target_alias}-
665 # Extract the first word of "gcc", so it can be a program name with args.
666 set dummy gcc; ac_word=$2
667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
668 echo "configure:669: checking for $ac_word" >&5
669 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 if test -n "$CC"; then
673 ac_cv_prog_CC="$CC" # Let the user override the test.
675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 for ac_dir in $ac_dummy; do
678 test -z "$ac_dir" && ac_dir=.
679 if test -f $ac_dir/$ac_word; then
688 if test -n "$CC"; then
689 echo "$ac_t""$CC" 1>&6
691 echo "$ac_t""no" 1>&6
694 if test -z "$CC"; then
695 # Extract the first word of "cc", so it can be a program name with args.
696 set dummy cc; ac_word=$2
697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
698 echo "configure:699: checking for $ac_word" >&5
699 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
702 if test -n "$CC"; then
703 ac_cv_prog_CC="$CC" # Let the user override the test.
705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
708 for ac_dir in $ac_dummy; do
709 test -z "$ac_dir" && ac_dir=.
710 if test -f $ac_dir/$ac_word; then
711 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
720 if test $ac_prog_rejected = yes; then
721 # We found a bogon in the path, so make sure we never use it.
722 set dummy $ac_cv_prog_CC
724 if test $# -gt 0; then
725 # We chose a different compiler from the bogus one.
726 # However, it has the same basename, so the bogon will be chosen
727 # first if we set CC to just the basename; use the full file name.
729 set dummy "$ac_dir/$ac_word" "$@"
737 if test -n "$CC"; then
738 echo "$ac_t""$CC" 1>&6
740 echo "$ac_t""no" 1>&6
743 if test -z "$CC"; then
746 # Extract the first word of "cl", so it can be a program name with args.
747 set dummy cl; ac_word=$2
748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
749 echo "configure:750: checking for $ac_word" >&5
750 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 if test -n "$CC"; then
754 ac_cv_prog_CC="$CC" # Let the user override the test.
756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
758 for ac_dir in $ac_dummy; do
759 test -z "$ac_dir" && ac_dir=.
760 if test -f $ac_dir/$ac_word; then
769 if test -n "$CC"; then
770 echo "$ac_t""$CC" 1>&6
772 echo "$ac_t""no" 1>&6
777 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
780 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
781 echo "configure:782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
785 ac_cpp='$CPP $CPPFLAGS'
786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
788 cross_compiling=$ac_cv_prog_cc_cross
790 cat > conftest.$ac_ext << EOF
792 #line 793 "configure"
793 #include "confdefs.h"
797 if { (eval echo configure:798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
798 ac_cv_prog_cc_works=yes
799 # If we can't run a trivial program, we are probably using a cross compiler.
800 if (./conftest; exit) 2>/dev/null; then
801 ac_cv_prog_cc_cross=no
803 ac_cv_prog_cc_cross=yes
806 echo "configure: failed program was:" >&5
807 cat conftest.$ac_ext >&5
808 ac_cv_prog_cc_works=no
812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
813 ac_cpp='$CPP $CPPFLAGS'
814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
816 cross_compiling=$ac_cv_prog_cc_cross
818 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
819 if test $ac_cv_prog_cc_works = no; then
820 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
823 echo "configure:824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
824 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
825 cross_compiling=$ac_cv_prog_cc_cross
827 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
828 echo "configure:829: checking whether we are using GNU C" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 cat > conftest.c <<EOF
837 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
844 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
846 if test $ac_cv_prog_gcc = yes; then
852 ac_test_CFLAGS="${CFLAGS+set}"
853 ac_save_CFLAGS="$CFLAGS"
855 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
856 echo "configure:857: checking whether ${CC-cc} accepts -g" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
860 echo 'void f(){}' > conftest.c
861 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
870 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
871 if test "$ac_test_CFLAGS" = set; then
872 CFLAGS="$ac_save_CFLAGS"
873 elif test $ac_cv_prog_cc_g = yes; then
874 if test "$GCC" = yes; then
880 if test "$GCC" = yes; then
887 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
888 echo "configure:889: checking for POSIXized ISC" >&5
889 if test -d /etc/conf/kconfig.d &&
890 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
892 echo "$ac_t""yes" 1>&6
893 ISC=yes # If later tests want to check for ISC.
894 cat >> confdefs.h <<\EOF
895 #define _POSIX_SOURCE 1
898 if test "$GCC" = yes; then
904 echo "$ac_t""no" 1>&6
909 # We currently only use the version number for the name of any shared
910 # library. For user convenience, we always use the same version
911 # number that BFD is using.
912 BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
914 # Find a good install program. We prefer a C program (faster),
915 # so one script is as good as another. But avoid the broken or
916 # incompatible versions:
917 # SysV /etc/install, /usr/sbin/install
918 # SunOS /usr/etc/install
921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
924 # ./install, which can be erroneously created by make from ./install.sh.
925 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
926 echo "configure:927: checking for a BSD compatible install" >&5
927 if test -z "$INSTALL"; then
928 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
932 for ac_dir in $PATH; do
933 # Account for people who put trailing slashes in PATH elements.
935 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
937 # OSF1 and SCO ODT 3.0 have their own names for install.
938 # Don't use installbsd from OSF since it installs stuff as root
940 for ac_prog in ginstall scoinst install; do
941 if test -f $ac_dir/$ac_prog; then
942 if test $ac_prog = install &&
943 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
944 # AIX install. It has an incompatible calling convention.
947 ac_cv_path_install="$ac_dir/$ac_prog -c"
958 if test "${ac_cv_path_install+set}" = set; then
959 INSTALL="$ac_cv_path_install"
961 # As a last resort, use the slow shell script. We don't cache a
962 # path for INSTALL within a source directory, because that will
963 # break other packages using the cache if that directory is
964 # removed, or if the path is relative.
965 INSTALL="$ac_install_sh"
968 echo "$ac_t""$INSTALL" 1>&6
970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
971 # It thinks the first close brace ends the variable substitution.
972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
978 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
979 echo "configure:980: checking whether build environment is sane" >&5
982 echo timestamp > conftestfile
983 # Do `set' in a subshell so we don't clobber the current shell's
984 # arguments. Must try -L first in case configure is actually a
985 # symlink; some systems play weird games with the mod time of symlinks
986 # (eg FreeBSD returns the mod time of the symlink's containing
989 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
990 if test "$*" = "X"; then
992 set X `ls -t $srcdir/configure conftestfile`
994 if test "$*" != "X $srcdir/configure conftestfile" \
995 && test "$*" != "X conftestfile $srcdir/configure"; then
997 # If neither matched, then we have a broken ls. This can happen
998 # if, for instance, CONFIG_SHELL is bash and it inherits a
999 # broken ls alias from the environment. This has actually
1000 # happened. Such a system could not be considered "sane".
1001 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1002 alias in your environment" 1>&2; exit 1; }
1005 test "$2" = conftestfile
1011 { echo "configure: error: newly created file is older than distributed files!
1012 Check your system clock" 1>&2; exit 1; }
1015 echo "$ac_t""yes" 1>&6
1016 if test "$program_transform_name" = s,x,x,; then
1017 program_transform_name=
1019 # Double any \ or $. echo might interpret backslashes.
1020 cat <<\EOF_SED > conftestsed
1021 s,\\,\\\\,g; s,\$,$$,g
1023 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1026 test "$program_prefix" != NONE &&
1027 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1028 # Use a double $ so make ignores it.
1029 test "$program_suffix" != NONE &&
1030 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1032 # sed with no file args requires a program.
1033 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1035 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether ${MAKE-make} sets \${MAKE}" >&5
1037 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1038 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 cat > conftestmake <<\EOF
1043 @echo 'ac_maketemp="${MAKE}"'
1045 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1046 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1047 if test -n "$ac_maketemp"; then
1048 eval ac_cv_prog_make_${ac_make}_set=yes
1050 eval ac_cv_prog_make_${ac_make}_set=no
1054 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1055 echo "$ac_t""yes" 1>&6
1058 echo "$ac_t""no" 1>&6
1059 SET_MAKE="MAKE=${MAKE-make}"
1065 VERSION=${BFD_VERSION}
1067 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1068 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1070 cat >> confdefs.h <<EOF
1071 #define PACKAGE "$PACKAGE"
1074 cat >> confdefs.h <<EOF
1075 #define VERSION "$VERSION"
1080 missing_dir=`cd $ac_aux_dir && pwd`
1081 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1082 echo "configure:1083: checking for working aclocal" >&5
1083 # Run test in a subshell; some versions of sh will print an error if
1084 # an executable is not found, even if stderr is redirected.
1085 # Redirect stdin to placate older versions of autoconf. Sigh.
1086 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1088 echo "$ac_t""found" 1>&6
1090 ACLOCAL="$missing_dir/missing aclocal"
1091 echo "$ac_t""missing" 1>&6
1094 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1095 echo "configure:1096: checking for working autoconf" >&5
1096 # Run test in a subshell; some versions of sh will print an error if
1097 # an executable is not found, even if stderr is redirected.
1098 # Redirect stdin to placate older versions of autoconf. Sigh.
1099 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1101 echo "$ac_t""found" 1>&6
1103 AUTOCONF="$missing_dir/missing autoconf"
1104 echo "$ac_t""missing" 1>&6
1107 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1108 echo "configure:1109: checking for working automake" >&5
1109 # Run test in a subshell; some versions of sh will print an error if
1110 # an executable is not found, even if stderr is redirected.
1111 # Redirect stdin to placate older versions of autoconf. Sigh.
1112 if (automake --version) < /dev/null > /dev/null 2>&1; then
1114 echo "$ac_t""found" 1>&6
1116 AUTOMAKE="$missing_dir/missing automake"
1117 echo "$ac_t""missing" 1>&6
1120 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1121 echo "configure:1122: checking for working autoheader" >&5
1122 # Run test in a subshell; some versions of sh will print an error if
1123 # an executable is not found, even if stderr is redirected.
1124 # Redirect stdin to placate older versions of autoconf. Sigh.
1125 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1126 AUTOHEADER=autoheader
1127 echo "$ac_t""found" 1>&6
1129 AUTOHEADER="$missing_dir/missing autoheader"
1130 echo "$ac_t""missing" 1>&6
1133 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1134 echo "configure:1135: checking for working makeinfo" >&5
1135 # Run test in a subshell; some versions of sh will print an error if
1136 # an executable is not found, even if stderr is redirected.
1137 # Redirect stdin to placate older versions of autoconf. Sigh.
1138 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1140 echo "$ac_t""found" 1>&6
1142 MAKEINFO="$missing_dir/missing makeinfo"
1143 echo "$ac_t""missing" 1>&6
1148 if test $host != $build; then
1149 ac_tool_prefix=${host_alias}-
1154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1155 set dummy ${ac_tool_prefix}ar; ac_word=$2
1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157 echo "configure:1158: checking for $ac_word" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 if test -n "$AR"; then
1162 ac_cv_prog_AR="$AR" # Let the user override the test.
1164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1166 for ac_dir in $ac_dummy; do
1167 test -z "$ac_dir" && ac_dir=.
1168 if test -f $ac_dir/$ac_word; then
1169 ac_cv_prog_AR="${ac_tool_prefix}ar"
1174 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1178 if test -n "$AR"; then
1179 echo "$ac_t""$AR" 1>&6
1181 echo "$ac_t""no" 1>&6
1186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$RANLIB"; then
1194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1198 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1208 RANLIB="$ac_cv_prog_RANLIB"
1209 if test -n "$RANLIB"; then
1210 echo "$ac_t""$RANLIB" 1>&6
1212 echo "$ac_t""no" 1>&6
1216 if test -z "$ac_cv_prog_RANLIB"; then
1217 if test -n "$ac_tool_prefix"; then
1218 # Extract the first word of "ranlib", so it can be a program name with args.
1219 set dummy ranlib; ac_word=$2
1220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1221 echo "configure:1222: checking for $ac_word" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 if test -n "$RANLIB"; then
1226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1230 for ac_dir in $ac_dummy; do
1231 test -z "$ac_dir" && ac_dir=.
1232 if test -f $ac_dir/$ac_word; then
1233 ac_cv_prog_RANLIB="ranlib"
1238 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1241 RANLIB="$ac_cv_prog_RANLIB"
1242 if test -n "$RANLIB"; then
1243 echo "$ac_t""$RANLIB" 1>&6
1245 echo "$ac_t""no" 1>&6
1254 # Check whether --enable-shared or --disable-shared was given.
1255 if test "${enable_shared+set}" = set; then
1256 enableval="$enable_shared"
1257 p=${PACKAGE-default}
1258 case "$enableval" in
1259 yes) enable_shared=yes ;;
1260 no) enable_shared=no ;;
1263 # Look at the argument we got. We use all the common list separators.
1264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1265 for pkg in $enableval; do
1266 if test "X$pkg" = "X$p"; then
1278 # Check whether --enable-static or --disable-static was given.
1279 if test "${enable_static+set}" = set; then
1280 enableval="$enable_static"
1281 p=${PACKAGE-default}
1282 case "$enableval" in
1283 yes) enable_static=yes ;;
1284 no) enable_static=no ;;
1287 # Look at the argument we got. We use all the common list separators.
1288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1289 for pkg in $enableval; do
1290 if test "X$pkg" = "X$p"; then
1301 # Check whether --enable-fast-install or --disable-fast-install was given.
1302 if test "${enable_fast_install+set}" = set; then
1303 enableval="$enable_fast_install"
1304 p=${PACKAGE-default}
1305 case "$enableval" in
1306 yes) enable_fast_install=yes ;;
1307 no) enable_fast_install=no ;;
1309 enable_fast_install=no
1310 # Look at the argument we got. We use all the common list separators.
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1312 for pkg in $enableval; do
1313 if test "X$pkg" = "X$p"; then
1314 enable_fast_install=yes
1321 enable_fast_install=yes
1324 # Extract the first word of "ranlib", so it can be a program name with args.
1325 set dummy ranlib; ac_word=$2
1326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_word" >&5
1328 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1331 if test -n "$RANLIB"; then
1332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1336 for ac_dir in $ac_dummy; do
1337 test -z "$ac_dir" && ac_dir=.
1338 if test -f $ac_dir/$ac_word; then
1339 ac_cv_prog_RANLIB="ranlib"
1344 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1347 RANLIB="$ac_cv_prog_RANLIB"
1348 if test -n "$RANLIB"; then
1349 echo "$ac_t""$RANLIB" 1>&6
1351 echo "$ac_t""no" 1>&6
1354 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1355 if test "${with_gnu_ld+set}" = set; then
1356 withval="$with_gnu_ld"
1357 test "$withval" = no || with_gnu_ld=yes
1363 if test "$ac_cv_prog_gcc" = yes; then
1364 # Check if gcc -print-prog-name=ld gives a path.
1365 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1366 echo "configure:1367: checking for ld used by GCC" >&5
1367 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1369 # Accept absolute paths.
1370 /* | [A-Za-z]:[\\/]*)
1371 re_direlt='/[^/][^/]*/\.\./'
1372 # Canonicalize the path of ld
1373 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1374 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1375 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1377 test -z "$LD" && LD="$ac_prog"
1380 # If it fails, then pretend we aren't using GCC.
1384 # If it is relative, then search for the first ld in PATH.
1388 elif test "$with_gnu_ld" = yes; then
1389 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1390 echo "configure:1391: checking for GNU ld" >&5
1392 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1393 echo "configure:1394: checking for non-GNU ld" >&5
1395 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test -z "$LD"; then
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1400 for ac_dir in $PATH; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f "$ac_dir/$ac_prog"; then
1403 ac_cv_path_LD="$ac_dir/$ac_prog"
1404 # Check to see if the program is GNU ld. I'd rather use --version,
1405 # but apparently some GNU ld's only accept -v.
1406 # Break only if it was the GNU/non-GNU ld that we prefer.
1407 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1408 test "$with_gnu_ld" != no && break
1410 test "$with_gnu_ld" != yes && break
1416 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1421 if test -n "$LD"; then
1422 echo "$ac_t""$LD" 1>&6
1424 echo "$ac_t""no" 1>&6
1426 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1428 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1429 echo "configure:1430: checking if the linker ($LD) is GNU ld" >&5
1430 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1434 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1435 ac_cv_prog_gnu_ld=yes
1437 ac_cv_prog_gnu_ld=no
1441 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1444 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1445 echo "configure:1446: checking for BSD-compatible nm" >&5
1446 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 if test -n "$NM"; then
1450 # Let the user override the test.
1453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1454 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1455 test -z "$ac_dir" && ac_dir=.
1456 if test -f $ac_dir/nm; then
1457 # Check to see if the nm accepts a BSD-compat flag.
1458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1459 # nm: unknown option "B" ignored
1460 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1461 ac_cv_path_NM="$ac_dir/nm -B"
1463 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1464 ac_cv_path_NM="$ac_dir/nm -p"
1467 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1468 continue # so that we can try to find one that supports BSD flags
1473 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1478 echo "$ac_t""$NM" 1>&6
1481 # Check for command to grab the raw symbol name followed by C symbol from nm.
1482 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1483 echo "configure:1484: checking command to parse $NM output" >&5
1484 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 # These are sane defaults that work on at least a few old systems.
1488 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1490 # Character class describing NM global symbol codes.
1491 ac_symcode='[BCDEGRST]'
1493 # Regexp to match symbols that can be accessed directly from C.
1494 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1496 # Transform the above into a raw symbol and a C symbol.
1497 ac_symxfrm='\1 \2\3 \3'
1499 # Transform an extracted symbol line into a proper C declaration
1500 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1502 # Define system-specific variables.
1508 ac_symcode='[ABCDGISTW]'
1511 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1514 ac_symcode='[BCDEGRST]'
1521 # If we're using GNU nm, then use its standard symbol codes.
1522 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1523 ac_symcode='[ABCDGISTW]'
1526 # Try without a prefix undercore, then with it.
1527 for ac_symprfx in "" "_"; do
1529 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1531 # Check to see that the pipe works correctly.
1533 rm -f conftest.$ac_ext
1534 cat > conftest.$ac_ext <<EOF
1539 void nm_test_func(){}
1543 int main(){nm_test_var='a';nm_test_func;return 0;}
1546 if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1547 # Now try to grab the symbols.
1548 ac_nlist=conftest.nm
1550 if { (eval echo configure:1551: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1552 # Try sorting and uniquifying the output.
1553 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1554 mv -f "$ac_nlist"T "$ac_nlist"
1559 # Make sure that we snagged all the symbols we need.
1560 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1561 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1562 cat <<EOF > conftest.c
1568 # Now generate the symbol file.
1569 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1571 cat <<EOF >> conftest.c
1572 #if defined (__STDC__) && __STDC__
1573 # define lt_ptr_t void *
1575 # define lt_ptr_t char *
1579 /* The mapping between symbol names and symbols. */
1584 lt_preloaded_symbols[] =
1587 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1588 cat <<\EOF >> conftest.c
1596 # Now try linking the two files.
1597 mv conftest.$ac_objext conftestm.$ac_objext
1598 ac_save_LIBS="$LIBS"
1599 ac_save_CFLAGS="$CFLAGS"
1600 LIBS="conftestm.$ac_objext"
1601 CFLAGS="$CFLAGS$no_builtin_flag"
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1605 echo "configure: failed program was:" >&5
1608 LIBS="$ac_save_LIBS"
1609 CFLAGS="$ac_save_CFLAGS"
1611 echo "cannot find nm_test_func in $ac_nlist" >&5
1614 echo "cannot find nm_test_var in $ac_nlist" >&5
1617 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1620 echo "$progname: failed program was:" >&5
1625 # Do not use the global_symbol_pipe unless it works.
1626 if test "$ac_pipe_works" = yes; then
1627 if test x"$ac_symprfx" = x"_"; then
1628 ac_cv_sys_symbol_underscore=yes
1630 ac_cv_sys_symbol_underscore=no
1634 ac_cv_sys_global_symbol_pipe=
1642 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1645 echo "$ac_t""$ac_result" 1>&6
1647 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1648 echo "configure:1649: checking for _ prefix in compiled symbols" >&5
1649 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 ac_cv_sys_symbol_underscore=no
1653 cat > conftest.$ac_ext <<EOF
1654 void nm_test_func(){}
1655 int main(){nm_test_func;return 0;}
1657 if { (eval echo configure:1658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1658 # Now try to grab the symbols.
1659 ac_nlist=conftest.nm
1660 if { (eval echo configure:1661: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1661 # See whether the symbols have a leading underscore.
1662 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
1663 ac_cv_sys_symbol_underscore=yes
1665 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
1668 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1672 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1675 echo "configure: failed program was:" >&5
1682 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1683 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
1685 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1686 echo "configure:1687: checking whether ln -s works" >&5
1687 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1691 if ln -s X conftestdata 2>/dev/null
1694 ac_cv_prog_LN_S="ln -s"
1699 LN_S="$ac_cv_prog_LN_S"
1700 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1701 echo "$ac_t""yes" 1>&6
1703 echo "$ac_t""no" 1>&6
1707 # Check for any special flags to pass to ltconfig.
1708 libtool_flags="--cache-file=$cache_file"
1709 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1710 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1711 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1712 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
1713 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1714 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1715 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1717 # Some flags need to be propagated to the compiler or linker for good
1721 # Find out which ABI we are using.
1722 echo '#line 1723 "configure"' > conftest.$ac_ext
1723 if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1724 case "`/usr/bin/file conftest.o`" in
1740 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1741 SAVE_CFLAGS="$CFLAGS"
1742 CFLAGS="$CFLAGS -belf"
1743 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1744 echo "configure:1745: checking whether the C compiler needs -belf" >&5
1745 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1758 lt_cv_cc_needs_belf=yes
1760 echo "configure: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1763 lt_cv_cc_needs_belf=no
1768 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1769 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1770 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1771 CFLAGS="$SAVE_CFLAGS"
1776 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1777 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1779 echo "configure:1780: checking for $ac_word" >&5
1780 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 if test -n "$DLLTOOL"; then
1784 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1788 for ac_dir in $ac_dummy; do
1789 test -z "$ac_dir" && ac_dir=.
1790 if test -f $ac_dir/$ac_word; then
1791 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1798 DLLTOOL="$ac_cv_prog_DLLTOOL"
1799 if test -n "$DLLTOOL"; then
1800 echo "$ac_t""$DLLTOOL" 1>&6
1802 echo "$ac_t""no" 1>&6
1806 if test -z "$ac_cv_prog_DLLTOOL"; then
1807 if test -n "$ac_tool_prefix"; then
1808 # Extract the first word of "dlltool", so it can be a program name with args.
1809 set dummy dlltool; ac_word=$2
1810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_word" >&5
1812 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 if test -n "$DLLTOOL"; then
1816 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1820 for ac_dir in $ac_dummy; do
1821 test -z "$ac_dir" && ac_dir=.
1822 if test -f $ac_dir/$ac_word; then
1823 ac_cv_prog_DLLTOOL="dlltool"
1828 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1831 DLLTOOL="$ac_cv_prog_DLLTOOL"
1832 if test -n "$DLLTOOL"; then
1833 echo "$ac_t""$DLLTOOL" 1>&6
1835 echo "$ac_t""no" 1>&6
1843 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}as; ac_word=$2
1845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_word" >&5
1847 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 if test -n "$AS"; then
1851 ac_cv_prog_AS="$AS" # Let the user override the test.
1853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1855 for ac_dir in $ac_dummy; do
1856 test -z "$ac_dir" && ac_dir=.
1857 if test -f $ac_dir/$ac_word; then
1858 ac_cv_prog_AS="${ac_tool_prefix}as"
1866 if test -n "$AS"; then
1867 echo "$ac_t""$AS" 1>&6
1869 echo "$ac_t""no" 1>&6
1873 if test -z "$ac_cv_prog_AS"; then
1874 if test -n "$ac_tool_prefix"; then
1875 # Extract the first word of "as", so it can be a program name with args.
1876 set dummy as; ac_word=$2
1877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1878 echo "configure:1879: checking for $ac_word" >&5
1879 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 if test -n "$AS"; then
1883 ac_cv_prog_AS="$AS" # Let the user override the test.
1885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1887 for ac_dir in $ac_dummy; do
1888 test -z "$ac_dir" && ac_dir=.
1889 if test -f $ac_dir/$ac_word; then
1895 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1899 if test -n "$AS"; then
1900 echo "$ac_t""$AS" 1>&6
1902 echo "$ac_t""no" 1>&6
1915 # enable the --disable-libtool-lock switch
1917 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1918 if test "${enable_libtool_lock+set}" = set; then
1919 enableval="$enable_libtool_lock"
1920 need_locks=$enableval
1926 if test x"$need_locks" = xno; then
1927 libtool_flags="$libtool_flags --disable-lock"
1931 # Save cache, so that ltconfig can load it
1932 cat > confcache <<\EOF
1933 # This file is a shell script that caches the results of configure
1934 # tests run on this system so they can be shared between configure
1935 # scripts and configure runs. It is not useful on other systems.
1936 # If it contains results you don't want to keep, you may remove or edit it.
1938 # By default, configure uses ./config.cache as the cache file,
1939 # creating it if it does not exist already. You can give configure
1940 # the --cache-file=FILE option to use a different cache file; that is
1941 # what configure does when it calls configure scripts in
1942 # subdirectories, so they share the cache.
1943 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1944 # config.status only pays attention to the cache file if you give it the
1945 # --recheck option to rerun configure.
1948 # The following way of writing the cache mishandles newlines in values,
1949 # but we know of no workaround that is simple, portable, and efficient.
1950 # So, don't put newlines in cache variables' values.
1951 # Ultrix sh set writes to stderr and can't be redirected directly,
1952 # and sets the high bit in the cache file unless we assign to the vars.
1954 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1956 # `set' does not quote correctly, so add quotes (double-quote substitution
1957 # turns \\\\ into \\, and sed turns \\ into \).
1959 -e "s/'/'\\\\''/g" \
1960 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1963 # `set' quotes correctly as required by POSIX, so do not add quotes.
1964 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1967 if cmp -s $cache_file confcache; then
1970 if test -w $cache_file; then
1971 echo "updating cache $cache_file"
1972 cat confcache > $cache_file
1974 echo "not updating unwritable cache $cache_file"
1980 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1981 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1982 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1983 DLLTOOL="$DLLTOOL" AS="$AS" \
1984 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1985 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1986 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1988 # Reload cache, that may have been modified by ltconfig
1989 if test -r "$cache_file"; then
1990 echo "loading cache $cache_file"
1993 echo "creating cache $cache_file"
1998 # This can be used to rebuild libtool when needed
1999 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2001 # Always use our own libtool.
2002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2004 # Redirect the config.log output again, so that the ltconfig log is not
2005 # clobbered by the next message.
2006 exec 5>>./config.log
2009 # Check whether --enable-targets or --disable-targets was given.
2010 if test "${enable_targets+set}" = set; then
2011 enableval="$enable_targets"
2012 case "${enableval}" in
2013 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2015 no) enable_targets= ;;
2016 *) enable_targets=$enableval ;;
2019 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2020 if test "${enable_commonbfdlib+set}" = set; then
2021 enableval="$enable_commonbfdlib"
2022 case "${enableval}" in
2023 yes) commonbfdlib=true ;;
2024 no) commonbfdlib=false ;;
2025 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2033 if test -z "$target" ; then
2034 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2036 if test "$program_transform_name" = s,x,x,; then
2037 program_transform_name=
2039 # Double any \ or $. echo might interpret backslashes.
2040 cat <<\EOF_SED > conftestsed
2041 s,\\,\\\\,g; s,\$,$$,g
2043 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2046 test "$program_prefix" != NONE &&
2047 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2048 # Use a double $ so make ignores it.
2049 test "$program_suffix" != NONE &&
2050 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2052 # sed with no file args requires a program.
2053 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2056 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2057 echo "configure:2058: checking whether to enable maintainer-specific portions of Makefiles" >&5
2058 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2059 if test "${enable_maintainer_mode+set}" = set; then
2060 enableval="$enable_maintainer_mode"
2061 USE_MAINTAINER_MODE=$enableval
2063 USE_MAINTAINER_MODE=no
2066 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2069 if test $USE_MAINTAINER_MODE = yes; then
2070 MAINTAINER_MODE_TRUE=
2071 MAINTAINER_MODE_FALSE='#'
2073 MAINTAINER_MODE_TRUE='#'
2074 MAINTAINER_MODE_FALSE=
2076 MAINT=$MAINTAINER_MODE_TRUE
2079 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2080 echo "configure:2081: checking for Cygwin environment" >&5
2081 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2084 cat > conftest.$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2091 #define __CYGWIN__ __CYGWIN32__
2096 if { (eval echo configure:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2109 echo "$ac_t""$ac_cv_cygwin" 1>&6
2111 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2112 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2113 echo "configure:2114: checking for mingw32 environment" >&5
2114 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2125 if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2138 echo "$ac_t""$ac_cv_mingw32" 1>&6
2140 test "$ac_cv_mingw32" = yes && MINGW32=yes
2143 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2144 echo "configure:2145: checking for executable suffix" >&5
2145 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2152 echo 'int main () { return 0; }' > conftest.$ac_ext
2154 if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2155 for file in conftest.*; do
2157 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2158 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2162 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2165 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2170 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2171 echo "$ac_t""${ac_cv_exeext}" 1>&6
2175 # host-specific stuff:
2177 # Extract the first word of "gcc", so it can be a program name with args.
2178 set dummy gcc; ac_word=$2
2179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_word" >&5
2181 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 if test -n "$CC"; then
2185 ac_cv_prog_CC="$CC" # Let the user override the test.
2187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2189 for ac_dir in $ac_dummy; do
2190 test -z "$ac_dir" && ac_dir=.
2191 if test -f $ac_dir/$ac_word; then
2200 if test -n "$CC"; then
2201 echo "$ac_t""$CC" 1>&6
2203 echo "$ac_t""no" 1>&6
2206 if test -z "$CC"; then
2207 # Extract the first word of "cc", so it can be a program name with args.
2208 set dummy cc; ac_word=$2
2209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2210 echo "configure:2211: checking for $ac_word" >&5
2211 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2220 for ac_dir in $ac_dummy; do
2221 test -z "$ac_dir" && ac_dir=.
2222 if test -f $ac_dir/$ac_word; then
2223 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2224 ac_prog_rejected=yes
2232 if test $ac_prog_rejected = yes; then
2233 # We found a bogon in the path, so make sure we never use it.
2234 set dummy $ac_cv_prog_CC
2236 if test $# -gt 0; then
2237 # We chose a different compiler from the bogus one.
2238 # However, it has the same basename, so the bogon will be chosen
2239 # first if we set CC to just the basename; use the full file name.
2241 set dummy "$ac_dir/$ac_word" "$@"
2249 if test -n "$CC"; then
2250 echo "$ac_t""$CC" 1>&6
2252 echo "$ac_t""no" 1>&6
2255 if test -z "$CC"; then
2256 case "`uname -s`" in
2258 # Extract the first word of "cl", so it can be a program name with args.
2259 set dummy cl; ac_word=$2
2260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_word" >&5
2262 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC="$CC" # Let the user override the test.
2268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2270 for ac_dir in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir=.
2272 if test -f $ac_dir/$ac_word; then
2281 if test -n "$CC"; then
2282 echo "$ac_t""$CC" 1>&6
2284 echo "$ac_t""no" 1>&6
2289 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2292 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2293 echo "configure:2294: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2300 cross_compiling=$ac_cv_prog_cc_cross
2302 cat > conftest.$ac_ext << EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2309 if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2310 ac_cv_prog_cc_works=yes
2311 # If we can't run a trivial program, we are probably using a cross compiler.
2312 if (./conftest; exit) 2>/dev/null; then
2313 ac_cv_prog_cc_cross=no
2315 ac_cv_prog_cc_cross=yes
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2320 ac_cv_prog_cc_works=no
2324 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2325 ac_cpp='$CPP $CPPFLAGS'
2326 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2327 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2328 cross_compiling=$ac_cv_prog_cc_cross
2330 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2331 if test $ac_cv_prog_cc_works = no; then
2332 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2334 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2335 echo "configure:2336: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2336 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2337 cross_compiling=$ac_cv_prog_cc_cross
2339 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2340 echo "configure:2341: checking whether we are using GNU C" >&5
2341 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.c <<EOF
2349 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2356 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2358 if test $ac_cv_prog_gcc = yes; then
2364 ac_test_CFLAGS="${CFLAGS+set}"
2365 ac_save_CFLAGS="$CFLAGS"
2367 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2368 echo "configure:2369: checking whether ${CC-cc} accepts -g" >&5
2369 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 echo 'void f(){}' > conftest.c
2373 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2382 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2383 if test "$ac_test_CFLAGS" = set; then
2384 CFLAGS="$ac_save_CFLAGS"
2385 elif test $ac_cv_prog_cc_g = yes; then
2386 if test "$GCC" = yes; then
2392 if test "$GCC" = yes; then
2401 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2402 echo "configure:2403: checking how to run the C preprocessor" >&5
2403 # On Suns, sometimes $CPP names a directory.
2404 if test -n "$CPP" && test -d "$CPP"; then
2407 if test -z "$CPP"; then
2408 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 # This must be in double quotes, not single quotes, because CPP may get
2412 # substituted into the Makefile and "${CC-cc}" will confuse make.
2414 # On the NeXT, cc -E runs the code through the compiler's parser,
2415 # not just through cpp.
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2423 { (eval echo configure:2424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2425 if test -z "$ac_err"; then
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2432 CPP="${CC-cc} -E -traditional-cpp"
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2440 { (eval echo configure:2441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2442 if test -z "$ac_err"; then
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 CPP="${CC-cc} -nologo -E"
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2457 { (eval echo configure:2458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2459 if test -z "$ac_err"; then
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2473 ac_cv_prog_CPP="$CPP"
2475 CPP="$ac_cv_prog_CPP"
2477 ac_cv_prog_CPP="$CPP"
2479 echo "$ac_t""$CPP" 1>&6
2481 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2482 echo "configure:2483: checking for ANSI C header files" >&5
2483 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2495 { (eval echo configure:2496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2497 if test -z "$ac_err"; then
2499 ac_cv_header_stdc=yes
2502 echo "configure: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2505 ac_cv_header_stdc=no
2509 if test $ac_cv_header_stdc = yes; then
2510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2517 egrep "memchr" >/dev/null 2>&1; then
2521 ac_cv_header_stdc=no
2527 if test $ac_cv_header_stdc = yes; then
2528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2535 egrep "free" >/dev/null 2>&1; then
2539 ac_cv_header_stdc=no
2545 if test $ac_cv_header_stdc = yes; then
2546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2547 if test "$cross_compiling" = yes; then
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2554 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2555 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2557 int main () { int i; for (i = 0; i < 256; i++)
2558 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2562 if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 ac_cv_header_stdc=no
2577 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2578 if test $ac_cv_header_stdc = yes; then
2579 cat >> confdefs.h <<\EOF
2580 #define STDC_HEADERS 1
2585 echo $ac_n "checking for working const""... $ac_c" 1>&6
2586 echo "configure:2587: checking for working const" >&5
2587 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2596 /* Ultrix mips cc rejects this. */
2597 typedef int charset[2]; const charset x;
2598 /* SunOS 4.1.1 cc rejects this. */
2599 char const *const *ccp;
2601 /* NEC SVR4.0.2 mips cc rejects this. */
2602 struct point {int x, y;};
2603 static struct point const zero = {0,0};
2604 /* AIX XL C 1.02.0.0 rejects this.
2605 It does not let you subtract one const X* pointer from another in an arm
2606 of an if-expression whose if-part is not a constant expression */
2607 const char *g = "string";
2608 ccp = &g + (g ? g-g : 0);
2609 /* HPUX 7.0 cc rejects these. */
2612 ccp = (char const *const *) p;
2613 { /* SCO 3.2v4 cc rejects this. */
2615 char const *s = 0 ? (char *) 0 : (char const *) 0;
2619 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2621 const int *foo = &x[0];
2624 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2625 typedef const int *iptr;
2629 { /* AIX XL C 1.02.0.0 rejects this saying
2630 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2631 struct s { int j; const int *ap[3]; };
2632 struct s *b; b->j = 5;
2634 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2640 if { (eval echo configure:2641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2652 echo "$ac_t""$ac_cv_c_const" 1>&6
2653 if test $ac_cv_c_const = no; then
2654 cat >> confdefs.h <<\EOF
2660 echo $ac_n "checking for inline""... $ac_c" 1>&6
2661 echo "configure:2662: checking for inline" >&5
2662 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2666 for ac_kw in inline __inline__ __inline; do
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2675 if { (eval echo configure:2676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2677 ac_cv_c_inline=$ac_kw; break
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2687 echo "$ac_t""$ac_cv_c_inline" 1>&6
2688 case "$ac_cv_c_inline" in
2690 no) cat >> confdefs.h <<\EOF
2694 *) cat >> confdefs.h <<EOF
2695 #define inline $ac_cv_c_inline
2700 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2701 echo "configure:2702: checking for off_t" >&5
2702 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 cat > conftest.$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2708 #include <sys/types.h>
2714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2715 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2717 ac_cv_type_off_t=yes
2725 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2726 if test $ac_cv_type_off_t = no; then
2727 cat >> confdefs.h <<\EOF
2733 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2734 echo "configure:2735: checking for size_t" >&5
2735 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <sys/types.h>
2747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2748 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2750 ac_cv_type_size_t=yes
2753 ac_cv_type_size_t=no
2758 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2759 if test $ac_cv_type_size_t = no; then
2760 cat >> confdefs.h <<\EOF
2761 #define size_t unsigned
2766 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2767 # for constant arguments. Useless!
2768 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2769 echo "configure:2770: checking for working alloca.h" >&5
2770 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2778 char *p = alloca(2 * sizeof(int));
2781 if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2783 ac_cv_header_alloca_h=yes
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2788 ac_cv_header_alloca_h=no
2793 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2794 if test $ac_cv_header_alloca_h = yes; then
2795 cat >> confdefs.h <<\EOF
2796 #define HAVE_ALLOCA_H 1
2801 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2802 echo "configure:2803: checking for alloca" >&5
2803 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 cat > conftest.$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2811 # define alloca __builtin_alloca
2814 # include <malloc.h>
2815 # define alloca _alloca
2818 # include <alloca.h>
2823 # ifndef alloca /* predefined by HP cc +Olibcalls */
2832 char *p = (char *) alloca(1);
2835 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2837 ac_cv_func_alloca_works=yes
2839 echo "configure: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2842 ac_cv_func_alloca_works=no
2847 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2848 if test $ac_cv_func_alloca_works = yes; then
2849 cat >> confdefs.h <<\EOF
2850 #define HAVE_ALLOCA 1
2855 if test $ac_cv_func_alloca_works = no; then
2856 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2857 # that cause trouble. Some versions do not even contain alloca or
2858 # contain a buggy version. If you still want to use their alloca,
2859 # use ar to extract alloca.o from them instead of compiling alloca.c.
2860 ALLOCA=alloca.${ac_objext}
2861 cat >> confdefs.h <<\EOF
2866 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2867 echo "configure:2868: checking whether alloca needs Cray hooks" >&5
2868 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 #if defined(CRAY) && ! defined(CRAY2)
2881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2882 egrep "webecray" >/dev/null 2>&1; then
2893 echo "$ac_t""$ac_cv_os_cray" 1>&6
2894 if test $ac_cv_os_cray = yes; then
2895 for ac_func in _getb67 GETB67 getb67; do
2896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2897 echo "configure:2898: checking for $ac_func" >&5
2898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2901 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2904 /* System header to define __stub macros and hopefully few prototypes,
2905 which can conflict with char $ac_func(); below. */
2907 /* Override any gcc2 internal prototype to avoid an error. */
2908 /* We use char because int might match the return type of a gcc2
2909 builtin and then its argument prototype would still apply. */
2914 /* The GNU C library defines this for functions which it implements
2915 to always fail with ENOSYS. Some functions are actually named
2916 something starting with __ and the normal name is an alias. */
2917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2927 eval "ac_cv_func_$ac_func=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 eval "ac_cv_func_$ac_func=no"
2937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2938 echo "$ac_t""yes" 1>&6
2939 cat >> confdefs.h <<EOF
2940 #define CRAY_STACKSEG_END $ac_func
2945 echo "$ac_t""no" 1>&6
2951 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2952 echo "configure:2953: checking stack direction for C alloca" >&5
2953 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 if test "$cross_compiling" = yes; then
2957 ac_cv_c_stack_direction=0
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2962 find_stack_direction ()
2964 static char *addr = 0;
2969 return find_stack_direction ();
2972 return (&dummy > addr) ? 1 : -1;
2976 exit (find_stack_direction() < 0);
2979 if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2981 ac_cv_c_stack_direction=1
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2986 ac_cv_c_stack_direction=-1
2993 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2994 cat >> confdefs.h <<EOF
2995 #define STACK_DIRECTION $ac_cv_c_stack_direction
3000 for ac_hdr in unistd.h
3002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3004 echo "configure:3005: checking for $ac_hdr" >&5
3005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3014 { (eval echo configure:3015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3016 if test -z "$ac_err"; then
3018 eval "ac_cv_header_$ac_safe=yes"
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3024 eval "ac_cv_header_$ac_safe=no"
3028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3029 echo "$ac_t""yes" 1>&6
3030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3031 cat >> confdefs.h <<EOF
3032 #define $ac_tr_hdr 1
3036 echo "$ac_t""no" 1>&6
3040 for ac_func in getpagesize
3042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3043 echo "configure:3044: checking for $ac_func" >&5
3044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* System header to define __stub macros and hopefully few prototypes,
3051 which can conflict with char $ac_func(); below. */
3053 /* Override any gcc2 internal prototype to avoid an error. */
3054 /* We use char because int might match the return type of a gcc2
3055 builtin and then its argument prototype would still apply. */
3060 /* The GNU C library defines this for functions which it implements
3061 to always fail with ENOSYS. Some functions are actually named
3062 something starting with __ and the normal name is an alias. */
3063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3073 eval "ac_cv_func_$ac_func=yes"
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3078 eval "ac_cv_func_$ac_func=no"
3083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3084 echo "$ac_t""yes" 1>&6
3085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3086 cat >> confdefs.h <<EOF
3087 #define $ac_tr_func 1
3091 echo "$ac_t""no" 1>&6
3095 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3096 echo "configure:3097: checking for working mmap" >&5
3097 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 if test "$cross_compiling" = yes; then
3101 ac_cv_func_mmap_fixed_mapped=no
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3107 /* Thanks to Mike Haertel and Jim Avera for this test.
3108 Here is a matrix of mmap possibilities:
3109 mmap private not fixed
3110 mmap private fixed at somewhere currently unmapped
3111 mmap private fixed at somewhere already mapped
3112 mmap shared not fixed
3113 mmap shared fixed at somewhere currently unmapped
3114 mmap shared fixed at somewhere already mapped
3115 For private mappings, we should verify that changes cannot be read()
3116 back from the file, nor mmap's back from the file at a different
3117 address. (There have been systems where private was not correctly
3118 implemented like the infamous i386 svr4.0, and systems where the
3119 VM page cache was not coherent with the filesystem buffer cache
3120 like early versions of FreeBSD and possibly contemporary NetBSD.)
3121 For shared mappings, we should conversely verify that changes get
3122 propogated back to all the places they're supposed to be.
3124 Grep wants private fixed already mapped.
3125 The main things grep needs to know about mmap are:
3126 * does it exist and is it safe to write into the mmap'd area
3127 * how to use it (BSD variants) */
3128 #include <sys/types.h>
3130 #include <sys/mman.h>
3132 /* This mess was copied from the GNU getpagesize.h. */
3133 #ifndef HAVE_GETPAGESIZE
3134 # ifdef HAVE_UNISTD_H
3135 # include <unistd.h>
3138 /* Assume that all systems that can run configure have sys/param.h. */
3139 # ifndef HAVE_SYS_PARAM_H
3140 # define HAVE_SYS_PARAM_H 1
3143 # ifdef _SC_PAGESIZE
3144 # define getpagesize() sysconf(_SC_PAGESIZE)
3145 # else /* no _SC_PAGESIZE */
3146 # ifdef HAVE_SYS_PARAM_H
3147 # include <sys/param.h>
3148 # ifdef EXEC_PAGESIZE
3149 # define getpagesize() EXEC_PAGESIZE
3150 # else /* no EXEC_PAGESIZE */
3152 # define getpagesize() NBPG * CLSIZE
3155 # endif /* no CLSIZE */
3156 # else /* no NBPG */
3158 # define getpagesize() NBPC
3159 # else /* no NBPC */
3161 # define getpagesize() PAGESIZE
3162 # endif /* PAGESIZE */
3163 # endif /* no NBPC */
3164 # endif /* no NBPG */
3165 # endif /* no EXEC_PAGESIZE */
3166 # else /* no HAVE_SYS_PARAM_H */
3167 # define getpagesize() 8192 /* punt totally */
3168 # endif /* no HAVE_SYS_PARAM_H */
3169 # endif /* no _SC_PAGESIZE */
3171 #endif /* no HAVE_GETPAGESIZE */
3174 extern "C" { void *malloc(unsigned); }
3182 char *data, *data2, *data3;
3186 pagesize = getpagesize();
3189 * First, make a file with some known garbage in it.
3191 data = malloc(pagesize);
3194 for (i = 0; i < pagesize; ++i)
3195 *(data + i) = rand();
3197 fd = creat("conftestmmap", 0600);
3200 if (write(fd, data, pagesize) != pagesize)
3205 * Next, try to mmap the file at a fixed address which
3206 * already has something else allocated at it. If we can,
3207 * also make sure that we see the same garbage.
3209 fd = open("conftestmmap", O_RDWR);
3212 data2 = malloc(2 * pagesize);
3215 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3216 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3217 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3219 for (i = 0; i < pagesize; ++i)
3220 if (*(data + i) != *(data2 + i))
3224 * Finally, make sure that changes to the mapped area
3225 * do not percolate back to the file as seen by read().
3226 * (This is a bug on some variants of i386 svr4.0.)
3228 for (i = 0; i < pagesize; ++i)
3229 *(data2 + i) = *(data2 + i) + 1;
3230 data3 = malloc(pagesize);
3233 if (read(fd, data3, pagesize) != pagesize)
3235 for (i = 0; i < pagesize; ++i)
3236 if (*(data + i) != *(data3 + i))
3239 unlink("conftestmmap");
3244 if { (eval echo configure:3245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3246 ac_cv_func_mmap_fixed_mapped=yes
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3251 ac_cv_func_mmap_fixed_mapped=no
3258 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3259 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3260 cat >> confdefs.h <<\EOF
3267 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3268 unistd.h values.h sys/param.h
3270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3272 echo "configure:3273: checking for $ac_hdr" >&5
3273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3282 { (eval echo configure:3283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3284 if test -z "$ac_err"; then
3286 eval "ac_cv_header_$ac_safe=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_header_$ac_safe=no"
3296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3297 echo "$ac_t""yes" 1>&6
3298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3299 cat >> confdefs.h <<EOF
3300 #define $ac_tr_hdr 1
3304 echo "$ac_t""no" 1>&6
3308 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3309 __argz_count __argz_stringify __argz_next
3311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_func" >&5
3313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 /* System header to define __stub macros and hopefully few prototypes,
3320 which can conflict with char $ac_func(); below. */
3322 /* Override any gcc2 internal prototype to avoid an error. */
3323 /* We use char because int might match the return type of a gcc2
3324 builtin and then its argument prototype would still apply. */
3329 /* The GNU C library defines this for functions which it implements
3330 to always fail with ENOSYS. Some functions are actually named
3331 something starting with __ and the normal name is an alias. */
3332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3340 if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3342 eval "ac_cv_func_$ac_func=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_func_$ac_func=no"
3352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3353 echo "$ac_t""yes" 1>&6
3354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3355 cat >> confdefs.h <<EOF
3356 #define $ac_tr_func 1
3360 echo "$ac_t""no" 1>&6
3365 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3366 for ac_func in stpcpy
3368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3369 echo "configure:3370: checking for $ac_func" >&5
3370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 /* System header to define __stub macros and hopefully few prototypes,
3377 which can conflict with char $ac_func(); below. */
3379 /* Override any gcc2 internal prototype to avoid an error. */
3380 /* We use char because int might match the return type of a gcc2
3381 builtin and then its argument prototype would still apply. */
3386 /* The GNU C library defines this for functions which it implements
3387 to always fail with ENOSYS. Some functions are actually named
3388 something starting with __ and the normal name is an alias. */
3389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3399 eval "ac_cv_func_$ac_func=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_func_$ac_func=no"
3409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3412 cat >> confdefs.h <<EOF
3413 #define $ac_tr_func 1
3417 echo "$ac_t""no" 1>&6
3422 if test "${ac_cv_func_stpcpy}" = "yes"; then
3423 cat >> confdefs.h <<\EOF
3424 #define HAVE_STPCPY 1
3429 if test $ac_cv_header_locale_h = yes; then
3430 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3431 echo "configure:3432: checking for LC_MESSAGES" >&5
3432 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3443 if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3445 am_cv_val_LC_MESSAGES=yes
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3450 am_cv_val_LC_MESSAGES=no
3455 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3456 if test $am_cv_val_LC_MESSAGES = yes; then
3457 cat >> confdefs.h <<\EOF
3458 #define HAVE_LC_MESSAGES 1
3463 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3464 echo "configure:3465: checking whether NLS is requested" >&5
3465 # Check whether --enable-nls or --disable-nls was given.
3466 if test "${enable_nls+set}" = set; then
3467 enableval="$enable_nls"
3473 echo "$ac_t""$USE_NLS" 1>&6
3476 USE_INCLUDED_LIBINTL=no
3478 if test "$USE_NLS" = "yes"; then
3479 cat >> confdefs.h <<\EOF
3480 #define ENABLE_NLS 1
3483 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3484 echo "configure:3485: checking whether included gettext is requested" >&5
3485 # Check whether --with-included-gettext or --without-included-gettext was given.
3486 if test "${with_included_gettext+set}" = set; then
3487 withval="$with_included_gettext"
3488 nls_cv_force_use_gnu_gettext=$withval
3490 nls_cv_force_use_gnu_gettext=no
3493 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3495 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3496 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3498 nls_cv_header_libgt=
3501 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3502 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3503 echo "configure:3504: checking for libintl.h" >&5
3504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <libintl.h>
3512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3513 { (eval echo configure:3514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3515 if test -z "$ac_err"; then
3517 eval "ac_cv_header_$ac_safe=yes"
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3523 eval "ac_cv_header_$ac_safe=no"
3527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3529 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3530 echo "configure:3531: checking for gettext in libc" >&5
3531 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3537 #include <libintl.h>
3539 return (int) gettext ("")
3542 if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3544 gt_cv_func_gettext_libc=yes
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 gt_cv_func_gettext_libc=no
3554 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3556 if test "$gt_cv_func_gettext_libc" != "yes"; then
3557 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3558 echo "configure:3559: checking for bindtextdomain in -lintl" >&5
3559 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 ac_save_LIBS="$LIBS"
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3571 char bindtextdomain();
3577 if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3579 eval "ac_cv_lib_$ac_lib_var=yes"
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3584 eval "ac_cv_lib_$ac_lib_var=no"
3587 LIBS="$ac_save_LIBS"
3590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3593 echo "configure:3594: checking for gettext in libintl" >&5
3594 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3602 return (int) gettext ("")
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3607 gt_cv_func_gettext_libintl=yes
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 gt_cv_func_gettext_libintl=no
3617 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3619 echo "$ac_t""no" 1>&6
3624 if test "$gt_cv_func_gettext_libc" = "yes" \
3625 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3626 cat >> confdefs.h <<\EOF
3627 #define HAVE_GETTEXT 1
3630 # Extract the first word of "msgfmt", so it can be a program name with args.
3631 set dummy msgfmt; ac_word=$2
3632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3633 echo "configure:3634: checking for $ac_word" >&5
3634 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3639 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3643 for ac_dir in $PATH; do
3644 test -z "$ac_dir" && ac_dir=.
3645 if test -f $ac_dir/$ac_word; then
3646 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3647 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3653 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3657 MSGFMT="$ac_cv_path_MSGFMT"
3658 if test -n "$MSGFMT"; then
3659 echo "$ac_t""$MSGFMT" 1>&6
3661 echo "$ac_t""no" 1>&6
3663 if test "$MSGFMT" != "no"; then
3664 for ac_func in dcgettext
3666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3667 echo "configure:3668: checking for $ac_func" >&5
3668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 /* System header to define __stub macros and hopefully few prototypes,
3675 which can conflict with char $ac_func(); below. */
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 /* We use char because int might match the return type of a gcc2
3679 builtin and then its argument prototype would still apply. */
3684 /* The GNU C library defines this for functions which it implements
3685 to always fail with ENOSYS. Some functions are actually named
3686 something starting with __ and the normal name is an alias. */
3687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3695 if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3697 eval "ac_cv_func_$ac_func=yes"
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 eval "ac_cv_func_$ac_func=no"
3707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3708 echo "$ac_t""yes" 1>&6
3709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3710 cat >> confdefs.h <<EOF
3711 #define $ac_tr_func 1
3715 echo "$ac_t""no" 1>&6
3719 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3720 set dummy gmsgfmt; ac_word=$2
3721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3722 echo "configure:3723: checking for $ac_word" >&5
3723 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3728 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3731 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3736 for ac_dir in $ac_dummy; do
3737 test -z "$ac_dir" && ac_dir=.
3738 if test -f $ac_dir/$ac_word; then
3739 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3744 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3748 GMSGFMT="$ac_cv_path_GMSGFMT"
3749 if test -n "$GMSGFMT"; then
3750 echo "$ac_t""$GMSGFMT" 1>&6
3752 echo "$ac_t""no" 1>&6
3755 # Extract the first word of "xgettext", so it can be a program name with args.
3756 set dummy xgettext; ac_word=$2
3757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3758 echo "configure:3759: checking for $ac_word" >&5
3759 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3764 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3768 for ac_dir in $PATH; do
3769 test -z "$ac_dir" && ac_dir=.
3770 if test -f $ac_dir/$ac_word; then
3771 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3772 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3778 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3782 XGETTEXT="$ac_cv_path_XGETTEXT"
3783 if test -n "$XGETTEXT"; then
3784 echo "$ac_t""$XGETTEXT" 1>&6
3786 echo "$ac_t""no" 1>&6
3789 cat > conftest.$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3794 extern int _nl_msg_cat_cntr;
3795 return _nl_msg_cat_cntr
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3815 echo "$ac_t""no" 1>&6
3820 if test "$CATOBJEXT" = "NONE"; then
3821 nls_cv_use_gnu_gettext=yes
3825 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3826 INTLOBJS="\$(GETTOBJS)"
3827 # Extract the first word of "msgfmt", so it can be a program name with args.
3828 set dummy msgfmt; ac_word=$2
3829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3830 echo "configure:3831: checking for $ac_word" >&5
3831 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3836 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3840 for ac_dir in $PATH; do
3841 test -z "$ac_dir" && ac_dir=.
3842 if test -f $ac_dir/$ac_word; then
3843 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3844 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3850 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3854 MSGFMT="$ac_cv_path_MSGFMT"
3855 if test -n "$MSGFMT"; then
3856 echo "$ac_t""$MSGFMT" 1>&6
3858 echo "$ac_t""no" 1>&6
3861 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3862 set dummy gmsgfmt; ac_word=$2
3863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3864 echo "configure:3865: checking for $ac_word" >&5
3865 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3870 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3873 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3878 for ac_dir in $ac_dummy; do
3879 test -z "$ac_dir" && ac_dir=.
3880 if test -f $ac_dir/$ac_word; then
3881 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3886 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3890 GMSGFMT="$ac_cv_path_GMSGFMT"
3891 if test -n "$GMSGFMT"; then
3892 echo "$ac_t""$GMSGFMT" 1>&6
3894 echo "$ac_t""no" 1>&6
3897 # Extract the first word of "xgettext", so it can be a program name with args.
3898 set dummy xgettext; ac_word=$2
3899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3900 echo "configure:3901: checking for $ac_word" >&5
3901 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3906 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3910 for ac_dir in $PATH; do
3911 test -z "$ac_dir" && ac_dir=.
3912 if test -f $ac_dir/$ac_word; then
3913 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3914 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3920 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3924 XGETTEXT="$ac_cv_path_XGETTEXT"
3925 if test -n "$XGETTEXT"; then
3926 echo "$ac_t""$XGETTEXT" 1>&6
3928 echo "$ac_t""no" 1>&6
3932 USE_INCLUDED_LIBINTL=yes
3936 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3938 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3939 nls_cv_header_intl=libintl.h
3940 nls_cv_header_libgt=libgettext.h
3943 if test "$XGETTEXT" != ":"; then
3944 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3947 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3952 # We need to process the po/ directory.
3956 nls_cv_header_intl=libintl.h
3957 nls_cv_header_libgt=libgettext.h
3960 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3961 # because some of the sources are only built for this goal.
3962 if test "$PACKAGE" = gettext; then
3964 USE_INCLUDED_LIBINTL=yes
3967 for lang in $ALL_LINGUAS; do
3968 GMOFILES="$GMOFILES $lang.gmo"
3969 POFILES="$POFILES $lang.po"
3985 if test "x$CATOBJEXT" != "x"; then
3986 if test "x$ALL_LINGUAS" = "x"; then
3989 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3990 echo "configure:3991: checking for catalogs to be installed" >&5
3992 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3993 case "$ALL_LINGUAS" in
3994 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3997 LINGUAS=$NEW_LINGUAS
3998 echo "$ac_t""$LINGUAS" 1>&6
4001 if test -n "$LINGUAS"; then
4002 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4006 if test $ac_cv_header_locale_h = yes; then
4007 INCLUDE_LOCALE_H="#include <locale.h>"
4010 /* The system does not provide the header <locale.h>. Take care yourself. */"
4014 if test -f $srcdir/po2tbl.sed.in; then
4015 if test "$CATOBJEXT" = ".cat"; then
4016 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4017 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4018 echo "configure:4019: checking for linux/version.h" >&5
4019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4025 #include <linux/version.h>
4027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4028 { (eval echo configure:4029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4030 if test -z "$ac_err"; then
4032 eval "ac_cv_header_$ac_safe=yes"
4035 echo "configure: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4038 eval "ac_cv_header_$ac_safe=no"
4042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4043 echo "$ac_t""yes" 1>&6
4046 echo "$ac_t""no" 1>&6
4051 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4053 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4054 $srcdir/po2tbl.sed.in > po2tbl.sed
4057 if test "$PACKAGE" = "gettext"; then
4067 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4073 if test -d $srcdir/po; then
4074 test -d po || mkdir po
4075 if test "x$srcdir" != "x."; then
4076 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4077 posrcprefix="$srcdir/"
4079 posrcprefix="../$srcdir/"
4085 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4086 < $srcdir/po/POTFILES.in > po/POTFILES
4090 . ${srcdir}/../bfd/configure.host
4093 # Find a good install program. We prefer a C program (faster),
4094 # so one script is as good as another. But avoid the broken or
4095 # incompatible versions:
4096 # SysV /etc/install, /usr/sbin/install
4097 # SunOS /usr/etc/install
4098 # IRIX /sbin/install
4100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4103 # ./install, which can be erroneously created by make from ./install.sh.
4104 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4105 echo "configure:4106: checking for a BSD compatible install" >&5
4106 if test -z "$INSTALL"; then
4107 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4111 for ac_dir in $PATH; do
4112 # Account for people who put trailing slashes in PATH elements.
4114 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4116 # OSF1 and SCO ODT 3.0 have their own names for install.
4117 # Don't use installbsd from OSF since it installs stuff as root
4119 for ac_prog in ginstall scoinst install; do
4120 if test -f $ac_dir/$ac_prog; then
4121 if test $ac_prog = install &&
4122 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4123 # AIX install. It has an incompatible calling convention.
4126 ac_cv_path_install="$ac_dir/$ac_prog -c"
4137 if test "${ac_cv_path_install+set}" = set; then
4138 INSTALL="$ac_cv_path_install"
4140 # As a last resort, use the slow shell script. We don't cache a
4141 # path for INSTALL within a source directory, because that will
4142 # break other packages using the cache if that directory is
4143 # removed, or if the path is relative.
4144 INSTALL="$ac_install_sh"
4147 echo "$ac_t""$INSTALL" 1>&6
4149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4150 # It thinks the first close brace ends the variable substitution.
4151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4158 for ac_hdr in string.h strings.h stdlib.h
4160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4162 echo "configure:4163: checking for $ac_hdr" >&5
4163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4172 { (eval echo configure:4173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4174 if test -z "$ac_err"; then
4176 eval "ac_cv_header_$ac_safe=yes"
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4182 eval "ac_cv_header_$ac_safe=no"
4186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4189 cat >> confdefs.h <<EOF
4190 #define $ac_tr_hdr 1
4194 echo "$ac_t""no" 1>&6
4202 # Horrible hacks to build DLLs on Windows.
4207 if test "$enable_shared" = "yes"; then
4208 WIN32LDFLAGS="-no-undefined"
4209 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4216 # target-specific stuff:
4218 # Canonicalize the secondary target names.
4219 if test -n "$enable_targets" ; then
4220 for targ in `echo $enable_targets | sed 's/,/ /g'`
4222 result=`$ac_config_sub $targ 2>/dev/null`
4223 if test -n "$result" ; then
4224 canon_targets="$canon_targets $result"
4226 # Allow targets that config.sub doesn't recognize, like "all".
4227 canon_targets="$canon_targets $targ"
4234 for targ in $target $canon_targets
4236 if test "x$targ" = "xall" ; then
4239 . $srcdir/../bfd/config.bfd
4240 selarchs="$selarchs $targ_archs"
4244 # Utility var, documents generic cgen support files.
4246 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4248 # We don't do any links based on the target system, just makefile config.
4250 if test x${all_targets} = xfalse ; then
4252 # Target architecture .o files.
4255 for arch in $selarchs
4257 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4258 archdefs="$archdefs -DARCH_$ad"
4260 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
4261 bfd_alliant_arch) ;;
4262 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
4263 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
4264 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
4266 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
4267 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
4268 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
4269 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
4270 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
4271 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
4272 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
4274 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
4275 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
4276 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
4277 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
4278 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
4279 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4280 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
4281 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
4282 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
4283 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
4284 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4285 bfd_pyramid_arch) ;;
4287 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4288 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
4289 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
4291 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
4292 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
4293 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4294 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4295 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4296 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
4297 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
4299 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
4302 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4306 if test $using_cgen = yes ; then
4307 ta="$ta $cgen_files"
4310 # Weed out duplicate .o files.
4320 # And duplicate -D flags.
4322 for i in $archdefs ; do
4332 else # all_targets is true
4334 BFD_MACHINES='$(ALL_MACHINES)'
4341 cat > confcache <<\EOF
4342 # This file is a shell script that caches the results of configure
4343 # tests run on this system so they can be shared between configure
4344 # scripts and configure runs. It is not useful on other systems.
4345 # If it contains results you don't want to keep, you may remove or edit it.
4347 # By default, configure uses ./config.cache as the cache file,
4348 # creating it if it does not exist already. You can give configure
4349 # the --cache-file=FILE option to use a different cache file; that is
4350 # what configure does when it calls configure scripts in
4351 # subdirectories, so they share the cache.
4352 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4353 # config.status only pays attention to the cache file if you give it the
4354 # --recheck option to rerun configure.
4357 # The following way of writing the cache mishandles newlines in values,
4358 # but we know of no workaround that is simple, portable, and efficient.
4359 # So, don't put newlines in cache variables' values.
4360 # Ultrix sh set writes to stderr and can't be redirected directly,
4361 # and sets the high bit in the cache file unless we assign to the vars.
4363 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4365 # `set' does not quote correctly, so add quotes (double-quote substitution
4366 # turns \\\\ into \\, and sed turns \\ into \).
4368 -e "s/'/'\\\\''/g" \
4369 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4372 # `set' quotes correctly as required by POSIX, so do not add quotes.
4373 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4376 if cmp -s $cache_file confcache; then
4379 if test -w $cache_file; then
4380 echo "updating cache $cache_file"
4381 cat confcache > $cache_file
4383 echo "not updating unwritable cache $cache_file"
4388 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4391 # Let make expand exec_prefix.
4392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4394 # Any assignment to VPATH causes Sun make to only execute
4395 # the first set of double-colon rules, so remove it if not needed.
4396 # If there is a colon in the path, we need to keep it.
4397 if test "x$srcdir" = x.; then
4398 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4401 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4403 DEFS=-DHAVE_CONFIG_H
4405 # Without the "./", some shells look in PATH for config.status.
4406 : ${CONFIG_STATUS=./config.status}
4408 echo creating $CONFIG_STATUS
4409 rm -f $CONFIG_STATUS
4410 cat > $CONFIG_STATUS <<EOF
4412 # Generated automatically by configure.
4413 # Run this file to recreate the current configuration.
4414 # This directory was configured as follows,
4415 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4417 # $0 $ac_configure_args
4419 # Compiler output produced by configure, useful for debugging
4420 # configure, is in ./config.log if it exists.
4422 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4425 case "\$ac_option" in
4426 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4427 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4428 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4429 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4430 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4432 -help | --help | --hel | --he | --h)
4433 echo "\$ac_cs_usage"; exit 0 ;;
4434 *) echo "\$ac_cs_usage"; exit 1 ;;
4438 ac_given_srcdir=$srcdir
4439 ac_given_INSTALL="$INSTALL"
4441 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4443 cat >> $CONFIG_STATUS <<EOF
4445 # Protect against being on the right side of a sed subst in config.status.
4446 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4447 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4451 s%@CFLAGS@%$CFLAGS%g
4452 s%@CPPFLAGS@%$CPPFLAGS%g
4453 s%@CXXFLAGS@%$CXXFLAGS%g
4454 s%@FFLAGS@%$FFLAGS%g
4456 s%@LDFLAGS@%$LDFLAGS%g
4458 s%@exec_prefix@%$exec_prefix%g
4459 s%@prefix@%$prefix%g
4460 s%@program_transform_name@%$program_transform_name%g
4461 s%@bindir@%$bindir%g
4462 s%@sbindir@%$sbindir%g
4463 s%@libexecdir@%$libexecdir%g
4464 s%@datadir@%$datadir%g
4465 s%@sysconfdir@%$sysconfdir%g
4466 s%@sharedstatedir@%$sharedstatedir%g
4467 s%@localstatedir@%$localstatedir%g
4468 s%@libdir@%$libdir%g
4469 s%@includedir@%$includedir%g
4470 s%@oldincludedir@%$oldincludedir%g
4471 s%@infodir@%$infodir%g
4472 s%@mandir@%$mandir%g
4474 s%@host_alias@%$host_alias%g
4475 s%@host_cpu@%$host_cpu%g
4476 s%@host_vendor@%$host_vendor%g
4477 s%@host_os@%$host_os%g
4478 s%@target@%$target%g
4479 s%@target_alias@%$target_alias%g
4480 s%@target_cpu@%$target_cpu%g
4481 s%@target_vendor@%$target_vendor%g
4482 s%@target_os@%$target_os%g
4484 s%@build_alias@%$build_alias%g
4485 s%@build_cpu@%$build_cpu%g
4486 s%@build_vendor@%$build_vendor%g
4487 s%@build_os@%$build_os%g
4489 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4490 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4491 s%@INSTALL_DATA@%$INSTALL_DATA%g
4492 s%@PACKAGE@%$PACKAGE%g
4493 s%@VERSION@%$VERSION%g
4494 s%@ACLOCAL@%$ACLOCAL%g
4495 s%@AUTOCONF@%$AUTOCONF%g
4496 s%@AUTOMAKE@%$AUTOMAKE%g
4497 s%@AUTOHEADER@%$AUTOHEADER%g
4498 s%@MAKEINFO@%$MAKEINFO%g
4499 s%@SET_MAKE@%$SET_MAKE%g
4501 s%@RANLIB@%$RANLIB%g
4504 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
4506 s%@DLLTOOL@%$DLLTOOL%g
4508 s%@LIBTOOL@%$LIBTOOL%g
4509 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4510 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4512 s%@EXEEXT@%$EXEEXT%g
4514 s%@ALLOCA@%$ALLOCA%g
4515 s%@USE_NLS@%$USE_NLS%g
4516 s%@MSGFMT@%$MSGFMT%g
4517 s%@GMSGFMT@%$GMSGFMT%g
4518 s%@XGETTEXT@%$XGETTEXT%g
4519 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4520 s%@CATALOGS@%$CATALOGS%g
4521 s%@CATOBJEXT@%$CATOBJEXT%g
4522 s%@DATADIRNAME@%$DATADIRNAME%g
4523 s%@GMOFILES@%$GMOFILES%g
4524 s%@INSTOBJEXT@%$INSTOBJEXT%g
4525 s%@INTLDEPS@%$INTLDEPS%g
4526 s%@INTLLIBS@%$INTLLIBS%g
4527 s%@INTLOBJS@%$INTLOBJS%g
4528 s%@POFILES@%$POFILES%g
4530 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4532 s%@GT_YES@%$GT_YES%g
4533 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4535 s%@HDEFINES@%$HDEFINES%g
4536 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4537 s%@WIN32LIBADD@%$WIN32LIBADD%g
4538 s%@archdefs@%$archdefs%g
4539 s%@BFD_MACHINES@%$BFD_MACHINES%g
4544 cat >> $CONFIG_STATUS <<\EOF
4546 # Split the substitutions into bite-sized pieces for seds with
4547 # small command number limits, like on Digital OSF/1 and HP-UX.
4548 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4549 ac_file=1 # Number of current file.
4550 ac_beg=1 # First line for current file.
4551 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4554 while $ac_more_lines; do
4555 if test $ac_beg -gt 1; then
4556 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4558 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4560 if test ! -s conftest.s$ac_file; then
4562 rm -f conftest.s$ac_file
4564 if test -z "$ac_sed_cmds"; then
4565 ac_sed_cmds="sed -f conftest.s$ac_file"
4567 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4569 ac_file=`expr $ac_file + 1`
4571 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4574 if test -z "$ac_sed_cmds"; then
4579 cat >> $CONFIG_STATUS <<EOF
4581 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4583 cat >> $CONFIG_STATUS <<\EOF
4584 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4585 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4587 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4588 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4589 *) ac_file_in="${ac_file}.in" ;;
4592 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4594 # Remove last slash and all that follows it. Not all systems have dirname.
4595 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4596 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4597 # The file is in a subdirectory.
4598 test ! -d "$ac_dir" && mkdir "$ac_dir"
4599 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4600 # A "../" for each directory in $ac_dir_suffix.
4601 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4603 ac_dir_suffix= ac_dots=
4606 case "$ac_given_srcdir" in
4608 if test -z "$ac_dots"; then top_srcdir=.
4609 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4610 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4612 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4613 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4616 case "$ac_given_INSTALL" in
4617 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4618 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4621 echo creating "$ac_file"
4623 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4625 *Makefile*) ac_comsub="1i\\
4626 # $configure_input" ;;
4630 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4632 s%@configure_input@%$configure_input%g
4633 s%@srcdir@%$srcdir%g
4634 s%@top_srcdir@%$top_srcdir%g
4635 s%@INSTALL@%$INSTALL%g
4636 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4640 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4641 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4643 # ac_d sets the value in "#define NAME VALUE" lines.
4644 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4645 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4648 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4649 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4650 ac_uB='\([ ]\)%\1#\2define\3'
4653 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4654 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4655 ac_eB='$%\1#\2define\3'
4659 if test "${CONFIG_HEADERS+set}" != set; then
4661 cat >> $CONFIG_STATUS <<EOF
4662 CONFIG_HEADERS="config.h:config.in"
4664 cat >> $CONFIG_STATUS <<\EOF
4666 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4667 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4669 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4670 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4671 *) ac_file_in="${ac_file}.in" ;;
4674 echo creating $ac_file
4676 rm -f conftest.frag conftest.in conftest.out
4677 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4678 cat $ac_file_inputs > conftest.in
4682 # Transform confdefs.h into a sed script conftest.vals that substitutes
4683 # the proper values into config.h.in to produce config.h. And first:
4684 # Protect against being on the right side of a sed subst in config.status.
4685 # Protect against being in an unquoted here document in config.status.
4687 cat > conftest.hdr <<\EOF
4690 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4694 sed -n -f conftest.hdr confdefs.h > conftest.vals
4697 # This sed command replaces #undef with comments. This is necessary, for
4698 # example, in the case of _POSIX_SOURCE, which is predefined and required
4699 # on some systems where configure will not decide to define it.
4700 cat >> conftest.vals <<\EOF
4701 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4704 # Break up conftest.vals because some shells have a limit on
4705 # the size of here documents, and old seds have small limits too.
4710 ac_lines=`grep -c . conftest.vals`
4711 # grep -c gives empty output for an empty file on some AIX systems.
4712 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4713 # Write a limited-size here document to conftest.frag.
4714 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4715 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4717 sed -f conftest.frag conftest.in > conftest.out
4719 mv conftest.out conftest.in
4721 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4723 mv conftest.tail conftest.vals
4727 cat >> $CONFIG_STATUS <<\EOF
4728 rm -f conftest.frag conftest.h
4729 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4730 cat conftest.in >> conftest.h
4732 if cmp -s $ac_file conftest.h 2>/dev/null; then
4733 echo "$ac_file is unchanged"
4736 # Remove last slash and all that follows it. Not all systems have dirname.
4737 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4738 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4739 # The file is in a subdirectory.
4740 test ! -d "$ac_dir" && mkdir "$ac_dir"
4743 mv conftest.h $ac_file
4748 cat >> $CONFIG_STATUS <<EOF
4752 cat >> $CONFIG_STATUS <<\EOF
4753 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4754 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4757 chmod +x $CONFIG_STATUS
4758 rm -fr confdefs* $ac_clean_files
4759 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1