3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.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 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
21 --enable-targets alternative target configurations"
23 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 --disable-nls do not use Native Language Support"
30 --with-included-gettext use the GNU gettext library included here"
32 --enable-cgen-maint build cgen generated files"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file
=.
/config.cache
47 program_transform_name
=s
,x
,x
,
55 bindir
='${exec_prefix}/bin'
56 sbindir
='${exec_prefix}/sbin'
57 libexecdir
='${exec_prefix}/libexec'
58 datadir
='${prefix}/share'
59 sysconfdir
='${prefix}/etc'
60 sharedstatedir
='${prefix}/com'
61 localstatedir
='${prefix}/var'
62 libdir
='${exec_prefix}/lib'
63 includedir
='${prefix}/include'
64 oldincludedir
='/usr/include'
65 infodir
='${prefix}/info'
66 mandir
='${prefix}/man'
68 # Initialize some other variables.
71 SHELL
=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
97 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
98 bindir
="$ac_optarg" ;;
100 -build |
--build |
--buil |
--bui |
--bu)
102 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
103 build
="$ac_optarg" ;;
105 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
106 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
107 ac_prev
=cache_file
;;
108 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
109 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
110 cache_file
="$ac_optarg" ;;
112 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
114 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
116 datadir
="$ac_optarg" ;;
118 -disable-* |
--disable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* |
--enable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
142 |
--exec |
--exe |
--ex)
143 ac_prev
=exec_prefix
;;
144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
146 |
--exec=* |
--exe=* |
--ex=*)
147 exec_prefix
="$ac_optarg" ;;
149 -gas |
--gas |
--ga |
--g)
150 # Obsolete; use --with-gas.
153 -help |
--help |
--hel |
--he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host |
--host |
--hos |
--ho)
210 -host=* |
--host=* |
--hos=* |
--ho=*)
213 -includedir |
--includedir |
--includedi |
--included |
--include \
214 |
--includ |
--inclu |
--incl |
--inc)
215 ac_prev
=includedir
;;
216 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
217 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
218 includedir
="$ac_optarg" ;;
220 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
222 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
223 infodir
="$ac_optarg" ;;
225 -libdir |
--libdir |
--libdi |
--libd)
227 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
228 libdir
="$ac_optarg" ;;
230 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
231 |
--libexe |
--libex |
--libe)
232 ac_prev
=libexecdir
;;
233 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
234 |
--libexe=* |
--libex=* |
--libe=*)
235 libexecdir
="$ac_optarg" ;;
237 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
238 |
--localstate |
--localstat |
--localsta |
--localst \
239 |
--locals |
--local |
--loca |
--loc |
--lo)
240 ac_prev
=localstatedir
;;
241 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
242 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
243 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
244 localstatedir
="$ac_optarg" ;;
246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
249 mandir
="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
265 |
--oldin |
--oldi |
--old |
--ol |
--o)
266 ac_prev
=oldincludedir
;;
267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
270 oldincludedir
="$ac_optarg" ;;
272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
275 prefix
="$ac_optarg" ;;
277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
278 |
--program-pre |
--program-pr |
--program-p)
279 ac_prev
=program_prefix
;;
280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
282 program_prefix
="$ac_optarg" ;;
284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
285 |
--program-suf |
--program-su |
--program-s)
286 ac_prev
=program_suffix
;;
287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
289 program_suffix
="$ac_optarg" ;;
291 -program-transform-name |
--program-transform-name \
292 |
--program-transform-nam |
--program-transform-na \
293 |
--program-transform-n |
--program-transform- \
294 |
--program-transform |
--program-transfor \
295 |
--program-transfo |
--program-transf \
296 |
--program-trans |
--program-tran \
297 |
--progr-tra |
--program-tr |
--program-t)
298 ac_prev
=program_transform_name
;;
299 -program-transform-name=* |
--program-transform-name=* \
300 |
--program-transform-nam=* |
--program-transform-na=* \
301 |
--program-transform-n=* |
--program-transform-=* \
302 |
--program-transform=* |
--program-transfor=* \
303 |
--program-transfo=* |
--program-transf=* \
304 |
--program-trans=* |
--program-tran=* \
305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
306 program_transform_name
="$ac_optarg" ;;
308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
309 |
-silent |
--silent |
--silen |
--sile |
--sil)
312 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
314 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
316 sbindir
="$ac_optarg" ;;
318 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
319 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
320 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
322 ac_prev
=sharedstatedir
;;
323 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
324 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
325 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
327 sharedstatedir
="$ac_optarg" ;;
329 -site |
--site |
--sit)
331 -site=* |
--site=* |
--sit=*)
334 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
336 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
337 srcdir
="$ac_optarg" ;;
339 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
340 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
341 ac_prev
=sysconfdir
;;
342 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
343 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
344 sysconfdir
="$ac_optarg" ;;
346 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
348 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
349 target
="$ac_optarg" ;;
351 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
354 -version |
--version |
--versio |
--versi |
--vers)
355 echo "configure generated by autoconf version 2.12.1"
359 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* |
--without-*)
372 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
385 |
--x-incl |
--x-inc |
--x-in |
--x-i)
386 ac_prev
=x_includes
;;
387 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
388 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
389 x_includes
="$ac_optarg" ;;
391 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
392 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
393 ac_prev
=x_libraries
;;
394 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
395 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
396 x_libraries
="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE
; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
447 |
--no-cr |
--no-c) ;;
448 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
449 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
450 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest
* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file
=z8k-dis.c
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted
=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted
=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE
; then
501 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file
in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp
='$CPP $CPPFLAGS'
524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling
=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
537 ac_n
= ac_c
='\c' ac_t
=
543 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; 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 $srcdir $srcdir/.. $srcdir/../.." 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 ${CONFIG_SHELL-/bin/sh} $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
589 echo "configure:590: checking host system type" >&5
592 case "$host_alias" in
596 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
597 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599 *) host_alias
=$nonopt ;;
603 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
604 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607 echo "$ac_t""$host" 1>&6
609 echo $ac_n "checking target system type""... $ac_c" 1>&6
610 echo "configure:611: checking target system type" >&5
613 case "$target_alias" in
616 NONE
) target_alias
=$host_alias ;;
617 *) target_alias
=$nonopt ;;
621 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
622 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$target" 1>&6
627 echo $ac_n "checking build system type""... $ac_c" 1>&6
628 echo "configure:629: checking build system type" >&5
631 case "$build_alias" in
634 NONE
) build_alias
=$host_alias ;;
635 *) build_alias
=$nonopt ;;
639 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
640 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$build" 1>&6
645 test "$host_alias" != "$target_alias" &&
646 test "$program_prefix$program_suffix$program_transform_name" = \
648 program_prefix
=${target_alias}-
650 # Extract the first word of "gcc", so it can be a program name with args.
651 set dummy gcc
; ac_word
=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 if test -n "$CC"; then
658 ac_cv_prog_CC
="$CC" # Let the user override the test.
660 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
661 for ac_dir
in $PATH; do
662 test -z "$ac_dir" && ac_dir
=.
663 if test -f $ac_dir/$ac_word; then
672 if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
675 echo "$ac_t""no" 1>&6
678 if test -z "$CC"; then
679 # Extract the first word of "cc", so it can be a program name with args.
680 set dummy cc
; ac_word
=$2
681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
682 echo "configure:683: checking for $ac_word" >&5
683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 if test -n "$CC"; then
687 ac_cv_prog_CC
="$CC" # Let the user override the test.
689 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
691 for ac_dir
in $PATH; do
692 test -z "$ac_dir" && ac_dir
=.
693 if test -f $ac_dir/$ac_word; then
694 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
703 if test $ac_prog_rejected = yes; then
704 # We found a bogon in the path, so make sure we never use it.
705 set dummy
$ac_cv_prog_CC
707 if test $# -gt 0; then
708 # We chose a different compiler from the bogus one.
709 # However, it has the same basename, so the bogon will be chosen
710 # first if we set CC to just the basename; use the full file name.
712 set dummy
"$ac_dir/$ac_word" "$@"
720 if test -n "$CC"; then
721 echo "$ac_t""$CC" 1>&6
723 echo "$ac_t""no" 1>&6
726 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
730 echo "configure:731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
734 ac_cpp
='$CPP $CPPFLAGS'
735 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
736 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
737 cross_compiling
=$ac_cv_prog_cc_cross
739 cat > conftest.
$ac_ext <<EOF
740 #line 741 "configure"
741 #include "confdefs.h"
744 if { (eval echo configure
:745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
745 ac_cv_prog_cc_works
=yes
746 # If we can't run a trivial program, we are probably using a cross compiler.
747 if (.
/conftest
; exit) 2>/dev
/null
; then
748 ac_cv_prog_cc_cross
=no
750 ac_cv_prog_cc_cross
=yes
753 echo "configure: failed program was:" >&5
754 cat conftest.
$ac_ext >&5
755 ac_cv_prog_cc_works
=no
759 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
760 if test $ac_cv_prog_cc_works = no
; then
761 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
763 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
764 echo "configure:765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
765 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
766 cross_compiling
=$ac_cv_prog_cc_cross
768 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
769 echo "configure:770: checking whether we are using GNU C" >&5
770 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 cat > conftest.c
<<EOF
778 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
785 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
787 if test $ac_cv_prog_gcc = yes; then
789 ac_test_CFLAGS
="${CFLAGS+set}"
790 ac_save_CFLAGS
="$CFLAGS"
792 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
793 echo "configure:794: checking whether ${CC-cc} accepts -g" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 echo 'void f(){}' > conftest.c
798 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
807 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
808 if test "$ac_test_CFLAGS" = set; then
809 CFLAGS
="$ac_save_CFLAGS"
810 elif test $ac_cv_prog_cc_g = yes; then
817 test "${CFLAGS+set}" = set || CFLAGS
="-g"
820 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
821 echo "configure:822: checking for POSIXized ISC" >&5
822 if test -d /etc
/conf
/kconfig.d
&&
823 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
825 echo "$ac_t""yes" 1>&6
826 ISC
=yes # If later tests want to check for ISC.
827 cat >> confdefs.h
<<\EOF
828 #define _POSIX_SOURCE 1
831 if test "$GCC" = yes; then
837 echo "$ac_t""no" 1>&6
842 # We currently only use the version number for the name of any shared
843 # library. For user convenience, we always use the same version
844 # number that BFD is using.
845 BFD_VERSION
=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
847 # Find a good install program. We prefer a C program (faster),
848 # so one script is as good as another. But avoid the broken or
849 # incompatible versions:
850 # SysV /etc/install, /usr/sbin/install
851 # SunOS /usr/etc/install
854 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
857 # ./install, which can be erroneously created by make from ./install.sh.
858 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
859 echo "configure:860: checking for a BSD compatible install" >&5
860 if test -z "$INSTALL"; then
861 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
864 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
865 for ac_dir
in $PATH; do
866 # Account for people who put trailing slashes in PATH elements.
868 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
870 # OSF1 and SCO ODT 3.0 have their own names for install.
871 # Don't use installbsd from OSF since it installs stuff as root
873 for ac_prog
in ginstall scoinst
install; do
874 if test -f $ac_dir/$ac_prog; then
875 if test $ac_prog = install &&
876 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
877 # AIX install. It has an incompatible calling convention.
880 ac_cv_path_install
="$ac_dir/$ac_prog -c"
891 if test "${ac_cv_path_install+set}" = set; then
892 INSTALL
="$ac_cv_path_install"
894 # As a last resort, use the slow shell script. We don't cache a
895 # path for INSTALL within a source directory, because that will
896 # break other packages using the cache if that directory is
897 # removed, or if the path is relative.
898 INSTALL
="$ac_install_sh"
901 echo "$ac_t""$INSTALL" 1>&6
903 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
904 # It thinks the first close brace ends the variable substitution.
905 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
907 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
912 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
913 echo "configure:914: checking whether build environment is sane" >&5
916 echo timestamp
> conftestfile
917 # Do `set' in a subshell so we don't clobber the current shell's
918 # arguments. Must try -L first in case configure is actually a
919 # symlink; some systems play weird games with the mod time of symlinks
920 # (eg FreeBSD returns the mod time of the symlink's containing
923 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
924 if test "$*" = "X"; then
926 set X
`ls -t $srcdir/configure conftestfile`
928 if test "$*" != "X $srcdir/configure conftestfile" \
929 && test "$*" != "X conftestfile $srcdir/configure"; then
931 # If neither matched, then we have a broken ls. This can happen
932 # if, for instance, CONFIG_SHELL is bash and it inherits a
933 # broken ls alias from the environment. This has actually
934 # happened. Such a system could not be considered "sane".
935 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
936 alias in your environment" 1>&2; exit 1; }
939 test "$2" = conftestfile
945 { echo "configure: error: newly created file is older than distributed files!
946 Check your system clock" 1>&2; exit 1; }
949 echo "$ac_t""yes" 1>&6
950 if test "$program_transform_name" = s
,x
,x
,; then
951 program_transform_name
=
953 # Double any \ or $. echo might interpret backslashes.
954 cat <<\EOF_SED
> conftestsed
955 s
,\\,\\\\,g
; s
,\$
,$$
,g
957 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
960 test "$program_prefix" != NONE
&&
961 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
962 # Use a double $ so make ignores it.
963 test "$program_suffix" != NONE
&&
964 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
966 # sed with no file args requires a program.
967 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
969 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
970 echo "configure:971: checking whether ${MAKE-make} sets \${MAKE}" >&5
971 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
972 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 cat > conftestmake
<<\EOF
977 @
echo 'ac_maketemp="${MAKE}"'
979 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
980 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
981 if test -n "$ac_maketemp"; then
982 eval ac_cv_prog_make_
${ac_make}_set
=yes
984 eval ac_cv_prog_make_
${ac_make}_set
=no
988 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
989 echo "$ac_t""yes" 1>&6
992 echo "$ac_t""no" 1>&6
993 SET_MAKE
="MAKE=${MAKE-make}"
999 VERSION
=${BFD_VERSION}
1001 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1002 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1004 cat >> confdefs.h
<<EOF
1005 #define PACKAGE "$PACKAGE"
1008 cat >> confdefs.h
<<EOF
1009 #define VERSION "$VERSION"
1014 missing_dir
=`cd $ac_aux_dir && pwd`
1015 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working aclocal" >&5
1017 # Run test in a subshell; some versions of sh will print an error if
1018 # an executable is not found, even if stderr is redirected.
1019 # Redirect stdin to placate older versions of autoconf. Sigh.
1020 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1022 echo "$ac_t""found" 1>&6
1024 ACLOCAL
="$missing_dir/missing aclocal"
1025 echo "$ac_t""missing" 1>&6
1028 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working autoconf" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf. Sigh.
1033 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1035 echo "$ac_t""found" 1>&6
1037 AUTOCONF
="$missing_dir/missing autoconf"
1038 echo "$ac_t""missing" 1>&6
1041 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working automake" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf. Sigh.
1046 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1048 echo "$ac_t""found" 1>&6
1050 AUTOMAKE
="$missing_dir/missing automake"
1051 echo "$ac_t""missing" 1>&6
1054 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1055 echo "configure:1056: checking for working autoheader" >&5
1056 # Run test in a subshell; some versions of sh will print an error if
1057 # an executable is not found, even if stderr is redirected.
1058 # Redirect stdin to placate older versions of autoconf. Sigh.
1059 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1060 AUTOHEADER
=autoheader
1061 echo "$ac_t""found" 1>&6
1063 AUTOHEADER
="$missing_dir/missing autoheader"
1064 echo "$ac_t""missing" 1>&6
1067 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1068 echo "configure:1069: checking for working makeinfo" >&5
1069 # Run test in a subshell; some versions of sh will print an error if
1070 # an executable is not found, even if stderr is redirected.
1071 # Redirect stdin to placate older versions of autoconf. Sigh.
1072 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1074 echo "$ac_t""found" 1>&6
1076 MAKEINFO
="$missing_dir/missing makeinfo"
1077 echo "$ac_t""missing" 1>&6
1082 if test $host != $build; then
1083 ac_tool_prefix
=${host_alias}-
1088 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1089 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$AR"; then
1096 ac_cv_prog_AR
="$AR" # Let the user override the test.
1098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1099 for ac_dir
in $PATH; do
1100 test -z "$ac_dir" && ac_dir
=.
1101 if test -f $ac_dir/$ac_word; then
1102 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1107 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1111 if test -n "$AR"; then
1112 echo "$ac_t""$AR" 1>&6
1114 echo "$ac_t""no" 1>&6
1119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1120 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$RANLIB"; then
1127 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1130 for ac_dir
in $PATH; do
1131 test -z "$ac_dir" && ac_dir
=.
1132 if test -f $ac_dir/$ac_word; then
1133 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1140 RANLIB
="$ac_cv_prog_RANLIB"
1141 if test -n "$RANLIB"; then
1142 echo "$ac_t""$RANLIB" 1>&6
1144 echo "$ac_t""no" 1>&6
1148 if test -z "$ac_cv_prog_RANLIB"; then
1149 if test -n "$ac_tool_prefix"; then
1150 # Extract the first word of "ranlib", so it can be a program name with args.
1151 set dummy ranlib
; ac_word
=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test -n "$RANLIB"; then
1158 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1161 for ac_dir
in $PATH; do
1162 test -z "$ac_dir" && ac_dir
=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_RANLIB
="ranlib"
1169 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1172 RANLIB
="$ac_cv_prog_RANLIB"
1173 if test -n "$RANLIB"; then
1174 echo "$ac_t""$RANLIB" 1>&6
1176 echo "$ac_t""no" 1>&6
1185 # Check whether --enable-shared or --disable-shared was given.
1186 if test "${enable_shared+set}" = set; then
1187 enableval
="$enable_shared"
1188 p
=${PACKAGE-default}
1189 case "$enableval" in
1190 yes) enable_shared
=yes ;;
1191 no
) enable_shared
=no
;;
1194 # Look at the argument we got. We use all the common list separators.
1195 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1196 for pkg
in $enableval; do
1197 if test "X$pkg" = "X$p"; then
1209 # Check whether --enable-static or --disable-static was given.
1210 if test "${enable_static+set}" = set; then
1211 enableval
="$enable_static"
1212 p
=${PACKAGE-default}
1213 case "$enableval" in
1214 yes) enable_static
=yes ;;
1215 no
) enable_static
=no
;;
1218 # Look at the argument we got. We use all the common list separators.
1219 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1220 for pkg
in $enableval; do
1221 if test "X$pkg" = "X$p"; then
1232 # Extract the first word of "ranlib", so it can be a program name with args.
1233 set dummy ranlib
; ac_word
=$2
1234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1235 echo "configure:1236: checking for $ac_word" >&5
1236 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 if test -n "$RANLIB"; then
1240 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1242 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1243 for ac_dir
in $PATH; do
1244 test -z "$ac_dir" && ac_dir
=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_RANLIB
="ranlib"
1251 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1254 RANLIB
="$ac_cv_prog_RANLIB"
1255 if test -n "$RANLIB"; then
1256 echo "$ac_t""$RANLIB" 1>&6
1258 echo "$ac_t""no" 1>&6
1261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1262 if test "${with_gnu_ld+set}" = set; then
1263 withval
="$with_gnu_ld"
1264 test "$withval" = no || with_gnu_ld
=yes
1271 if test "$ac_cv_prog_gcc" = yes; then
1272 # Check if gcc -print-prog-name=ld gives a path.
1273 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1274 echo "configure:1275: checking for ld used by GCC" >&5
1275 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1277 # Accept absolute paths.
1279 test -z "$LD" && LD
="$ac_prog"
1282 # If it fails, then pretend we aren't using GCC.
1286 # If it is relative, then search for the first ld in PATH.
1290 elif test "$with_gnu_ld" = yes; then
1291 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1292 echo "configure:1293: checking for GNU ld" >&5
1294 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1295 echo "configure:1296: checking for non-GNU ld" >&5
1297 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 if test -z "$LD"; then
1301 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1302 for ac_dir
in $PATH; do
1303 test -z "$ac_dir" && ac_dir
=.
1304 if test -f "$ac_dir/$ac_prog"; then
1305 ac_cv_path_LD
="$ac_dir/$ac_prog"
1306 # Check to see if the program is GNU ld. I'd rather use --version,
1307 # but apparently some GNU ld's only accept -v.
1308 # Break only if it was the GNU/non-GNU ld that we prefer.
1309 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1310 test "$with_gnu_ld" != no
&& break
1312 test "$with_gnu_ld" != yes && break
1318 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1323 if test -n "$LD"; then
1324 echo "$ac_t""$LD" 1>&6
1326 echo "$ac_t""no" 1>&6
1328 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1330 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1331 echo "configure:1332: checking if the linker ($LD) is GNU ld" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1336 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1337 ac_cv_prog_gnu_ld
=yes
1339 ac_cv_prog_gnu_ld
=no
1343 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1346 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1347 echo "configure:1348: checking for BSD-compatible nm" >&5
1348 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 if test -n "$NM"; then
1352 # Let the user override the test.
1355 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1356 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1357 test -z "$ac_dir" && ac_dir
=.
1358 if test -f $ac_dir/nm
; then
1359 # Check to see if the nm accepts a BSD-compat flag.
1360 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1361 # nm: unknown option "B" ignored
1362 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1363 ac_cv_path_NM
="$ac_dir/nm -B"
1364 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1365 ac_cv_path_NM
="$ac_dir/nm -p"
1367 ac_cv_path_NM
="$ac_dir/nm"
1373 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1378 echo "$ac_t""$NM" 1>&6
1381 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1382 echo "configure:1383: checking whether ln -s works" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1387 if ln -s X conftestdata
2>/dev
/null
1390 ac_cv_prog_LN_S
="ln -s"
1395 LN_S
="$ac_cv_prog_LN_S"
1396 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1397 echo "$ac_t""yes" 1>&6
1399 echo "$ac_t""no" 1>&6
1402 # Always use our own libtool.
1403 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1405 # Check for any special flags to pass to ltconfig.
1407 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1408 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1409 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1410 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1411 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1413 # Some flags need to be propagated to the compiler or linker for good
1417 # Find out which ABI we are using.
1418 echo '#line 1419 "configure"' > conftest.
$ac_ext
1419 if { (eval echo configure
:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1420 case "`/usr/bin/file conftest.o`" in
1436 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1437 CFLAGS
="$CFLAGS -belf"
1441 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1442 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1444 echo "configure:1445: checking for $ac_word" >&5
1445 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 if test -n "$DLLTOOL"; then
1449 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1451 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1452 for ac_dir
in $PATH; do
1453 test -z "$ac_dir" && ac_dir
=.
1454 if test -f $ac_dir/$ac_word; then
1455 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1462 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1463 if test -n "$DLLTOOL"; then
1464 echo "$ac_t""$DLLTOOL" 1>&6
1466 echo "$ac_t""no" 1>&6
1470 if test -z "$ac_cv_prog_DLLTOOL"; then
1471 if test -n "$ac_tool_prefix"; then
1472 # Extract the first word of "dlltool", so it can be a program name with args.
1473 set dummy dlltool
; ac_word
=$2
1474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1475 echo "configure:1476: checking for $ac_word" >&5
1476 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1479 if test -n "$DLLTOOL"; then
1480 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1482 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1483 for ac_dir
in $PATH; do
1484 test -z "$ac_dir" && ac_dir
=.
1485 if test -f $ac_dir/$ac_word; then
1486 ac_cv_prog_DLLTOOL
="dlltool"
1491 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1494 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1495 if test -n "$DLLTOOL"; then
1496 echo "$ac_t""$DLLTOOL" 1>&6
1498 echo "$ac_t""no" 1>&6
1506 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1507 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 if test -n "$AS"; then
1514 ac_cv_prog_AS
="$AS" # Let the user override the test.
1516 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1517 for ac_dir
in $PATH; do
1518 test -z "$ac_dir" && ac_dir
=.
1519 if test -f $ac_dir/$ac_word; then
1520 ac_cv_prog_AS
="${ac_tool_prefix}as"
1528 if test -n "$AS"; then
1529 echo "$ac_t""$AS" 1>&6
1531 echo "$ac_t""no" 1>&6
1535 if test -z "$ac_cv_prog_AS"; then
1536 if test -n "$ac_tool_prefix"; then
1537 # Extract the first word of "as", so it can be a program name with args.
1538 set dummy as
; ac_word
=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 if test -n "$AS"; then
1545 ac_cv_prog_AS
="$AS" # Let the user override the test.
1547 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1548 for ac_dir
in $PATH; do
1549 test -z "$ac_dir" && ac_dir
=.
1550 if test -f $ac_dir/$ac_word; then
1556 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1560 if test -n "$AS"; then
1561 echo "$ac_t""$AS" 1>&6
1563 echo "$ac_t""no" 1>&6
1576 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1577 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1578 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1579 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1581 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1582 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1584 # Redirect the config.log output again, so that the ltconfig log is not
1585 # clobbered by the next message.
1586 exec 5>>.
/config.log
1589 # Check whether --enable-targets or --disable-targets was given.
1590 if test "${enable_targets+set}" = set; then
1591 enableval
="$enable_targets"
1592 case "${enableval}" in
1593 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1595 no
) enable_targets
= ;;
1596 *) enable_targets
=$enableval ;;
1599 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1600 if test "${enable_commonbfdlib+set}" = set; then
1601 enableval
="$enable_commonbfdlib"
1602 case "${enableval}" in
1603 yes) commonbfdlib
=true
;;
1604 no
) commonbfdlib
=false
;;
1605 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1613 if test -z "$target" ; then
1614 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1616 if test "$program_transform_name" = s
,x
,x
,; then
1617 program_transform_name
=
1619 # Double any \ or $. echo might interpret backslashes.
1620 cat <<\EOF_SED
> conftestsed
1621 s
,\\,\\\\,g
; s
,\$
,$$
,g
1623 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1626 test "$program_prefix" != NONE
&&
1627 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1628 # Use a double $ so make ignores it.
1629 test "$program_suffix" != NONE
&&
1630 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1632 # sed with no file args requires a program.
1633 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1636 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1637 echo "configure:1638: checking whether to enable maintainer-specific portions of Makefiles" >&5
1638 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1639 if test "${enable_maintainer_mode+set}" = set; then
1640 enableval
="$enable_maintainer_mode"
1641 USE_MAINTAINER_MODE
=$enableval
1643 USE_MAINTAINER_MODE
=no
1646 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1647 if test $USE_MAINTAINER_MODE = yes; then
1654 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1655 echo "configure:1656: checking for Cygwin32 environment" >&5
1656 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.
$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1664 return __CYGWIN32__;
1667 if { (eval echo configure
:1668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1671 echo "configure: failed program was:" >&5
1672 cat conftest.
$ac_ext >&5
1680 echo "$ac_t""$am_cv_cygwin32" 1>&6
1682 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
1683 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1684 echo "configure:1685: checking for Mingw32 environment" >&5
1685 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 cat > conftest.
$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1696 if { (eval echo configure
:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1700 echo "configure: failed program was:" >&5
1701 cat conftest.
$ac_ext >&5
1709 echo "$ac_t""$am_cv_mingw32" 1>&6
1711 test "$am_cv_mingw32" = yes && MINGW32
=yes
1714 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1715 echo "configure:1716: checking for executable suffix" >&5
1716 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
1722 cat > am_c_test.c
<< 'EOF'
1724 /* Nothing needed here
*/
1727 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1729 for file in am_c_test.
*; do
1733 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
1739 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1742 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1743 echo "$ac_t""${am_cv_exeext}" 1>&6
1746 # host-specific stuff:
1748 # Extract the first word of "gcc", so it can be a program name with args.
1749 set dummy gcc
; ac_word
=$2
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_word" >&5
1752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC
="$CC" # Let the user override the test.
1758 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1759 for ac_dir
in $PATH; do
1760 test -z "$ac_dir" && ac_dir
=.
1761 if test -f $ac_dir/$ac_word; then
1770 if test -n "$CC"; then
1771 echo "$ac_t""$CC" 1>&6
1773 echo "$ac_t""no" 1>&6
1776 if test -z "$CC"; then
1777 # Extract the first word of "cc", so it can be a program name with args.
1778 set dummy cc
; ac_word
=$2
1779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1780 echo "configure:1781: checking for $ac_word" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC
="$CC" # Let the user override the test.
1787 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1789 for ac_dir
in $PATH; do
1790 test -z "$ac_dir" && ac_dir
=.
1791 if test -f $ac_dir/$ac_word; then
1792 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1793 ac_prog_rejected
=yes
1801 if test $ac_prog_rejected = yes; then
1802 # We found a bogon in the path, so make sure we never use it.
1803 set dummy
$ac_cv_prog_CC
1805 if test $# -gt 0; then
1806 # We chose a different compiler from the bogus one.
1807 # However, it has the same basename, so the bogon will be chosen
1808 # first if we set CC to just the basename; use the full file name.
1810 set dummy
"$ac_dir/$ac_word" "$@"
1818 if test -n "$CC"; then
1819 echo "$ac_t""$CC" 1>&6
1821 echo "$ac_t""no" 1>&6
1824 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1828 echo "configure:1829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1832 ac_cpp
='$CPP $CPPFLAGS'
1833 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1834 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1835 cross_compiling
=$ac_cv_prog_cc_cross
1837 cat > conftest.
$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1842 if { (eval echo configure
:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1843 ac_cv_prog_cc_works
=yes
1844 # If we can't run a trivial program, we are probably using a cross compiler.
1845 if (.
/conftest
; exit) 2>/dev
/null
; then
1846 ac_cv_prog_cc_cross
=no
1848 ac_cv_prog_cc_cross
=yes
1851 echo "configure: failed program was:" >&5
1852 cat conftest.
$ac_ext >&5
1853 ac_cv_prog_cc_works
=no
1857 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1858 if test $ac_cv_prog_cc_works = no
; then
1859 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1861 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1862 echo "configure:1863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1863 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1864 cross_compiling
=$ac_cv_prog_cc_cross
1866 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether we are using GNU C" >&5
1868 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 cat > conftest.c
<<EOF
1876 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1883 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1885 if test $ac_cv_prog_gcc = yes; then
1887 ac_test_CFLAGS
="${CFLAGS+set}"
1888 ac_save_CFLAGS
="$CFLAGS"
1890 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1891 echo "configure:1892: checking whether ${CC-cc} accepts -g" >&5
1892 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 echo 'void f(){}' > conftest.c
1896 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1905 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1906 if test "$ac_test_CFLAGS" = set; then
1907 CFLAGS
="$ac_save_CFLAGS"
1908 elif test $ac_cv_prog_cc_g = yes; then
1915 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1920 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1921 echo "configure:1922: checking how to run the C preprocessor" >&5
1922 # On Suns, sometimes $CPP names a directory.
1923 if test -n "$CPP" && test -d "$CPP"; then
1926 if test -z "$CPP"; then
1927 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 # This must be in double quotes, not single quotes, because CPP may get
1931 # substituted into the Makefile and "${CC-cc}" will confuse make.
1933 # On the NeXT, cc -E runs the code through the compiler's parser,
1934 # not just through cpp.
1935 cat > conftest.
$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1941 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1942 { (eval echo configure
:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1943 ac_err
=`grep -v '^ *+' conftest.out`
1944 if test -z "$ac_err"; then
1948 echo "configure: failed program was:" >&5
1949 cat conftest.
$ac_ext >&5
1951 CPP
="${CC-cc} -E -traditional-cpp"
1952 cat > conftest.
$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1958 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1959 { (eval echo configure
:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1960 ac_err
=`grep -v '^ *+' conftest.out`
1961 if test -z "$ac_err"; then
1965 echo "configure: failed program was:" >&5
1966 cat conftest.
$ac_ext >&5
1973 ac_cv_prog_CPP
="$CPP"
1975 CPP
="$ac_cv_prog_CPP"
1977 ac_cv_prog_CPP
="$CPP"
1979 echo "$ac_t""$CPP" 1>&6
1981 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1982 echo "configure:1983: checking for ANSI C header files" >&5
1983 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.
$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1994 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1995 { (eval echo configure
:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1996 ac_err
=`grep -v '^ *+' conftest.out`
1997 if test -z "$ac_err"; then
1999 ac_cv_header_stdc
=yes
2002 echo "configure: failed program was:" >&5
2003 cat conftest.
$ac_ext >&5
2005 ac_cv_header_stdc
=no
2009 if test $ac_cv_header_stdc = yes; then
2010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2011 cat > conftest.
$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2017 egrep "memchr" >/dev
/null
2>&1; then
2021 ac_cv_header_stdc
=no
2027 if test $ac_cv_header_stdc = yes; then
2028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2035 egrep "free" >/dev
/null
2>&1; then
2039 ac_cv_header_stdc
=no
2045 if test $ac_cv_header_stdc = yes; then
2046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2047 if test "$cross_compiling" = yes; then
2050 cat > conftest.
$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2055 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2057 int main () { int i; for (i = 0; i < 256; i++)
2058 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2062 if { (eval echo configure
:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2066 echo "configure: failed program was:" >&5
2067 cat conftest.
$ac_ext >&5
2069 ac_cv_header_stdc
=no
2077 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2078 if test $ac_cv_header_stdc = yes; then
2079 cat >> confdefs.h
<<\EOF
2080 #define STDC_HEADERS 1
2085 echo $ac_n "checking for working const""... $ac_c" 1>&6
2086 echo "configure:2087: checking for working const" >&5
2087 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 cat > conftest.
$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2096 /* Ultrix mips cc rejects this. */
2097 typedef int charset[2]; const charset x;
2098 /* SunOS 4.1.1 cc rejects this. */
2099 char const *const *ccp;
2101 /* NEC SVR4.0.2 mips cc rejects this. */
2102 struct point {int x, y;};
2103 static struct point const zero = {0,0};
2104 /* AIX XL C 1.02.0.0 rejects this.
2105 It does not let you subtract one const X* pointer from another in an arm
2106 of an if-expression whose if-part is not a constant expression */
2107 const char *g = "string";
2108 ccp = &g + (g ? g-g : 0);
2109 /* HPUX 7.0 cc rejects these. */
2112 ccp = (char const *const *) p;
2113 { /* SCO 3.2v4 cc rejects this. */
2115 char const *s = 0 ? (char *) 0 : (char const *) 0;
2119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2121 const int *foo = &x[0];
2124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2125 typedef const int *iptr;
2129 { /* AIX XL C 1.02.0.0 rejects this saying
2130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2131 struct s { int j; const int *ap[3]; };
2132 struct s *b; b->j = 5;
2134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2140 if { (eval echo configure
:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144 echo "configure: failed program was:" >&5
2145 cat conftest.
$ac_ext >&5
2152 echo "$ac_t""$ac_cv_c_const" 1>&6
2153 if test $ac_cv_c_const = no
; then
2154 cat >> confdefs.h
<<\EOF
2160 echo $ac_n "checking for inline""... $ac_c" 1>&6
2161 echo "configure:2162: checking for inline" >&5
2162 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2166 for ac_kw
in inline __inline__ __inline
; do
2167 cat > conftest.
$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2175 if { (eval echo configure
:2176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2177 ac_cv_c_inline
=$ac_kw; break
2179 echo "configure: failed program was:" >&5
2180 cat conftest.
$ac_ext >&5
2187 echo "$ac_t""$ac_cv_c_inline" 1>&6
2188 case "$ac_cv_c_inline" in
2190 no
) cat >> confdefs.h
<<\EOF
2194 *) cat >> confdefs.h
<<EOF
2195 #define inline $ac_cv_c_inline
2200 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2201 echo "configure:2202: checking for off_t" >&5
2202 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.
$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 #include <sys/types.h>
2214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2215 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2217 ac_cv_type_off_t
=yes
2225 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2226 if test $ac_cv_type_off_t = no
; then
2227 cat >> confdefs.h
<<\EOF
2233 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2234 echo "configure:2235: checking for size_t" >&5
2235 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.
$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 #include <sys/types.h>
2247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2248 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2250 ac_cv_type_size_t
=yes
2253 ac_cv_type_size_t
=no
2258 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2259 if test $ac_cv_type_size_t = no
; then
2260 cat >> confdefs.h
<<\EOF
2261 #define size_t unsigned
2266 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2267 # for constant arguments. Useless!
2268 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2269 echo "configure:2270: checking for working alloca.h" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.
$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2278 char *p = alloca(2 * sizeof(int));
2281 if { (eval echo configure
:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2283 ac_cv_header_alloca_h
=yes
2285 echo "configure: failed program was:" >&5
2286 cat conftest.
$ac_ext >&5
2288 ac_cv_header_alloca_h
=no
2293 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2294 if test $ac_cv_header_alloca_h = yes; then
2295 cat >> confdefs.h
<<\EOF
2296 #define HAVE_ALLOCA_H 1
2301 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2302 echo "configure:2303: checking for alloca" >&5
2303 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2311 # define alloca __builtin_alloca
2314 # include <alloca.h>
2319 # ifndef alloca /* predefined by HP cc +Olibcalls */
2327 char *p = (char *) alloca(1);
2330 if { (eval echo configure
:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2332 ac_cv_func_alloca_works
=yes
2334 echo "configure: failed program was:" >&5
2335 cat conftest.
$ac_ext >&5
2337 ac_cv_func_alloca_works
=no
2342 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2343 if test $ac_cv_func_alloca_works = yes; then
2344 cat >> confdefs.h
<<\EOF
2345 #define HAVE_ALLOCA 1
2350 if test $ac_cv_func_alloca_works = no
; then
2351 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2352 # that cause trouble. Some versions do not even contain alloca or
2353 # contain a buggy version. If you still want to use their alloca,
2354 # use ar to extract alloca.o from them instead of compiling alloca.c.
2356 cat >> confdefs.h
<<\EOF
2361 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2362 echo "configure:2363: checking whether alloca needs Cray hooks" >&5
2363 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 cat > conftest.
$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #if defined(CRAY) && ! defined(CRAY2)
2376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2377 egrep "webecray" >/dev
/null
2>&1; then
2388 echo "$ac_t""$ac_cv_os_cray" 1>&6
2389 if test $ac_cv_os_cray = yes; then
2390 for ac_func
in _getb67 GETB67 getb67
; do
2391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2392 echo "configure:2393: checking for $ac_func" >&5
2393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 cat > conftest.
$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 /* System header to define __stub macros and hopefully few prototypes,
2400 which can conflict with char $ac_func(); below. */
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2409 /* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2420 if { (eval echo configure
:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2422 eval "ac_cv_func_$ac_func=yes"
2424 echo "configure: failed program was:" >&5
2425 cat conftest.
$ac_ext >&5
2427 eval "ac_cv_func_$ac_func=no"
2432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 cat >> confdefs.h
<<EOF
2435 #define CRAY_STACKSEG_END $ac_func
2440 echo "$ac_t""no" 1>&6
2446 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2447 echo "configure:2448: checking stack direction for C alloca" >&5
2448 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 if test "$cross_compiling" = yes; then
2452 ac_cv_c_stack_direction
=0
2454 cat > conftest.
$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457 find_stack_direction ()
2459 static char *addr = 0;
2464 return find_stack_direction ();
2467 return (&dummy > addr) ? 1 : -1;
2471 exit (find_stack_direction() < 0);
2474 if { (eval echo configure
:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2476 ac_cv_c_stack_direction
=1
2478 echo "configure: failed program was:" >&5
2479 cat conftest.
$ac_ext >&5
2481 ac_cv_c_stack_direction
=-1
2488 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2489 cat >> confdefs.h
<<EOF
2490 #define STACK_DIRECTION $ac_cv_c_stack_direction
2495 for ac_hdr
in unistd.h
2497 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2499 echo "configure:2500: checking for $ac_hdr" >&5
2500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 cat > conftest.
$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2508 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2509 { (eval echo configure
:2510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2510 ac_err
=`grep -v '^ *+' conftest.out`
2511 if test -z "$ac_err"; then
2513 eval "ac_cv_header_$ac_safe=yes"
2516 echo "configure: failed program was:" >&5
2517 cat conftest.
$ac_ext >&5
2519 eval "ac_cv_header_$ac_safe=no"
2523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2526 cat >> confdefs.h
<<EOF
2527 #define $ac_tr_hdr 1
2531 echo "$ac_t""no" 1>&6
2535 for ac_func
in getpagesize
2537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2538 echo "configure:2539: checking for $ac_func" >&5
2539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 cat > conftest.
$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 /* System header to define __stub macros and hopefully few prototypes,
2546 which can conflict with char $ac_func(); below. */
2548 /* Override any gcc2 internal prototype to avoid an error. */
2549 /* We use char because int might match the return type of a gcc2
2550 builtin and then its argument prototype would still apply. */
2555 /* The GNU C library defines this for functions which it implements
2556 to always fail with ENOSYS. Some functions are actually named
2557 something starting with __ and the normal name is an alias. */
2558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2566 if { (eval echo configure
:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2568 eval "ac_cv_func_$ac_func=yes"
2570 echo "configure: failed program was:" >&5
2571 cat conftest.
$ac_ext >&5
2573 eval "ac_cv_func_$ac_func=no"
2578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2580 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2581 cat >> confdefs.h
<<EOF
2582 #define $ac_tr_func 1
2586 echo "$ac_t""no" 1>&6
2590 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2591 echo "configure:2592: checking for working mmap" >&5
2592 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 if test "$cross_compiling" = yes; then
2596 ac_cv_func_mmap_fixed_mapped
=no
2598 cat > conftest.
$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2602 /* Thanks to Mike Haertel and Jim Avera for this test.
2603 Here is a matrix of mmap possibilities:
2604 mmap private not fixed
2605 mmap private fixed at somewhere currently unmapped
2606 mmap private fixed at somewhere already mapped
2607 mmap shared not fixed
2608 mmap shared fixed at somewhere currently unmapped
2609 mmap shared fixed at somewhere already mapped
2610 For private mappings, we should verify that changes cannot be read()
2611 back from the file, nor mmap's back from the file at a different
2612 address. (There have been systems where private was not correctly
2613 implemented like the infamous i386 svr4.0, and systems where the
2614 VM page cache was not coherent with the filesystem buffer cache
2615 like early versions of FreeBSD and possibly contemporary NetBSD.)
2616 For shared mappings, we should conversely verify that changes get
2617 propogated back to all the places they're supposed to be.
2619 Grep wants private fixed already mapped.
2620 The main things grep needs to know about mmap are:
2621 * does it exist and is it safe to write into the mmap'd area
2622 * how to use it (BSD variants) */
2623 #include <sys/types.h>
2625 #include <sys/mman.h>
2627 /* This mess was copied from the GNU getpagesize.h. */
2628 #ifndef HAVE_GETPAGESIZE
2629 # ifdef HAVE_UNISTD_H
2630 # include <unistd.h>
2633 /* Assume that all systems that can run configure have sys/param.h. */
2634 # ifndef HAVE_SYS_PARAM_H
2635 # define HAVE_SYS_PARAM_H 1
2638 # ifdef _SC_PAGESIZE
2639 # define getpagesize() sysconf(_SC_PAGESIZE)
2640 # else /* no _SC_PAGESIZE */
2641 # ifdef HAVE_SYS_PARAM_H
2642 # include <sys/param.h>
2643 # ifdef EXEC_PAGESIZE
2644 # define getpagesize() EXEC_PAGESIZE
2645 # else /* no EXEC_PAGESIZE */
2647 # define getpagesize() NBPG * CLSIZE
2650 # endif /* no CLSIZE */
2651 # else /* no NBPG */
2653 # define getpagesize() NBPC
2654 # else /* no NBPC */
2656 # define getpagesize() PAGESIZE
2657 # endif /* PAGESIZE */
2658 # endif /* no NBPC */
2659 # endif /* no NBPG */
2660 # endif /* no EXEC_PAGESIZE */
2661 # else /* no HAVE_SYS_PARAM_H */
2662 # define getpagesize() 8192 /* punt totally */
2663 # endif /* no HAVE_SYS_PARAM_H */
2664 # endif /* no _SC_PAGESIZE */
2666 #endif /* no HAVE_GETPAGESIZE */
2669 extern "C" { void *malloc(unsigned); }
2677 char *data, *data2, *data3;
2681 pagesize = getpagesize();
2684 * First, make a file with some known garbage in it.
2686 data = malloc(pagesize);
2689 for (i = 0; i < pagesize; ++i)
2690 *(data + i) = rand();
2692 fd = creat("conftestmmap", 0600);
2695 if (write(fd, data, pagesize) != pagesize)
2700 * Next, try to mmap the file at a fixed address which
2701 * already has something else allocated at it. If we can,
2702 * also make sure that we see the same garbage.
2704 fd = open("conftestmmap", O_RDWR);
2707 data2 = malloc(2 * pagesize);
2710 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2711 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2712 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2714 for (i = 0; i < pagesize; ++i)
2715 if (*(data + i) != *(data2 + i))
2719 * Finally, make sure that changes to the mapped area
2720 * do not percolate back to the file as seen by read().
2721 * (This is a bug on some variants of i386 svr4.0.)
2723 for (i = 0; i < pagesize; ++i)
2724 *(data2 + i) = *(data2 + i) + 1;
2725 data3 = malloc(pagesize);
2728 if (read(fd, data3, pagesize) != pagesize)
2730 for (i = 0; i < pagesize; ++i)
2731 if (*(data + i) != *(data3 + i))
2734 unlink("conftestmmap");
2739 if { (eval echo configure
:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2741 ac_cv_func_mmap_fixed_mapped
=yes
2743 echo "configure: failed program was:" >&5
2744 cat conftest.
$ac_ext >&5
2746 ac_cv_func_mmap_fixed_mapped
=no
2753 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2754 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2755 cat >> confdefs.h
<<\EOF
2762 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2763 unistd.h values.h sys
/param.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 \"`echo '$''{'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`
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 getcwd munmap putenv setenv setlocale strchr strcasecmp \
2804 __argz_count __argz_stringify __argz_next
2806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2807 echo "configure:2808: checking for $ac_func" >&5
2808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 cat > conftest.
$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2814 /* System header to define __stub macros and hopefully few prototypes,
2815 which can conflict with char $ac_func(); below. */
2817 /* Override any gcc2 internal prototype to avoid an error. */
2818 /* We use char because int might match the return type of a gcc2
2819 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
; 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
2860 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2861 for ac_func
in stpcpy
2863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2864 echo "configure:2865: checking for $ac_func" >&5
2865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 cat > conftest.
$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2871 /* System header to define __stub macros and hopefully few prototypes,
2872 which can conflict with char $ac_func(); below. */
2874 /* Override any gcc2 internal prototype to avoid an error. */
2875 /* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2881 /* The GNU C library defines this for functions which it implements
2882 to always fail with ENOSYS. Some functions are actually named
2883 something starting with __ and the normal name is an alias. */
2884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2892 if { (eval echo configure
:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2894 eval "ac_cv_func_$ac_func=yes"
2896 echo "configure: failed program was:" >&5
2897 cat conftest.
$ac_ext >&5
2899 eval "ac_cv_func_$ac_func=no"
2904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2905 echo "$ac_t""yes" 1>&6
2906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2907 cat >> confdefs.h
<<EOF
2908 #define $ac_tr_func 1
2912 echo "$ac_t""no" 1>&6
2917 if test "${ac_cv_func_stpcpy}" = "yes"; then
2918 cat >> confdefs.h
<<\EOF
2919 #define HAVE_STPCPY 1
2924 if test $ac_cv_header_locale_h = yes; then
2925 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2926 echo "configure:2927: checking for LC_MESSAGES" >&5
2927 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 cat > conftest.
$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2938 if { (eval echo configure
:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2940 am_cv_val_LC_MESSAGES
=yes
2942 echo "configure: failed program was:" >&5
2943 cat conftest.
$ac_ext >&5
2945 am_cv_val_LC_MESSAGES
=no
2950 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2951 if test $am_cv_val_LC_MESSAGES = yes; then
2952 cat >> confdefs.h
<<\EOF
2953 #define HAVE_LC_MESSAGES 1
2958 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2959 echo "configure:2960: checking whether NLS is requested" >&5
2960 # Check whether --enable-nls or --disable-nls was given.
2961 if test "${enable_nls+set}" = set; then
2962 enableval
="$enable_nls"
2968 echo "$ac_t""$USE_NLS" 1>&6
2971 USE_INCLUDED_LIBINTL
=no
2973 if test "$USE_NLS" = "yes"; then
2974 cat >> confdefs.h
<<\EOF
2975 #define ENABLE_NLS 1
2978 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2979 echo "configure:2980: checking whether included gettext is requested" >&5
2980 # Check whether --with-included-gettext or --without-included-gettext was given.
2981 if test "${with_included_gettext+set}" = set; then
2982 withval
="$with_included_gettext"
2983 nls_cv_force_use_gnu_gettext
=$withval
2985 nls_cv_force_use_gnu_gettext
=no
2988 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2990 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2991 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2993 nls_cv_header_libgt
=
2996 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2997 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2998 echo "configure:2999: checking for libintl.h" >&5
2999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 cat > conftest.
$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005 #include <libintl.h>
3007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3008 { (eval echo configure
:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3009 ac_err
=`grep -v '^ *+' conftest.out`
3010 if test -z "$ac_err"; then
3012 eval "ac_cv_header_$ac_safe=yes"
3015 echo "configure: failed program was:" >&5
3016 cat conftest.
$ac_ext >&5
3018 eval "ac_cv_header_$ac_safe=no"
3022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
3024 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3025 echo "configure:3026: checking for gettext in libc" >&5
3026 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 cat > conftest.
$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3032 #include <libintl.h>
3034 return (int) gettext ("")
3037 if { (eval echo configure
:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3039 gt_cv_func_gettext_libc
=yes
3041 echo "configure: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3044 gt_cv_func_gettext_libc
=no
3049 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3051 if test "$gt_cv_func_gettext_libc" != "yes"; then
3052 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3053 echo "configure:3054: checking for bindtextdomain in -lintl" >&5
3054 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 ac_save_LIBS
="$LIBS"
3060 cat > conftest.
$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* Override any gcc2 internal prototype to avoid an error. */
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066 char bindtextdomain();
3072 if { (eval echo configure
:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3076 echo "configure: failed program was:" >&5
3077 cat conftest.
$ac_ext >&5
3079 eval "ac_cv_lib_$ac_lib_var=no"
3082 LIBS
="$ac_save_LIBS"
3085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3088 echo "configure:3089: checking for gettext in libintl" >&5
3089 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 cat > conftest.
$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3097 return (int) gettext ("")
3100 if { (eval echo configure
:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3102 gt_cv_func_gettext_libintl
=yes
3104 echo "configure: failed program was:" >&5
3105 cat conftest.
$ac_ext >&5
3107 gt_cv_func_gettext_libintl
=no
3112 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3114 echo "$ac_t""no" 1>&6
3119 if test "$gt_cv_func_gettext_libc" = "yes" \
3120 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3121 cat >> confdefs.h
<<\EOF
3122 #define HAVE_GETTEXT 1
3125 # Extract the first word of "msgfmt", so it can be a program name with args.
3126 set dummy msgfmt
; ac_word
=$2
3127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3128 echo "configure:3129: checking for $ac_word" >&5
3129 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3134 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3137 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3138 for ac_dir
in $PATH; do
3139 test -z "$ac_dir" && ac_dir
=.
3140 if test -f $ac_dir/$ac_word; then
3141 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3142 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3148 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3152 MSGFMT
="$ac_cv_path_MSGFMT"
3153 if test -n "$MSGFMT"; then
3154 echo "$ac_t""$MSGFMT" 1>&6
3156 echo "$ac_t""no" 1>&6
3158 if test "$MSGFMT" != "no"; then
3159 for ac_func
in dcgettext
3161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3162 echo "configure:3163: checking for $ac_func" >&5
3163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 cat > conftest.
$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3169 /* System header to define __stub macros and hopefully few prototypes,
3170 which can conflict with char $ac_func(); below. */
3172 /* Override any gcc2 internal prototype to avoid an error. */
3173 /* We use char because int might match the return type of a gcc2
3174 builtin and then its argument prototype would still apply. */
3179 /* The GNU C library defines this for functions which it implements
3180 to always fail with ENOSYS. Some functions are actually named
3181 something starting with __ and the normal name is an alias. */
3182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3190 if { (eval echo configure
:3191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3192 eval "ac_cv_func_$ac_func=yes"
3194 echo "configure: failed program was:" >&5
3195 cat conftest.
$ac_ext >&5
3197 eval "ac_cv_func_$ac_func=no"
3202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3203 echo "$ac_t""yes" 1>&6
3204 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3205 cat >> confdefs.h
<<EOF
3206 #define $ac_tr_func 1
3210 echo "$ac_t""no" 1>&6
3214 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3215 set dummy gmsgfmt
; ac_word
=$2
3216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3217 echo "configure:3218: checking for $ac_word" >&5
3218 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3223 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3226 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3230 for ac_dir
in $PATH; do
3231 test -z "$ac_dir" && ac_dir
=.
3232 if test -f $ac_dir/$ac_word; then
3233 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3238 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3242 GMSGFMT
="$ac_cv_path_GMSGFMT"
3243 if test -n "$GMSGFMT"; then
3244 echo "$ac_t""$GMSGFMT" 1>&6
3246 echo "$ac_t""no" 1>&6
3249 # Extract the first word of "xgettext", so it can be a program name with args.
3250 set dummy xgettext
; ac_word
=$2
3251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_word" >&5
3253 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3258 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3261 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3262 for ac_dir
in $PATH; do
3263 test -z "$ac_dir" && ac_dir
=.
3264 if test -f $ac_dir/$ac_word; then
3265 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3266 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3272 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3276 XGETTEXT
="$ac_cv_path_XGETTEXT"
3277 if test -n "$XGETTEXT"; then
3278 echo "$ac_t""$XGETTEXT" 1>&6
3280 echo "$ac_t""no" 1>&6
3283 cat > conftest.
$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3288 extern int _nl_msg_cat_cntr;
3289 return _nl_msg_cat_cntr
3292 if { (eval echo configure
:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3297 echo "configure: failed program was:" >&5
3298 cat conftest.
$ac_ext >&5
3309 echo "$ac_t""no" 1>&6
3314 if test "$CATOBJEXT" = "NONE"; then
3315 nls_cv_use_gnu_gettext
=yes
3319 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3320 INTLOBJS
="\$(GETTOBJS)"
3321 # Extract the first word of "msgfmt", so it can be a program name with args.
3322 set dummy msgfmt
; ac_word
=$2
3323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3324 echo "configure:3325: checking for $ac_word" >&5
3325 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3330 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3333 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3334 for ac_dir
in $PATH; do
3335 test -z "$ac_dir" && ac_dir
=.
3336 if test -f $ac_dir/$ac_word; then
3337 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3338 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3344 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
3348 MSGFMT
="$ac_cv_path_MSGFMT"
3349 if test -n "$MSGFMT"; then
3350 echo "$ac_t""$MSGFMT" 1>&6
3352 echo "$ac_t""no" 1>&6
3355 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3356 set dummy gmsgfmt
; ac_word
=$2
3357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3358 echo "configure:3359: checking for $ac_word" >&5
3359 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3364 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3367 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3370 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3371 for ac_dir
in $PATH; do
3372 test -z "$ac_dir" && ac_dir
=.
3373 if test -f $ac_dir/$ac_word; then
3374 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3379 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3383 GMSGFMT
="$ac_cv_path_GMSGFMT"
3384 if test -n "$GMSGFMT"; then
3385 echo "$ac_t""$GMSGFMT" 1>&6
3387 echo "$ac_t""no" 1>&6
3390 # Extract the first word of "xgettext", so it can be a program name with args.
3391 set dummy xgettext
; ac_word
=$2
3392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3393 echo "configure:3394: checking for $ac_word" >&5
3394 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3399 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3402 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3403 for ac_dir
in $PATH; do
3404 test -z "$ac_dir" && ac_dir
=.
3405 if test -f $ac_dir/$ac_word; then
3406 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3407 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3413 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3417 XGETTEXT
="$ac_cv_path_XGETTEXT"
3418 if test -n "$XGETTEXT"; then
3419 echo "$ac_t""$XGETTEXT" 1>&6
3421 echo "$ac_t""no" 1>&6
3425 USE_INCLUDED_LIBINTL
=yes
3429 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
3431 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
3432 nls_cv_header_intl
=libintl.h
3433 nls_cv_header_libgt
=libgettext.h
3436 if test "$XGETTEXT" != ":"; then
3437 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
3440 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3445 # We need to process the po/ directory.
3449 nls_cv_header_intl
=libintl.h
3450 nls_cv_header_libgt
=libgettext.h
3453 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3454 # because some of the sources are only built for this goal.
3455 if test "$PACKAGE" = gettext; then
3457 USE_INCLUDED_LIBINTL
=yes
3460 for lang
in $ALL_LINGUAS; do
3461 GMOFILES
="$GMOFILES $lang.gmo"
3462 POFILES
="$POFILES $lang.po"
3478 if test "x$CATOBJEXT" != "x"; then
3479 if test "x$ALL_LINGUAS" = "x"; then
3482 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3483 echo "configure:3484: checking for catalogs to be installed" >&5
3485 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
3486 case "$ALL_LINGUAS" in
3487 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
3490 LINGUAS
=$NEW_LINGUAS
3491 echo "$ac_t""$LINGUAS" 1>&6
3494 if test -n "$LINGUAS"; then
3495 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
3499 if test $ac_cv_header_locale_h = yes; then
3500 INCLUDE_LOCALE_H
="#include <locale.h>"
3503 /* The system does not provide the header <locale.h>. Take care yourself. */"
3507 if test -f $srcdir/po2tbl.
sed.
in; then
3508 if test "$CATOBJEXT" = ".cat"; then
3509 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3510 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3511 echo "configure:3512: checking for linux/version.h" >&5
3512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.
$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 #include <linux/version.h>
3520 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3521 { (eval echo configure
:3522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3522 ac_err
=`grep -v '^ *+' conftest.out`
3523 if test -z "$ac_err"; then
3525 eval "ac_cv_header_$ac_safe=yes"
3528 echo "configure: failed program was:" >&5
3529 cat conftest.
$ac_ext >&5
3531 eval "ac_cv_header_$ac_safe=no"
3535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3539 echo "$ac_t""no" 1>&6
3544 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
3546 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3547 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
3550 if test "$PACKAGE" = "gettext"; then
3560 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
3566 if test -d $srcdir/po
; then
3567 test -d po || mkdir po
3568 if test "x$srcdir" != "x."; then
3569 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3570 posrcprefix
="$srcdir/"
3572 posrcprefix
="../$srcdir/"
3578 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3579 < $srcdir/po
/POTFILES.
in > po
/POTFILES
3583 .
${srcdir}/..
/bfd
/configure.
host
3587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3590 for ac_hdr
in string.h
strings.h stdlib.h
3592 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_hdr" >&5
3595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3603 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3604 { (eval echo configure
:3605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3605 ac_err
=`grep -v '^ *+' conftest.out`
3606 if test -z "$ac_err"; then
3608 eval "ac_cv_header_$ac_safe=yes"
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3614 eval "ac_cv_header_$ac_safe=no"
3618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3621 cat >> confdefs.h
<<EOF
3622 #define $ac_tr_hdr 1
3626 echo "$ac_t""no" 1>&6
3631 # start-sanitize-cygnus
3634 # Having --enable-maintainer-mode take arguments is another way to go.
3635 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
3636 if test "${enable_cgen_maint+set}" = set; then
3637 enableval
="$enable_cgen_maint"
3638 case "${enableval}" in
3639 yes) cgen_maint
=yes ;;
3640 no
) cgen_maint
=no
;;
3641 *) { echo "configure: error: bad value ${enableval} for opcodes cgen-maint option" 1>&2; exit 1; } ;;
3646 if test x
${cgen_maint} = xyes
; then
3648 CGEN_MAINT_FALSE
='#'
3653 if test "x${cgen_maint}" = xyes
; then
3654 for targ
in $target $canon_targets
3657 all
) use_cgen
=yes ;;
3658 m32r-
*-*) use_cgen
=yes ;;
3662 if test $use_cgen = yes ; then
3663 # Extract the first word of "guile", so it can be a program name with args.
3664 set dummy guile
; ac_word
=$2
3665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3666 echo "configure:3667: checking for $ac_word" >&5
3667 if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 if test -n "$SCHEME"; then
3671 ac_cv_prog_SCHEME
="$SCHEME" # Let the user override the test.
3673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3674 for ac_dir
in $PATH; do
3675 test -z "$ac_dir" && ac_dir
=.
3676 if test -f $ac_dir/$ac_word; then
3677 ac_cv_prog_SCHEME
="guile"
3682 test -z "$ac_cv_prog_SCHEME" && ac_cv_prog_SCHEME
="guile"
3685 SCHEME
="$ac_cv_prog_SCHEME"
3686 if test -n "$SCHEME"; then
3687 echo "$ac_t""$SCHEME" 1>&6
3689 echo "$ac_t""no" 1>&6
3693 # end-sanitize-cygnus
3695 # Horrible hacks to build DLLs on Windows.
3700 if test "$enable_shared" = "yes"; then
3701 WIN32LDFLAGS
="-no-undefined"
3702 WIN32LIBADD
="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
3709 # target-specific stuff:
3711 # Canonicalize the secondary target names.
3712 if test -n "$enable_targets" ; then
3713 for targ
in `echo $enable_targets | sed 's/,/ /g'`
3715 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
3716 if test -n "$result" ; then
3717 canon_targets
="$canon_targets $result"
3719 # Allow targets that config.sub doesn't recognize, like "all".
3720 canon_targets
="$canon_targets $targ"
3727 for targ
in $target $canon_targets
3729 if test "x$targ" = "xall" ; then
3732 .
$srcdir/..
/bfd
/config.bfd
3733 selarchs
="$selarchs $targ_archs"
3737 # Utility var, documents generic cgen support files.
3739 cgen_files
="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
3741 # We don't do any links based on the target system, just makefile config.
3743 if test x
${all_targets} = xfalse
; then
3745 # Target architecture .o files.
3748 for arch
in $selarchs
3750 ad
=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
3751 archdefs
="$archdefs -DARCH_$ad"
3753 bfd_a29k_arch
) ta
="$ta a29k-dis.lo" ;;
3754 bfd_alliant_arch
) ;;
3755 bfd_alpha_arch
) ta
="$ta alpha-dis.lo alpha-opc.lo" ;;
3756 bfd_arc_arch
) ta
="$ta arc-dis.lo arc-opc.lo" ;;
3757 bfd_arm_arch
) ta
="$ta arm-dis.lo" ;;
3759 bfd_d10v_arch
) ta
="$ta d10v-dis.lo d10v-opc.lo" ;;
3760 # start-sanitize-d30v
3761 bfd_d30v_arch
) ta
="$ta d30v-dis.lo d30v-opc.lo" ;;
3763 bfd_h8300_arch
) ta
="$ta h8300-dis.lo" ;;
3764 bfd_h8500_arch
) ta
="$ta h8500-dis.lo" ;;
3765 bfd_hppa_arch
) ta
="$ta hppa-dis.lo" ;;
3766 bfd_i386_arch
) ta
="$ta i386-dis.lo" ;;
3768 bfd_i960_arch
) ta
="$ta i960-dis.lo" ;;
3769 bfd_m32r_arch
) ta
="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
3770 bfd_m68k_arch
) ta
="$ta m68k-dis.lo m68k-opc.lo" ;;
3771 bfd_m88k_arch
) ta
="$ta m88k-dis.lo" ;;
3772 bfd_mips_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3773 bfd_mn10200_arch
) ta
="$ta m10200-dis.lo m10200-opc.lo" ;;
3774 bfd_mn10300_arch
) ta
="$ta m10300-dis.lo m10300-opc.lo" ;;
3775 bfd_ns32k_arch
) ta
="$ta ns32k-dis.lo" ;;
3776 bfd_powerpc_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
3777 bfd_pyramid_arch
) ;;
3779 bfd_rs6000_arch
) ta
="$ta ppc-dis.lo ppc-opc.lo" ;;
3780 bfd_sh_arch
) ta
="$ta sh-dis.lo" ;;
3781 bfd_sparc_arch
) ta
="$ta sparc-dis.lo sparc-opc.lo" ;;
3783 bfd_tic30_arch
) ta
="$ta tic30-dis.lo" ;;
3784 # start-sanitize-tic80
3785 bfd_tic80_arch
) ta
="$ta tic80-dis.lo tic80-opc.lo" ;;
3786 # end-sanitize-tic80
3787 # start-sanitize-sky
3788 bfd_dvp_arch
) ta
="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
3790 bfd_v850_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
3791 # start-sanitize-v850e
3792 bfd_v850e_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
3793 bfd_v850ea_arch
) ta
="$ta v850-opc.lo v850-dis.lo" ;;
3794 # end-sanitize-v850e
3795 bfd_vax_arch
) ta
="$ta vax-dis.lo" ;;
3796 bfd_w65_arch
) ta
="$ta w65-dis.lo" ;;
3798 bfd_z8k_arch
) ta
="$ta z8k-dis.lo" ;;
3801 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
3805 # Weed out duplicate .o files.
3815 # And duplicate -D flags.
3817 for i
in $archdefs ; do
3827 else # all_targets is true
3829 BFD_MACHINES
='$(ALL_MACHINES)'
3836 cat > confcache
<<\EOF
3837 # This file is a shell script that caches the results of configure
3838 # tests run on this system so they can be shared between configure
3839 # scripts and configure runs. It is not useful on other systems.
3840 # If it contains results you don't want to keep, you may remove or edit it.
3842 # By default, configure uses ./config.cache as the cache file,
3843 # creating it if it does not exist already. You can give configure
3844 # the --cache-file=FILE option to use a different cache file; that is
3845 # what configure does when it calls configure scripts in
3846 # subdirectories, so they share the cache.
3847 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3848 # config.status only pays attention to the cache file if you give it the
3849 # --recheck option to rerun configure.
3852 # The following way of writing the cache mishandles newlines in values,
3853 # but we know of no workaround that is simple, portable, and efficient.
3854 # So, don't put newlines in cache variables' values.
3855 # Ultrix sh set writes to stderr and can't be redirected directly,
3856 # and sets the high bit in the cache file unless we assign to the vars.
3858 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3860 # `set' does not quote correctly, so add quotes (double-quote substitution
3861 # turns \\\\ into \\, and sed turns \\ into \).
3863 -e "s/'/'\\\\''/g" \
3864 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3867 # `set' quotes correctly as required by POSIX, so do not add quotes.
3868 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3871 if cmp -s $cache_file confcache
; then
3874 if test -w $cache_file; then
3875 echo "updating cache $cache_file"
3876 cat confcache
> $cache_file
3878 echo "not updating unwritable cache $cache_file"
3883 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3885 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3886 # Let make expand exec_prefix.
3887 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3889 # Any assignment to VPATH causes Sun make to only execute
3890 # the first set of double-colon rules, so remove it if not needed.
3891 # If there is a colon in the path, we need to keep it.
3892 if test "x$srcdir" = x.
; then
3893 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3896 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3898 DEFS
=-DHAVE_CONFIG_H
3900 # Without the "./", some shells look in PATH for config.status.
3901 : ${CONFIG_STATUS=./config.status}
3903 echo creating
$CONFIG_STATUS
3904 rm -f $CONFIG_STATUS
3905 cat > $CONFIG_STATUS <<EOF
3907 # Generated automatically by configure.
3908 # Run this file to recreate the current configuration.
3909 # This directory was configured as follows,
3910 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3912 # $0 $ac_configure_args
3914 # Compiler output produced by configure, useful for debugging
3915 # configure, is in ./config.log if it exists.
3917 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3920 case "\$ac_option" in
3921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3922 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3923 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3924 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3925 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3927 -help | --help | --hel | --he | --h)
3928 echo "\$ac_cs_usage"; exit 0 ;;
3929 *) echo "\$ac_cs_usage"; exit 1 ;;
3933 ac_given_srcdir=$srcdir
3934 ac_given_INSTALL="$INSTALL"
3936 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3938 cat >> $CONFIG_STATUS <<EOF
3940 # Protect against being on the right side of a sed subst in config.status.
3941 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3942 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3946 s%@CFLAGS@%$CFLAGS%g
3947 s%@CPPFLAGS@%$CPPFLAGS%g
3948 s%@CXXFLAGS@%$CXXFLAGS%g
3950 s%@LDFLAGS@%$LDFLAGS%g
3952 s%@exec_prefix@%$exec_prefix%g
3953 s%@prefix@%$prefix%g
3954 s%@program_transform_name@%$program_transform_name%g
3955 s%@bindir@%$bindir%g
3956 s%@sbindir@%$sbindir%g
3957 s%@libexecdir@%$libexecdir%g
3958 s%@datadir@%$datadir%g
3959 s%@sysconfdir@%$sysconfdir%g
3960 s%@sharedstatedir@%$sharedstatedir%g
3961 s%@localstatedir@%$localstatedir%g
3962 s%@libdir@%$libdir%g
3963 s%@includedir@%$includedir%g
3964 s%@oldincludedir@%$oldincludedir%g
3965 s%@infodir@%$infodir%g
3966 s%@mandir@%$mandir%g
3968 s%@host_alias@%$host_alias%g
3969 s%@host_cpu@%$host_cpu%g
3970 s%@host_vendor@%$host_vendor%g
3971 s%@host_os@%$host_os%g
3972 s%@target@%$target%g
3973 s%@target_alias@%$target_alias%g
3974 s%@target_cpu@%$target_cpu%g
3975 s%@target_vendor@%$target_vendor%g
3976 s%@target_os@%$target_os%g
3978 s%@build_alias@%$build_alias%g
3979 s%@build_cpu@%$build_cpu%g
3980 s%@build_vendor@%$build_vendor%g
3981 s%@build_os@%$build_os%g
3983 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3984 s%@INSTALL_DATA@%$INSTALL_DATA%g
3985 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3986 s%@PACKAGE@%$PACKAGE%g
3987 s%@VERSION@%$VERSION%g
3988 s%@ACLOCAL@%$ACLOCAL%g
3989 s%@AUTOCONF@%$AUTOCONF%g
3990 s%@AUTOMAKE@%$AUTOMAKE%g
3991 s%@AUTOHEADER@%$AUTOHEADER%g
3992 s%@MAKEINFO@%$MAKEINFO%g
3993 s%@SET_MAKE@%$SET_MAKE%g
3995 s%@RANLIB@%$RANLIB%g
3999 s%@LIBTOOL@%$LIBTOOL%g
4000 s%@DLLTOOL@%$DLLTOOL%g
4003 s%@EXEEXT@%$EXEEXT%g
4005 s%@ALLOCA@%$ALLOCA%g
4006 s%@USE_NLS@%$USE_NLS%g
4007 s%@MSGFMT@%$MSGFMT%g
4008 s%@GMSGFMT@%$GMSGFMT%g
4009 s%@XGETTEXT@%$XGETTEXT%g
4010 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4011 s%@CATALOGS@%$CATALOGS%g
4012 s%@CATOBJEXT@%$CATOBJEXT%g
4013 s%@DATADIRNAME@%$DATADIRNAME%g
4014 s%@GMOFILES@%$GMOFILES%g
4015 s%@INSTOBJEXT@%$INSTOBJEXT%g
4016 s%@INTLDEPS@%$INTLDEPS%g
4017 s%@INTLLIBS@%$INTLLIBS%g
4018 s%@INTLOBJS@%$INTLOBJS%g
4019 s%@POFILES@%$POFILES%g
4021 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4023 s%@GT_YES@%$GT_YES%g
4024 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4026 s%@HDEFINES@%$HDEFINES%g
4027 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4028 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4029 s%@SCHEME@%$SCHEME%g
4030 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4031 s%@WIN32LIBADD@%$WIN32LIBADD%g
4032 s%@archdefs@%$archdefs%g
4033 s%@BFD_MACHINES@%$BFD_MACHINES%g
4038 cat >> $CONFIG_STATUS <<\EOF
4040 # Split the substitutions into bite-sized pieces for seds with
4041 # small command number limits, like on Digital OSF/1 and HP-UX.
4042 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4043 ac_file
=1 # Number of current file.
4044 ac_beg
=1 # First line for current file.
4045 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4048 while $ac_more_lines; do
4049 if test $ac_beg -gt 1; then
4050 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4052 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4054 if test ! -s conftest.s
$ac_file; then
4056 rm -f conftest.s
$ac_file
4058 if test -z "$ac_sed_cmds"; then
4059 ac_sed_cmds
="sed -f conftest.s$ac_file"
4061 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4063 ac_file
=`expr $ac_file + 1`
4065 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4068 if test -z "$ac_sed_cmds"; then
4073 cat >> $CONFIG_STATUS <<EOF
4075 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4077 cat >> $CONFIG_STATUS <<\EOF
4078 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4081 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4082 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4083 *) ac_file_in
="${ac_file}.in" ;;
4086 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4088 # Remove last slash and all that follows it. Not all systems have dirname.
4089 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4090 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4091 # The file is in a subdirectory.
4092 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4093 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4094 # A "../" for each directory in $ac_dir_suffix.
4095 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4097 ac_dir_suffix
= ac_dots
=
4100 case "$ac_given_srcdir" in
4102 if test -z "$ac_dots"; then top_srcdir
=.
4103 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4104 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4106 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4107 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4110 case "$ac_given_INSTALL" in
4111 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4112 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4115 echo creating
"$ac_file"
4117 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4119 *Makefile
*) ac_comsub
="1i\\
4120 # $configure_input" ;;
4124 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4126 s%@configure_input@%$configure_input%g
4127 s%@srcdir@%$srcdir%g
4128 s%@top_srcdir@%$top_srcdir%g
4129 s%@INSTALL@%$INSTALL%g
4130 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4134 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4135 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4137 # ac_d sets the value in "#define NAME VALUE" lines.
4138 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4139 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4142 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4143 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4144 ac_uB
='\([ ]\)%\1#\2define\3'
4147 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4148 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4149 ac_eB
='$%\1#\2define\3'
4153 if test "${CONFIG_HEADERS+set}" != set; then
4155 cat >> $CONFIG_STATUS <<EOF
4156 CONFIG_HEADERS="config.h:config.in"
4158 cat >> $CONFIG_STATUS <<\EOF
4160 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4163 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4164 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4165 *) ac_file_in
="${ac_file}.in" ;;
4168 echo creating
$ac_file
4170 rm -f conftest.frag conftest.
in conftest.out
4171 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4172 cat $ac_file_inputs > conftest.
in
4176 # Transform confdefs.h into a sed script conftest.vals that substitutes
4177 # the proper values into config.h.in to produce config.h. And first:
4178 # Protect against being on the right side of a sed subst in config.status.
4179 # Protect against being in an unquoted here document in config.status.
4181 cat > conftest.hdr
<<\EOF
4184 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4188 sed -n -f conftest.hdr confdefs.h > conftest.vals
4191 # This sed command replaces #undef with comments. This is necessary, for
4192 # example, in the case of _POSIX_SOURCE, which is predefined and required
4193 # on some systems where configure will not decide to define it.
4194 cat >> conftest.vals <<\EOF
4195 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4198 # Break up conftest.vals because some shells have a limit on
4199 # the size of here documents, and old seds have small limits too.
4204 ac_lines=`grep -c . conftest.vals
`
4205 # grep -c gives empty output for an empty file on some AIX systems.
4206 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4207 # Write a limited-size here document to conftest.frag.
4208 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4209 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4211 sed -f conftest.frag conftest.in > conftest.out
4213 mv conftest.out conftest.in
4215 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4217 mv conftest.tail conftest.vals
4221 cat >> $CONFIG_STATUS <<\EOF
4222 rm -f conftest.frag conftest.h
4223 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4224 cat conftest.in >> conftest.h
4226 if cmp -s $ac_file conftest.h 2>/dev/null; then
4227 echo "$ac_file is unchanged"
4230 # Remove last slash and all that follows it. Not all systems have dirname.
4231 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4232 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4233 # The file is in a subdirectory.
4234 test ! -d "$ac_dir" && mkdir "$ac_dir"
4237 mv conftest.h $ac_file
4242 cat >> $CONFIG_STATUS <<EOF
4246 cat >> $CONFIG_STATUS <<\EOF
4247 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4248 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4251 chmod +x $CONFIG_STATUS
4252 rm -fr confdefs* $ac_clean_files
4253 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1