3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-targets alternative target configurations"
27 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
29 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 --disable-nls do not use Native Language Support"
36 --with-included-gettext use the GNU gettext library included here"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file=./config.cache
51 program_transform_name=s,x,x,
59 bindir='${exec_prefix}/bin'
60 sbindir='${exec_prefix}/sbin'
61 libexecdir='${exec_prefix}/libexec'
62 datadir='${prefix}/share'
63 sysconfdir='${prefix}/etc'
64 sharedstatedir='${prefix}/com'
65 localstatedir='${prefix}/var'
66 libdir='${exec_prefix}/lib'
67 includedir='${prefix}/include'
68 oldincludedir='/usr/include'
69 infodir='${prefix}/info'
70 mandir='${prefix}/man'
72 # Initialize some other variables.
75 SHELL=${CONFIG_SHELL-/bin/sh}
76 # Maximum number of lines to put in a shell here document.
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
91 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 # Accept the important Cygnus configure options, so we can diagnose typos.
99 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102 bindir="$ac_optarg" ;;
104 -build | --build | --buil | --bui | --bu)
106 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107 build="$ac_optarg" ;;
109 -cache-file | --cache-file | --cache-fil | --cache-fi \
110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
111 ac_prev=cache_file ;;
112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
114 cache_file="$ac_optarg" ;;
116 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 datadir="$ac_optarg" ;;
122 -disable-* | --disable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}=no" ;;
131 -enable-* | --enable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
144 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
145 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
146 | --exec | --exe | --ex)
147 ac_prev=exec_prefix ;;
148 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
149 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
150 | --exec=* | --exe=* | --ex=*)
151 exec_prefix="$ac_optarg" ;;
153 -gas | --gas | --ga | --g)
154 # Obsolete; use --with-gas.
157 -help | --help | --hel | --he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
341 srcdir="$ac_optarg" ;;
343 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
344 | --syscon | --sysco | --sysc | --sys | --sy)
345 ac_prev=sysconfdir ;;
346 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
347 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
348 sysconfdir="$ac_optarg" ;;
350 -target | --target | --targe | --targ | --tar | --ta | --t)
352 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353 target="$ac_optarg" ;;
355 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 -version | --version | --versio | --versi | --vers)
359 echo "configure generated by autoconf version 2.13"
363 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}='$ac_optarg'" ;;
375 -without-* | --without-*)
376 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
385 # Obsolete; use --with-x.
388 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
389 | --x-incl | --x-inc | --x-in | --x-i)
390 ac_prev=x_includes ;;
391 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
392 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
393 x_includes="$ac_optarg" ;;
395 -x-libraries | --x-libraries | --x-librarie | --x-librari \
396 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
397 ac_prev=x_libraries ;;
398 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
399 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
400 x_libraries="$ac_optarg" ;;
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 if test "x$nonopt" != xNONE; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424 # File descriptor usage:
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
450 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451 | --no-cr | --no-c) ;;
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461 # Only set these to C if already set. These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
466 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
468 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
477 ac_unique_file=z8k-dis.c
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481 ac_srcdir_defaulted=yes
482 # Try the directory containing this script, then its parent.
484 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 if test ! -r $srcdir/$ac_unique_file; then
491 ac_srcdir_defaulted=no
493 if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE; then
505 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 for ac_site_file in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
521 echo "creating cache $cache_file"
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp='$CPP $CPPFLAGS'
528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543 ac_n= ac_c='\c' ac_t=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh; then
556 ac_install_sh="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
568 # Do some error checking and defaulting for the host and target type.
570 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
573 # 1. You are not allowed to specify --host, --target, and nonopt at the
575 # 2. Host defaults to nonopt.
576 # 3. If nonopt is not specified, then host defaults to the current host,
577 # as determined by config.guess.
578 # 4. Target and build default to nonopt.
579 # 5. If nonopt is not specified, then target and build default to host.
581 # The aliases save the names the user supplied, while $host etc.
582 # will get canonicalized.
583 case $host---$target---$nonopt in
584 NONE---*---* | *---NONE---* | *---*---NONE) ;;
585 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
589 # Make sure we can run config.sub.
590 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
591 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
594 echo $ac_n "checking host system type""... $ac_c" 1>&6
595 echo "configure:596: checking host system type" >&5
598 case "$host_alias" in
602 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
603 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
605 *) host_alias=$nonopt ;;
609 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
610 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
611 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
612 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
613 echo "$ac_t""$host" 1>&6
615 echo $ac_n "checking target system type""... $ac_c" 1>&6
616 echo "configure:617: checking target system type" >&5
619 case "$target_alias" in
622 NONE) target_alias=$host_alias ;;
623 *) target_alias=$nonopt ;;
627 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
628 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$target" 1>&6
633 echo $ac_n "checking build system type""... $ac_c" 1>&6
634 echo "configure:635: checking build system type" >&5
637 case "$build_alias" in
640 NONE) build_alias=$host_alias ;;
641 *) build_alias=$nonopt ;;
645 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
646 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$build" 1>&6
651 test "$host_alias" != "$target_alias" &&
652 test "$program_prefix$program_suffix$program_transform_name" = \
654 program_prefix=${target_alias}-
656 # Extract the first word of "gcc", so it can be a program name with args.
657 set dummy gcc; ac_word=$2
658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
659 echo "configure:660: checking for $ac_word" >&5
660 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 if test -n "$CC"; then
664 ac_cv_prog_CC="$CC" # Let the user override the test.
666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 for ac_dir in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir=.
670 if test -f $ac_dir/$ac_word; then
679 if test -n "$CC"; then
680 echo "$ac_t""$CC" 1>&6
682 echo "$ac_t""no" 1>&6
685 if test -z "$CC"; then
686 # Extract the first word of "cc", so it can be a program name with args.
687 set dummy cc; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
693 if test -n "$CC"; then
694 ac_cv_prog_CC="$CC" # Let the user override the test.
696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
699 for ac_dir in $ac_dummy; do
700 test -z "$ac_dir" && ac_dir=.
701 if test -f $ac_dir/$ac_word; then
702 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
711 if test $ac_prog_rejected = yes; then
712 # We found a bogon in the path, so make sure we never use it.
713 set dummy $ac_cv_prog_CC
715 if test $# -gt 0; then
716 # We chose a different compiler from the bogus one.
717 # However, it has the same basename, so the bogon will be chosen
718 # first if we set CC to just the basename; use the full file name.
720 set dummy "$ac_dir/$ac_word" "$@"
728 if test -n "$CC"; then
729 echo "$ac_t""$CC" 1>&6
731 echo "$ac_t""no" 1>&6
734 if test -z "$CC"; then
737 # Extract the first word of "cl", so it can be a program name with args.
738 set dummy cl; ac_word=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 if test -n "$CC"; then
745 ac_cv_prog_CC="$CC" # Let the user override the test.
747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
749 for ac_dir in $ac_dummy; do
750 test -z "$ac_dir" && ac_dir=.
751 if test -f $ac_dir/$ac_word; then
760 if test -n "$CC"; then
761 echo "$ac_t""$CC" 1>&6
763 echo "$ac_t""no" 1>&6
768 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
772 echo "configure:773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
776 ac_cpp='$CPP $CPPFLAGS'
777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
779 cross_compiling=$ac_cv_prog_cc_cross
781 cat > conftest.$ac_ext << EOF
783 #line 784 "configure"
784 #include "confdefs.h"
788 if { (eval echo configure:789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
789 ac_cv_prog_cc_works=yes
790 # If we can't run a trivial program, we are probably using a cross compiler.
791 if (./conftest; exit) 2>/dev/null; then
792 ac_cv_prog_cc_cross=no
794 ac_cv_prog_cc_cross=yes
797 echo "configure: failed program was:" >&5
798 cat conftest.$ac_ext >&5
799 ac_cv_prog_cc_works=no
803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
804 ac_cpp='$CPP $CPPFLAGS'
805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
807 cross_compiling=$ac_cv_prog_cc_cross
809 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
810 if test $ac_cv_prog_cc_works = no; then
811 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
813 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
814 echo "configure:815: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
815 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
816 cross_compiling=$ac_cv_prog_cc_cross
818 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
819 echo "configure:820: checking whether we are using GNU C" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 cat > conftest.c <<EOF
828 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
835 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
837 if test $ac_cv_prog_gcc = yes; then
843 ac_test_CFLAGS="${CFLAGS+set}"
844 ac_save_CFLAGS="$CFLAGS"
846 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
847 echo "configure:848: checking whether ${CC-cc} accepts -g" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 echo 'void f(){}' > conftest.c
852 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
861 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
862 if test "$ac_test_CFLAGS" = set; then
863 CFLAGS="$ac_save_CFLAGS"
864 elif test $ac_cv_prog_cc_g = yes; then
865 if test "$GCC" = yes; then
871 if test "$GCC" = yes; then
878 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
879 echo "configure:880: checking for POSIXized ISC" >&5
880 if test -d /etc/conf/kconfig.d &&
881 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
883 echo "$ac_t""yes" 1>&6
884 ISC=yes # If later tests want to check for ISC.
885 cat >> confdefs.h <<\EOF
886 #define _POSIX_SOURCE 1
889 if test "$GCC" = yes; then
895 echo "$ac_t""no" 1>&6
900 # We currently only use the version number for the name of any shared
901 # library. For user convenience, we always use the same version
902 # number that BFD is using.
903 BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
905 # Find a good install program. We prefer a C program (faster),
906 # so one script is as good as another. But avoid the broken or
907 # incompatible versions:
908 # SysV /etc/install, /usr/sbin/install
909 # SunOS /usr/etc/install
912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
915 # ./install, which can be erroneously created by make from ./install.sh.
916 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
917 echo "configure:918: checking for a BSD compatible install" >&5
918 if test -z "$INSTALL"; then
919 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
923 for ac_dir in $PATH; do
924 # Account for people who put trailing slashes in PATH elements.
926 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
928 # OSF1 and SCO ODT 3.0 have their own names for install.
929 # Don't use installbsd from OSF since it installs stuff as root
931 for ac_prog in ginstall scoinst install; do
932 if test -f $ac_dir/$ac_prog; then
933 if test $ac_prog = install &&
934 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
935 # AIX install. It has an incompatible calling convention.
938 ac_cv_path_install="$ac_dir/$ac_prog -c"
949 if test "${ac_cv_path_install+set}" = set; then
950 INSTALL="$ac_cv_path_install"
952 # As a last resort, use the slow shell script. We don't cache a
953 # path for INSTALL within a source directory, because that will
954 # break other packages using the cache if that directory is
955 # removed, or if the path is relative.
956 INSTALL="$ac_install_sh"
959 echo "$ac_t""$INSTALL" 1>&6
961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
962 # It thinks the first close brace ends the variable substitution.
963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
969 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
970 echo "configure:971: checking whether build environment is sane" >&5
973 echo timestamp > conftestfile
974 # Do `set' in a subshell so we don't clobber the current shell's
975 # arguments. Must try -L first in case configure is actually a
976 # symlink; some systems play weird games with the mod time of symlinks
977 # (eg FreeBSD returns the mod time of the symlink's containing
980 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
981 if test "$*" = "X"; then
983 set X `ls -t $srcdir/configure conftestfile`
985 if test "$*" != "X $srcdir/configure conftestfile" \
986 && test "$*" != "X conftestfile $srcdir/configure"; then
988 # If neither matched, then we have a broken ls. This can happen
989 # if, for instance, CONFIG_SHELL is bash and it inherits a
990 # broken ls alias from the environment. This has actually
991 # happened. Such a system could not be considered "sane".
992 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
993 alias in your environment" 1>&2; exit 1; }
996 test "$2" = conftestfile
1002 { echo "configure: error: newly created file is older than distributed files!
1003 Check your system clock" 1>&2; exit 1; }
1006 echo "$ac_t""yes" 1>&6
1007 if test "$program_transform_name" = s,x,x,; then
1008 program_transform_name=
1010 # Double any \ or $. echo might interpret backslashes.
1011 cat <<\EOF_SED > conftestsed
1012 s,\\,\\\\,g; s,\$,$$,g
1014 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1017 test "$program_prefix" != NONE &&
1018 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1019 # Use a double $ so make ignores it.
1020 test "$program_suffix" != NONE &&
1021 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1023 # sed with no file args requires a program.
1024 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1026 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${MAKE-make} sets \${MAKE}" >&5
1028 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1029 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 cat > conftestmake <<\EOF
1034 @echo 'ac_maketemp="${MAKE}"'
1036 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1037 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1038 if test -n "$ac_maketemp"; then
1039 eval ac_cv_prog_make_${ac_make}_set=yes
1041 eval ac_cv_prog_make_${ac_make}_set=no
1045 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1046 echo "$ac_t""yes" 1>&6
1049 echo "$ac_t""no" 1>&6
1050 SET_MAKE="MAKE=${MAKE-make}"
1056 VERSION=${BFD_VERSION}
1058 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1059 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1061 cat >> confdefs.h <<EOF
1062 #define PACKAGE "$PACKAGE"
1065 cat >> confdefs.h <<EOF
1066 #define VERSION "$VERSION"
1071 missing_dir=`cd $ac_aux_dir && pwd`
1072 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1073 echo "configure:1074: checking for working aclocal" >&5
1074 # Run test in a subshell; some versions of sh will print an error if
1075 # an executable is not found, even if stderr is redirected.
1076 # Redirect stdin to placate older versions of autoconf. Sigh.
1077 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1079 echo "$ac_t""found" 1>&6
1081 ACLOCAL="$missing_dir/missing aclocal"
1082 echo "$ac_t""missing" 1>&6
1085 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1086 echo "configure:1087: checking for working autoconf" >&5
1087 # Run test in a subshell; some versions of sh will print an error if
1088 # an executable is not found, even if stderr is redirected.
1089 # Redirect stdin to placate older versions of autoconf. Sigh.
1090 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1092 echo "$ac_t""found" 1>&6
1094 AUTOCONF="$missing_dir/missing autoconf"
1095 echo "$ac_t""missing" 1>&6
1098 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1099 echo "configure:1100: checking for working automake" >&5
1100 # Run test in a subshell; some versions of sh will print an error if
1101 # an executable is not found, even if stderr is redirected.
1102 # Redirect stdin to placate older versions of autoconf. Sigh.
1103 if (automake --version) < /dev/null > /dev/null 2>&1; then
1105 echo "$ac_t""found" 1>&6
1107 AUTOMAKE="$missing_dir/missing automake"
1108 echo "$ac_t""missing" 1>&6
1111 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1112 echo "configure:1113: checking for working autoheader" >&5
1113 # Run test in a subshell; some versions of sh will print an error if
1114 # an executable is not found, even if stderr is redirected.
1115 # Redirect stdin to placate older versions of autoconf. Sigh.
1116 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1117 AUTOHEADER=autoheader
1118 echo "$ac_t""found" 1>&6
1120 AUTOHEADER="$missing_dir/missing autoheader"
1121 echo "$ac_t""missing" 1>&6
1124 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1125 echo "configure:1126: checking for working makeinfo" >&5
1126 # Run test in a subshell; some versions of sh will print an error if
1127 # an executable is not found, even if stderr is redirected.
1128 # Redirect stdin to placate older versions of autoconf. Sigh.
1129 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1131 echo "$ac_t""found" 1>&6
1133 MAKEINFO="$missing_dir/missing makeinfo"
1134 echo "$ac_t""missing" 1>&6
1139 if test $host != $build; then
1140 ac_tool_prefix=${host_alias}-
1145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1146 set dummy ${ac_tool_prefix}ar; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$AR"; then
1153 ac_cv_prog_AR="$AR" # Let the user override the test.
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_AR="${ac_tool_prefix}ar"
1165 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1169 if test -n "$AR"; then
1170 echo "$ac_t""$AR" 1>&6
1172 echo "$ac_t""no" 1>&6
1177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$RANLIB"; then
1185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1189 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 if test -f $ac_dir/$ac_word; then
1192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1199 RANLIB="$ac_cv_prog_RANLIB"
1200 if test -n "$RANLIB"; then
1201 echo "$ac_t""$RANLIB" 1>&6
1203 echo "$ac_t""no" 1>&6
1207 if test -z "$ac_cv_prog_RANLIB"; then
1208 if test -n "$ac_tool_prefix"; then
1209 # Extract the first word of "ranlib", so it can be a program name with args.
1210 set dummy ranlib; ac_word=$2
1211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_word" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 if test -n "$RANLIB"; then
1217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1221 for ac_dir in $ac_dummy; do
1222 test -z "$ac_dir" && ac_dir=.
1223 if test -f $ac_dir/$ac_word; then
1224 ac_cv_prog_RANLIB="ranlib"
1229 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1232 RANLIB="$ac_cv_prog_RANLIB"
1233 if test -n "$RANLIB"; then
1234 echo "$ac_t""$RANLIB" 1>&6
1236 echo "$ac_t""no" 1>&6
1245 # Check whether --enable-shared or --disable-shared was given.
1246 if test "${enable_shared+set}" = set; then
1247 enableval="$enable_shared"
1248 p=${PACKAGE-default}
1249 case "$enableval" in
1250 yes) enable_shared=yes ;;
1251 no) enable_shared=no ;;
1254 # Look at the argument we got. We use all the common list separators.
1255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1256 for pkg in $enableval; do
1257 if test "X$pkg" = "X$p"; then
1269 # Check whether --enable-static or --disable-static was given.
1270 if test "${enable_static+set}" = set; then
1271 enableval="$enable_static"
1272 p=${PACKAGE-default}
1273 case "$enableval" in
1274 yes) enable_static=yes ;;
1275 no) enable_static=no ;;
1278 # Look at the argument we got. We use all the common list separators.
1279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1280 for pkg in $enableval; do
1281 if test "X$pkg" = "X$p"; then
1292 # Check whether --enable-fast-install or --disable-fast-install was given.
1293 if test "${enable_fast_install+set}" = set; then
1294 enableval="$enable_fast_install"
1295 p=${PACKAGE-default}
1296 case "$enableval" in
1297 yes) enable_fast_install=yes ;;
1298 no) enable_fast_install=no ;;
1300 enable_fast_install=no
1301 # Look at the argument we got. We use all the common list separators.
1302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1303 for pkg in $enableval; do
1304 if test "X$pkg" = "X$p"; then
1305 enable_fast_install=yes
1312 enable_fast_install=yes
1315 # Extract the first word of "ranlib", so it can be a program name with args.
1316 set dummy ranlib; ac_word=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test -n "$RANLIB"; then
1323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1327 for ac_dir in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_RANLIB="ranlib"
1335 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1338 RANLIB="$ac_cv_prog_RANLIB"
1339 if test -n "$RANLIB"; then
1340 echo "$ac_t""$RANLIB" 1>&6
1342 echo "$ac_t""no" 1>&6
1345 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1346 if test "${with_gnu_ld+set}" = set; then
1347 withval="$with_gnu_ld"
1348 test "$withval" = no || with_gnu_ld=yes
1354 if test "$ac_cv_prog_gcc" = yes; then
1355 # Check if gcc -print-prog-name=ld gives a path.
1356 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1357 echo "configure:1358: checking for ld used by GCC" >&5
1358 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1360 # Accept absolute paths.
1361 [\\/]* | [A-Za-z]:[\\/]*)
1362 re_direlt='/[^/][^/]*/\.\./'
1363 # Canonicalize the path of ld
1364 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1365 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1366 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1368 test -z "$LD" && LD="$ac_prog"
1371 # If it fails, then pretend we aren't using GCC.
1375 # If it is relative, then search for the first ld in PATH.
1379 elif test "$with_gnu_ld" = yes; then
1380 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1381 echo "configure:1382: checking for GNU ld" >&5
1383 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1384 echo "configure:1385: checking for non-GNU ld" >&5
1386 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 if test -z "$LD"; then
1390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1391 for ac_dir in $PATH; do
1392 test -z "$ac_dir" && ac_dir=.
1393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1394 ac_cv_path_LD="$ac_dir/$ac_prog"
1395 # Check to see if the program is GNU ld. I'd rather use --version,
1396 # but apparently some GNU ld's only accept -v.
1397 # Break only if it was the GNU/non-GNU ld that we prefer.
1398 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1399 test "$with_gnu_ld" != no && break
1401 test "$with_gnu_ld" != yes && break
1407 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1412 if test -n "$LD"; then
1413 echo "$ac_t""$LD" 1>&6
1415 echo "$ac_t""no" 1>&6
1417 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1418 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1419 echo "configure:1420: checking if the linker ($LD) is GNU ld" >&5
1420 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1424 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1425 ac_cv_prog_gnu_ld=yes
1427 ac_cv_prog_gnu_ld=no
1431 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1434 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1435 echo "configure:1436: checking for BSD-compatible nm" >&5
1436 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 if test -n "$NM"; then
1440 # Let the user override the test.
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1444 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1445 test -z "$ac_dir" && ac_dir=.
1446 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1447 # Check to see if the nm accepts a BSD-compat flag.
1448 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1449 # nm: unknown option "B" ignored
1450 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1451 ac_cv_path_NM="$ac_dir/nm -B"
1453 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1454 ac_cv_path_NM="$ac_dir/nm -p"
1457 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1458 continue # so that we can try to find one that supports BSD flags
1463 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1468 echo "$ac_t""$NM" 1>&6
1470 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1471 echo "configure:1472: checking whether ln -s works" >&5
1472 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1476 if ln -s X conftestdata 2>/dev/null
1479 ac_cv_prog_LN_S="ln -s"
1484 LN_S="$ac_cv_prog_LN_S"
1485 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1486 echo "$ac_t""yes" 1>&6
1488 echo "$ac_t""no" 1>&6
1493 NONE) lt_target="$host" ;;
1494 *) lt_target="$target" ;;
1497 # Check for any special flags to pass to ltconfig.
1498 libtool_flags="--cache-file=$cache_file"
1499 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1500 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1501 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1502 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1503 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1506 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1507 if test "${enable_libtool_lock+set}" = set; then
1508 enableval="$enable_libtool_lock"
1512 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1513 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1515 # Some flags need to be propagated to the compiler or linker for good
1517 case "$lt_target" in
1519 # Find out which ABI we are using.
1520 echo '#line 1521 "configure"' > conftest.$ac_ext
1521 if { (eval echo configure:1522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1522 case "`/usr/bin/file conftest.o`" in
1538 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1539 SAVE_CFLAGS="$CFLAGS"
1540 CFLAGS="$CFLAGS -belf"
1541 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1542 echo "configure:1543: checking whether the C compiler needs -belf" >&5
1543 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 cat > conftest.$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1554 if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1556 lt_cv_cc_needs_belf=yes
1558 echo "configure: failed program was:" >&5
1559 cat conftest.$ac_ext >&5
1561 lt_cv_cc_needs_belf=no
1566 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1567 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1568 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1569 CFLAGS="$SAVE_CFLAGS"
1577 # Save cache, so that ltconfig can load it
1578 cat > confcache <<\EOF
1579 # This file is a shell script that caches the results of configure
1580 # tests run on this system so they can be shared between configure
1581 # scripts and configure runs. It is not useful on other systems.
1582 # If it contains results you don't want to keep, you may remove or edit it.
1584 # By default, configure uses ./config.cache as the cache file,
1585 # creating it if it does not exist already. You can give configure
1586 # the --cache-file=FILE option to use a different cache file; that is
1587 # what configure does when it calls configure scripts in
1588 # subdirectories, so they share the cache.
1589 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1590 # config.status only pays attention to the cache file if you give it the
1591 # --recheck option to rerun configure.
1594 # The following way of writing the cache mishandles newlines in values,
1595 # but we know of no workaround that is simple, portable, and efficient.
1596 # So, don't put newlines in cache variables' values.
1597 # Ultrix sh set writes to stderr and can't be redirected directly,
1598 # and sets the high bit in the cache file unless we assign to the vars.
1600 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1602 # `set' does not quote correctly, so add quotes (double-quote substitution
1603 # turns \\\\ into \\, and sed turns \\ into \).
1605 -e "s/'/'\\\\''/g" \
1606 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1609 # `set' quotes correctly as required by POSIX, so do not add quotes.
1610 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1613 if cmp -s $cache_file confcache; then
1616 if test -w $cache_file; then
1617 echo "updating cache $cache_file"
1618 cat confcache > $cache_file
1620 echo "not updating unwritable cache $cache_file"
1626 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1627 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1628 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1629 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1630 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1631 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1632 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1633 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1635 # Reload cache, that may have been modified by ltconfig
1636 if test -r "$cache_file"; then
1637 echo "loading cache $cache_file"
1640 echo "creating cache $cache_file"
1645 # This can be used to rebuild libtool when needed
1646 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1648 # Always use our own libtool.
1649 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1651 # Redirect the config.log output again, so that the ltconfig log is not
1652 # clobbered by the next message.
1653 exec 5>>./config.log
1656 # Check whether --enable-targets or --disable-targets was given.
1657 if test "${enable_targets+set}" = set; then
1658 enableval="$enable_targets"
1659 case "${enableval}" in
1660 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1662 no) enable_targets= ;;
1663 *) enable_targets=$enableval ;;
1666 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1667 if test "${enable_commonbfdlib+set}" = set; then
1668 enableval="$enable_commonbfdlib"
1669 case "${enableval}" in
1670 yes) commonbfdlib=true ;;
1671 no) commonbfdlib=false ;;
1672 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1676 build_warnings="-W -Wall"
1677 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1678 if test "${enable_build_warnings+set}" = set; then
1679 enableval="$enable_build_warnings"
1680 case "${enableval}" in
1682 no) build_warnings="-w";;
1683 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1684 build_warnings="${build_warnings} ${t}";;
1685 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1686 build_warnings="${t} ${build_warnings}";;
1687 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1689 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
1690 echo "Setting warning flags = $build_warnings" 6>&1
1694 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
1695 WARN_CFLAGS="${build_warnings}"
1703 if test -z "$target" ; then
1704 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1706 if test "$program_transform_name" = s,x,x,; then
1707 program_transform_name=
1709 # Double any \ or $. echo might interpret backslashes.
1710 cat <<\EOF_SED > conftestsed
1711 s,\\,\\\\,g; s,\$,$$,g
1713 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1716 test "$program_prefix" != NONE &&
1717 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1718 # Use a double $ so make ignores it.
1719 test "$program_suffix" != NONE &&
1720 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1722 # sed with no file args requires a program.
1723 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1726 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1727 echo "configure:1728: checking whether to enable maintainer-specific portions of Makefiles" >&5
1728 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1729 if test "${enable_maintainer_mode+set}" = set; then
1730 enableval="$enable_maintainer_mode"
1731 USE_MAINTAINER_MODE=$enableval
1733 USE_MAINTAINER_MODE=no
1736 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1739 if test $USE_MAINTAINER_MODE = yes; then
1740 MAINTAINER_MODE_TRUE=
1741 MAINTAINER_MODE_FALSE='#'
1743 MAINTAINER_MODE_TRUE='#'
1744 MAINTAINER_MODE_FALSE=
1746 MAINT=$MAINTAINER_MODE_TRUE
1749 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1750 echo "configure:1751: checking for Cygwin environment" >&5
1751 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 cat > conftest.$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1761 #define __CYGWIN__ __CYGWIN32__
1766 if { (eval echo configure:1767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1770 echo "configure: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1779 echo "$ac_t""$ac_cv_cygwin" 1>&6
1781 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1782 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1783 echo "configure:1784: checking for mingw32 environment" >&5
1784 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 cat > conftest.$ac_ext <<EOF
1788 #line 1789 "configure"
1789 #include "confdefs.h"
1795 if { (eval echo configure:1796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1799 echo "configure: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1808 echo "$ac_t""$ac_cv_mingw32" 1>&6
1810 test "$ac_cv_mingw32" = yes && MINGW32=yes
1813 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1814 echo "configure:1815: checking for executable suffix" >&5
1815 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1822 echo 'int main () { return 0; }' > conftest.$ac_ext
1824 if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1825 for file in conftest.*; do
1827 *.c | *.o | *.obj) ;;
1828 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1832 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1835 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1840 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1841 echo "$ac_t""${ac_cv_exeext}" 1>&6
1845 # host-specific stuff:
1847 # Extract the first word of "gcc", so it can be a program name with args.
1848 set dummy gcc; ac_word=$2
1849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $ac_word" >&5
1851 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC="$CC" # Let the user override the test.
1857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1859 for ac_dir in $ac_dummy; do
1860 test -z "$ac_dir" && ac_dir=.
1861 if test -f $ac_dir/$ac_word; then
1870 if test -n "$CC"; then
1871 echo "$ac_t""$CC" 1>&6
1873 echo "$ac_t""no" 1>&6
1876 if test -z "$CC"; then
1877 # Extract the first word of "cc", so it can be a program name with args.
1878 set dummy cc; ac_word=$2
1879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_word" >&5
1881 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1890 for ac_dir in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir=.
1892 if test -f $ac_dir/$ac_word; then
1893 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1894 ac_prog_rejected=yes
1902 if test $ac_prog_rejected = yes; then
1903 # We found a bogon in the path, so make sure we never use it.
1904 set dummy $ac_cv_prog_CC
1906 if test $# -gt 0; then
1907 # We chose a different compiler from the bogus one.
1908 # However, it has the same basename, so the bogon will be chosen
1909 # first if we set CC to just the basename; use the full file name.
1911 set dummy "$ac_dir/$ac_word" "$@"
1919 if test -n "$CC"; then
1920 echo "$ac_t""$CC" 1>&6
1922 echo "$ac_t""no" 1>&6
1925 if test -z "$CC"; then
1926 case "`uname -s`" in
1928 # Extract the first word of "cl", so it can be a program name with args.
1929 set dummy cl; ac_word=$2
1930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1931 echo "configure:1932: checking for $ac_word" >&5
1932 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC="$CC" # Let the user override the test.
1938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1940 for ac_dir in $ac_dummy; do
1941 test -z "$ac_dir" && ac_dir=.
1942 if test -f $ac_dir/$ac_word; then
1951 if test -n "$CC"; then
1952 echo "$ac_t""$CC" 1>&6
1954 echo "$ac_t""no" 1>&6
1959 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1962 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1963 echo "configure:1964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1970 cross_compiling=$ac_cv_prog_cc_cross
1972 cat > conftest.$ac_ext << EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1979 if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1980 ac_cv_prog_cc_works=yes
1981 # If we can't run a trivial program, we are probably using a cross compiler.
1982 if (./conftest; exit) 2>/dev/null; then
1983 ac_cv_prog_cc_cross=no
1985 ac_cv_prog_cc_cross=yes
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 ac_cv_prog_cc_works=no
1994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1998 cross_compiling=$ac_cv_prog_cc_cross
2000 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2001 if test $ac_cv_prog_cc_works = no; then
2002 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2004 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2005 echo "configure:2006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2006 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2007 cross_compiling=$ac_cv_prog_cc_cross
2009 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether we are using GNU C" >&5
2011 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 cat > conftest.c <<EOF
2019 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2026 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2028 if test $ac_cv_prog_gcc = yes; then
2034 ac_test_CFLAGS="${CFLAGS+set}"
2035 ac_save_CFLAGS="$CFLAGS"
2037 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2038 echo "configure:2039: checking whether ${CC-cc} accepts -g" >&5
2039 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 echo 'void f(){}' > conftest.c
2043 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2052 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2053 if test "$ac_test_CFLAGS" = set; then
2054 CFLAGS="$ac_save_CFLAGS"
2055 elif test $ac_cv_prog_cc_g = yes; then
2056 if test "$GCC" = yes; then
2062 if test "$GCC" = yes; then
2071 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2072 echo "configure:2073: checking how to run the C preprocessor" >&5
2073 # On Suns, sometimes $CPP names a directory.
2074 if test -n "$CPP" && test -d "$CPP"; then
2077 if test -z "$CPP"; then
2078 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 # This must be in double quotes, not single quotes, because CPP may get
2082 # substituted into the Makefile and "${CC-cc}" will confuse make.
2084 # On the NeXT, cc -E runs the code through the compiler's parser,
2085 # not just through cpp.
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2102 CPP="${CC-cc} -E -traditional-cpp"
2103 cat > conftest.$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2110 { (eval echo configure:2111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2112 if test -z "$ac_err"; then
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2119 CPP="${CC-cc} -nologo -E"
2120 cat > conftest.$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2127 { (eval echo configure:2128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2129 if test -z "$ac_err"; then
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2143 ac_cv_prog_CPP="$CPP"
2145 CPP="$ac_cv_prog_CPP"
2147 ac_cv_prog_CPP="$CPP"
2149 echo "$ac_t""$CPP" 1>&6
2151 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2152 echo "configure:2153: checking for ANSI C header files" >&5
2153 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 cat > conftest.$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165 { (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2167 if test -z "$ac_err"; then
2169 ac_cv_header_stdc=yes
2172 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2175 ac_cv_header_stdc=no
2179 if test $ac_cv_header_stdc = yes; then
2180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2187 egrep "memchr" >/dev/null 2>&1; then
2191 ac_cv_header_stdc=no
2197 if test $ac_cv_header_stdc = yes; then
2198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2205 egrep "free" >/dev/null 2>&1; then
2209 ac_cv_header_stdc=no
2215 if test $ac_cv_header_stdc = yes; then
2216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2217 if test "$cross_compiling" = yes; then
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2224 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2225 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2227 int main () { int i; for (i = 0; i < 256; i++)
2228 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2239 ac_cv_header_stdc=no
2247 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2248 if test $ac_cv_header_stdc = yes; then
2249 cat >> confdefs.h <<\EOF
2250 #define STDC_HEADERS 1
2255 echo $ac_n "checking for working const""... $ac_c" 1>&6
2256 echo "configure:2257: checking for working const" >&5
2257 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2266 /* Ultrix mips cc rejects this. */
2267 typedef int charset[2]; const charset x;
2268 /* SunOS 4.1.1 cc rejects this. */
2269 char const *const *ccp;
2271 /* NEC SVR4.0.2 mips cc rejects this. */
2272 struct point {int x, y;};
2273 static struct point const zero = {0,0};
2274 /* AIX XL C 1.02.0.0 rejects this.
2275 It does not let you subtract one const X* pointer from another in an arm
2276 of an if-expression whose if-part is not a constant expression */
2277 const char *g = "string";
2278 ccp = &g + (g ? g-g : 0);
2279 /* HPUX 7.0 cc rejects these. */
2282 ccp = (char const *const *) p;
2283 { /* SCO 3.2v4 cc rejects this. */
2285 char const *s = 0 ? (char *) 0 : (char const *) 0;
2289 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2291 const int *foo = &x[0];
2294 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2295 typedef const int *iptr;
2299 { /* AIX XL C 1.02.0.0 rejects this saying
2300 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2301 struct s { int j; const int *ap[3]; };
2302 struct s *b; b->j = 5;
2304 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2310 if { (eval echo configure:2311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2322 echo "$ac_t""$ac_cv_c_const" 1>&6
2323 if test $ac_cv_c_const = no; then
2324 cat >> confdefs.h <<\EOF
2330 echo $ac_n "checking for inline""... $ac_c" 1>&6
2331 echo "configure:2332: checking for inline" >&5
2332 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2336 for ac_kw in inline __inline__ __inline; do
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2345 if { (eval echo configure:2346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2347 ac_cv_c_inline=$ac_kw; break
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2357 echo "$ac_t""$ac_cv_c_inline" 1>&6
2358 case "$ac_cv_c_inline" in
2360 no) cat >> confdefs.h <<\EOF
2364 *) cat >> confdefs.h <<EOF
2365 #define inline $ac_cv_c_inline
2370 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2371 echo "configure:2372: checking for off_t" >&5
2372 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 #include <sys/types.h>
2384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2385 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2387 ac_cv_type_off_t=yes
2395 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2396 if test $ac_cv_type_off_t = no; then
2397 cat >> confdefs.h <<\EOF
2403 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2404 echo "configure:2405: checking for size_t" >&5
2405 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 #include <sys/types.h>
2417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2418 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2420 ac_cv_type_size_t=yes
2423 ac_cv_type_size_t=no
2428 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2429 if test $ac_cv_type_size_t = no; then
2430 cat >> confdefs.h <<\EOF
2431 #define size_t unsigned
2436 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2437 # for constant arguments. Useless!
2438 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2439 echo "configure:2440: checking for working alloca.h" >&5
2440 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2448 char *p = alloca(2 * sizeof(int));
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2453 ac_cv_header_alloca_h=yes
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2458 ac_cv_header_alloca_h=no
2463 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2464 if test $ac_cv_header_alloca_h = yes; then
2465 cat >> confdefs.h <<\EOF
2466 #define HAVE_ALLOCA_H 1
2471 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2472 echo "configure:2473: checking for alloca" >&5
2473 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2481 # define alloca __builtin_alloca
2484 # include <malloc.h>
2485 # define alloca _alloca
2488 # include <alloca.h>
2493 # ifndef alloca /* predefined by HP cc +Olibcalls */
2502 char *p = (char *) alloca(1);
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 ac_cv_func_alloca_works=yes
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2512 ac_cv_func_alloca_works=no
2517 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2518 if test $ac_cv_func_alloca_works = yes; then
2519 cat >> confdefs.h <<\EOF
2520 #define HAVE_ALLOCA 1
2525 if test $ac_cv_func_alloca_works = no; then
2526 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2527 # that cause trouble. Some versions do not even contain alloca or
2528 # contain a buggy version. If you still want to use their alloca,
2529 # use ar to extract alloca.o from them instead of compiling alloca.c.
2530 ALLOCA=alloca.${ac_objext}
2531 cat >> confdefs.h <<\EOF
2536 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2537 echo "configure:2538: checking whether alloca needs Cray hooks" >&5
2538 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 #if defined(CRAY) && ! defined(CRAY2)
2551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2552 egrep "webecray" >/dev/null 2>&1; then
2563 echo "$ac_t""$ac_cv_os_cray" 1>&6
2564 if test $ac_cv_os_cray = yes; then
2565 for ac_func in _getb67 GETB67 getb67; do
2566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2567 echo "configure:2568: checking for $ac_func" >&5
2568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 /* System header to define __stub macros and hopefully few prototypes,
2575 which can conflict with char $ac_func(); below. */
2577 /* Override any gcc2 internal prototype to avoid an error. */
2578 /* We use char because int might match the return type of a gcc2
2579 builtin and then its argument prototype would still apply. */
2584 /* The GNU C library defines this for functions which it implements
2585 to always fail with ENOSYS. Some functions are actually named
2586 something starting with __ and the normal name is an alias. */
2587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2597 eval "ac_cv_func_$ac_func=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 eval "ac_cv_func_$ac_func=no"
2607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2609 cat >> confdefs.h <<EOF
2610 #define CRAY_STACKSEG_END $ac_func
2615 echo "$ac_t""no" 1>&6
2621 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2622 echo "configure:2623: checking stack direction for C alloca" >&5
2623 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 if test "$cross_compiling" = yes; then
2627 ac_cv_c_stack_direction=0
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 find_stack_direction ()
2634 static char *addr = 0;
2639 return find_stack_direction ();
2642 return (&dummy > addr) ? 1 : -1;
2646 exit (find_stack_direction() < 0);
2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2651 ac_cv_c_stack_direction=1
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2656 ac_cv_c_stack_direction=-1
2663 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2664 cat >> confdefs.h <<EOF
2665 #define STACK_DIRECTION $ac_cv_c_stack_direction
2670 for ac_hdr in unistd.h
2672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $ac_hdr" >&5
2675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2684 { (eval echo configure:2685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2686 if test -z "$ac_err"; then
2688 eval "ac_cv_header_$ac_safe=yes"
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2694 eval "ac_cv_header_$ac_safe=no"
2698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2699 echo "$ac_t""yes" 1>&6
2700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2701 cat >> confdefs.h <<EOF
2702 #define $ac_tr_hdr 1
2706 echo "$ac_t""no" 1>&6
2710 for ac_func in getpagesize
2712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_func" >&5
2714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2720 /* System header to define __stub macros and hopefully few prototypes,
2721 which can conflict with char $ac_func(); below. */
2723 /* Override any gcc2 internal prototype to avoid an error. */
2724 /* We use char because int might match the return type of a gcc2
2725 builtin and then its argument prototype would still apply. */
2730 /* The GNU C library defines this for functions which it implements
2731 to always fail with ENOSYS. Some functions are actually named
2732 something starting with __ and the normal name is an alias. */
2733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2743 eval "ac_cv_func_$ac_func=yes"
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2748 eval "ac_cv_func_$ac_func=no"
2753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2754 echo "$ac_t""yes" 1>&6
2755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2756 cat >> confdefs.h <<EOF
2757 #define $ac_tr_func 1
2761 echo "$ac_t""no" 1>&6
2765 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2766 echo "configure:2767: checking for working mmap" >&5
2767 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 if test "$cross_compiling" = yes; then
2771 ac_cv_func_mmap_fixed_mapped=no
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2777 /* Thanks to Mike Haertel and Jim Avera for this test.
2778 Here is a matrix of mmap possibilities:
2779 mmap private not fixed
2780 mmap private fixed at somewhere currently unmapped
2781 mmap private fixed at somewhere already mapped
2782 mmap shared not fixed
2783 mmap shared fixed at somewhere currently unmapped
2784 mmap shared fixed at somewhere already mapped
2785 For private mappings, we should verify that changes cannot be read()
2786 back from the file, nor mmap's back from the file at a different
2787 address. (There have been systems where private was not correctly
2788 implemented like the infamous i386 svr4.0, and systems where the
2789 VM page cache was not coherent with the filesystem buffer cache
2790 like early versions of FreeBSD and possibly contemporary NetBSD.)
2791 For shared mappings, we should conversely verify that changes get
2792 propogated back to all the places they're supposed to be.
2794 Grep wants private fixed already mapped.
2795 The main things grep needs to know about mmap are:
2796 * does it exist and is it safe to write into the mmap'd area
2797 * how to use it (BSD variants) */
2798 #include <sys/types.h>
2800 #include <sys/mman.h>
2802 /* This mess was copied from the GNU getpagesize.h. */
2803 #ifndef HAVE_GETPAGESIZE
2804 # ifdef HAVE_UNISTD_H
2805 # include <unistd.h>
2808 /* Assume that all systems that can run configure have sys/param.h. */
2809 # ifndef HAVE_SYS_PARAM_H
2810 # define HAVE_SYS_PARAM_H 1
2813 # ifdef _SC_PAGESIZE
2814 # define getpagesize() sysconf(_SC_PAGESIZE)
2815 # else /* no _SC_PAGESIZE */
2816 # ifdef HAVE_SYS_PARAM_H
2817 # include <sys/param.h>
2818 # ifdef EXEC_PAGESIZE
2819 # define getpagesize() EXEC_PAGESIZE
2820 # else /* no EXEC_PAGESIZE */
2822 # define getpagesize() NBPG * CLSIZE
2825 # endif /* no CLSIZE */
2826 # else /* no NBPG */
2828 # define getpagesize() NBPC
2829 # else /* no NBPC */
2831 # define getpagesize() PAGESIZE
2832 # endif /* PAGESIZE */
2833 # endif /* no NBPC */
2834 # endif /* no NBPG */
2835 # endif /* no EXEC_PAGESIZE */
2836 # else /* no HAVE_SYS_PARAM_H */
2837 # define getpagesize() 8192 /* punt totally */
2838 # endif /* no HAVE_SYS_PARAM_H */
2839 # endif /* no _SC_PAGESIZE */
2841 #endif /* no HAVE_GETPAGESIZE */
2844 extern "C" { void *malloc(unsigned); }
2852 char *data, *data2, *data3;
2856 pagesize = getpagesize();
2859 * First, make a file with some known garbage in it.
2861 data = malloc(pagesize);
2864 for (i = 0; i < pagesize; ++i)
2865 *(data + i) = rand();
2867 fd = creat("conftestmmap", 0600);
2870 if (write(fd, data, pagesize) != pagesize)
2875 * Next, try to mmap the file at a fixed address which
2876 * already has something else allocated at it. If we can,
2877 * also make sure that we see the same garbage.
2879 fd = open("conftestmmap", O_RDWR);
2882 data2 = malloc(2 * pagesize);
2885 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2886 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2887 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2889 for (i = 0; i < pagesize; ++i)
2890 if (*(data + i) != *(data2 + i))
2894 * Finally, make sure that changes to the mapped area
2895 * do not percolate back to the file as seen by read().
2896 * (This is a bug on some variants of i386 svr4.0.)
2898 for (i = 0; i < pagesize; ++i)
2899 *(data2 + i) = *(data2 + i) + 1;
2900 data3 = malloc(pagesize);
2903 if (read(fd, data3, pagesize) != pagesize)
2905 for (i = 0; i < pagesize; ++i)
2906 if (*(data + i) != *(data3 + i))
2909 unlink("conftestmmap");
2914 if { (eval echo configure:2915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2916 ac_cv_func_mmap_fixed_mapped=yes
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2921 ac_cv_func_mmap_fixed_mapped=no
2928 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2929 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2930 cat >> confdefs.h <<\EOF
2937 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2938 unistd.h values.h sys/param.h
2940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2942 echo "configure:2943: checking for $ac_hdr" >&5
2943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2952 { (eval echo configure:2953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2954 if test -z "$ac_err"; then
2956 eval "ac_cv_header_$ac_safe=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 eval "ac_cv_header_$ac_safe=no"
2966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2969 cat >> confdefs.h <<EOF
2970 #define $ac_tr_hdr 1
2974 echo "$ac_t""no" 1>&6
2978 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2979 __argz_count __argz_stringify __argz_next
2981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2982 echo "configure:2983: checking for $ac_func" >&5
2983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 /* System header to define __stub macros and hopefully few prototypes,
2990 which can conflict with char $ac_func(); below. */
2992 /* Override any gcc2 internal prototype to avoid an error. */
2993 /* We use char because int might match the return type of a gcc2
2994 builtin and then its argument prototype would still apply. */
2999 /* The GNU C library defines this for functions which it implements
3000 to always fail with ENOSYS. Some functions are actually named
3001 something starting with __ and the normal name is an alias. */
3002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3010 if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3012 eval "ac_cv_func_$ac_func=yes"
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3017 eval "ac_cv_func_$ac_func=no"
3022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
3024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3025 cat >> confdefs.h <<EOF
3026 #define $ac_tr_func 1
3030 echo "$ac_t""no" 1>&6
3035 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3036 for ac_func in stpcpy
3038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3039 echo "configure:3040: checking for $ac_func" >&5
3040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 /* System header to define __stub macros and hopefully few prototypes,
3047 which can conflict with char $ac_func(); below. */
3049 /* Override any gcc2 internal prototype to avoid an error. */
3050 /* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3056 /* The GNU C library defines this for functions which it implements
3057 to always fail with ENOSYS. Some functions are actually named
3058 something starting with __ and the normal name is an alias. */
3059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3069 eval "ac_cv_func_$ac_func=yes"
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3074 eval "ac_cv_func_$ac_func=no"
3079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3080 echo "$ac_t""yes" 1>&6
3081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3082 cat >> confdefs.h <<EOF
3083 #define $ac_tr_func 1
3087 echo "$ac_t""no" 1>&6
3092 if test "${ac_cv_func_stpcpy}" = "yes"; then
3093 cat >> confdefs.h <<\EOF
3094 #define HAVE_STPCPY 1
3099 if test $ac_cv_header_locale_h = yes; then
3100 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3101 echo "configure:3102: checking for LC_MESSAGES" >&5
3102 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3115 am_cv_val_LC_MESSAGES=yes
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3120 am_cv_val_LC_MESSAGES=no
3125 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3126 if test $am_cv_val_LC_MESSAGES = yes; then
3127 cat >> confdefs.h <<\EOF
3128 #define HAVE_LC_MESSAGES 1
3133 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3134 echo "configure:3135: checking whether NLS is requested" >&5
3135 # Check whether --enable-nls or --disable-nls was given.
3136 if test "${enable_nls+set}" = set; then
3137 enableval="$enable_nls"
3143 echo "$ac_t""$USE_NLS" 1>&6
3146 USE_INCLUDED_LIBINTL=no
3148 if test "$USE_NLS" = "yes"; then
3149 cat >> confdefs.h <<\EOF
3150 #define ENABLE_NLS 1
3153 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3154 echo "configure:3155: checking whether included gettext is requested" >&5
3155 # Check whether --with-included-gettext or --without-included-gettext was given.
3156 if test "${with_included_gettext+set}" = set; then
3157 withval="$with_included_gettext"
3158 nls_cv_force_use_gnu_gettext=$withval
3160 nls_cv_force_use_gnu_gettext=no
3163 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3165 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3166 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3168 nls_cv_header_libgt=
3171 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3172 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3173 echo "configure:3174: checking for libintl.h" >&5
3174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 #include <libintl.h>
3182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3183 { (eval echo configure:3184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3185 if test -z "$ac_err"; then
3187 eval "ac_cv_header_$ac_safe=yes"
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3193 eval "ac_cv_header_$ac_safe=no"
3197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3198 echo "$ac_t""yes" 1>&6
3199 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3200 echo "configure:3201: checking for gettext in libc" >&5
3201 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 #include <libintl.h>
3209 return (int) gettext ("")
3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3214 gt_cv_func_gettext_libc=yes
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3219 gt_cv_func_gettext_libc=no
3224 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3226 if test "$gt_cv_func_gettext_libc" != "yes"; then
3227 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3228 echo "configure:3229: checking for bindtextdomain in -lintl" >&5
3229 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 ac_save_LIBS="$LIBS"
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 /* Override any gcc2 internal prototype to avoid an error. */
3239 /* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
3241 char bindtextdomain();
3247 if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3249 eval "ac_cv_lib_$ac_lib_var=yes"
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3254 eval "ac_cv_lib_$ac_lib_var=no"
3257 LIBS="$ac_save_LIBS"
3260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3263 echo "configure:3264: checking for gettext in libintl" >&5
3264 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3272 return (int) gettext ("")
3275 if { (eval echo configure:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3277 gt_cv_func_gettext_libintl=yes
3279 echo "configure: failed program was:" >&5
3280 cat conftest.$ac_ext >&5
3282 gt_cv_func_gettext_libintl=no
3287 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3289 echo "$ac_t""no" 1>&6
3294 if test "$gt_cv_func_gettext_libc" = "yes" \
3295 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3296 cat >> confdefs.h <<\EOF
3297 #define HAVE_GETTEXT 1
3300 # Extract the first word of "msgfmt", so it can be a program name with args.
3301 set dummy msgfmt; ac_word=$2
3302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_word" >&5
3304 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3313 for ac_dir in $PATH; do
3314 test -z "$ac_dir" && ac_dir=.
3315 if test -f $ac_dir/$ac_word; then
3316 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3317 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3323 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3327 MSGFMT="$ac_cv_path_MSGFMT"
3328 if test -n "$MSGFMT"; then
3329 echo "$ac_t""$MSGFMT" 1>&6
3331 echo "$ac_t""no" 1>&6
3333 if test "$MSGFMT" != "no"; then
3334 for ac_func in dcgettext
3336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_func" >&5
3338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 /* System header to define __stub macros and hopefully few prototypes,
3345 which can conflict with char $ac_func(); below. */
3347 /* Override any gcc2 internal prototype to avoid an error. */
3348 /* We use char because int might match the return type of a gcc2
3349 builtin and then its argument prototype would still apply. */
3354 /* The GNU C library defines this for functions which it implements
3355 to always fail with ENOSYS. Some functions are actually named
3356 something starting with __ and the normal name is an alias. */
3357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3365 if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3367 eval "ac_cv_func_$ac_func=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3372 eval "ac_cv_func_$ac_func=no"
3377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3378 echo "$ac_t""yes" 1>&6
3379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3380 cat >> confdefs.h <<EOF
3381 #define $ac_tr_func 1
3385 echo "$ac_t""no" 1>&6
3389 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3390 set dummy gmsgfmt; ac_word=$2
3391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_word" >&5
3393 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3398 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3401 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3406 for ac_dir in $ac_dummy; do
3407 test -z "$ac_dir" && ac_dir=.
3408 if test -f $ac_dir/$ac_word; then
3409 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3414 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3418 GMSGFMT="$ac_cv_path_GMSGFMT"
3419 if test -n "$GMSGFMT"; then
3420 echo "$ac_t""$GMSGFMT" 1>&6
3422 echo "$ac_t""no" 1>&6
3425 # Extract the first word of "xgettext", so it can be a program name with args.
3426 set dummy xgettext; ac_word=$2
3427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3428 echo "configure:3429: checking for $ac_word" >&5
3429 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3434 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3438 for ac_dir in $PATH; do
3439 test -z "$ac_dir" && ac_dir=.
3440 if test -f $ac_dir/$ac_word; then
3441 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3442 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3448 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3452 XGETTEXT="$ac_cv_path_XGETTEXT"
3453 if test -n "$XGETTEXT"; then
3454 echo "$ac_t""$XGETTEXT" 1>&6
3456 echo "$ac_t""no" 1>&6
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3464 extern int _nl_msg_cat_cntr;
3465 return _nl_msg_cat_cntr
3468 if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3485 echo "$ac_t""no" 1>&6
3490 if test "$CATOBJEXT" = "NONE"; then
3491 nls_cv_use_gnu_gettext=yes
3495 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3496 INTLOBJS="\$(GETTOBJS)"
3497 # Extract the first word of "msgfmt", so it can be a program name with args.
3498 set dummy msgfmt; ac_word=$2
3499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3500 echo "configure:3501: checking for $ac_word" >&5
3501 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3506 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3510 for ac_dir in $PATH; do
3511 test -z "$ac_dir" && ac_dir=.
3512 if test -f $ac_dir/$ac_word; then
3513 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3514 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3520 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3524 MSGFMT="$ac_cv_path_MSGFMT"
3525 if test -n "$MSGFMT"; then
3526 echo "$ac_t""$MSGFMT" 1>&6
3528 echo "$ac_t""no" 1>&6
3531 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3532 set dummy gmsgfmt; ac_word=$2
3533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3534 echo "configure:3535: checking for $ac_word" >&5
3535 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3540 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3543 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3548 for ac_dir in $ac_dummy; do
3549 test -z "$ac_dir" && ac_dir=.
3550 if test -f $ac_dir/$ac_word; then
3551 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3556 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3560 GMSGFMT="$ac_cv_path_GMSGFMT"
3561 if test -n "$GMSGFMT"; then
3562 echo "$ac_t""$GMSGFMT" 1>&6
3564 echo "$ac_t""no" 1>&6
3567 # Extract the first word of "xgettext", so it can be a program name with args.
3568 set dummy xgettext; ac_word=$2
3569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3570 echo "configure:3571: checking for $ac_word" >&5
3571 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3576 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3580 for ac_dir in $PATH; do
3581 test -z "$ac_dir" && ac_dir=.
3582 if test -f $ac_dir/$ac_word; then
3583 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3584 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3590 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3594 XGETTEXT="$ac_cv_path_XGETTEXT"
3595 if test -n "$XGETTEXT"; then
3596 echo "$ac_t""$XGETTEXT" 1>&6
3598 echo "$ac_t""no" 1>&6
3602 USE_INCLUDED_LIBINTL=yes
3606 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3608 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3609 nls_cv_header_intl=libintl.h
3610 nls_cv_header_libgt=libgettext.h
3613 if test "$XGETTEXT" != ":"; then
3614 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3617 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3622 # We need to process the po/ directory.
3626 nls_cv_header_intl=libintl.h
3627 nls_cv_header_libgt=libgettext.h
3630 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3631 # because some of the sources are only built for this goal.
3632 if test "$PACKAGE" = gettext; then
3634 USE_INCLUDED_LIBINTL=yes
3637 for lang in $ALL_LINGUAS; do
3638 GMOFILES="$GMOFILES $lang.gmo"
3639 POFILES="$POFILES $lang.po"
3655 if test "x$CATOBJEXT" != "x"; then
3656 if test "x$ALL_LINGUAS" = "x"; then
3659 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3660 echo "configure:3661: checking for catalogs to be installed" >&5
3662 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3663 case "$ALL_LINGUAS" in
3664 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3667 LINGUAS=$NEW_LINGUAS
3668 echo "$ac_t""$LINGUAS" 1>&6
3671 if test -n "$LINGUAS"; then
3672 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3676 if test $ac_cv_header_locale_h = yes; then
3677 INCLUDE_LOCALE_H="#include <locale.h>"
3680 /* The system does not provide the header <locale.h>. Take care yourself. */"
3684 if test -f $srcdir/po2tbl.sed.in; then
3685 if test "$CATOBJEXT" = ".cat"; then
3686 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3687 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3688 echo "configure:3689: checking for linux/version.h" >&5
3689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <linux/version.h>
3697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3698 { (eval echo configure:3699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3700 if test -z "$ac_err"; then
3702 eval "ac_cv_header_$ac_safe=yes"
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 eval "ac_cv_header_$ac_safe=no"
3712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3713 echo "$ac_t""yes" 1>&6
3716 echo "$ac_t""no" 1>&6
3721 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3723 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3724 $srcdir/po2tbl.sed.in > po2tbl.sed
3727 if test "$PACKAGE" = "gettext"; then
3737 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3743 if test -d $srcdir/po; then
3744 test -d po || mkdir po
3745 if test "x$srcdir" != "x."; then
3746 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3747 posrcprefix="$srcdir/"
3749 posrcprefix="../$srcdir/"
3755 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3756 < $srcdir/po/POTFILES.in > po/POTFILES
3760 . ${srcdir}/../bfd/configure.host
3763 # Find a good install program. We prefer a C program (faster),
3764 # so one script is as good as another. But avoid the broken or
3765 # incompatible versions:
3766 # SysV /etc/install, /usr/sbin/install
3767 # SunOS /usr/etc/install
3768 # IRIX /sbin/install
3770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3773 # ./install, which can be erroneously created by make from ./install.sh.
3774 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3775 echo "configure:3776: checking for a BSD compatible install" >&5
3776 if test -z "$INSTALL"; then
3777 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3781 for ac_dir in $PATH; do
3782 # Account for people who put trailing slashes in PATH elements.
3784 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3786 # OSF1 and SCO ODT 3.0 have their own names for install.
3787 # Don't use installbsd from OSF since it installs stuff as root
3789 for ac_prog in ginstall scoinst install; do
3790 if test -f $ac_dir/$ac_prog; then
3791 if test $ac_prog = install &&
3792 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3793 # AIX install. It has an incompatible calling convention.
3796 ac_cv_path_install="$ac_dir/$ac_prog -c"
3807 if test "${ac_cv_path_install+set}" = set; then
3808 INSTALL="$ac_cv_path_install"
3810 # As a last resort, use the slow shell script. We don't cache a
3811 # path for INSTALL within a source directory, because that will
3812 # break other packages using the cache if that directory is
3813 # removed, or if the path is relative.
3814 INSTALL="$ac_install_sh"
3817 echo "$ac_t""$INSTALL" 1>&6
3819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3820 # It thinks the first close brace ends the variable substitution.
3821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3828 for ac_hdr in string.h strings.h stdlib.h
3830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3832 echo "configure:3833: checking for $ac_hdr" >&5
3833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3842 { (eval echo configure:3843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3844 if test -z "$ac_err"; then
3846 eval "ac_cv_header_$ac_safe=yes"
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3852 eval "ac_cv_header_$ac_safe=no"
3856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3859 cat >> confdefs.h <<EOF
3860 #define $ac_tr_hdr 1
3864 echo "$ac_t""no" 1>&6
3872 # Horrible hacks to build DLLs on Windows.
3877 if test "$enable_shared" = "yes"; then
3878 WIN32LDFLAGS="-no-undefined"
3879 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
3886 # target-specific stuff:
3888 # Canonicalize the secondary target names.
3889 if test -n "$enable_targets" ; then
3890 for targ in `echo $enable_targets | sed 's/,/ /g'`
3892 result=`$ac_config_sub $targ 2>/dev/null`
3893 if test -n "$result" ; then
3894 canon_targets="$canon_targets $result"
3896 # Allow targets that config.sub doesn't recognize, like "all".
3897 canon_targets="$canon_targets $targ"
3904 for targ in $target $canon_targets
3906 if test "x$targ" = "xall" ; then
3909 . $srcdir/../bfd/config.bfd
3910 selarchs="$selarchs $targ_archs"
3914 # Utility var, documents generic cgen support files.
3916 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
3918 # We don't do any links based on the target system, just makefile config.
3920 if test x${all_targets} = xfalse ; then
3922 # Target architecture .o files.
3925 for arch in $selarchs
3927 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
3928 archdefs="$archdefs -DARCH_$ad"
3930 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
3931 bfd_alliant_arch) ;;
3932 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
3933 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
3934 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
3935 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
3937 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
3938 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
3939 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
3940 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
3941 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
3942 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
3943 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
3944 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
3946 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
3947 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
3948 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
3949 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
3950 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
3951 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
3952 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3953 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
3954 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
3955 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
3956 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
3957 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3958 bfd_pyramid_arch) ;;
3960 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3961 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3962 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
3963 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
3965 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
3966 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
3967 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
3968 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3969 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3970 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3971 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
3972 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
3974 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
3977 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
3981 if test $using_cgen = yes ; then
3982 ta="$ta $cgen_files"
3985 # Weed out duplicate .o files.
3995 # And duplicate -D flags.
3997 for i in $archdefs ; do
4007 else # all_targets is true
4009 BFD_MACHINES='$(ALL_MACHINES)'
4016 cat > confcache <<\EOF
4017 # This file is a shell script that caches the results of configure
4018 # tests run on this system so they can be shared between configure
4019 # scripts and configure runs. It is not useful on other systems.
4020 # If it contains results you don't want to keep, you may remove or edit it.
4022 # By default, configure uses ./config.cache as the cache file,
4023 # creating it if it does not exist already. You can give configure
4024 # the --cache-file=FILE option to use a different cache file; that is
4025 # what configure does when it calls configure scripts in
4026 # subdirectories, so they share the cache.
4027 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4028 # config.status only pays attention to the cache file if you give it the
4029 # --recheck option to rerun configure.
4032 # The following way of writing the cache mishandles newlines in values,
4033 # but we know of no workaround that is simple, portable, and efficient.
4034 # So, don't put newlines in cache variables' values.
4035 # Ultrix sh set writes to stderr and can't be redirected directly,
4036 # and sets the high bit in the cache file unless we assign to the vars.
4038 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4040 # `set' does not quote correctly, so add quotes (double-quote substitution
4041 # turns \\\\ into \\, and sed turns \\ into \).
4043 -e "s/'/'\\\\''/g" \
4044 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4047 # `set' quotes correctly as required by POSIX, so do not add quotes.
4048 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4051 if cmp -s $cache_file confcache; then
4054 if test -w $cache_file; then
4055 echo "updating cache $cache_file"
4056 cat confcache > $cache_file
4058 echo "not updating unwritable cache $cache_file"
4063 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4066 # Let make expand exec_prefix.
4067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4069 # Any assignment to VPATH causes Sun make to only execute
4070 # the first set of double-colon rules, so remove it if not needed.
4071 # If there is a colon in the path, we need to keep it.
4072 if test "x$srcdir" = x.; then
4073 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4076 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4078 DEFS=-DHAVE_CONFIG_H
4080 # Without the "./", some shells look in PATH for config.status.
4081 : ${CONFIG_STATUS=./config.status}
4083 echo creating $CONFIG_STATUS
4084 rm -f $CONFIG_STATUS
4085 cat > $CONFIG_STATUS <<EOF
4087 # Generated automatically by configure.
4088 # Run this file to recreate the current configuration.
4089 # This directory was configured as follows,
4090 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4092 # $0 $ac_configure_args
4094 # Compiler output produced by configure, useful for debugging
4095 # configure, is in ./config.log if it exists.
4097 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4100 case "\$ac_option" in
4101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4102 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4103 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4104 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4105 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4107 -help | --help | --hel | --he | --h)
4108 echo "\$ac_cs_usage"; exit 0 ;;
4109 *) echo "\$ac_cs_usage"; exit 1 ;;
4113 ac_given_srcdir=$srcdir
4114 ac_given_INSTALL="$INSTALL"
4116 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4118 cat >> $CONFIG_STATUS <<EOF
4120 # Protect against being on the right side of a sed subst in config.status.
4121 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4122 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4126 s%@CFLAGS@%$CFLAGS%g
4127 s%@CPPFLAGS@%$CPPFLAGS%g
4128 s%@CXXFLAGS@%$CXXFLAGS%g
4129 s%@FFLAGS@%$FFLAGS%g
4131 s%@LDFLAGS@%$LDFLAGS%g
4133 s%@exec_prefix@%$exec_prefix%g
4134 s%@prefix@%$prefix%g
4135 s%@program_transform_name@%$program_transform_name%g
4136 s%@bindir@%$bindir%g
4137 s%@sbindir@%$sbindir%g
4138 s%@libexecdir@%$libexecdir%g
4139 s%@datadir@%$datadir%g
4140 s%@sysconfdir@%$sysconfdir%g
4141 s%@sharedstatedir@%$sharedstatedir%g
4142 s%@localstatedir@%$localstatedir%g
4143 s%@libdir@%$libdir%g
4144 s%@includedir@%$includedir%g
4145 s%@oldincludedir@%$oldincludedir%g
4146 s%@infodir@%$infodir%g
4147 s%@mandir@%$mandir%g
4149 s%@host_alias@%$host_alias%g
4150 s%@host_cpu@%$host_cpu%g
4151 s%@host_vendor@%$host_vendor%g
4152 s%@host_os@%$host_os%g
4153 s%@target@%$target%g
4154 s%@target_alias@%$target_alias%g
4155 s%@target_cpu@%$target_cpu%g
4156 s%@target_vendor@%$target_vendor%g
4157 s%@target_os@%$target_os%g
4159 s%@build_alias@%$build_alias%g
4160 s%@build_cpu@%$build_cpu%g
4161 s%@build_vendor@%$build_vendor%g
4162 s%@build_os@%$build_os%g
4164 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4165 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4166 s%@INSTALL_DATA@%$INSTALL_DATA%g
4167 s%@PACKAGE@%$PACKAGE%g
4168 s%@VERSION@%$VERSION%g
4169 s%@ACLOCAL@%$ACLOCAL%g
4170 s%@AUTOCONF@%$AUTOCONF%g
4171 s%@AUTOMAKE@%$AUTOMAKE%g
4172 s%@AUTOHEADER@%$AUTOHEADER%g
4173 s%@MAKEINFO@%$MAKEINFO%g
4174 s%@SET_MAKE@%$SET_MAKE%g
4176 s%@RANLIB@%$RANLIB%g
4178 s%@LIBTOOL@%$LIBTOOL%g
4179 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4180 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4181 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4183 s%@EXEEXT@%$EXEEXT%g
4185 s%@ALLOCA@%$ALLOCA%g
4186 s%@USE_NLS@%$USE_NLS%g
4187 s%@MSGFMT@%$MSGFMT%g
4188 s%@GMSGFMT@%$GMSGFMT%g
4189 s%@XGETTEXT@%$XGETTEXT%g
4190 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4191 s%@CATALOGS@%$CATALOGS%g
4192 s%@CATOBJEXT@%$CATOBJEXT%g
4193 s%@DATADIRNAME@%$DATADIRNAME%g
4194 s%@GMOFILES@%$GMOFILES%g
4195 s%@INSTOBJEXT@%$INSTOBJEXT%g
4196 s%@INTLDEPS@%$INTLDEPS%g
4197 s%@INTLLIBS@%$INTLLIBS%g
4198 s%@INTLOBJS@%$INTLOBJS%g
4199 s%@POFILES@%$POFILES%g
4201 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4203 s%@GT_YES@%$GT_YES%g
4204 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4206 s%@HDEFINES@%$HDEFINES%g
4207 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4208 s%@WIN32LIBADD@%$WIN32LIBADD%g
4209 s%@archdefs@%$archdefs%g
4210 s%@BFD_MACHINES@%$BFD_MACHINES%g
4215 cat >> $CONFIG_STATUS <<\EOF
4217 # Split the substitutions into bite-sized pieces for seds with
4218 # small command number limits, like on Digital OSF/1 and HP-UX.
4219 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4220 ac_file=1 # Number of current file.
4221 ac_beg=1 # First line for current file.
4222 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4225 while $ac_more_lines; do
4226 if test $ac_beg -gt 1; then
4227 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4229 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4231 if test ! -s conftest.s$ac_file; then
4233 rm -f conftest.s$ac_file
4235 if test -z "$ac_sed_cmds"; then
4236 ac_sed_cmds="sed -f conftest.s$ac_file"
4238 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4240 ac_file=`expr $ac_file + 1`
4242 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4245 if test -z "$ac_sed_cmds"; then
4250 cat >> $CONFIG_STATUS <<EOF
4252 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4254 cat >> $CONFIG_STATUS <<\EOF
4255 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4258 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4259 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4260 *) ac_file_in="${ac_file}.in" ;;
4263 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4265 # Remove last slash and all that follows it. Not all systems have dirname.
4266 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4267 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4268 # The file is in a subdirectory.
4269 test ! -d "$ac_dir" && mkdir "$ac_dir"
4270 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4271 # A "../" for each directory in $ac_dir_suffix.
4272 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4274 ac_dir_suffix= ac_dots=
4277 case "$ac_given_srcdir" in
4279 if test -z "$ac_dots"; then top_srcdir=.
4280 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4281 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4283 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4284 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4287 case "$ac_given_INSTALL" in
4288 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4289 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4292 echo creating "$ac_file"
4294 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4296 *Makefile*) ac_comsub="1i\\
4297 # $configure_input" ;;
4301 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4303 s%@configure_input@%$configure_input%g
4304 s%@srcdir@%$srcdir%g
4305 s%@top_srcdir@%$top_srcdir%g
4306 s%@INSTALL@%$INSTALL%g
4307 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4311 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4312 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4314 # ac_d sets the value in "#define NAME VALUE" lines.
4315 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4316 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4319 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4320 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4321 ac_uB='\([ ]\)%\1#\2define\3'
4324 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4325 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4326 ac_eB='$%\1#\2define\3'
4330 if test "${CONFIG_HEADERS+set}" != set; then
4332 cat >> $CONFIG_STATUS <<EOF
4333 CONFIG_HEADERS="config.h:config.in"
4335 cat >> $CONFIG_STATUS <<\EOF
4337 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4338 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4340 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4341 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4342 *) ac_file_in="${ac_file}.in" ;;
4345 echo creating $ac_file
4347 rm -f conftest.frag conftest.in conftest.out
4348 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4349 cat $ac_file_inputs > conftest.in
4353 # Transform confdefs.h into a sed script conftest.vals that substitutes
4354 # the proper values into config.h.in to produce config.h. And first:
4355 # Protect against being on the right side of a sed subst in config.status.
4356 # Protect against being in an unquoted here document in config.status.
4358 cat > conftest.hdr <<\EOF
4361 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4365 sed -n -f conftest.hdr confdefs.h > conftest.vals
4368 # This sed command replaces #undef with comments. This is necessary, for
4369 # example, in the case of _POSIX_SOURCE, which is predefined and required
4370 # on some systems where configure will not decide to define it.
4371 cat >> conftest.vals <<\EOF
4372 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4375 # Break up conftest.vals because some shells have a limit on
4376 # the size of here documents, and old seds have small limits too.
4381 ac_lines=`grep -c . conftest.vals`
4382 # grep -c gives empty output for an empty file on some AIX systems.
4383 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4384 # Write a limited-size here document to conftest.frag.
4385 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4386 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4388 sed -f conftest.frag conftest.in > conftest.out
4390 mv conftest.out conftest.in
4392 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4394 mv conftest.tail conftest.vals
4398 cat >> $CONFIG_STATUS <<\EOF
4399 rm -f conftest.frag conftest.h
4400 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4401 cat conftest.in >> conftest.h
4403 if cmp -s $ac_file conftest.h 2>/dev/null; then
4404 echo "$ac_file is unchanged"
4407 # Remove last slash and all that follows it. Not all systems have dirname.
4408 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4409 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4410 # The file is in a subdirectory.
4411 test ! -d "$ac_dir" && mkdir "$ac_dir"
4414 mv conftest.h $ac_file
4419 cat >> $CONFIG_STATUS <<EOF
4423 cat >> $CONFIG_STATUS <<\EOF
4424 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4425 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4428 chmod +x $CONFIG_STATUS
4429 rm -fr confdefs* $ac_clean_files
4430 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1