3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=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 avoid locking (might break parallel builds)"
25 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
27 --enable-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --with-mmap try using mmap for BFD input files if available"
33 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
36 --disable-nls do not use Native Language Support"
38 --with-included-gettext use the GNU gettext library included here"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 SHELL
=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.13.1"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file
=libbfd.c
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 test -f "$cache_file" && .
$cache_file
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
551 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
552 if test -f $ac_dir/install-sh
; then
554 ac_install_sh
="$ac_aux_dir/install-sh -c"
556 elif test -f $ac_dir/install.sh
; then
558 ac_install_sh
="$ac_aux_dir/install.sh -c"
562 if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
565 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
566 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
567 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
570 echo $ac_n "checking host system type""... $ac_c" 1>&6
571 echo "configure:572: checking host system type" >&5
572 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
574 # Make sure we can run config.sub.
575 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
576 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
579 ac_cv_host_alias
=$host
580 case "$ac_cv_host_alias" in
584 if ac_cv_host_alias
=`$ac_config_guess`; then :
585 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
587 *) ac_cv_host_alias
=$nonopt ;;
591 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
592 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
593 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
594 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
596 echo $ac_n "(cached) $ac_c" 1>&6
599 echo "$ac_t""$ac_cv_host" 1>&6
602 host_alias
=$ac_cv_host_alias
603 host_cpu
=$ac_cv_host_cpu
604 host_vendor
=$ac_cv_host_vendor
605 host_os
=$ac_cv_host_os
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
613 if test "x$ac_cv_target" = "x" ||
(test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
615 # Make sure we can run config.sub.
616 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
617 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
620 ac_cv_target_alias
=$target
621 case "$ac_cv_target_alias" in
625 ac_cv_target_alias
=$host_alias ;;
627 *) ac_cv_target_alias
=$nonopt ;;
631 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias`
632 ac_cv_target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 ac_cv_target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 ac_cv_target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo $ac_n "(cached) $ac_c" 1>&6
639 echo "$ac_t""$ac_cv_target" 1>&6
642 target_alias
=$ac_cv_target_alias
643 target_cpu
=$ac_cv_target_cpu
644 target_vendor
=$ac_cv_target_vendor
645 target_os
=$ac_cv_target_os
651 echo $ac_n "checking build system type""... $ac_c" 1>&6
652 echo "configure:653: checking build system type" >&5
653 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
655 # Make sure we can run config.sub.
656 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
657 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
660 ac_cv_build_alias
=$build
661 case "$ac_cv_build_alias" in
665 ac_cv_build_alias
=$host_alias ;;
667 *) ac_cv_build_alias
=$nonopt ;;
671 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
672 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
673 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
674 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
676 echo $ac_n "(cached) $ac_c" 1>&6
679 echo "$ac_t""$ac_cv_build" 1>&6
682 build_alias
=$ac_cv_build_alias
683 build_cpu
=$ac_cv_build_cpu
684 build_vendor
=$ac_cv_build_vendor
685 build_os
=$ac_cv_build_os
691 # Do some error checking and defaulting for the host and target type.
693 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
696 # 1. You are not allowed to specify --host, --target, and nonopt at the
698 # 2. Host defaults to nonopt.
699 # 3. If nonopt is not specified, then host defaults to the current host,
700 # as determined by config.guess.
701 # 4. Target and build default to nonopt.
702 # 5. If nonopt is not specified, then target and build default to host.
704 # The aliases save the names the user supplied, while $host etc.
705 # will get canonicalized.
706 case $host---$target---$nonopt in
707 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
708 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
711 test "$host_alias" != "$target_alias" &&
712 test "$program_prefix$program_suffix$program_transform_name" = \
714 program_prefix
=${target_alias}-
716 # Extract the first word of "gcc", so it can be a program name with args.
717 set dummy gcc
; ac_word
=$2
718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
719 echo "configure:720: checking for $ac_word" >&5
720 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
723 if test -n "$CC"; then
724 ac_cv_prog_CC
="$CC" # Let the user override the test.
726 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
728 for ac_dir
in $ac_dummy; do
729 test -z "$ac_dir" && ac_dir
=.
730 if test -f $ac_dir/$ac_word; then
739 if test -n "$CC"; then
740 echo "$ac_t""$CC" 1>&6
742 echo "$ac_t""no" 1>&6
745 if test -z "$CC"; then
746 # Extract the first word of "cc", so it can be a program name with args.
747 set dummy cc
; 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 \"\${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
=":"
759 for ac_dir
in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir
=.
761 if test -f $ac_dir/$ac_word; then
762 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
771 if test $ac_prog_rejected = yes; then
772 # We found a bogon in the path, so make sure we never use it.
773 set dummy
$ac_cv_prog_CC
775 if test $# -gt 0; then
776 # We chose a different compiler from the bogus one.
777 # However, it has the same basename, so the bogon will be chosen
778 # first if we set CC to just the basename; use the full file name.
780 set dummy
"$ac_dir/$ac_word" "$@"
788 if test -n "$CC"; then
789 echo "$ac_t""$CC" 1>&6
791 echo "$ac_t""no" 1>&6
794 if test -z "$CC"; then
796 *win32
* |
*WIN32
* |
*CYGWIN
*)
797 # Extract the first word of "cl", so it can be a program name with args.
798 set dummy cl
; ac_word
=$2
799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800 echo "configure:801: checking for $ac_word" >&5
801 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 if test -n "$CC"; then
805 ac_cv_prog_CC
="$CC" # Let the user override the test.
807 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
809 for ac_dir
in $ac_dummy; do
810 test -z "$ac_dir" && ac_dir
=.
811 if test -f $ac_dir/$ac_word; then
820 if test -n "$CC"; then
821 echo "$ac_t""$CC" 1>&6
823 echo "$ac_t""no" 1>&6
828 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
831 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
832 echo "configure:833: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
835 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
836 ac_cpp
='$CPP $CPPFLAGS'
837 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
838 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
839 cross_compiling
=$ac_cv_prog_cc_cross
841 cat > conftest.
$ac_ext << EOF
843 #line 844 "configure"
844 #include "confdefs.h"
848 if { (eval echo configure
:849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
849 ac_cv_prog_cc_works
=yes
850 # If we can't run a trivial program, we are probably using a cross compiler.
851 if (.
/conftest
; exit) 2>/dev
/null
; then
852 ac_cv_prog_cc_cross
=no
854 ac_cv_prog_cc_cross
=yes
857 echo "configure: failed program was:" >&5
858 cat conftest.
$ac_ext >&5
859 ac_cv_prog_cc_works
=no
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp
='$CPP $CPPFLAGS'
865 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling
=$ac_cv_prog_cc_cross
869 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
870 if test $ac_cv_prog_cc_works = no
; then
871 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
873 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
874 echo "configure:875: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
875 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
876 cross_compiling
=$ac_cv_prog_cc_cross
878 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
879 echo "configure:880: checking whether we are using GNU C" >&5
880 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 cat > conftest.c
<<EOF
888 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
895 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
897 if test $ac_cv_prog_gcc = yes; then
903 ac_test_CFLAGS
="${CFLAGS+set}"
904 ac_save_CFLAGS
="$CFLAGS"
906 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
907 echo "configure:908: checking whether ${CC-cc} accepts -g" >&5
908 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 echo 'void f(){}' > conftest.c
912 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
921 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
922 if test "$ac_test_CFLAGS" = set; then
923 CFLAGS
="$ac_save_CFLAGS"
924 elif test $ac_cv_prog_cc_g = yes; then
925 if test "$GCC" = yes; then
931 if test "$GCC" = yes; then
938 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
939 echo "configure:940: checking for POSIXized ISC" >&5
940 if test -d /etc
/conf
/kconfig.d
&&
941 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
943 echo "$ac_t""yes" 1>&6
944 ISC
=yes # If later tests want to check for ISC.
945 cat >> confdefs.h
<<\EOF
946 #define _POSIX_SOURCE 1
949 if test "$GCC" = yes; then
955 echo "$ac_t""no" 1>&6
960 # Find a good install program. We prefer a C program (faster),
961 # so one script is as good as another. But avoid the broken or
962 # incompatible versions:
963 # SysV /etc/install, /usr/sbin/install
964 # SunOS /usr/etc/install
967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
970 # ./install, which can be erroneously created by make from ./install.sh.
971 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
972 echo "configure:973: checking for a BSD compatible install" >&5
973 if test -z "$INSTALL"; then
974 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
978 for ac_dir
in $PATH; do
979 # Account for people who put trailing slashes in PATH elements.
981 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
983 # OSF1 and SCO ODT 3.0 have their own names for install.
984 # Don't use installbsd from OSF since it installs stuff as root
986 for ac_prog
in ginstall scoinst
install; do
987 if test -f $ac_dir/$ac_prog; then
988 if test $ac_prog = install &&
989 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
990 # AIX install. It has an incompatible calling convention.
992 elif test $ac_prog = install &&
993 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
994 # program-specific install script used by HP pwplus--don't use.
997 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1008 if test "${ac_cv_path_install+set}" = set; then
1009 INSTALL
="$ac_cv_path_install"
1011 # As a last resort, use the slow shell script. We don't cache a
1012 # path for INSTALL within a source directory, because that will
1013 # break other packages using the cache if that directory is
1014 # removed, or if the path is relative.
1015 INSTALL
="$ac_install_sh"
1018 echo "$ac_t""$INSTALL" 1>&6
1020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1021 # It thinks the first close brace ends the variable substitution.
1022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1024 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1026 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1028 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1029 echo "configure:1030: checking whether build environment is sane" >&5
1032 echo timestamp
> conftestfile
1033 # Do `set' in a subshell so we don't clobber the current shell's
1034 # arguments. Must try -L first in case configure is actually a
1035 # symlink; some systems play weird games with the mod time of symlinks
1036 # (eg FreeBSD returns the mod time of the symlink's containing
1039 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1040 if test "$*" = "X"; then
1042 set X
`ls -t $srcdir/configure conftestfile`
1044 if test "$*" != "X $srcdir/configure conftestfile" \
1045 && test "$*" != "X conftestfile $srcdir/configure"; then
1047 # If neither matched, then we have a broken ls. This can happen
1048 # if, for instance, CONFIG_SHELL is bash and it inherits a
1049 # broken ls alias from the environment. This has actually
1050 # happened. Such a system could not be considered "sane".
1051 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1052 alias in your environment" 1>&2; exit 1; }
1055 test "$2" = conftestfile
1061 { echo "configure: error: newly created file is older than distributed files!
1062 Check your system clock" 1>&2; exit 1; }
1065 echo "$ac_t""yes" 1>&6
1066 if test "$program_transform_name" = s
,x
,x
,; then
1067 program_transform_name
=
1069 # Double any \ or $. echo might interpret backslashes.
1070 cat <<\EOF_SED
> conftestsed
1071 s
,\\,\\\\,g
; s
,\$
,$$
,g
1073 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1076 test "$program_prefix" != NONE
&&
1077 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
1078 # Use a double $ so make ignores it.
1079 test "$program_suffix" != NONE
&&
1080 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
1082 # sed with no file args requires a program.
1083 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1085 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1086 echo "configure:1087: checking whether ${MAKE-make} sets \${MAKE}" >&5
1087 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1088 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 cat > conftestmake
<<\EOF
1093 @
echo 'ac_maketemp="${MAKE}"'
1095 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1096 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1097 if test -n "$ac_maketemp"; then
1098 eval ac_cv_prog_make_
${ac_make}_set
=yes
1100 eval ac_cv_prog_make_
${ac_make}_set
=no
1104 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1105 echo "$ac_t""yes" 1>&6
1108 echo "$ac_t""no" 1>&6
1109 SET_MAKE
="MAKE=${MAKE-make}"
1117 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1118 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1120 cat >> confdefs.h
<<EOF
1121 #define PACKAGE "$PACKAGE"
1124 cat >> confdefs.h
<<EOF
1125 #define VERSION "$VERSION"
1130 missing_dir
=`cd $ac_aux_dir && pwd`
1131 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1132 echo "configure:1133: checking for working aclocal" >&5
1133 # Run test in a subshell; some versions of sh will print an error if
1134 # an executable is not found, even if stderr is redirected.
1135 # Redirect stdin to placate older versions of autoconf. Sigh.
1136 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1138 echo "$ac_t""found" 1>&6
1140 ACLOCAL
="$missing_dir/missing aclocal"
1141 echo "$ac_t""missing" 1>&6
1144 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1145 echo "configure:1146: checking for working autoconf" >&5
1146 # Run test in a subshell; some versions of sh will print an error if
1147 # an executable is not found, even if stderr is redirected.
1148 # Redirect stdin to placate older versions of autoconf. Sigh.
1149 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1151 echo "$ac_t""found" 1>&6
1153 AUTOCONF
="$missing_dir/missing autoconf"
1154 echo "$ac_t""missing" 1>&6
1157 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1158 echo "configure:1159: checking for working automake" >&5
1159 # Run test in a subshell; some versions of sh will print an error if
1160 # an executable is not found, even if stderr is redirected.
1161 # Redirect stdin to placate older versions of autoconf. Sigh.
1162 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1164 echo "$ac_t""found" 1>&6
1166 AUTOMAKE
="$missing_dir/missing automake"
1167 echo "$ac_t""missing" 1>&6
1170 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1171 echo "configure:1172: checking for working autoheader" >&5
1172 # Run test in a subshell; some versions of sh will print an error if
1173 # an executable is not found, even if stderr is redirected.
1174 # Redirect stdin to placate older versions of autoconf. Sigh.
1175 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1176 AUTOHEADER
=autoheader
1177 echo "$ac_t""found" 1>&6
1179 AUTOHEADER
="$missing_dir/missing autoheader"
1180 echo "$ac_t""missing" 1>&6
1183 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1184 echo "configure:1185: checking for working makeinfo" >&5
1185 # Run test in a subshell; some versions of sh will print an error if
1186 # an executable is not found, even if stderr is redirected.
1187 # Redirect stdin to placate older versions of autoconf. Sigh.
1188 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1190 echo "$ac_t""found" 1>&6
1192 MAKEINFO
="$missing_dir/missing makeinfo"
1193 echo "$ac_t""missing" 1>&6
1198 if test $host != $build; then
1199 ac_tool_prefix
=${host_alias}-
1204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1205 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_word" >&5
1208 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 if test -n "$AR"; then
1212 ac_cv_prog_AR
="$AR" # Let the user override the test.
1214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1216 for ac_dir
in $ac_dummy; do
1217 test -z "$ac_dir" && ac_dir
=.
1218 if test -f $ac_dir/$ac_word; then
1219 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1224 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1228 if test -n "$AR"; then
1229 echo "$ac_t""$AR" 1>&6
1231 echo "$ac_t""no" 1>&6
1236 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1237 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1239 echo "configure:1240: checking for $ac_word" >&5
1240 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 if test -n "$RANLIB"; then
1244 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1246 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1248 for ac_dir
in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir
=.
1250 if test -f $ac_dir/$ac_word; then
1251 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1258 RANLIB
="$ac_cv_prog_RANLIB"
1259 if test -n "$RANLIB"; then
1260 echo "$ac_t""$RANLIB" 1>&6
1262 echo "$ac_t""no" 1>&6
1266 if test -z "$ac_cv_prog_RANLIB"; then
1267 if test -n "$ac_tool_prefix"; then
1268 # Extract the first word of "ranlib", so it can be a program name with args.
1269 set dummy ranlib
; ac_word
=$2
1270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_word" >&5
1272 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 if test -n "$RANLIB"; then
1276 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1278 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1280 for ac_dir
in $ac_dummy; do
1281 test -z "$ac_dir" && ac_dir
=.
1282 if test -f $ac_dir/$ac_word; then
1283 ac_cv_prog_RANLIB
="ranlib"
1288 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1291 RANLIB
="$ac_cv_prog_RANLIB"
1292 if test -n "$RANLIB"; then
1293 echo "$ac_t""$RANLIB" 1>&6
1295 echo "$ac_t""no" 1>&6
1304 # Check whether --enable-shared or --disable-shared was given.
1305 if test "${enable_shared+set}" = set; then
1306 enableval
="$enable_shared"
1307 p
=${PACKAGE-default}
1308 case "$enableval" in
1309 yes) enable_shared
=yes ;;
1310 no
) enable_shared
=no
;;
1313 # Look at the argument we got. We use all the common list separators.
1314 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1315 for pkg
in $enableval; do
1316 if test "X$pkg" = "X$p"; then
1328 # Check whether --enable-static or --disable-static was given.
1329 if test "${enable_static+set}" = set; then
1330 enableval
="$enable_static"
1331 p
=${PACKAGE-default}
1332 case "$enableval" in
1333 yes) enable_static
=yes ;;
1334 no
) enable_static
=no
;;
1337 # Look at the argument we got. We use all the common list separators.
1338 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1339 for pkg
in $enableval; do
1340 if test "X$pkg" = "X$p"; then
1351 # Check whether --enable-fast-install or --disable-fast-install was given.
1352 if test "${enable_fast_install+set}" = set; then
1353 enableval
="$enable_fast_install"
1354 p
=${PACKAGE-default}
1355 case "$enableval" in
1356 yes) enable_fast_install
=yes ;;
1357 no
) enable_fast_install
=no
;;
1359 enable_fast_install
=no
1360 # Look at the argument we got. We use all the common list separators.
1361 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1362 for pkg
in $enableval; do
1363 if test "X$pkg" = "X$p"; then
1364 enable_fast_install
=yes
1371 enable_fast_install
=yes
1374 # Extract the first word of "ranlib", so it can be a program name with args.
1375 set dummy ranlib
; ac_word
=$2
1376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1377 echo "configure:1378: checking for $ac_word" >&5
1378 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 if test -n "$RANLIB"; then
1382 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1384 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1386 for ac_dir
in $ac_dummy; do
1387 test -z "$ac_dir" && ac_dir
=.
1388 if test -f $ac_dir/$ac_word; then
1389 ac_cv_prog_RANLIB
="ranlib"
1394 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1397 RANLIB
="$ac_cv_prog_RANLIB"
1398 if test -n "$RANLIB"; then
1399 echo "$ac_t""$RANLIB" 1>&6
1401 echo "$ac_t""no" 1>&6
1404 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1405 if test "${with_gnu_ld+set}" = set; then
1406 withval
="$with_gnu_ld"
1407 test "$withval" = no || with_gnu_ld
=yes
1413 if test "$ac_cv_prog_gcc" = yes; then
1414 # Check if gcc -print-prog-name=ld gives a path.
1415 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1416 echo "configure:1417: checking for ld used by GCC" >&5
1417 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1419 # Accept absolute paths.
1420 [\\/]* |
[A-Za-z
]:[\\/]*)
1421 re_direlt
='/[^/][^/]*/\.\./'
1422 # Canonicalize the path of ld
1423 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1424 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1425 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1427 test -z "$LD" && LD
="$ac_prog"
1430 # If it fails, then pretend we aren't using GCC.
1434 # If it is relative, then search for the first ld in PATH.
1438 elif test "$with_gnu_ld" = yes; then
1439 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1440 echo "configure:1441: checking for GNU ld" >&5
1442 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1443 echo "configure:1444: checking for non-GNU ld" >&5
1445 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 if test -z "$LD"; then
1449 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1450 for ac_dir
in $PATH; do
1451 test -z "$ac_dir" && ac_dir
=.
1452 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1453 ac_cv_path_LD
="$ac_dir/$ac_prog"
1454 # Check to see if the program is GNU ld. I'd rather use --version,
1455 # but apparently some GNU ld's only accept -v.
1456 # Break only if it was the GNU/non-GNU ld that we prefer.
1457 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1458 test "$with_gnu_ld" != no
&& break
1460 test "$with_gnu_ld" != yes && break
1466 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1471 if test -n "$LD"; then
1472 echo "$ac_t""$LD" 1>&6
1474 echo "$ac_t""no" 1>&6
1476 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1477 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1478 echo "configure:1479: checking if the linker ($LD) is GNU ld" >&5
1479 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1482 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1483 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1484 ac_cv_prog_gnu_ld
=yes
1486 ac_cv_prog_gnu_ld
=no
1490 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1493 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1494 echo "configure:1495: checking for BSD-compatible nm" >&5
1495 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 if test -n "$NM"; then
1499 # Let the user override the test.
1502 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1503 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1504 test -z "$ac_dir" && ac_dir
=.
1505 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1506 # Check to see if the nm accepts a BSD-compat flag.
1507 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1508 # nm: unknown option "B" ignored
1509 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1510 ac_cv_path_NM
="$ac_dir/nm -B"
1512 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1513 ac_cv_path_NM
="$ac_dir/nm -p"
1516 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1517 continue # so that we can try to find one that supports BSD flags
1522 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1527 echo "$ac_t""$NM" 1>&6
1529 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether ln -s works" >&5
1531 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1535 if ln -s X conftestdata
2>/dev
/null
1538 ac_cv_prog_LN_S
="ln -s"
1543 LN_S
="$ac_cv_prog_LN_S"
1544 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1545 echo "$ac_t""yes" 1>&6
1547 echo "$ac_t""no" 1>&6
1552 NONE
) lt_target
="$host" ;;
1553 *) lt_target
="$target" ;;
1556 # Check for any special flags to pass to ltconfig.
1557 libtool_flags
="--cache-file=$cache_file"
1558 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1559 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1560 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1561 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1562 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1565 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1566 if test "${enable_libtool_lock+set}" = set; then
1567 enableval
="$enable_libtool_lock"
1571 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1572 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1574 # Some flags need to be propagated to the compiler or linker for good
1576 case "$lt_target" in
1578 # Find out which ABI we are using.
1579 echo '#line 1580 "configure"' > conftest.
$ac_ext
1580 if { (eval echo configure
:1581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1581 case "`/usr/bin/file conftest.o`" in
1597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1598 SAVE_CFLAGS
="$CFLAGS"
1599 CFLAGS
="$CFLAGS -belf"
1600 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1601 echo "configure:1602: checking whether the C compiler needs -belf" >&5
1602 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 cat > conftest.
$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1613 if { (eval echo configure
:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1615 lt_cv_cc_needs_belf
=yes
1617 echo "configure: failed program was:" >&5
1618 cat conftest.
$ac_ext >&5
1620 lt_cv_cc_needs_belf
=no
1625 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1626 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1627 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1628 CFLAGS
="$SAVE_CFLAGS"
1636 # Save cache, so that ltconfig can load it
1637 cat > confcache
<<\EOF
1638 # This file is a shell script that caches the results of configure
1639 # tests run on this system so they can be shared between configure
1640 # scripts and configure runs. It is not useful on other systems.
1641 # If it contains results you don't want to keep, you may remove or edit it.
1643 # By default, configure uses ./config.cache as the cache file,
1644 # creating it if it does not exist already. You can give configure
1645 # the --cache-file=FILE option to use a different cache file; that is
1646 # what configure does when it calls configure scripts in
1647 # subdirectories, so they share the cache.
1648 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1649 # config.status only pays attention to the cache file if you give it the
1650 # --recheck option to rerun configure.
1653 # The following way of writing the cache mishandles newlines in values,
1654 # but we know of no workaround that is simple, portable, and efficient.
1655 # So, don't put newlines in cache variables' values.
1656 # Ultrix sh set writes to stderr and can't be redirected directly,
1657 # and sets the high bit in the cache file unless we assign to the vars.
1659 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1661 # `set' does not quote correctly, so add quotes (double-quote substitution
1662 # turns \\\\ into \\, and sed turns \\ into \).
1664 -e "s/'/'\\\\''/g" \
1665 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1668 # `set' quotes correctly as required by POSIX, so do not add quotes.
1669 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1672 if cmp -s $cache_file confcache
; then
1675 if test -w $cache_file; then
1676 echo "updating cache $cache_file"
1677 cat confcache
> $cache_file
1679 echo "not updating unwritable cache $cache_file"
1685 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1686 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1687 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1688 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1689 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1690 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1691 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1692 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1694 # Reload cache, that may have been modified by ltconfig
1695 if test -r "$cache_file"; then
1696 echo "loading cache $cache_file"
1697 test -f "$cache_file" && .
$cache_file
1699 echo "creating cache $cache_file"
1704 # This can be used to rebuild libtool when needed
1705 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1707 # Always use our own libtool.
1708 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1710 # Redirect the config.log output again, so that the ltconfig log is not
1711 # clobbered by the next message.
1712 exec 5>>.
/config.log
1715 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
1716 if test "${enable_64_bit_bfd+set}" = set; then
1717 enableval
="$enable_64_bit_bfd"
1718 case "${enableval}" in
1721 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
1726 # Check whether --enable-targets or --disable-targets was given.
1727 if test "${enable_targets+set}" = set; then
1728 enableval
="$enable_targets"
1729 case "${enableval}" in
1730 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1732 no
) enable_targets
= ;;
1733 *) enable_targets
=$enableval ;;
1736 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1737 if test "${enable_commonbfdlib+set}" = set; then
1738 enableval
="$enable_commonbfdlib"
1739 case "${enableval}" in
1740 yes) commonbfdlib
=true
;;
1741 no
) commonbfdlib
=false
;;
1742 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1745 # Check whether --with-mmap or --without-mmap was given.
1746 if test "${with_mmap+set}" = set; then
1747 withval
="$with_mmap"
1748 case "${withval}" in
1749 yes) want_mmap
=true
;;
1750 no
) want_mmap
=false
;;
1751 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
1761 if test -z "$target" ; then
1762 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1764 if test "$program_transform_name" = s
,x
,x
,; then
1765 program_transform_name
=
1767 # Double any \ or $. echo might interpret backslashes.
1768 cat <<\EOF_SED
> conftestsed
1769 s
,\\,\\\\,g
; s
,\$
,$$
,g
1771 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1774 test "$program_prefix" != NONE
&&
1775 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
1776 # Use a double $ so make ignores it.
1777 test "$program_suffix" != NONE
&&
1778 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
1780 # sed with no file args requires a program.
1781 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1784 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1785 echo "configure:1786: checking whether to enable maintainer-specific portions of Makefiles" >&5
1786 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1787 if test "${enable_maintainer_mode+set}" = set; then
1788 enableval
="$enable_maintainer_mode"
1789 USE_MAINTAINER_MODE
=$enableval
1791 USE_MAINTAINER_MODE
=no
1794 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1797 if test $USE_MAINTAINER_MODE = yes; then
1798 MAINTAINER_MODE_TRUE
=
1799 MAINTAINER_MODE_FALSE
='#'
1801 MAINTAINER_MODE_TRUE
='#'
1802 MAINTAINER_MODE_FALSE
=
1804 MAINT
=$MAINTAINER_MODE_TRUE
1807 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1808 echo "configure:1809: checking for Cygwin environment" >&5
1809 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.
$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1819 #define __CYGWIN__ __CYGWIN32__
1824 if { (eval echo configure
:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1828 echo "configure: failed program was:" >&5
1829 cat conftest.
$ac_ext >&5
1836 echo "$ac_t""$ac_cv_cygwin" 1>&6
1838 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1839 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1840 echo "configure:1841: checking for mingw32 environment" >&5
1841 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 cat > conftest.
$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1852 if { (eval echo configure
:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1856 echo "configure: failed program was:" >&5
1857 cat conftest.
$ac_ext >&5
1864 echo "$ac_t""$ac_cv_mingw32" 1>&6
1866 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1867 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
1868 echo "configure:1869: checking for EMX OS/2 environment" >&5
1869 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 cat > conftest.
$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1880 if { (eval echo configure
:1881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1884 echo "configure: failed program was:" >&5
1885 cat conftest.
$ac_ext >&5
1892 echo "$ac_t""$ac_cv_emxos2" 1>&6
1894 test "$ac_cv_emxos2" = yes && EMXOS2
=yes
1898 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1899 echo "configure:1900: checking for executable suffix" >&5
1900 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes ||
test "$EMXOS2" = yes; then
1907 echo 'int main () { return 0; }' > conftest.
$ac_ext
1909 if { (eval echo configure
:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1910 for file in conftest.
*; do
1912 *.c |
*.C |
*.o |
*.obj |
*.xcoff
) ;;
1913 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1917 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1920 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1925 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1926 echo "$ac_t""${ac_cv_exeext}" 1>&6
1935 # Extract the first word of "gcc", so it can be a program name with args.
1936 set dummy gcc
; ac_word
=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 if test -n "$CC"; then
1943 ac_cv_prog_CC
="$CC" # Let the user override the test.
1945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1947 for ac_dir
in $ac_dummy; do
1948 test -z "$ac_dir" && ac_dir
=.
1949 if test -f $ac_dir/$ac_word; then
1958 if test -n "$CC"; then
1959 echo "$ac_t""$CC" 1>&6
1961 echo "$ac_t""no" 1>&6
1964 if test -z "$CC"; then
1965 # Extract the first word of "cc", so it can be a program name with args.
1966 set dummy cc
; ac_word
=$2
1967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1968 echo "configure:1969: checking for $ac_word" >&5
1969 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC
="$CC" # Let the user override the test.
1975 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1978 for ac_dir
in $ac_dummy; do
1979 test -z "$ac_dir" && ac_dir
=.
1980 if test -f $ac_dir/$ac_word; then
1981 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1982 ac_prog_rejected
=yes
1990 if test $ac_prog_rejected = yes; then
1991 # We found a bogon in the path, so make sure we never use it.
1992 set dummy
$ac_cv_prog_CC
1994 if test $# -gt 0; then
1995 # We chose a different compiler from the bogus one.
1996 # However, it has the same basename, so the bogon will be chosen
1997 # first if we set CC to just the basename; use the full file name.
1999 set dummy
"$ac_dir/$ac_word" "$@"
2007 if test -n "$CC"; then
2008 echo "$ac_t""$CC" 1>&6
2010 echo "$ac_t""no" 1>&6
2013 if test -z "$CC"; then
2014 case "`uname -s`" in
2015 *win32
* |
*WIN32
* |
*CYGWIN
*)
2016 # Extract the first word of "cl", so it can be a program name with args.
2017 set dummy cl
; ac_word
=$2
2018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_word" >&5
2020 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 if test -n "$CC"; then
2024 ac_cv_prog_CC
="$CC" # Let the user override the test.
2026 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2028 for ac_dir
in $ac_dummy; do
2029 test -z "$ac_dir" && ac_dir
=.
2030 if test -f $ac_dir/$ac_word; then
2039 if test -n "$CC"; then
2040 echo "$ac_t""$CC" 1>&6
2042 echo "$ac_t""no" 1>&6
2047 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2050 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2051 echo "configure:2052: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2055 ac_cpp
='$CPP $CPPFLAGS'
2056 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2057 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2058 cross_compiling
=$ac_cv_prog_cc_cross
2060 cat > conftest.
$ac_ext << EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2067 if { (eval echo configure
:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2068 ac_cv_prog_cc_works
=yes
2069 # If we can't run a trivial program, we are probably using a cross compiler.
2070 if (.
/conftest
; exit) 2>/dev
/null
; then
2071 ac_cv_prog_cc_cross
=no
2073 ac_cv_prog_cc_cross
=yes
2076 echo "configure: failed program was:" >&5
2077 cat conftest.
$ac_ext >&5
2078 ac_cv_prog_cc_works
=no
2082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2083 ac_cpp
='$CPP $CPPFLAGS'
2084 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2085 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2086 cross_compiling
=$ac_cv_prog_cc_cross
2088 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2089 if test $ac_cv_prog_cc_works = no
; then
2090 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2092 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2093 echo "configure:2094: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2094 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2095 cross_compiling
=$ac_cv_prog_cc_cross
2097 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2098 echo "configure:2099: checking whether we are using GNU C" >&5
2099 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2102 cat > conftest.c
<<EOF
2107 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2114 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2116 if test $ac_cv_prog_gcc = yes; then
2122 ac_test_CFLAGS
="${CFLAGS+set}"
2123 ac_save_CFLAGS
="$CFLAGS"
2125 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2126 echo "configure:2127: checking whether ${CC-cc} accepts -g" >&5
2127 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2130 echo 'void f(){}' > conftest.c
2131 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2140 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2141 if test "$ac_test_CFLAGS" = set; then
2142 CFLAGS
="$ac_save_CFLAGS"
2143 elif test $ac_cv_prog_cc_g = yes; then
2144 if test "$GCC" = yes; then
2150 if test "$GCC" = yes; then
2159 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2160 echo "configure:2161: checking how to run the C preprocessor" >&5
2161 # On Suns, sometimes $CPP names a directory.
2162 if test -n "$CPP" && test -d "$CPP"; then
2165 if test -z "$CPP"; then
2166 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 # This must be in double quotes, not single quotes, because CPP may get
2170 # substituted into the Makefile and "${CC-cc}" will confuse make.
2172 # On the NeXT, cc -E runs the code through the compiler's parser,
2173 # not just through cpp.
2174 cat > conftest.
$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2181 { (eval echo configure
:2182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2182 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2183 if test -z "$ac_err"; then
2187 echo "configure: failed program was:" >&5
2188 cat conftest.
$ac_ext >&5
2190 CPP
="${CC-cc} -E -traditional-cpp"
2191 cat > conftest.
$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2197 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure
:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2200 if test -z "$ac_err"; then
2204 echo "configure: failed program was:" >&5
2205 cat conftest.
$ac_ext >&5
2207 CPP
="${CC-cc} -nologo -E"
2208 cat > conftest.
$ac_ext <<EOF
2209 #line 2210 "configure"
2210 #include "confdefs.h"
2214 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2215 { (eval echo configure
:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2216 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2217 if test -z "$ac_err"; then
2221 echo "configure: failed program was:" >&5
2222 cat conftest.
$ac_ext >&5
2231 ac_cv_prog_CPP
="$CPP"
2233 CPP
="$ac_cv_prog_CPP"
2235 ac_cv_prog_CPP
="$CPP"
2237 echo "$ac_t""$CPP" 1>&6
2239 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2240 echo "configure:2241: checking for ANSI C header files" >&5
2241 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 cat > conftest.
$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2252 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2253 { (eval echo configure
:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2254 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2255 if test -z "$ac_err"; then
2257 ac_cv_header_stdc
=yes
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 ac_cv_header_stdc
=no
2267 if test $ac_cv_header_stdc = yes; then
2268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2269 cat > conftest.
$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2275 egrep "memchr" >/dev
/null
2>&1; then
2279 ac_cv_header_stdc
=no
2285 if test $ac_cv_header_stdc = yes; then
2286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2287 cat > conftest.
$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2293 egrep "free" >/dev
/null
2>&1; then
2297 ac_cv_header_stdc
=no
2303 if test $ac_cv_header_stdc = yes; then
2304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2305 if test "$cross_compiling" = yes; then
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2312 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2313 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2315 int main () { int i; for (i = 0; i < 256; i++)
2316 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2320 if { (eval echo configure
:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 ac_cv_header_stdc
=no
2335 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2336 if test $ac_cv_header_stdc = yes; then
2337 cat >> confdefs.h
<<\EOF
2338 #define STDC_HEADERS 1
2343 echo $ac_n "checking for working const""... $ac_c" 1>&6
2344 echo "configure:2345: checking for working const" >&5
2345 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.
$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2354 /* Ultrix mips cc rejects this. */
2355 typedef int charset[2]; const charset x;
2356 /* SunOS 4.1.1 cc rejects this. */
2357 char const *const *ccp;
2359 /* NEC SVR4.0.2 mips cc rejects this. */
2360 struct point {int x, y;};
2361 static struct point const zero = {0,0};
2362 /* AIX XL C 1.02.0.0 rejects this.
2363 It does not let you subtract one const X* pointer from another in an arm
2364 of an if-expression whose if-part is not a constant expression */
2365 const char *g = "string";
2366 ccp = &g + (g ? g-g : 0);
2367 /* HPUX 7.0 cc rejects these. */
2370 ccp = (char const *const *) p;
2371 { /* SCO 3.2v4 cc rejects this. */
2373 char const *s = 0 ? (char *) 0 : (char const *) 0;
2377 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2379 const int *foo = &x[0];
2382 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2383 typedef const int *iptr;
2387 { /* AIX XL C 1.02.0.0 rejects this saying
2388 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2389 struct s { int j; const int *ap[3]; };
2390 struct s *b; b->j = 5;
2392 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2398 if { (eval echo configure
:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2402 echo "configure: failed program was:" >&5
2403 cat conftest.
$ac_ext >&5
2410 echo "$ac_t""$ac_cv_c_const" 1>&6
2411 if test $ac_cv_c_const = no
; then
2412 cat >> confdefs.h
<<\EOF
2418 echo $ac_n "checking for inline""... $ac_c" 1>&6
2419 echo "configure:2420: checking for inline" >&5
2420 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2424 for ac_kw
in inline __inline__ __inline
; do
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2430 } $ac_kw int foo() {
2433 if { (eval echo configure
:2434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2435 ac_cv_c_inline
=$ac_kw; break
2437 echo "configure: failed program was:" >&5
2438 cat conftest.
$ac_ext >&5
2445 echo "$ac_t""$ac_cv_c_inline" 1>&6
2446 case "$ac_cv_c_inline" in
2448 no
) cat >> confdefs.h
<<\EOF
2452 *) cat >> confdefs.h
<<EOF
2453 #define inline $ac_cv_c_inline
2458 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2459 echo "configure:2460: checking for off_t" >&5
2460 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 cat > conftest.
$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2466 #include <sys/types.h>
2472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2473 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2475 eval "ac_cv_type_off_t=yes"
2478 eval "ac_cv_type_off_t=no"
2483 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
2484 echo "$ac_t""yes" 1>&6
2486 echo "$ac_t""no" 1>&6
2487 cat >> confdefs.h
<<EOF
2493 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2494 echo "configure:2495: checking for size_t" >&5
2495 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #include <sys/types.h>
2507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2508 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2510 eval "ac_cv_type_size_t=yes"
2513 eval "ac_cv_type_size_t=no"
2518 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2521 echo "$ac_t""no" 1>&6
2522 cat >> confdefs.h
<<EOF
2523 #define size_t unsigned
2528 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2529 # for constant arguments. Useless!
2530 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2531 echo "configure:2532: checking for working alloca.h" >&5
2532 if eval "test \"\${ac_cv_header_alloca_h+set}\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 cat > conftest.
$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2540 char *p = alloca(2 * sizeof(int));
2543 if { (eval echo configure
:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2545 ac_cv_header_alloca_h
=yes
2547 echo "configure: failed program was:" >&5
2548 cat conftest.
$ac_ext >&5
2550 ac_cv_header_alloca_h
=no
2555 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2556 if test $ac_cv_header_alloca_h = yes; then
2557 cat >> confdefs.h
<<\EOF
2558 #define HAVE_ALLOCA_H 1
2563 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2564 echo "configure:2565: checking for alloca" >&5
2565 if eval "test \"\${ac_cv_func_alloca_works+set}\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.
$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2573 # define alloca __builtin_alloca
2576 # include <malloc.h>
2577 # define alloca _alloca
2580 # include <alloca.h>
2585 # ifndef alloca /* predefined by HP cc +Olibcalls */
2594 char *p = (char *) alloca(1);
2597 if { (eval echo configure
:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2599 ac_cv_func_alloca_works
=yes
2601 echo "configure: failed program was:" >&5
2602 cat conftest.
$ac_ext >&5
2604 ac_cv_func_alloca_works
=no
2609 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2610 if test $ac_cv_func_alloca_works = yes; then
2611 cat >> confdefs.h
<<\EOF
2612 #define HAVE_ALLOCA 1
2617 if test $ac_cv_func_alloca_works = no
; then
2618 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2619 # that cause trouble. Some versions do not even contain alloca or
2620 # contain a buggy version. If you still want to use their alloca,
2621 # use ar to extract alloca.o from them instead of compiling alloca.c.
2622 ALLOCA
=alloca.
${ac_objext}
2623 cat >> confdefs.h
<<\EOF
2628 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2629 echo "configure:2630: checking whether alloca needs Cray hooks" >&5
2630 if eval "test \"\${ac_cv_os_cray+set}\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.
$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2636 #if defined(CRAY) && ! defined(CRAY2)
2643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2644 egrep "webecray" >/dev
/null
2>&1; then
2655 echo "$ac_t""$ac_cv_os_cray" 1>&6
2656 if test $ac_cv_os_cray = yes; then
2657 for ac_func
in _getb67 GETB67 getb67
; do
2658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_func" >&5
2660 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 cat > conftest.
$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 /* System header to define __stub macros and hopefully few prototypes,
2667 which can conflict with char $ac_func(); below. */
2669 /* Override any gcc2 internal prototype to avoid an error. */
2670 /* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2677 /* The GNU C library defines this for functions which it implements
2678 to always fail with ENOSYS. Some functions are actually named
2679 something starting with __ and the normal name is an alias. */
2680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2688 if { (eval echo configure
:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2690 eval "ac_cv_func_$ac_func=yes"
2692 echo "configure: failed program was:" >&5
2693 cat conftest.
$ac_ext >&5
2695 eval "ac_cv_func_$ac_func=no"
2700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 cat >> confdefs.h
<<EOF
2703 #define CRAY_STACKSEG_END $ac_func
2708 echo "$ac_t""no" 1>&6
2714 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2715 echo "configure:2716: checking stack direction for C alloca" >&5
2716 if eval "test \"\${ac_cv_c_stack_direction+set}\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 if test "$cross_compiling" = yes; then
2720 ac_cv_c_stack_direction
=0
2722 cat > conftest.
$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 find_stack_direction ()
2727 static char *addr = 0;
2732 return find_stack_direction ();
2735 return (&dummy > addr) ? 1 : -1;
2739 exit (find_stack_direction() < 0);
2742 if { (eval echo configure
:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2744 ac_cv_c_stack_direction
=1
2746 echo "configure: failed program was:" >&5
2747 cat conftest.
$ac_ext >&5
2749 ac_cv_c_stack_direction
=-1
2756 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2757 cat >> confdefs.h
<<EOF
2758 #define STACK_DIRECTION $ac_cv_c_stack_direction
2763 for ac_hdr
in unistd.h
2765 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_hdr" >&5
2768 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2771 cat > conftest.
$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2776 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2777 { (eval echo configure
:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2778 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2779 if test -z "$ac_err"; then
2781 eval "ac_cv_header_$ac_safe=yes"
2784 echo "configure: failed program was:" >&5
2785 cat conftest.
$ac_ext >&5
2787 eval "ac_cv_header_$ac_safe=no"
2791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2794 cat >> confdefs.h
<<EOF
2795 #define $ac_tr_hdr 1
2799 echo "$ac_t""no" 1>&6
2803 for ac_func
in getpagesize
2805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2806 echo "configure:2807: checking for $ac_func" >&5
2807 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 cat > conftest.
$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2813 /* System header to define __stub macros and hopefully few prototypes,
2814 which can conflict with char $ac_func(); below. */
2816 /* Override any gcc2 internal prototype to avoid an error. */
2817 /* We use char because int might match the return type of a gcc2
2818 builtin and then its argument prototype would still apply. */
2824 /* The GNU C library defines this for functions which it implements
2825 to always fail with ENOSYS. Some functions are actually named
2826 something starting with __ and the normal name is an alias. */
2827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2835 if { (eval echo configure
:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2837 eval "ac_cv_func_$ac_func=yes"
2839 echo "configure: failed program was:" >&5
2840 cat conftest.
$ac_ext >&5
2842 eval "ac_cv_func_$ac_func=no"
2847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2848 echo "$ac_t""yes" 1>&6
2849 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2850 cat >> confdefs.h
<<EOF
2851 #define $ac_tr_func 1
2855 echo "$ac_t""no" 1>&6
2859 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2860 echo "configure:2861: checking for working mmap" >&5
2861 if eval "test \"\${ac_cv_func_mmap_fixed_mapped+set}\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 if test "$cross_compiling" = yes; then
2865 ac_cv_func_mmap_fixed_mapped
=no
2867 cat > conftest.
$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2871 /* Thanks to Mike Haertel and Jim Avera for this test.
2872 Here is a matrix of mmap possibilities:
2873 mmap private not fixed
2874 mmap private fixed at somewhere currently unmapped
2875 mmap private fixed at somewhere already mapped
2876 mmap shared not fixed
2877 mmap shared fixed at somewhere currently unmapped
2878 mmap shared fixed at somewhere already mapped
2879 For private mappings, we should verify that changes cannot be read()
2880 back from the file, nor mmap's back from the file at a different
2881 address. (There have been systems where private was not correctly
2882 implemented like the infamous i386 svr4.0, and systems where the
2883 VM page cache was not coherent with the filesystem buffer cache
2884 like early versions of FreeBSD and possibly contemporary NetBSD.)
2885 For shared mappings, we should conversely verify that changes get
2886 propogated back to all the places they're supposed to be.
2888 Grep wants private fixed already mapped.
2889 The main things grep needs to know about mmap are:
2890 * does it exist and is it safe to write into the mmap'd area
2891 * how to use it (BSD variants) */
2892 #include <sys/types.h>
2894 #include <sys/mman.h>
2896 /* This mess was copied from the GNU getpagesize.h. */
2897 #ifndef HAVE_GETPAGESIZE
2898 # ifdef HAVE_UNISTD_H
2899 # include <unistd.h>
2902 /* Assume that all systems that can run configure have sys/param.h. */
2903 # ifndef HAVE_SYS_PARAM_H
2904 # define HAVE_SYS_PARAM_H 1
2907 # ifdef _SC_PAGESIZE
2908 # define getpagesize() sysconf(_SC_PAGESIZE)
2909 # else /* no _SC_PAGESIZE */
2910 # ifdef HAVE_SYS_PARAM_H
2911 # include <sys/param.h>
2912 # ifdef EXEC_PAGESIZE
2913 # define getpagesize() EXEC_PAGESIZE
2914 # else /* no EXEC_PAGESIZE */
2916 # define getpagesize() NBPG * CLSIZE
2919 # endif /* no CLSIZE */
2920 # else /* no NBPG */
2922 # define getpagesize() NBPC
2923 # else /* no NBPC */
2925 # define getpagesize() PAGESIZE
2926 # endif /* PAGESIZE */
2927 # endif /* no NBPC */
2928 # endif /* no NBPG */
2929 # endif /* no EXEC_PAGESIZE */
2930 # else /* no HAVE_SYS_PARAM_H */
2931 # define getpagesize() 8192 /* punt totally */
2932 # endif /* no HAVE_SYS_PARAM_H */
2933 # endif /* no _SC_PAGESIZE */
2935 #endif /* no HAVE_GETPAGESIZE */
2938 extern "C" { void *malloc(unsigned); }
2946 char *data, *data2, *data3;
2950 pagesize = getpagesize();
2953 * First, make a file with some known garbage in it.
2955 data = malloc(pagesize);
2958 for (i = 0; i < pagesize; ++i)
2959 *(data + i) = rand();
2961 fd = creat("conftestmmap", 0600);
2964 if (write(fd, data, pagesize) != pagesize)
2969 * Next, try to mmap the file at a fixed address which
2970 * already has something else allocated at it. If we can,
2971 * also make sure that we see the same garbage.
2973 fd = open("conftestmmap", O_RDWR);
2976 data2 = malloc(2 * pagesize);
2979 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2980 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2981 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2983 for (i = 0; i < pagesize; ++i)
2984 if (*(data + i) != *(data2 + i))
2988 * Finally, make sure that changes to the mapped area
2989 * do not percolate back to the file as seen by read().
2990 * (This is a bug on some variants of i386 svr4.0.)
2992 for (i = 0; i < pagesize; ++i)
2993 *(data2 + i) = *(data2 + i) + 1;
2994 data3 = malloc(pagesize);
2997 if (read(fd, data3, pagesize) != pagesize)
2999 for (i = 0; i < pagesize; ++i)
3000 if (*(data + i) != *(data3 + i))
3003 unlink("conftestmmap");
3008 if { (eval echo configure
:3009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3010 ac_cv_func_mmap_fixed_mapped
=yes
3012 echo "configure: failed program was:" >&5
3013 cat conftest.
$ac_ext >&5
3015 ac_cv_func_mmap_fixed_mapped
=no
3022 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3023 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3024 cat >> confdefs.h
<<\EOF
3031 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3032 unistd.h values.h sys
/param.h
3034 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3036 echo "configure:3037: checking for $ac_hdr" >&5
3037 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.
$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3045 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3046 { (eval echo configure
:3047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3047 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3048 if test -z "$ac_err"; then
3050 eval "ac_cv_header_$ac_safe=yes"
3053 echo "configure: failed program was:" >&5
3054 cat conftest.
$ac_ext >&5
3056 eval "ac_cv_header_$ac_safe=no"
3060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3061 echo "$ac_t""yes" 1>&6
3062 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3063 cat >> confdefs.h
<<EOF
3064 #define $ac_tr_hdr 1
3068 echo "$ac_t""no" 1>&6
3072 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3073 __argz_count __argz_stringify __argz_next
3075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3076 echo "configure:3077: checking for $ac_func" >&5
3077 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 cat > conftest.
$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3083 /* System header to define __stub macros and hopefully few prototypes,
3084 which can conflict with char $ac_func(); below. */
3086 /* Override any gcc2 internal prototype to avoid an error. */
3087 /* We use char because int might match the return type of a gcc2
3088 builtin and then its argument prototype would still apply. */
3094 /* The GNU C library defines this for functions which it implements
3095 to always fail with ENOSYS. Some functions are actually named
3096 something starting with __ and the normal name is an alias. */
3097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3105 if { (eval echo configure
:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3107 eval "ac_cv_func_$ac_func=yes"
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3112 eval "ac_cv_func_$ac_func=no"
3117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3120 cat >> confdefs.h
<<EOF
3121 #define $ac_tr_func 1
3125 echo "$ac_t""no" 1>&6
3130 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3131 for ac_func
in stpcpy
3133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3134 echo "configure:3135: checking for $ac_func" >&5
3135 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 cat > conftest.
$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3141 /* System header to define __stub macros and hopefully few prototypes,
3142 which can conflict with char $ac_func(); below. */
3144 /* Override any gcc2 internal prototype to avoid an error. */
3145 /* We use char because int might match the return type of a gcc2
3146 builtin and then its argument prototype would still apply. */
3152 /* The GNU C library defines this for functions which it implements
3153 to always fail with ENOSYS. Some functions are actually named
3154 something starting with __ and the normal name is an alias. */
3155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3163 if { (eval echo configure
:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3165 eval "ac_cv_func_$ac_func=yes"
3167 echo "configure: failed program was:" >&5
3168 cat conftest.
$ac_ext >&5
3170 eval "ac_cv_func_$ac_func=no"
3175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3176 echo "$ac_t""yes" 1>&6
3177 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3178 cat >> confdefs.h
<<EOF
3179 #define $ac_tr_func 1
3183 echo "$ac_t""no" 1>&6
3188 if test "${ac_cv_func_stpcpy}" = "yes"; then
3189 cat >> confdefs.h
<<\EOF
3190 #define HAVE_STPCPY 1
3195 if test $ac_cv_header_locale_h = yes; then
3196 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3197 echo "configure:3198: checking for LC_MESSAGES" >&5
3198 if eval "test \"\${am_cv_val_LC_MESSAGES+set}\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 cat > conftest.
$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3209 if { (eval echo configure
:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3211 am_cv_val_LC_MESSAGES
=yes
3213 echo "configure: failed program was:" >&5
3214 cat conftest.
$ac_ext >&5
3216 am_cv_val_LC_MESSAGES
=no
3221 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3222 if test $am_cv_val_LC_MESSAGES = yes; then
3223 cat >> confdefs.h
<<\EOF
3224 #define HAVE_LC_MESSAGES 1
3229 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3230 echo "configure:3231: checking whether NLS is requested" >&5
3231 # Check whether --enable-nls or --disable-nls was given.
3232 if test "${enable_nls+set}" = set; then
3233 enableval
="$enable_nls"
3239 echo "$ac_t""$USE_NLS" 1>&6
3242 USE_INCLUDED_LIBINTL
=no
3244 if test "$USE_NLS" = "yes"; then
3245 cat >> confdefs.h
<<\EOF
3246 #define ENABLE_NLS 1
3249 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3250 echo "configure:3251: checking whether included gettext is requested" >&5
3251 # Check whether --with-included-gettext or --without-included-gettext was given.
3252 if test "${with_included_gettext+set}" = set; then
3253 withval
="$with_included_gettext"
3254 nls_cv_force_use_gnu_gettext
=$withval
3256 nls_cv_force_use_gnu_gettext
=no
3259 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3261 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3262 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3264 nls_cv_header_libgt
=
3267 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3268 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3269 echo "configure:3270: checking for libintl.h" >&5
3270 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 cat > conftest.
$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 #include <libintl.h>
3278 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3279 { (eval echo configure
:3280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3280 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3281 if test -z "$ac_err"; then
3283 eval "ac_cv_header_$ac_safe=yes"
3286 echo "configure: failed program was:" >&5
3287 cat conftest.
$ac_ext >&5
3289 eval "ac_cv_header_$ac_safe=no"
3293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3294 echo "$ac_t""yes" 1>&6
3295 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3296 echo "configure:3297: checking for gettext in libc" >&5
3297 if eval "test \"\${gt_cv_func_gettext_libc+set}\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.
$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <libintl.h>
3305 return (int) gettext ("")
3308 if { (eval echo configure
:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3310 gt_cv_func_gettext_libc
=yes
3312 echo "configure: failed program was:" >&5
3313 cat conftest.
$ac_ext >&5
3315 gt_cv_func_gettext_libc
=no
3320 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3322 if test "$gt_cv_func_gettext_libc" != "yes"; then
3323 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3324 echo "configure:3325: checking for bindtextdomain in -lintl" >&5
3325 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-:%__p__%'`
3326 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 ac_save_LIBS
="$LIBS"
3331 cat > conftest.
$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 /* Override any gcc2 internal prototype to avoid an error. */
3335 /* We use char because int might match the return type of a gcc2
3336 builtin and then its argument prototype would still apply. */
3337 char bindtextdomain();
3343 if { (eval echo configure
:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3345 eval "ac_cv_lib_$ac_lib_var=yes"
3347 echo "configure: failed program was:" >&5
3348 cat conftest.
$ac_ext >&5
3350 eval "ac_cv_lib_$ac_lib_var=no"
3353 LIBS
="$ac_save_LIBS"
3356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3358 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3359 echo "configure:3360: checking for gettext in libintl" >&5
3360 if eval "test \"\${gt_cv_func_gettext_libintl+set}\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.
$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3368 return (int) gettext ("")
3371 if { (eval echo configure
:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3373 gt_cv_func_gettext_libintl
=yes
3375 echo "configure: failed program was:" >&5
3376 cat conftest.
$ac_ext >&5
3378 gt_cv_func_gettext_libintl
=no
3383 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3385 echo "$ac_t""no" 1>&6
3390 if test "$gt_cv_func_gettext_libc" = "yes" \
3391 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3392 cat >> confdefs.h
<<\EOF
3393 #define HAVE_GETTEXT 1
3396 # Extract the first word of "msgfmt", so it can be a program name with args.
3397 set dummy msgfmt
; ac_word
=$2
3398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_word" >&5
3400 if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3405 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3408 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3409 for ac_dir
in $PATH; do
3410 test -z "$ac_dir" && ac_dir
=.
3411 if test -f $ac_dir/$ac_word; then
3412 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3413 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3419 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3423 MSGFMT
="$ac_cv_path_MSGFMT"
3424 if test -n "$MSGFMT"; then
3425 echo "$ac_t""$MSGFMT" 1>&6
3427 echo "$ac_t""no" 1>&6
3429 if test "$MSGFMT" != "no"; then
3430 for ac_func
in dcgettext
3432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3433 echo "configure:3434: checking for $ac_func" >&5
3434 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 cat > conftest.
$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 /* System header to define __stub macros and hopefully few prototypes,
3441 which can conflict with char $ac_func(); below. */
3443 /* Override any gcc2 internal prototype to avoid an error. */
3444 /* We use char because int might match the return type of a gcc2
3445 builtin and then its argument prototype would still apply. */
3451 /* The GNU C library defines this for functions which it implements
3452 to always fail with ENOSYS. Some functions are actually named
3453 something starting with __ and the normal name is an alias. */
3454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3462 if { (eval echo configure
:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3464 eval "ac_cv_func_$ac_func=yes"
3466 echo "configure: failed program was:" >&5
3467 cat conftest.
$ac_ext >&5
3469 eval "ac_cv_func_$ac_func=no"
3474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3475 echo "$ac_t""yes" 1>&6
3476 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3477 cat >> confdefs.h
<<EOF
3478 #define $ac_tr_func 1
3482 echo "$ac_t""no" 1>&6
3486 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3487 set dummy gmsgfmt
; ac_word
=$2
3488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3489 echo "configure:3490: checking for $ac_word" >&5
3490 if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3495 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3498 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3501 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3503 for ac_dir
in $ac_dummy; do
3504 test -z "$ac_dir" && ac_dir
=.
3505 if test -f $ac_dir/$ac_word; then
3506 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3511 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3515 GMSGFMT
="$ac_cv_path_GMSGFMT"
3516 if test -n "$GMSGFMT"; then
3517 echo "$ac_t""$GMSGFMT" 1>&6
3519 echo "$ac_t""no" 1>&6
3522 # Extract the first word of "xgettext", so it can be a program name with args.
3523 set dummy xgettext
; ac_word
=$2
3524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3525 echo "configure:3526: checking for $ac_word" >&5
3526 if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3531 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3534 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3535 for ac_dir
in $PATH; do
3536 test -z "$ac_dir" && ac_dir
=.
3537 if test -f $ac_dir/$ac_word; then
3538 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3539 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3545 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3549 XGETTEXT
="$ac_cv_path_XGETTEXT"
3550 if test -n "$XGETTEXT"; then
3551 echo "$ac_t""$XGETTEXT" 1>&6
3553 echo "$ac_t""no" 1>&6
3556 cat > conftest.
$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3561 extern int _nl_msg_cat_cntr;
3562 return _nl_msg_cat_cntr
3565 if { (eval echo configure
:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3570 echo "configure: failed program was:" >&5
3571 cat conftest.
$ac_ext >&5
3582 echo "$ac_t""no" 1>&6
3587 if test "$CATOBJEXT" = "NONE"; then
3588 nls_cv_use_gnu_gettext
=yes
3592 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3593 INTLOBJS
="\$(GETTOBJS)"
3594 # Extract the first word of "msgfmt", so it can be a program name with args.
3595 set dummy msgfmt
; ac_word
=$2
3596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3597 echo "configure:3598: checking for $ac_word" >&5
3598 if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3603 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3606 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3607 for ac_dir
in $PATH; do
3608 test -z "$ac_dir" && ac_dir
=.
3609 if test -f $ac_dir/$ac_word; then
3610 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3611 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3617 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3621 MSGFMT
="$ac_cv_path_MSGFMT"
3622 if test -n "$MSGFMT"; then
3623 echo "$ac_t""$MSGFMT" 1>&6
3625 echo "$ac_t""no" 1>&6
3628 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3629 set dummy gmsgfmt
; ac_word
=$2
3630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3631 echo "configure:3632: checking for $ac_word" >&5
3632 if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3637 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3640 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3643 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3645 for ac_dir
in $ac_dummy; do
3646 test -z "$ac_dir" && ac_dir
=.
3647 if test -f $ac_dir/$ac_word; then
3648 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3653 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3657 GMSGFMT
="$ac_cv_path_GMSGFMT"
3658 if test -n "$GMSGFMT"; then
3659 echo "$ac_t""$GMSGFMT" 1>&6
3661 echo "$ac_t""no" 1>&6
3664 # Extract the first word of "xgettext", so it can be a program name with args.
3665 set dummy xgettext
; ac_word
=$2
3666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3667 echo "configure:3668: checking for $ac_word" >&5
3668 if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3673 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3676 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3677 for ac_dir
in $PATH; do
3678 test -z "$ac_dir" && ac_dir
=.
3679 if test -f $ac_dir/$ac_word; then
3680 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3681 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3687 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3691 XGETTEXT
="$ac_cv_path_XGETTEXT"
3692 if test -n "$XGETTEXT"; then
3693 echo "$ac_t""$XGETTEXT" 1>&6
3695 echo "$ac_t""no" 1>&6
3699 USE_INCLUDED_LIBINTL
=yes
3703 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3705 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3706 nls_cv_header_intl
=libintl.h
3707 nls_cv_header_libgt
=libgettext.h
3710 if test "$XGETTEXT" != ":"; then
3711 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3714 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3719 # We need to process the po/ directory.
3723 nls_cv_header_intl
=libintl.h
3724 nls_cv_header_libgt
=libgettext.h
3727 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3728 # because some of the sources are only built for this goal.
3729 if test "$PACKAGE" = gettext; then
3731 USE_INCLUDED_LIBINTL
=yes
3734 for lang
in $ALL_LINGUAS; do
3735 GMOFILES
="$GMOFILES $lang.gmo"
3736 POFILES
="$POFILES $lang.po"
3752 if test "x$CATOBJEXT" != "x"; then
3753 if test "x$ALL_LINGUAS" = "x"; then
3756 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3757 echo "configure:3758: checking for catalogs to be installed" >&5
3759 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3760 case "$ALL_LINGUAS" in
3761 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3764 LINGUAS
=$NEW_LINGUAS
3765 echo "$ac_t""$LINGUAS" 1>&6
3768 if test -n "$LINGUAS"; then
3769 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3773 if test $ac_cv_header_locale_h = yes; then
3774 INCLUDE_LOCALE_H
="#include <locale.h>"
3777 /* The system does not provide the header <locale.h>. Take care yourself. */"
3781 if test -f $srcdir/po2tbl.
sed.
in; then
3782 if test "$CATOBJEXT" = ".cat"; then
3783 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3784 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3785 echo "configure:3786: checking for linux/version.h" >&5
3786 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3789 cat > conftest.
$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3792 #include <linux/version.h>
3794 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3795 { (eval echo configure
:3796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3796 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3797 if test -z "$ac_err"; then
3799 eval "ac_cv_header_$ac_safe=yes"
3802 echo "configure: failed program was:" >&5
3803 cat conftest.
$ac_ext >&5
3805 eval "ac_cv_header_$ac_safe=no"
3809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3813 echo "$ac_t""no" 1>&6
3818 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3820 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3821 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3824 if test "$PACKAGE" = "gettext"; then
3834 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3840 if test -d $srcdir/po
; then
3841 test -d po || mkdir po
3842 if test "x$srcdir" != "x."; then
3843 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3844 posrcprefix
="$srcdir/"
3846 posrcprefix
="../$srcdir/"
3852 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3853 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3857 # Permit host specific settings.
3858 .
${srcdir}/configure.
host
3861 # Find a good install program. We prefer a C program (faster),
3862 # so one script is as good as another. But avoid the broken or
3863 # incompatible versions:
3864 # SysV /etc/install, /usr/sbin/install
3865 # SunOS /usr/etc/install
3866 # IRIX /sbin/install
3868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3871 # ./install, which can be erroneously created by make from ./install.sh.
3872 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3873 echo "configure:3874: checking for a BSD compatible install" >&5
3874 if test -z "$INSTALL"; then
3875 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
3876 echo $ac_n "(cached) $ac_c" 1>&6
3878 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3879 for ac_dir
in $PATH; do
3880 # Account for people who put trailing slashes in PATH elements.
3882 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3884 # OSF1 and SCO ODT 3.0 have their own names for install.
3885 # Don't use installbsd from OSF since it installs stuff as root
3887 for ac_prog
in ginstall scoinst
install; do
3888 if test -f $ac_dir/$ac_prog; then
3889 if test $ac_prog = install &&
3890 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3891 # AIX install. It has an incompatible calling convention.
3893 elif test $ac_prog = install &&
3894 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3895 # program-specific install script used by HP pwplus--don't use.
3898 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3909 if test "${ac_cv_path_install+set}" = set; then
3910 INSTALL
="$ac_cv_path_install"
3912 # As a last resort, use the slow shell script. We don't cache a
3913 # path for INSTALL within a source directory, because that will
3914 # break other packages using the cache if that directory is
3915 # removed, or if the path is relative.
3916 INSTALL
="$ac_install_sh"
3919 echo "$ac_t""$INSTALL" 1>&6
3921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3922 # It thinks the first close brace ends the variable substitution.
3923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3927 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3930 BFD_HOST_64BIT_LONG
=0
3931 BFD_HOST_64_BIT_DEFINED
=0
3934 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
3935 BFD_HOST_64BIT_LONG
=1
3936 elif test "x${HOST_64BIT_TYPE}" != "x"; then
3937 BFD_HOST_64_BIT_DEFINED
=1
3938 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
3939 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
3946 # Put a plausible default for CC_FOR_BUILD in Makefile.
3947 if test -z "$CC_FOR_BUILD"; then
3948 if test "x$cross_compiling" = "xno"; then
3949 CC_FOR_BUILD
='$(CC)'
3955 # Also set EXEEXT_FOR_BUILD.
3956 if test "x$cross_compiling" = "xno"; then
3957 EXEEXT_FOR_BUILD
='$(EXEEXT)'
3959 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
3960 echo "configure:3961: checking for build system executable suffix" >&5
3961 if eval "test \"\${bfd_cv_build_exeext+set}\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3965 echo 'int main () { return 0; }' > conftest.c
3966 bfd_cv_build_exeext
=
3967 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
3968 for file in conftest.
*; do
3970 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3971 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
3975 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
3978 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
3980 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
3984 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
3986 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3988 echo "configure:3989: checking for $ac_hdr" >&5
3989 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 cat > conftest.
$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3997 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3998 { (eval echo configure
:3999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3999 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4000 if test -z "$ac_err"; then
4002 eval "ac_cv_header_$ac_safe=yes"
4005 echo "configure: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4008 eval "ac_cv_header_$ac_safe=no"
4012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4015 cat >> confdefs.h
<<EOF
4016 #define $ac_tr_hdr 1
4020 echo "$ac_t""no" 1>&6
4024 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4026 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4028 echo "configure:4029: checking for $ac_hdr" >&5
4029 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4032 cat > conftest.
$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4037 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4038 { (eval echo configure
:4039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4039 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4040 if test -z "$ac_err"; then
4042 eval "ac_cv_header_$ac_safe=yes"
4045 echo "configure: failed program was:" >&5
4046 cat conftest.
$ac_ext >&5
4048 eval "ac_cv_header_$ac_safe=no"
4052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4054 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4055 cat >> confdefs.h
<<EOF
4056 #define $ac_tr_hdr 1
4060 echo "$ac_t""no" 1>&6
4064 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4065 echo "configure:4066: checking whether time.h and sys/time.h may both be included" >&5
4066 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4069 cat > conftest.
$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 #include <sys/types.h>
4073 #include <sys/time.h>
4079 if { (eval echo configure
:4080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 ac_cv_header_time
=yes
4083 echo "configure: failed program was:" >&5
4084 cat conftest.
$ac_ext >&5
4086 ac_cv_header_time
=no
4091 echo "$ac_t""$ac_cv_header_time" 1>&6
4092 if test $ac_cv_header_time = yes; then
4093 cat >> confdefs.h
<<\EOF
4094 #define TIME_WITH_SYS_TIME 1
4100 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4102 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4103 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4104 echo "configure:4105: checking for $ac_hdr that defines DIR" >&5
4105 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 cat > conftest.
$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 #include <sys/types.h>
4117 if { (eval echo configure
:4118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4119 eval "ac_cv_header_dirent_$ac_safe=yes"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.
$ac_ext >&5
4124 eval "ac_cv_header_dirent_$ac_safe=no"
4128 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4131 cat >> confdefs.h
<<EOF
4132 #define $ac_tr_hdr 1
4134 ac_header_dirent
=$ac_hdr; break
4136 echo "$ac_t""no" 1>&6
4139 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4140 if test $ac_header_dirent = dirent.h
; then
4141 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4142 echo "configure:4143: checking for opendir in -ldir" >&5
4143 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4144 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4147 ac_save_LIBS
="$LIBS"
4149 cat > conftest.
$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 /* Override any gcc2 internal prototype to avoid an error. */
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4161 if { (eval echo configure
:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4163 eval "ac_cv_lib_$ac_lib_var=yes"
4165 echo "configure: failed program was:" >&5
4166 cat conftest.
$ac_ext >&5
4168 eval "ac_cv_lib_$ac_lib_var=no"
4171 LIBS
="$ac_save_LIBS"
4174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4175 echo "$ac_t""yes" 1>&6
4178 echo "$ac_t""no" 1>&6
4182 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4183 echo "configure:4184: checking for opendir in -lx" >&5
4184 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4185 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 ac_save_LIBS
="$LIBS"
4190 cat > conftest.
$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 /* Override any gcc2 internal prototype to avoid an error. */
4194 /* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4202 if { (eval echo configure
:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4204 eval "ac_cv_lib_$ac_lib_var=yes"
4206 echo "configure: failed program was:" >&5
4207 cat conftest.
$ac_ext >&5
4209 eval "ac_cv_lib_$ac_lib_var=no"
4212 LIBS
="$ac_save_LIBS"
4215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4219 echo "$ac_t""no" 1>&6
4224 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4227 echo "configure:4228: checking for $ac_func" >&5
4228 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 cat > conftest.
$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4234 /* System header to define __stub macros and hopefully few prototypes,
4235 which can conflict with char $ac_func(); below. */
4237 /* Override any gcc2 internal prototype to avoid an error. */
4238 /* We use char because int might match the return type of a gcc2
4239 builtin and then its argument prototype would still apply. */
4245 /* The GNU C library defines this for functions which it implements
4246 to always fail with ENOSYS. Some functions are actually named
4247 something starting with __ and the normal name is an alias. */
4248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4256 if { (eval echo configure
:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4258 eval "ac_cv_func_$ac_func=yes"
4260 echo "configure: failed program was:" >&5
4261 cat conftest.
$ac_ext >&5
4263 eval "ac_cv_func_$ac_func=no"
4268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4270 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4271 cat >> confdefs.h
<<EOF
4272 #define $ac_tr_func 1
4276 echo "$ac_t""no" 1>&6
4283 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4284 cat >> confdefs.h
<<\EOF
4285 #define USE_BINARY_FOPEN 1
4290 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4291 echo "configure:4292: checking whether strstr must be declared" >&5
4292 if eval "test \"\${bfd_cv_decl_needed_strstr+set}\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.
$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4300 #ifdef HAVE_STRING_H
4303 #ifdef HAVE_STRINGS_H
4304 #include <strings.h>
4307 #ifdef HAVE_STDLIB_H
4310 #ifdef HAVE_UNISTD_H
4314 char *(*pfn) = (char *(*)) strstr
4317 if { (eval echo configure
:4318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4319 bfd_cv_decl_needed_strstr
=no
4321 echo "configure: failed program was:" >&5
4322 cat conftest.
$ac_ext >&5
4324 bfd_cv_decl_needed_strstr
=yes
4329 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4330 if test $bfd_cv_decl_needed_strstr = yes; then
4331 cat >> confdefs.h
<<\EOF
4332 #define NEED_DECLARATION_STRSTR 1
4337 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4338 echo "configure:4339: checking whether malloc must be declared" >&5
4339 if eval "test \"\${bfd_cv_decl_needed_malloc+set}\" = set"; then
4340 echo $ac_n "(cached) $ac_c" 1>&6
4342 cat > conftest.
$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4347 #ifdef HAVE_STRING_H
4350 #ifdef HAVE_STRINGS_H
4351 #include <strings.h>
4354 #ifdef HAVE_STDLIB_H
4357 #ifdef HAVE_UNISTD_H
4361 char *(*pfn) = (char *(*)) malloc
4364 if { (eval echo configure
:4365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4366 bfd_cv_decl_needed_malloc
=no
4368 echo "configure: failed program was:" >&5
4369 cat conftest.
$ac_ext >&5
4371 bfd_cv_decl_needed_malloc
=yes
4376 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4377 if test $bfd_cv_decl_needed_malloc = yes; then
4378 cat >> confdefs.h
<<\EOF
4379 #define NEED_DECLARATION_MALLOC 1
4384 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4385 echo "configure:4386: checking whether realloc must be declared" >&5
4386 if eval "test \"\${bfd_cv_decl_needed_realloc+set}\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 cat > conftest.
$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4394 #ifdef HAVE_STRING_H
4397 #ifdef HAVE_STRINGS_H
4398 #include <strings.h>
4401 #ifdef HAVE_STDLIB_H
4404 #ifdef HAVE_UNISTD_H
4408 char *(*pfn) = (char *(*)) realloc
4411 if { (eval echo configure
:4412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4413 bfd_cv_decl_needed_realloc
=no
4415 echo "configure: failed program was:" >&5
4416 cat conftest.
$ac_ext >&5
4418 bfd_cv_decl_needed_realloc
=yes
4423 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4424 if test $bfd_cv_decl_needed_realloc = yes; then
4425 cat >> confdefs.h
<<\EOF
4426 #define NEED_DECLARATION_REALLOC 1
4431 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4432 echo "configure:4433: checking whether free must be declared" >&5
4433 if eval "test \"\${bfd_cv_decl_needed_free+set}\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 cat > conftest.
$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4441 #ifdef HAVE_STRING_H
4444 #ifdef HAVE_STRINGS_H
4445 #include <strings.h>
4448 #ifdef HAVE_STDLIB_H
4451 #ifdef HAVE_UNISTD_H
4455 char *(*pfn) = (char *(*)) free
4458 if { (eval echo configure
:4459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4460 bfd_cv_decl_needed_free
=no
4462 echo "configure: failed program was:" >&5
4463 cat conftest.
$ac_ext >&5
4465 bfd_cv_decl_needed_free
=yes
4470 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4471 if test $bfd_cv_decl_needed_free = yes; then
4472 cat >> confdefs.h
<<\EOF
4473 #define NEED_DECLARATION_FREE 1
4478 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4479 echo "configure:4480: checking whether getenv must be declared" >&5
4480 if eval "test \"\${bfd_cv_decl_needed_getenv+set}\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 cat > conftest.
$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4488 #ifdef HAVE_STRING_H
4491 #ifdef HAVE_STRINGS_H
4492 #include <strings.h>
4495 #ifdef HAVE_STDLIB_H
4498 #ifdef HAVE_UNISTD_H
4502 char *(*pfn) = (char *(*)) getenv
4505 if { (eval echo configure
:4506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4507 bfd_cv_decl_needed_getenv
=no
4509 echo "configure: failed program was:" >&5
4510 cat conftest.
$ac_ext >&5
4512 bfd_cv_decl_needed_getenv
=yes
4517 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4518 if test $bfd_cv_decl_needed_getenv = yes; then
4519 cat >> confdefs.h
<<\EOF
4520 #define NEED_DECLARATION_GETENV 1
4526 # If we are configured native, pick a core file support file.
4530 if test "${target}" = "${host}"; then
4532 alpha
*-*-linux-gnu*)
4533 COREFILE
=trad-core.lo
4534 TRAD_HEADER
='"hosts/alphalinux.h"'
4536 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
4537 alpha
*-*-*) COREFILE
=osf-core.lo
;;
4538 arm-
*-riscix) COREFILE
=trad-core.lo
;;
4539 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
4540 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
4541 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
4542 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
4543 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
4545 COREFILE
=trad-core.lo
4546 TRAD_HEADER
='"hosts/i370linux.h"'
4549 i
[3456]86-sequent-bsd*)
4550 COREFILE
=trad-core.lo
4551 TRAD_HEADER
='"hosts/symmetry.h"'
4553 i
[3456]86-sequent-sysv4*) ;;
4554 i
[3456]86-sequent-sysv*)
4555 COREFILE
=trad-core.lo
4556 TRAD_HEADER
='"hosts/symmetry.h"'
4558 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
4559 COREFILE
=trad-core.lo
4560 TRAD_HEADER
='"hosts/i386bsd.h"'
4562 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
4563 COREFILE
=netbsd-core.lo
4565 i
[3456]86-esix-sysv3*)
4566 COREFILE
=trad-core.lo
4567 TRAD_HEADER
='"hosts/esix.h"'
4569 i
[3456]86-*-sco3.2v5
*)
4570 COREFILE
=sco5-core.lo
4572 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
4573 COREFILE
=trad-core.lo
4574 TRAD_HEADER
='"hosts/i386sco.h"'
4577 COREFILE
=trad-core.lo
4578 TRAD_HEADER
='"hosts/i386mach3.h"'
4580 i
[3456]86-*-linux-gnu*)
4581 COREFILE
=trad-core.lo
4582 TRAD_HEADER
='"hosts/i386linux.h"'
4584 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
4585 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
4586 i860-
*-mach3* | i860-
*-osf1*)
4587 COREFILE
=trad-core.lo
4588 TRAD_HEADER
='"hosts/i860mach3.h"'
4591 COREFILE
=trad-core.lo
4592 TRAD_HEADER
='"hosts/mipsbsd.h"'
4595 COREFILE
=trad-core.lo
4596 TRAD_HEADER
='"hosts/mipsmach3.h"'
4598 mips-
*-netbsd* | mips
*-*-openbsd*)
4599 COREFILE
=netbsd-core.lo
4602 COREFILE
=trad-core.lo
4603 TRAD_HEADER
='"hosts/decstation.h"'
4605 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
4606 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
4607 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
4609 COREFILE
=trad-core.lo
4610 TRAD_HEADER
='"hosts/mipsmach3.h"'
4613 mips-
*-sysv* | mips-
*-riscos*)
4614 COREFILE
=trad-core.lo
4615 TRAD_HEADER
='"hosts/riscos.h"'
4618 COREFILE
=trad-core.lo
4619 TRAD_HEADER
='"hosts/news-mips.h"'
4622 COREFILE
=trad-core.lo
4623 TRAD_HEADER
='"hosts/dpx2.h"'
4625 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
4627 COREFILE
=trad-core.lo
4628 TRAD_HEADER
='"hosts/hp300bsd.h"'
4631 COREFILE
=trad-core.lo
4632 TRAD_HEADER
='"hosts/m68klinux.h"'
4634 m68
*-motorola-sysv*)
4635 COREFILE
=trad-core.lo
4636 TRAD_HEADER
='"hosts/delta68.h"'
4639 COREFILE
=trad-core.lo
4640 TRAD_HEADER
='"hosts/news.h"'
4642 m68
*-*-netbsd* | m68
*-*-openbsd*)
4643 COREFILE
=netbsd-core.lo
4646 COREFILE
=trad-core.lo
4647 TRAD_HEADER
='"hosts/m68kaux.h"'
4650 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
4652 COREFILE
=trad-core.lo
4653 TRAD_HEADER
='"hosts/m88kmach3.h"'
4656 COREFILE
=trad-core.lo
4657 TRAD_HEADER
='"hosts/pc532mach.h"'
4659 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
4660 COREFILE
=netbsd-core.lo
4662 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
4663 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4664 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
4665 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
4666 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
4667 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
4669 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
4670 sparc-
*-netbsd* | sparc-
*-openbsd*)
4671 COREFILE
=netbsd-core.lo
4674 COREFILE
=trad-core.lo
4675 TRAD_HEADER
='"hosts/tahoe.h"'
4678 COREFILE
=trad-core.lo
4679 TRAD_HEADER
='"hosts/vaxult2.h"'
4682 COREFILE
=trad-core.lo
4683 TRAD_HEADER
='"hosts/vaxult2.h"'
4686 COREFILE
=trad-core.lo
4687 TRAD_HEADER
='"hosts/vaxbsd.h"'
4692 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
4693 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
4694 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
4695 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
4696 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
4697 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
4698 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
4699 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
4700 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
4701 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
4702 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
4705 # ELF corefile support has several flavors, but all of
4706 # them use something called <sys/procfs.h>
4707 for ac_hdr
in sys
/procfs.h
4709 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_hdr" >&5
4712 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 cat > conftest.
$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4720 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4721 { (eval echo configure
:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4722 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4723 if test -z "$ac_err"; then
4725 eval "ac_cv_header_$ac_safe=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 eval "ac_cv_header_$ac_safe=no"
4735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4738 cat >> confdefs.h
<<EOF
4739 #define $ac_tr_hdr 1
4743 echo "$ac_t""no" 1>&6
4747 if test "$ac_cv_header_sys_procfs_h" = yes; then
4748 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
4749 echo "configure:4750: checking for prstatus_t in sys/procfs.h" >&5
4750 if eval "test \"\${bfd_cv_have_sys_procfs_type_prstatus_t+set}\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 cat > conftest.
$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 #include <sys/procfs.h>
4761 if { (eval echo configure
:4762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4763 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
4765 echo "configure: failed program was:" >&5
4766 cat conftest.
$ac_ext >&5
4768 bfd_cv_have_sys_procfs_type_prstatus_t
=no
4774 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
4775 cat >> confdefs.h
<<\EOF
4776 #define HAVE_PRSTATUS_T 1
4780 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
4782 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
4783 echo "configure:4784: checking for prstatus_t.pr_who in sys/procfs.h" >&5
4784 if eval "test \"\${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 cat > conftest.
$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4790 #include <sys/procfs.h>
4792 prstatus_t avar; void* aref = (void*) &avar.pr_who
4795 if { (eval echo configure
:4796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4797 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
4799 echo "configure: failed program was:" >&5
4800 cat conftest.
$ac_ext >&5
4802 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
4808 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
4809 cat >> confdefs.h
<<\EOF
4810 #define HAVE_PRSTATUS_T_PR_WHO 1
4814 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
4816 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4817 echo "configure:4818: checking for pstatus_t in sys/procfs.h" >&5
4818 if eval "test \"\${bfd_cv_have_sys_procfs_type_pstatus_t+set}\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 cat > conftest.
$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4824 #include <sys/procfs.h>
4829 if { (eval echo configure
:4830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4831 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4833 echo "configure: failed program was:" >&5
4834 cat conftest.
$ac_ext >&5
4836 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4842 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4843 cat >> confdefs.h
<<\EOF
4844 #define HAVE_PSTATUS_T 1
4848 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4850 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
4851 echo "configure:4852: checking for prpsinfo_t in sys/procfs.h" >&5
4852 if eval "test \"\${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 cat > conftest.
$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4858 #include <sys/procfs.h>
4863 if { (eval echo configure
:4864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4865 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
4867 echo "configure: failed program was:" >&5
4868 cat conftest.
$ac_ext >&5
4870 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
4876 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
4877 cat >> confdefs.h
<<\EOF
4878 #define HAVE_PRPSINFO_T 1
4882 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
4884 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
4885 echo "configure:4886: checking for psinfo_t in sys/procfs.h" >&5
4886 if eval "test \"\${bfd_cv_have_sys_procfs_type_psinfo_t+set}\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 cat > conftest.
$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 #include <sys/procfs.h>
4897 if { (eval echo configure
:4898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4899 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
4901 echo "configure: failed program was:" >&5
4902 cat conftest.
$ac_ext >&5
4904 bfd_cv_have_sys_procfs_type_psinfo_t
=no
4910 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
4911 cat >> confdefs.h
<<\EOF
4912 #define HAVE_PSINFO_T 1
4916 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
4918 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
4919 echo "configure:4920: checking for lwpstatus_t in sys/procfs.h" >&5
4920 if eval "test \"\${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 cat > conftest.
$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 #include <sys/procfs.h>
4931 if { (eval echo configure
:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4933 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
4935 echo "configure: failed program was:" >&5
4936 cat conftest.
$ac_ext >&5
4938 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
4944 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
4945 cat >> confdefs.h
<<\EOF
4946 #define HAVE_LWPSTATUS_T 1
4950 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
4952 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
4953 echo "configure:4954: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
4954 if eval "test \"\${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 cat > conftest.
$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 #include <sys/procfs.h>
4962 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
4965 if { (eval echo configure
:4966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4967 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
4969 echo "configure: failed program was:" >&5
4970 cat conftest.
$ac_ext >&5
4972 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
4978 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
4979 cat >> confdefs.h
<<\EOF
4980 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
4984 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
4986 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
4987 echo "configure:4988: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
4988 if eval "test \"\${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}\" = set"; then
4989 echo $ac_n "(cached) $ac_c" 1>&6
4991 cat > conftest.
$ac_ext <<EOF
4992 #line 4993 "configure"
4993 #include "confdefs.h"
4994 #include <sys/procfs.h>
4996 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
4999 if { (eval echo configure
:5000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5001 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
5003 echo "configure: failed program was:" >&5
5004 cat conftest.
$ac_ext >&5
5006 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
5012 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5013 cat >> confdefs.h
<<\EOF
5014 #define HAVE_LWPSTATUS_T_PR_REG 1
5018 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5020 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5021 echo "configure:5022: checking for win32_pstatus_t in sys/procfs.h" >&5
5022 if eval "test \"\${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6
5025 cat > conftest.
$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5028 #include <sys/procfs.h>
5030 win32_pstatus_t avar
5033 if { (eval echo configure
:5034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5035 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
5037 echo "configure: failed program was:" >&5
5038 cat conftest.
$ac_ext >&5
5040 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
5046 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5047 cat >> confdefs.h
<<\EOF
5048 #define HAVE_WIN32_PSTATUS_T 1
5052 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5058 cat >> confdefs.h
<<EOF
5059 #define TRAD_HEADER $TRAD_HEADER
5063 # Horrible hacks to build DLLs on Windows.
5068 if test "$enable_shared" = "yes"; then
5069 WIN32LDFLAGS
="-no-undefined"
5070 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5079 # Canonicalize the secondary target names.
5080 if test -n "$enable_targets" ; then
5081 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5083 result
=`$ac_config_sub $targ 2>/dev/null`
5084 if test -n "$result" ; then
5085 canon_targets
="$canon_targets $result"
5087 # Allow targets that config.sub doesn't recognize, like "all".
5088 canon_targets
="$canon_targets $targ"
5098 for targ
in $target $canon_targets
5100 if test "x$targ" = "xall"; then
5103 .
$srcdir/config.bfd
5104 if test "x$targ" = "x$target"; then
5107 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5108 selarchs
="$selarchs $targ_archs"
5109 TDEFINES
="$TDEFINES $targ_cflags"
5114 # This processing still needs to be done if we're to decide properly whether
5115 # 64-bit support needs to be compiled in. Currently, it will be included if
5116 # the default or any other explicitly requested target requires it; it
5117 # will not be included on a 32-bit host if no 64-bit target is requested, and
5118 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5121 # uniq the default and selected vectors in all the configured targets.
5123 for i
in $selvecs ; do
5132 # uniq the architectures in all the configured targets.
5134 for i
in $selarchs ; do
5142 # Target backend .o files.
5145 elf
="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
5150 # This list is alphabetized to make it easy to compare
5151 # with the two vector lists in targets.c.
5152 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5153 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5154 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5155 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5156 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5157 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5158 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5159 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5160 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5161 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5162 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5163 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5164 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5165 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5166 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5167 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5168 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5169 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5170 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5171 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5172 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5173 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
5175 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
5176 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5177 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5178 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5179 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5180 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5181 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5182 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5183 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5184 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5186 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5187 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5188 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5189 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5190 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5191 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5192 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5193 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5194 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5195 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5196 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5198 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5199 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5200 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5201 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5202 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5203 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5204 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5205 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5206 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5207 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5208 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5209 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5210 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5211 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
5212 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
5213 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5215 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5217 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
5219 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
5220 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
5221 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
5223 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5224 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5225 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5226 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
5228 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
5229 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
5230 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
5231 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
5232 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
5233 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
5234 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
5235 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
5236 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
5237 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
5238 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
5239 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
5240 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
5241 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
5242 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
5243 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
5244 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
5245 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
5246 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
5247 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
5248 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
5249 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
5250 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5251 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5252 ieee_vec
) tb
="$tb ieee.lo" ;;
5253 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
5254 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
5255 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
5256 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
5257 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
5258 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
5259 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
5260 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
5261 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
5262 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
5263 mipslpe_vec
) tb
="$tb pe-mips.lo cofflink.lo" ;;
5264 mipslpei_vec
) tb
="$tb pei-mips.lo cofflink.lo" ;;
5265 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5266 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5267 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5268 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5269 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
5270 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
5271 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
5272 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
5274 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
5275 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
5276 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
5277 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
5278 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
5279 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
5280 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5281 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5282 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5283 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5284 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
5285 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5286 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5287 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5288 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5289 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo cofflink.lo" ;;
5290 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo cofflink.lo" ;;
5291 som_vec
) tb
="$tb som.lo" ;;
5292 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
5293 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
5294 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
5295 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
5296 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
5297 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
5298 srec_vec
) tb
="$tb srec.lo" ;;
5299 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
5300 symbolsrec_vec
) tb
="$tb srec.lo" ;;
5301 tekhex_vec
) tb
="$tb tekhex.lo" ;;
5302 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
5303 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
5304 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
5305 versados_vec
) tb
="$tb versados.lo" ;;
5306 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
5308 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
5309 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
5310 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
5311 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
5314 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
5318 # Target architecture .o files.
5319 # A couple of CPUs use shorter file names to avoid problems on DOS
5321 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5323 # Weed out duplicate .o files.
5345 if test x
${all_targets} = xtrue
; then
5346 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
5347 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
5351 else # all_targets is true
5352 # Only set these if they will be nonempty, for the clever echo.
5354 test -n "$selvecs" &&
5355 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
5356 test -n "$selvecs" &&
5357 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5358 test -n "$selarchs" &&
5359 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
5360 fi # all_targets is true
5362 case ${host64}-${target64}-${want64} in
5365 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
5366 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
5367 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
5368 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
5373 all_backends
='$(BFD32_BACKENDS)'
5383 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
5384 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
5385 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
5386 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
5389 for ac_hdr
in unistd.h
5391 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5393 echo "configure:5394: checking for $ac_hdr" >&5
5394 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.
$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5403 { (eval echo configure
:5404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5404 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5405 if test -z "$ac_err"; then
5407 eval "ac_cv_header_$ac_safe=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5413 eval "ac_cv_header_$ac_safe=no"
5417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5419 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5420 cat >> confdefs.h
<<EOF
5421 #define $ac_tr_hdr 1
5425 echo "$ac_t""no" 1>&6
5429 for ac_func
in getpagesize
5431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5432 echo "configure:5433: checking for $ac_func" >&5
5433 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 cat > conftest.
$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 /* System header to define __stub macros and hopefully few prototypes,
5440 which can conflict with char $ac_func(); below. */
5442 /* Override any gcc2 internal prototype to avoid an error. */
5443 /* We use char because int might match the return type of a gcc2
5444 builtin and then its argument prototype would still apply. */
5450 /* The GNU C library defines this for functions which it implements
5451 to always fail with ENOSYS. Some functions are actually named
5452 something starting with __ and the normal name is an alias. */
5453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5461 if { (eval echo configure
:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5463 eval "ac_cv_func_$ac_func=yes"
5465 echo "configure: failed program was:" >&5
5466 cat conftest.
$ac_ext >&5
5468 eval "ac_cv_func_$ac_func=no"
5473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5474 echo "$ac_t""yes" 1>&6
5475 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5476 cat >> confdefs.h
<<EOF
5477 #define $ac_tr_func 1
5481 echo "$ac_t""no" 1>&6
5485 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5486 echo "configure:5487: checking for working mmap" >&5
5487 if eval "test \"\${ac_cv_func_mmap_fixed_mapped+set}\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 if test "$cross_compiling" = yes; then
5491 ac_cv_func_mmap_fixed_mapped
=no
5493 cat > conftest.
$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5497 /* Thanks to Mike Haertel and Jim Avera for this test.
5498 Here is a matrix of mmap possibilities:
5499 mmap private not fixed
5500 mmap private fixed at somewhere currently unmapped
5501 mmap private fixed at somewhere already mapped
5502 mmap shared not fixed
5503 mmap shared fixed at somewhere currently unmapped
5504 mmap shared fixed at somewhere already mapped
5505 For private mappings, we should verify that changes cannot be read()
5506 back from the file, nor mmap's back from the file at a different
5507 address. (There have been systems where private was not correctly
5508 implemented like the infamous i386 svr4.0, and systems where the
5509 VM page cache was not coherent with the filesystem buffer cache
5510 like early versions of FreeBSD and possibly contemporary NetBSD.)
5511 For shared mappings, we should conversely verify that changes get
5512 propogated back to all the places they're supposed to be.
5514 Grep wants private fixed already mapped.
5515 The main things grep needs to know about mmap are:
5516 * does it exist and is it safe to write into the mmap'd area
5517 * how to use it (BSD variants) */
5518 #include <sys/types.h>
5520 #include <sys/mman.h>
5522 /* This mess was copied from the GNU getpagesize.h. */
5523 #ifndef HAVE_GETPAGESIZE
5524 # ifdef HAVE_UNISTD_H
5525 # include <unistd.h>
5528 /* Assume that all systems that can run configure have sys/param.h. */
5529 # ifndef HAVE_SYS_PARAM_H
5530 # define HAVE_SYS_PARAM_H 1
5533 # ifdef _SC_PAGESIZE
5534 # define getpagesize() sysconf(_SC_PAGESIZE)
5535 # else /* no _SC_PAGESIZE */
5536 # ifdef HAVE_SYS_PARAM_H
5537 # include <sys/param.h>
5538 # ifdef EXEC_PAGESIZE
5539 # define getpagesize() EXEC_PAGESIZE
5540 # else /* no EXEC_PAGESIZE */
5542 # define getpagesize() NBPG * CLSIZE
5545 # endif /* no CLSIZE */
5546 # else /* no NBPG */
5548 # define getpagesize() NBPC
5549 # else /* no NBPC */
5551 # define getpagesize() PAGESIZE
5552 # endif /* PAGESIZE */
5553 # endif /* no NBPC */
5554 # endif /* no NBPG */
5555 # endif /* no EXEC_PAGESIZE */
5556 # else /* no HAVE_SYS_PARAM_H */
5557 # define getpagesize() 8192 /* punt totally */
5558 # endif /* no HAVE_SYS_PARAM_H */
5559 # endif /* no _SC_PAGESIZE */
5561 #endif /* no HAVE_GETPAGESIZE */
5564 extern "C" { void *malloc(unsigned); }
5572 char *data, *data2, *data3;
5576 pagesize = getpagesize();
5579 * First, make a file with some known garbage in it.
5581 data = malloc(pagesize);
5584 for (i = 0; i < pagesize; ++i)
5585 *(data + i) = rand();
5587 fd = creat("conftestmmap", 0600);
5590 if (write(fd, data, pagesize) != pagesize)
5595 * Next, try to mmap the file at a fixed address which
5596 * already has something else allocated at it. If we can,
5597 * also make sure that we see the same garbage.
5599 fd = open("conftestmmap", O_RDWR);
5602 data2 = malloc(2 * pagesize);
5605 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5606 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5607 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5609 for (i = 0; i < pagesize; ++i)
5610 if (*(data + i) != *(data2 + i))
5614 * Finally, make sure that changes to the mapped area
5615 * do not percolate back to the file as seen by read().
5616 * (This is a bug on some variants of i386 svr4.0.)
5618 for (i = 0; i < pagesize; ++i)
5619 *(data2 + i) = *(data2 + i) + 1;
5620 data3 = malloc(pagesize);
5623 if (read(fd, data3, pagesize) != pagesize)
5625 for (i = 0; i < pagesize; ++i)
5626 if (*(data + i) != *(data3 + i))
5629 unlink("conftestmmap");
5634 if { (eval echo configure
:5635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5636 ac_cv_func_mmap_fixed_mapped
=yes
5638 echo "configure: failed program was:" >&5
5639 cat conftest.
$ac_ext >&5
5641 ac_cv_func_mmap_fixed_mapped
=no
5648 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5649 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5650 cat >> confdefs.h
<<\EOF
5656 for ac_func
in madvise mprotect
5658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5659 echo "configure:5660: checking for $ac_func" >&5
5660 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5663 cat > conftest.
$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5666 /* System header to define __stub macros and hopefully few prototypes,
5667 which can conflict with char $ac_func(); below. */
5669 /* Override any gcc2 internal prototype to avoid an error. */
5670 /* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
5677 /* The GNU C library defines this for functions which it implements
5678 to always fail with ENOSYS. Some functions are actually named
5679 something starting with __ and the normal name is an alias. */
5680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5688 if { (eval echo configure
:5689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5690 eval "ac_cv_func_$ac_func=yes"
5692 echo "configure: failed program was:" >&5
5693 cat conftest.
$ac_ext >&5
5695 eval "ac_cv_func_$ac_func=no"
5700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5701 echo "$ac_t""yes" 1>&6
5702 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5703 cat >> confdefs.h
<<EOF
5704 #define $ac_tr_func 1
5708 echo "$ac_t""no" 1>&6
5712 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
5713 true
+yes ) cat >> confdefs.h
<<\EOF
5719 rm -f doc
/config.status
5721 cat > confcache
<<\EOF
5722 # This file is a shell script that caches the results of configure
5723 # tests run on this system so they can be shared between configure
5724 # scripts and configure runs. It is not useful on other systems.
5725 # If it contains results you don't want to keep, you may remove or edit it.
5727 # By default, configure uses ./config.cache as the cache file,
5728 # creating it if it does not exist already. You can give configure
5729 # the --cache-file=FILE option to use a different cache file; that is
5730 # what configure does when it calls configure scripts in
5731 # subdirectories, so they share the cache.
5732 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5733 # config.status only pays attention to the cache file if you give it the
5734 # --recheck option to rerun configure.
5737 # The following way of writing the cache mishandles newlines in values,
5738 # but we know of no workaround that is simple, portable, and efficient.
5739 # So, don't put newlines in cache variables' values.
5740 # Ultrix sh set writes to stderr and can't be redirected directly,
5741 # and sets the high bit in the cache file unless we assign to the vars.
5743 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5745 # `set' does not quote correctly, so add quotes (double-quote substitution
5746 # turns \\\\ into \\, and sed turns \\ into \).
5748 -e "s/'/'\\\\''/g" \
5749 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5752 # `set' quotes correctly as required by POSIX, so do not add quotes.
5753 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5756 if cmp -s $cache_file confcache
; then
5759 if test -w $cache_file; then
5760 echo "updating cache $cache_file"
5761 cat confcache
> $cache_file
5763 echo "not updating unwritable cache $cache_file"
5768 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5770 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5771 # Let make expand exec_prefix.
5772 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5774 # Any assignment to VPATH causes Sun make to only execute
5775 # the first set of double-colon rules, so remove it if not needed.
5776 # If there is a colon in the path, we need to keep it.
5777 if test "x$srcdir" = x.
; then
5778 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5781 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5783 DEFS
=-DHAVE_CONFIG_H
5785 # Without the "./", some shells look in PATH for config.status.
5786 : ${CONFIG_STATUS=./config.status}
5788 echo creating
$CONFIG_STATUS
5789 rm -f $CONFIG_STATUS
5790 cat > $CONFIG_STATUS <<EOF
5792 # Generated automatically by configure.
5793 # Run this file to recreate the current configuration.
5794 # This directory was configured as follows,
5795 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5797 # $0 $ac_configure_args
5799 # Compiler output produced by configure, useful for debugging
5800 # configure, is in ./config.log if it exists.
5802 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5805 case "\$ac_option" in
5806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5807 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5808 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5809 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5810 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
5812 -help | --help | --hel | --he | --h)
5813 echo "\$ac_cs_usage"; exit 0 ;;
5814 *) echo "\$ac_cs_usage"; exit 1 ;;
5818 ac_given_srcdir=$srcdir
5819 ac_given_INSTALL="$INSTALL"
5821 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5823 cat >> $CONFIG_STATUS <<EOF
5825 # Protect against being on the right side of a sed subst in config.status.
5826 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5827 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5831 s%@CFLAGS@%$CFLAGS%g
5832 s%@CPPFLAGS@%$CPPFLAGS%g
5833 s%@CXXFLAGS@%$CXXFLAGS%g
5834 s%@FFLAGS@%$FFLAGS%g
5836 s%@LDFLAGS@%$LDFLAGS%g
5838 s%@exec_prefix@%$exec_prefix%g
5839 s%@prefix@%$prefix%g
5840 s%@program_transform_name@%$program_transform_name%g
5841 s%@bindir@%$bindir%g
5842 s%@sbindir@%$sbindir%g
5843 s%@libexecdir@%$libexecdir%g
5844 s%@datadir@%$datadir%g
5845 s%@sysconfdir@%$sysconfdir%g
5846 s%@sharedstatedir@%$sharedstatedir%g
5847 s%@localstatedir@%$localstatedir%g
5848 s%@libdir@%$libdir%g
5849 s%@includedir@%$includedir%g
5850 s%@oldincludedir@%$oldincludedir%g
5851 s%@infodir@%$infodir%g
5852 s%@mandir@%$mandir%g
5854 s%@host_alias@%$host_alias%g
5855 s%@host_cpu@%$host_cpu%g
5856 s%@host_vendor@%$host_vendor%g
5857 s%@host_os@%$host_os%g
5858 s%@target@%$target%g
5859 s%@target_alias@%$target_alias%g
5860 s%@target_cpu@%$target_cpu%g
5861 s%@target_vendor@%$target_vendor%g
5862 s%@target_os@%$target_os%g
5864 s%@build_alias@%$build_alias%g
5865 s%@build_cpu@%$build_cpu%g
5866 s%@build_vendor@%$build_vendor%g
5867 s%@build_os@%$build_os%g
5869 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5870 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5871 s%@INSTALL_DATA@%$INSTALL_DATA%g
5872 s%@PACKAGE@%$PACKAGE%g
5873 s%@VERSION@%$VERSION%g
5874 s%@ACLOCAL@%$ACLOCAL%g
5875 s%@AUTOCONF@%$AUTOCONF%g
5876 s%@AUTOMAKE@%$AUTOMAKE%g
5877 s%@AUTOHEADER@%$AUTOHEADER%g
5878 s%@MAKEINFO@%$MAKEINFO%g
5879 s%@SET_MAKE@%$SET_MAKE%g
5881 s%@RANLIB@%$RANLIB%g
5883 s%@LIBTOOL@%$LIBTOOL%g
5884 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5885 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5887 s%@EXEEXT@%$EXEEXT%g
5889 s%@ALLOCA@%$ALLOCA%g
5890 s%@USE_NLS@%$USE_NLS%g
5891 s%@MSGFMT@%$MSGFMT%g
5892 s%@GMSGFMT@%$GMSGFMT%g
5893 s%@XGETTEXT@%$XGETTEXT%g
5894 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5895 s%@CATALOGS@%$CATALOGS%g
5896 s%@CATOBJEXT@%$CATOBJEXT%g
5897 s%@DATADIRNAME@%$DATADIRNAME%g
5898 s%@GMOFILES@%$GMOFILES%g
5899 s%@INSTOBJEXT@%$INSTOBJEXT%g
5900 s%@INTLDEPS@%$INTLDEPS%g
5901 s%@INTLLIBS@%$INTLLIBS%g
5902 s%@INTLOBJS@%$INTLOBJS%g
5903 s%@POFILES@%$POFILES%g
5905 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5907 s%@GT_YES@%$GT_YES%g
5908 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5910 s%@HDEFINES@%$HDEFINES%g
5911 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
5912 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
5913 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
5914 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
5915 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5916 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5917 s%@COREFILE@%$COREFILE%g
5918 s%@COREFLAG@%$COREFLAG%g
5919 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
5920 s%@WIN32LIBADD@%$WIN32LIBADD%g
5921 s%@TDEFINES@%$TDEFINES%g
5922 s%@wordsize@%$wordsize%g
5923 s%@all_backends@%$all_backends%g
5924 s%@bfd_backends@%$bfd_backends%g
5925 s%@bfd_machines@%$bfd_machines%g
5926 s%@tdefaults@%$tdefaults%g
5931 cat >> $CONFIG_STATUS <<\EOF
5933 # Split the substitutions into bite-sized pieces for seds with
5934 # small command number limits, like on Digital OSF/1 and HP-UX.
5935 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5936 ac_file
=1 # Number of current file.
5937 ac_beg
=1 # First line for current file.
5938 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5941 while $ac_more_lines; do
5942 if test $ac_beg -gt 1; then
5943 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5945 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5947 if test ! -s conftest.s
$ac_file; then
5949 rm -f conftest.s
$ac_file
5951 if test -z "$ac_sed_cmds"; then
5952 ac_sed_cmds
="sed -f conftest.s$ac_file"
5954 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5956 ac_file
=`expr $ac_file + 1`
5958 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5961 if test -z "$ac_sed_cmds"; then
5966 cat >> $CONFIG_STATUS <<EOF
5968 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
5970 cat >> $CONFIG_STATUS <<\EOF
5971 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5974 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5975 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5976 *) ac_file_in
="${ac_file}.in" ;;
5979 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5981 # Remove last slash and all that follows it. Not all systems have dirname.
5982 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5983 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5984 # The file is in a subdirectory.
5985 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5986 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5987 # A "../" for each directory in $ac_dir_suffix.
5988 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5990 ac_dir_suffix
= ac_dots
=
5993 case "$ac_given_srcdir" in
5995 if test -z "$ac_dots"; then top_srcdir
=.
5996 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5997 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5999 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6000 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6003 case "$ac_given_INSTALL" in
6004 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6005 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6008 echo creating
"$ac_file"
6010 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6012 *Makefile
*) ac_comsub
="1i\\
6013 # $configure_input" ;;
6017 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6019 s%@configure_input@%$configure_input%g
6020 s%@srcdir@%$srcdir%g
6021 s%@top_srcdir@%$top_srcdir%g
6022 s%@INSTALL@%$INSTALL%g
6023 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6027 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6028 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6030 # ac_d sets the value in "#define NAME VALUE" lines.
6031 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6032 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6035 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6036 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6037 ac_uB
='\([ ]\)%\1#\2define\3'
6040 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6041 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6042 ac_eB
='$%\1#\2define\3'
6046 if test "${CONFIG_HEADERS+set}" != set; then
6048 cat >> $CONFIG_STATUS <<EOF
6049 CONFIG_HEADERS="config.h:config.in"
6051 cat >> $CONFIG_STATUS <<\EOF
6053 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6056 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6057 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6058 *) ac_file_in
="${ac_file}.in" ;;
6061 echo creating
$ac_file
6063 rm -f conftest.frag conftest.
in conftest.out
6064 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6065 cat $ac_file_inputs > conftest.
in
6069 # Transform confdefs.h into a sed script conftest.vals that substitutes
6070 # the proper values into config.h.in to produce config.h. And first:
6071 # Protect against being on the right side of a sed subst in config.status.
6072 # Protect against being in an unquoted here document in config.status.
6074 cat > conftest.hdr
<<\EOF
6077 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6081 sed -n -f conftest.hdr confdefs.h > conftest.vals
6084 # This sed command replaces #undef with comments. This is necessary, for
6085 # example, in the case of _POSIX_SOURCE, which is predefined and required
6086 # on some systems where configure will not decide to define it.
6087 cat >> conftest.vals <<\EOF
6088 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6091 # Break up conftest.vals because some shells have a limit on
6092 # the size of here documents, and old seds have small limits too.
6097 ac_lines=`grep -c . conftest.vals
`
6098 # grep -c gives empty output for an empty file on some AIX systems.
6099 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6100 # Write a limited-size here document to conftest.frag.
6101 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6102 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6104 sed -f conftest.frag conftest.in > conftest.out
6106 mv conftest.out conftest.in
6108 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6110 mv conftest.tail conftest.vals
6114 cat >> $CONFIG_STATUS <<\EOF
6115 rm -f conftest.frag conftest.h
6116 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6117 cat conftest.in >> conftest.h
6119 if cmp -s $ac_file conftest.h 2>/dev/null; then
6120 echo "$ac_file is unchanged"
6123 # Remove last slash and all that follows it. Not all systems have dirname.
6124 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6125 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6126 # The file is in a subdirectory.
6127 test ! -d "$ac_dir" && mkdir "$ac_dir"
6130 mv conftest.h $ac_file
6135 cat >> $CONFIG_STATUS <<EOF
6139 cat >> $CONFIG_STATUS <<\EOF
6140 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6141 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6144 chmod +x $CONFIG_STATUS
6145 rm -fr confdefs* $ac_clean_files
6146 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1