3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.8
5 # Copyright (C) 1992, 1993, 1994 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-targets alternative target configurations"
17 --enable-shared build shared BFD library"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file
=.
/config.cache
32 program_transform_name
=s
,x
,x
,
40 bindir
='${exec_prefix}/bin'
41 sbindir
='${exec_prefix}/sbin'
42 libexecdir
='${exec_prefix}/libexec'
43 datadir
='${prefix}/share'
44 sysconfdir
='${prefix}/etc'
45 sharedstatedir
='${prefix}/com'
46 localstatedir
='${prefix}/var'
47 libdir
='${exec_prefix}/lib'
48 includedir
='${prefix}/include'
49 oldincludedir
='/usr/include'
50 infodir
='${prefix}/info'
51 mandir
='${prefix}/man'
53 # Initialize some other variables.
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
69 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 # Accept the important Cygnus configure options, so we can diagnose typos.
77 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
79 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
80 bindir
="$ac_optarg" ;;
82 -build |
--build |
--buil |
--bui |
--bu)
84 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
87 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
88 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
90 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
91 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
92 cache_file
="$ac_optarg" ;;
94 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
96 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
98 datadir
="$ac_optarg" ;;
100 -disable-* |
--disable-*)
101 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
109 -enable-* |
--enable-*)
110 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
122 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
123 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
124 |
--exec |
--exe |
--ex)
125 ac_prev
=exec_prefix
;;
126 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
127 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
128 |
--exec=* |
--exe=* |
--ex=*)
129 exec_prefix
="$ac_optarg" ;;
131 -gas |
--gas |
--ga |
--g)
132 # Obsolete; use --with-gas.
135 -help |
--help |
--hel |
--he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147 Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 --bindir=DIR user executables in DIR [EPREFIX/bin]
153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155 --datadir=DIR read-only architecture-independent data in DIR
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162 --includedir=DIR C header files in DIR [PREFIX/include]
163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164 --infodir=DIR info documentation in DIR [PREFIX/info]
165 --mandir=DIR man documentation in DIR [PREFIX/man]
166 --srcdir=DIR find the sources in DIR [configure dir or ..]
167 --program-prefix=PREFIX prepend PREFIX to installed program names
168 --program-suffix=SUFFIX append SUFFIX to installed program names
169 --program-transform-name=PROGRAM
170 run sed PROGRAM on installed program names
174 --build=BUILD configure for building on BUILD [BUILD=HOST]
175 --host=HOST configure for HOST [guessed]
176 --target=TARGET configure for TARGET [TARGET=HOST]
177 Features and packages:
178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182 --x-includes=DIR X include files are in DIR
183 --x-libraries=DIR X library files are in DIR
185 if test -n "$ac_help"; then
186 echo "--enable and --with options recognized:$ac_help"
190 -host |
--host |
--hos |
--ho)
192 -host=* |
--host=* |
--hos=* |
--ho=*)
195 -includedir |
--includedir |
--includedi |
--included |
--include \
196 |
--includ |
--inclu |
--incl |
--inc)
197 ac_prev
=includedir
;;
198 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
199 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
200 includedir
="$ac_optarg" ;;
202 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
204 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
205 infodir
="$ac_optarg" ;;
207 -libdir |
--libdir |
--libdi |
--libd)
209 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
210 libdir
="$ac_optarg" ;;
212 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
213 |
--libexe |
--libex |
--libe)
214 ac_prev
=libexecdir
;;
215 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
216 |
--libexe=* |
--libex=* |
--libe=*)
217 libexecdir
="$ac_optarg" ;;
219 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
220 |
--localstate |
--localstat |
--localsta |
--localst \
221 |
--locals |
--local |
--loca |
--loc |
--lo)
222 ac_prev
=localstatedir
;;
223 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
224 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
225 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
226 localstatedir
="$ac_optarg" ;;
228 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
230 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
231 mandir
="$ac_optarg" ;;
234 # Obsolete; use --without-fp.
237 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
241 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
242 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
245 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
246 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
247 |
--oldin |
--oldi |
--old |
--ol |
--o)
248 ac_prev
=oldincludedir
;;
249 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
250 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
251 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
252 oldincludedir
="$ac_optarg" ;;
254 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
256 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
257 prefix
="$ac_optarg" ;;
259 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
260 |
--program-pre |
--program-pr |
--program-p)
261 ac_prev
=program_prefix
;;
262 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
263 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
264 program_prefix
="$ac_optarg" ;;
266 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
267 |
--program-suf |
--program-su |
--program-s)
268 ac_prev
=program_suffix
;;
269 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
270 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
271 program_suffix
="$ac_optarg" ;;
273 -program-transform-name |
--program-transform-name \
274 |
--program-transform-nam |
--program-transform-na \
275 |
--program-transform-n |
--program-transform- \
276 |
--program-transform |
--program-transfor \
277 |
--program-transfo |
--program-transf \
278 |
--program-trans |
--program-tran \
279 |
--progr-tra |
--program-tr |
--program-t)
280 ac_prev
=program_transform_name
;;
281 -program-transform-name=* |
--program-transform-name=* \
282 |
--program-transform-nam=* |
--program-transform-na=* \
283 |
--program-transform-n=* |
--program-transform-=* \
284 |
--program-transform=* |
--program-transfor=* \
285 |
--program-transfo=* |
--program-transf=* \
286 |
--program-trans=* |
--program-tran=* \
287 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
288 program_transform_name
="$ac_optarg" ;;
290 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
291 |
-silent |
--silent |
--silen |
--sile |
--sil)
294 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
296 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
298 sbindir
="$ac_optarg" ;;
300 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
301 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
302 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
304 ac_prev
=sharedstatedir
;;
305 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
306 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
307 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
309 sharedstatedir
="$ac_optarg" ;;
311 -site |
--site |
--sit)
313 -site=* |
--site=* |
--sit=*)
316 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
318 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
319 srcdir
="$ac_optarg" ;;
321 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
322 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
323 ac_prev
=sysconfdir
;;
324 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
325 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
326 sysconfdir
="$ac_optarg" ;;
328 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
330 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
331 target
="$ac_optarg" ;;
333 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
336 -version |
--version |
--versio |
--versi |
--vers)
337 echo "configure generated by autoconf version 2.8"
341 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342 # Reject names that are not valid shell variable names.
343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 ac_package
=`echo $ac_package| sed 's/-/_/g'`
351 eval "with_${ac_package}='$ac_optarg'" ;;
353 -without-* |
--without-*)
354 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package
=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}=no" ;;
363 # Obsolete; use --with-x.
366 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
367 |
--x-incl |
--x-inc |
--x-in |
--x-i)
368 ac_prev
=x_includes
;;
369 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
370 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
371 x_includes
="$ac_optarg" ;;
373 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
374 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
375 ac_prev
=x_libraries
;;
376 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
377 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
378 x_libraries
="$ac_optarg" ;;
380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 if test "x$nonopt" != xNONE
; then
388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396 if test -n "$ac_prev"; then
397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402 # File descriptor usage:
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
428 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
429 |
--no-cr |
--no-c) ;;
430 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
431 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
432 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
434 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
439 # Only set LANG and LC_ALL to C if already set.
440 # These must not be set unconditionally because not all systems understand
441 # e.g. LANG=C (notably SCO).
442 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
443 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
445 # confdefs.h avoids OS command line length limits that DEFS can exceed.
446 rm -rf conftest
* confdefs.h
447 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450 # A filename unique to this package, relative to the directory that
451 # configure is in, which we can look for to find out if srcdir is correct.
454 # Find the source files, if location was not specified.
455 if test -z "$srcdir"; then
456 ac_srcdir_defaulted
=yes
457 # Try the directory containing this script, then its parent.
459 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
460 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
462 if test ! -r $srcdir/$ac_unique_file; then
466 ac_srcdir_defaulted
=no
468 if test ! -r $srcdir/$ac_unique_file; then
469 if test "$ac_srcdir_defaulted" = yes; then
470 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
472 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477 # Prefer explicitly selected file to automatically selected ones.
478 if test -z "$CONFIG_SITE"; then
479 if test "x$prefix" != xNONE
; then
480 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
482 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485 for ac_site_file
in $CONFIG_SITE; do
486 if test -r "$ac_site_file"; then
487 echo "loading site script $ac_site_file"
492 if test -r "$cache_file"; then
493 echo "loading cache $cache_file"
496 echo "creating cache $cache_file"
501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
502 ac_cpp
='$CPP $CPPFLAGS'
503 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
504 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
507 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
508 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
515 ac_n
= ac_c
='\c' ac_t
=
520 # Check whether --enable-targets or --disable-targets was given.
521 if test "${enable_targets+set}" = set; then
522 enableval
="$enable_targets"
523 case "${enableval}" in
524 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
526 no
) enable_targets
= ;;
527 *) enable_targets
=$enableval ;;
530 # Check whether --enable-shared or --disable-shared was given.
531 if test "${enable_shared+set}" = set; then
532 enableval
="$enable_shared"
533 case "${enableval}" in
536 *) { echo "configure: error: bad value ${enableval} for BFD shared option" 1>&2; exit 1; } ;;
543 for ac_dir
in `cd $srcdir/..; pwd` $srcdir/`cd $srcdir/..; pwd`; do
544 if test -f $ac_dir/install-sh
; then
546 ac_install_sh
="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh
; then
550 ac_install_sh
="$ac_aux_dir/install.sh -c"
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..; pwd` $srcdir/`cd $srcdir/..; pwd`" 1>&2; exit 1; }
557 ac_config_guess
=$ac_aux_dir/config.guess
558 ac_config_sub
=$ac_aux_dir/config.sub
559 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
562 # Do some error checking and defaulting for the host and target type.
564 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
567 # 1. You are not allowed to specify --host, --target, and nonopt at the
569 # 2. Host defaults to nonopt.
570 # 3. If nonopt is not specified, then host defaults to the current host,
571 # as determined by config.guess.
572 # 4. Target and build default to nonopt.
573 # 5. If nonopt is not specified, then target and build default to host.
575 # The aliases save the names the user supplied, while $host etc.
576 # will get canonicalized.
577 case $host---$target---$nonopt in
578 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
579 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
583 # Make sure we can run config.sub.
584 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
585 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
588 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 case "$host_alias" in
595 if host_alias
=`$ac_config_guess`; then :
596 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
598 *) host_alias
=$nonopt ;;
602 host=`$ac_config_sub $host_alias`
603 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
604 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
605 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
606 echo "$ac_t""$host" 1>&6
608 echo $ac_n "checking target system type""... $ac_c" 1>&6
611 case "$target_alias" in
614 NONE
) target_alias
=$host_alias ;;
615 *) target_alias
=$nonopt ;;
619 target
=`$ac_config_sub $target_alias`
620 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
621 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
622 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
623 echo "$ac_t""$target" 1>&6
625 echo $ac_n "checking build system type""... $ac_c" 1>&6
628 case "$build_alias" in
631 NONE
) build_alias
=$host_alias ;;
632 *) build_alias
=$nonopt ;;
636 build
=`$ac_config_sub $build_alias`
637 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
638 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
639 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$build" 1>&6
642 test "$host_alias" != "$target_alias" &&
643 test "$program_prefix$program_suffix$program_transform_name" = \
645 program_prefix
=${target_alias}-
647 if test -z "$target" ; then
648 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
650 if test -z "$host" ; then
651 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
653 if test "$program_transform_name" = s
,x
,x
,; then
654 program_transform_name
=
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED
> conftestsed
658 s
,\\,\\\\,g
; s
,\$
,$$
,g
660 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
663 test "$program_prefix" != NONE
&&
664 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE
&&
667 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
673 # host-specific stuff:
677 RPATH_ENVVAR
=LD_LIBRARY_PATH
679 # Extract the first word of "gcc", so it can be a program name with args.
680 set dummy gcc
; ac_word
=$2
681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
682 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 if test -n "$CC"; then
686 ac_cv_prog_CC
="$CC" # Let the user override the test.
688 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
689 for ac_dir
in $PATH; do
690 test -z "$ac_dir" && ac_dir
=.
691 if test -f $ac_dir/$ac_word; then
700 if test -n "$CC"; then
701 echo "$ac_t""$CC" 1>&6
703 echo "$ac_t""no" 1>&6
706 if test -z "$CC"; then
707 # Extract the first word of "cc", so it can be a program name with args.
708 set dummy cc
; ac_word
=$2
709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC
="$CC" # Let the user override the test.
716 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
718 for ac_dir
in $PATH; do
719 test -z "$ac_dir" && ac_dir
=.
720 if test -f $ac_dir/$ac_word; then
721 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
730 if test $ac_prog_rejected = yes; then
731 # We found a bogon in the path, so make sure we never use it.
732 set dummy
$ac_cv_prog_CC
734 if test $# -gt 0; then
735 # We chose a different compiler from the bogus one.
736 # However, it has the same basename, so the bogon will be chosen
737 # first if we set CC to just the basename; use the full file name.
739 set dummy
"$ac_dir/$ac_word" "$@"
747 if test -n "$CC"; then
748 echo "$ac_t""$CC" 1>&6
750 echo "$ac_t""no" 1>&6
753 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
756 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
757 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
760 cat > conftest.c
<<EOF
765 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
772 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
773 if test $ac_cv_prog_gcc = yes; then
775 if test "${CFLAGS+set}" != set; then
776 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
777 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 echo 'void f(){}' > conftest.c
781 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
790 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
791 if test $ac_cv_prog_gcc_g = yes; then
799 test "${CFLAGS+set}" = set || CFLAGS
="-g"
803 .
${srcdir}/..
/bfd
/configure.
host
810 # Extract the first word of "ranlib", so it can be a program name with args.
811 set dummy ranlib
; ac_word
=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 if test -n "$RANLIB"; then
817 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
819 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
820 for ac_dir
in $PATH; do
821 test -z "$ac_dir" && ac_dir
=.
822 if test -f $ac_dir/$ac_word; then
823 ac_cv_prog_RANLIB
="ranlib"
828 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
831 RANLIB
="$ac_cv_prog_RANLIB"
832 if test -n "$RANLIB"; then
833 echo "$ac_t""$RANLIB" 1>&6
835 echo "$ac_t""no" 1>&6
838 # Find a good install program. We prefer a C program (faster),
839 # so one script is as good as another. But avoid the broken or
840 # incompatible versions:
841 # SysV /etc/install, /usr/sbin/install
842 # SunOS /usr/etc/install
845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
847 # ./install, which can be erroneously created by make from ./install.sh.
848 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
849 if test -z "$INSTALL"; then
850 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
854 for ac_dir
in $PATH; do
855 # Account for people who put trailing slashes in PATH elements.
857 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
859 # OSF1 and SCO ODT 3.0 have their own names for install.
860 for ac_prog
in ginstall installbsd scoinst
install; do
861 if test -f $ac_dir/$ac_prog; then
862 if test $ac_prog = install &&
863 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
864 # AIX install. It has an incompatible calling convention.
865 # OSF/1 installbsd also uses dspmsg, but is usable.
868 ac_cv_path_install
="$ac_dir/$ac_prog -c"
879 if test "${ac_cv_path_install+set}" = set; then
880 INSTALL
="$ac_cv_path_install"
882 # As a last resort, use the slow shell script. We don't cache a
883 # path for INSTALL within a source directory, because that will
884 # break other packages using the cache if that directory is
885 # removed, or if the path is relative.
886 INSTALL
="$ac_install_sh"
889 echo "$ac_t""$INSTALL" 1>&6
891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
892 # It thinks the first close brace ends the variable substitution.
893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
895 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
898 # For most hosts we can use a simple definition to pick up the BFD and
899 # opcodes libraries. However, if we are building shared libraries, we
900 # need to handle some hosts specially.
901 BFDLIB
='-L../bfd -lbfd'
902 OPCODES
='-L../opcodes -lopcodes'
903 if test "${shared}" = "true"; then
906 # On SunOS, we must link against the name we are going to install,
907 # not -lbfd, since SunOS does not support SONAME.
908 BFDLIB
='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
909 OPCODES
='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
916 # If we cannot run a trivial program, we must be cross compiling.
917 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
918 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 if test "$cross_compiling" = yes; then
924 cat > conftest.
$ac_ext <<EOF
925 #line 926 "configure"
926 #include "confdefs.h"
929 { (eval echo configure
:930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
930 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
939 echo "$ac_t""$ac_cv_c_cross" 1>&6
940 cross_compiling
=$ac_cv_c_cross
942 # Put a plausible default for CC_FOR_BUILD in Makefile.
943 if test -z "$CC_FOR_BUILD"; then
944 if test "x$cross_compiling" = "xno"; then
952 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
953 # On Suns, sometimes $CPP names a directory.
954 if test -n "$CPP" && test -d "$CPP"; then
957 if test -z "$CPP"; then
958 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 # This must be in double quotes, not single quotes, because CPP may get
962 # substituted into the Makefile and "${CC-cc}" will confuse make.
964 # On the NeXT, cc -E runs the code through the compiler's parser,
965 # not just through cpp.
966 cat > conftest.
$ac_ext <<EOF
967 #line 968 "configure"
968 #include "confdefs.h"
972 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
973 { (eval echo configure
:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
974 ac_err
=`grep -v '^ *+' conftest.out`
975 if test -z "$ac_err"; then
980 CPP
="${CC-cc} -E -traditional-cpp"
981 cat > conftest.
$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
987 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
988 { (eval echo configure
:989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
989 ac_err
=`grep -v '^ *+' conftest.out`
990 if test -z "$ac_err"; then
1000 ac_cv_prog_CPP
="$CPP"
1002 CPP
="$ac_cv_prog_CPP"
1004 ac_cv_prog_CPP
="$CPP"
1006 echo "$ac_t""$CPP" 1>&6
1008 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
1010 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 cat > conftest.
$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1020 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1021 { (eval echo configure
:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1022 ac_err
=`grep -v '^ *+' conftest.out`
1023 if test -z "$ac_err"; then
1025 eval "ac_cv_header_$ac_safe=yes"
1029 eval "ac_cv_header_$ac_safe=no"
1033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1034 echo "$ac_t""yes" 1>&6
1035 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1036 cat >> confdefs.h
<<EOF
1037 #define $ac_tr_hdr 1
1041 echo "$ac_t""no" 1>&6
1045 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1046 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 cat > conftest.
$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 #include <sys/types.h>
1053 #include <sys/wait.h>
1055 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1058 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1060 int main() { return 0; }
1064 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1067 if { (eval echo configure
:1068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1069 ac_cv_header_sys_wait_h
=yes
1072 ac_cv_header_sys_wait_h
=no
1078 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1079 if test $ac_cv_header_sys_wait_h = yes; then
1080 cat >> confdefs.h
<<\EOF
1081 #define HAVE_SYS_WAIT_H 1
1086 for ac_func
in sbrk utimes
1088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 cat > conftest.
$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1095 /* System header to define __stub macros and hopefully few prototypes,
1096 which can conflict with char $ac_func(); below. */
1098 /* Override any gcc2 internal prototype to avoid an error. */
1101 int main() { return 0; }
1104 /* The GNU C library defines this for functions which it implements
1105 to always fail with ENOSYS. Some functions are actually named
1106 something starting with __ and the normal name is an alias. */
1107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1115 if { (eval echo configure
:1116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1117 eval "ac_cv_func_$ac_func=yes"
1120 eval "ac_cv_func_$ac_func=no"
1125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1126 echo "$ac_t""yes" 1>&6
1127 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1128 cat >> confdefs.h
<<EOF
1129 #define $ac_tr_func 1
1133 echo "$ac_t""no" 1>&6
1138 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
1139 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 cat > conftest.
$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1146 int main() { return 0; }
1151 if { (eval echo configure
:1152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1153 bu_cv_decl_time_t_time_h
=yes
1156 bu_cv_decl_time_t_time_h
=no
1162 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
1163 if test $bu_cv_decl_time_t_time_h = yes; then
1164 cat >> confdefs.h
<<\EOF
1165 #define HAVE_TIME_T_IN_TIME_H 1
1170 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
1171 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 cat > conftest.
$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1177 #include <sys/types.h>
1178 int main() { return 0; }
1183 if { (eval echo configure
:1184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1185 bu_cv_decl_time_t_types_h
=yes
1188 bu_cv_decl_time_t_types_h
=no
1194 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
1195 if test $bu_cv_decl_time_t_types_h = yes; then
1196 cat >> confdefs.h
<<\EOF
1197 #define HAVE_TIME_T_IN_TYPES_H 1
1202 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
1204 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
1205 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 cat > conftest.
$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1211 #include <sys/types.h>
1216 int main() { return 0; }
1221 if { (eval echo configure
:1222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1223 bu_cv_header_utime_h
=yes
1226 bu_cv_header_utime_h
=no
1232 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
1233 if test $bu_cv_header_utime_h = yes; then
1234 cat >> confdefs.h
<<\EOF
1235 #define HAVE_GOOD_UTIME_H 1
1240 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
1241 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1249 #ifdef HAVE_STDLIB_H
1252 #ifdef HAVE_UNISTD_H
1255 int main() { return 0; }
1257 char *(*pfn) = (char *(*)) fprintf
1260 if { (eval echo configure
:1261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1262 bfd_cv_decl_needed_fprintf
=no
1265 bfd_cv_decl_needed_fprintf
=yes
1271 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
1272 if test $bfd_cv_decl_needed_fprintf = yes; then
1273 bfd_tr_decl
=NEED_DECLARATION_
`echo fprintf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1274 cat >> confdefs.h
<<EOF
1275 #define $bfd_tr_decl 1
1283 i
[345]86-*-msdos* | i
[345]86-*-go32* |
*-*-cygwin32)
1284 cat >> confdefs.h
<<\EOF
1285 #define USE_BINARY_FOPEN 1
1290 # target-specific stuff:
1292 # Canonicalize the secondary target names.
1293 if test -n "$enable_targets"; then
1294 for targ
in `echo $enable_targets | sed 's/,/ /g'`
1296 result
=`$ac_config_sub $targ 2>/dev/null`
1297 if test -n "$result"; then
1298 canon_targets
="$canon_targets $result"
1300 # Allow targets that config.sub doesn't recognize, like "all".
1301 canon_targets
="$canon_targets $targ"
1313 for targ
in $target $canon_targets
1315 if test "x$targ" = "xall"; then
1317 BUILD_NLMCONV
='$(NLMCONV_PROG)'
1318 BUILD_SRCONV
='$(SRCONV_PROG)'
1319 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1322 i
[345]86*-*-netware*)
1323 BUILD_NLMCONV
='$(NLMCONV_PROG)'
1324 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
1327 BUILD_NLMCONV
='$(NLMCONV_PROG)'
1328 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
1330 powerpc
*-*-netware*)
1331 BUILD_NLMCONV
='$(NLMCONV_PROG)'
1332 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
1335 BUILD_NLMCONV
='$(NLMCONV_PROG)'
1336 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
1340 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
1344 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
1345 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
1347 i
[3-6]86-*pe
* | i
[3-6]86-*-cygwin32)
1348 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
1349 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
1351 powerpc
*-*-*pe
* | powerpc
*-*-cygwin32)
1352 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
1353 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
1366 .
$srcdir/..
/bfd
/config.bfd
1367 if test "x$targ_underscore" = "xyes"; then
1375 cat > confcache
<<\EOF
1376 # This file is a shell script that caches the results of configure
1377 # tests run on this system so they can be shared between configure
1378 # scripts and configure runs. It is not useful on other systems.
1379 # If it contains results you don't want to keep, you may remove or edit it.
1381 # By default, configure uses ./config.cache as the cache file,
1382 # creating it if it does not exist already. You can give configure
1383 # the --cache-file=FILE option to use a different cache file; that is
1384 # what configure does when it calls configure scripts in
1385 # subdirectories, so they share the cache.
1386 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1387 # config.status only pays attention to the cache file if you give it the
1388 # --recheck option to rerun configure.
1391 # Ultrix sh set writes to stderr and can't be redirected directly,
1392 # and sets the high bit in the cache file unless we assign to the vars.
1394 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1396 if cmp -s $cache_file confcache
; then
1399 if test -w $cache_file; then
1400 echo "updating cache $cache_file"
1401 cat confcache
> $cache_file
1403 echo "not updating unwritable cache $cache_file"
1408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1410 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1411 # Let make expand exec_prefix.
1412 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1414 # Any assignment to VPATH causes Sun make to only execute
1415 # the first set of double-colon rules, so remove it if not needed.
1416 # If there is a colon in the path, we need to keep it.
1417 if test "x$srcdir" = x.
; then
1418 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1421 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1423 DEFS
=-DHAVE_CONFIG_H
1425 # Without the "./", some shells look in PATH for config.status.
1426 : ${CONFIG_STATUS=./config.status}
1428 echo creating
$CONFIG_STATUS
1429 rm -f $CONFIG_STATUS
1430 cat > $CONFIG_STATUS <<EOF
1432 # Generated automatically by configure.
1433 # Run this file to recreate the current configuration.
1434 # This directory was configured as follows,
1435 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1437 # $0 $ac_configure_args
1439 # Compiler output produced by configure, useful for debugging
1440 # configure, is in ./config.log if it exists.
1442 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1445 case "\$ac_option" in
1446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1447 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1448 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1449 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1450 echo "$CONFIG_STATUS generated by autoconf version 2.8"
1452 -help | --help | --hel | --he | --h)
1453 echo "\$ac_cs_usage"; exit 0 ;;
1454 *) echo "\$ac_cs_usage"; exit 1 ;;
1458 ac_given_srcdir=$srcdir
1459 ac_given_INSTALL="$INSTALL"
1461 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1463 cat >> $CONFIG_STATUS <<EOF
1465 # Protect against being on the right side of a sed subst in config.status.
1466 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1467 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1470 s%@CFLAGS@%$CFLAGS%g
1471 s%@CPPFLAGS@%$CPPFLAGS%g
1472 s%@CXXFLAGS@%$CXXFLAGS%g
1474 s%@LDFLAGS@%$LDFLAGS%g
1476 s%@exec_prefix@%$exec_prefix%g
1477 s%@prefix@%$prefix%g
1478 s%@program_transform_name@%$program_transform_name%g
1479 s%@bindir@%$bindir%g
1480 s%@sbindir@%$sbindir%g
1481 s%@libexecdir@%$libexecdir%g
1482 s%@datadir@%$datadir%g
1483 s%@sysconfdir@%$sysconfdir%g
1484 s%@sharedstatedir@%$sharedstatedir%g
1485 s%@localstatedir@%$localstatedir%g
1486 s%@libdir@%$libdir%g
1487 s%@includedir@%$includedir%g
1488 s%@oldincludedir@%$oldincludedir%g
1489 s%@infodir@%$infodir%g
1490 s%@mandir@%$mandir%g
1492 s%@host_alias@%$host_alias%g
1493 s%@host_cpu@%$host_cpu%g
1494 s%@host_vendor@%$host_vendor%g
1495 s%@host_os@%$host_os%g
1496 s%@target@%$target%g
1497 s%@target_alias@%$target_alias%g
1498 s%@target_cpu@%$target_cpu%g
1499 s%@target_vendor@%$target_vendor%g
1500 s%@target_os@%$target_os%g
1502 s%@build_alias@%$build_alias%g
1503 s%@build_cpu@%$build_cpu%g
1504 s%@build_vendor@%$build_vendor%g
1505 s%@build_os@%$build_os%g
1507 s%@HDEFINES@%$HDEFINES%g
1508 s%@HLDFLAGS@%$HLDFLAGS%g
1509 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
1511 s%@RANLIB@%$RANLIB%g
1512 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1513 s%@INSTALL_DATA@%$INSTALL_DATA%g
1514 s%@BFDLIB@%$BFDLIB%g
1515 s%@OPCODES@%$OPCODES%g
1516 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1518 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
1519 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
1520 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
1521 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
1522 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
1523 s%@UNDERSCORE@%$UNDERSCORE%g
1527 cat >> $CONFIG_STATUS <<EOF
1529 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1531 cat >> $CONFIG_STATUS <<\EOF
1532 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1533 # Support "outfile[:infile]", defaulting infile="outfile.in".
1535 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1536 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1537 *) ac_file_in
="${ac_file}.in" ;;
1540 # Adjust relative srcdir, etc. for subdirectories.
1542 # Remove last slash and all that follows it. Not all systems have dirname.
1543 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1544 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1545 # The file is in a subdirectory.
1546 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1547 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1548 # A "../" for each directory in $ac_dir_suffix.
1549 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1551 ac_dir_suffix
= ac_dots
=
1554 case "$ac_given_srcdir" in
1556 if test -z "$ac_dots"; then top_srcdir
=.
1557 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1558 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1560 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1561 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1564 case "$ac_given_INSTALL" in
1565 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1566 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1568 echo creating
"$ac_file"
1570 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1572 *Makefile
*) ac_comsub
="1i\\
1573 # $configure_input" ;;
1577 s%@configure_input@%$configure_input%g
1578 s%@srcdir@%$srcdir%g
1579 s%@top_srcdir@%$top_srcdir%g
1580 s%@INSTALL@%$INSTALL%g
1581 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
1585 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1586 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1588 # ac_d sets the value in "#define NAME VALUE" lines.
1589 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1590 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1593 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1594 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1595 ac_uB
='\([ ]\)%\1#\2define\3'
1598 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1599 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1600 ac_eB
='$%\1#\2define\3'
1604 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h:config.in"}
1605 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1606 # Support "outfile[:infile]", defaulting infile="outfile.in".
1608 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1609 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1610 *) ac_file_in
="${ac_file}.in" ;;
1613 echo creating
$ac_file
1615 rm -f conftest.frag conftest.
in conftest.out
1616 cp $ac_given_srcdir/$ac_file_in conftest.
in
1620 # Transform confdefs.h into a sed script conftest.vals that substitutes
1621 # the proper values into config.h.in to produce config.h. And first:
1622 # Protect against being on the right side of a sed subst in config.status.
1623 # Protect against being in an unquoted here document in config.status.
1625 cat > conftest.hdr
<<\EOF
1628 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1632 sed -n -f conftest.hdr confdefs.h > conftest.vals
1635 # This sed command replaces #undef with comments. This is necessary, for
1636 # example, in the case of _POSIX_SOURCE, which is predefined and required
1637 # on some systems where configure will not decide to define it.
1638 cat >> conftest.vals <<\EOF
1639 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1642 # Break up conftest.vals because some shells have a limit on
1643 # the size of here documents, and old seds have small limits too.
1644 # Maximum number of lines to put in a single here document.
1645 ac_max_here_lines=12
1650 ac_lines=`grep -c . conftest.vals
`
1651 # grep -c gives empty output for an empty file on some AIX systems.
1652 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1653 # Write a limited-size here document to conftest.frag.
1654 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1655 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1657 sed -f conftest.frag conftest.in > conftest.out
1659 mv conftest.out conftest.in
1661 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1663 mv conftest.tail conftest.vals
1667 cat >> $CONFIG_STATUS <<\EOF
1668 rm -f conftest.frag conftest.h
1669 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1670 cat conftest.in >> conftest.h
1672 if cmp -s $ac_file conftest.h 2>/dev/null; then
1673 echo "$ac_file is unchanged"
1677 mv conftest.h $ac_file
1682 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1685 chmod +x $CONFIG_STATUS
1686 rm -fr confdefs* $ac_clean_files
1687 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1