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-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 --disable-nls do not use Native Language Support"
34 --with-included-gettext use the GNU gettext library included here"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --site-file=FILE use FILE as the site file
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -site-file | --site-file | --site-fil | --site-fi | --site-f)
340 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341 sitefile="$ac_optarg" ;;
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=z8k-dis.c
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 CONFIG_SITE="$sitefile"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
558 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
559 if test -f $ac_dir/install-sh; then
561 ac_install_sh="$ac_aux_dir/install-sh -c"
563 elif test -f $ac_dir/install.sh; then
565 ac_install_sh="$ac_aux_dir/install.sh -c"
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
628 case "$target_alias" in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
646 case "$build_alias" in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
663 program_prefix=${target_alias}-
665 # Extract the first word of "gcc", so it can be a program name with args.
666 set dummy gcc; ac_word=$2
667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
668 echo "configure:669: checking for $ac_word" >&5
669 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 if test -n "$CC"; then
673 ac_cv_prog_CC="$CC" # Let the user override the test.
675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 for ac_dir in $ac_dummy; do
678 test -z "$ac_dir" && ac_dir=.
679 if test -f $ac_dir/$ac_word; then
688 if test -n "$CC"; then
689 echo "$ac_t""$CC" 1>&6
691 echo "$ac_t""no" 1>&6
694 if test -z "$CC"; then
695 # Extract the first word of "cc", so it can be a program name with args.
696 set dummy cc; ac_word=$2
697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
698 echo "configure:699: checking for $ac_word" >&5
699 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
702 if test -n "$CC"; then
703 ac_cv_prog_CC="$CC" # Let the user override the test.
705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
708 for ac_dir in $ac_dummy; do
709 test -z "$ac_dir" && ac_dir=.
710 if test -f $ac_dir/$ac_word; then
711 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
720 if test $ac_prog_rejected = yes; then
721 # We found a bogon in the path, so make sure we never use it.
722 set dummy $ac_cv_prog_CC
724 if test $# -gt 0; then
725 # We chose a different compiler from the bogus one.
726 # However, it has the same basename, so the bogon will be chosen
727 # first if we set CC to just the basename; use the full file name.
729 set dummy "$ac_dir/$ac_word" "$@"
737 if test -n "$CC"; then
738 echo "$ac_t""$CC" 1>&6
740 echo "$ac_t""no" 1>&6
743 if test -z "$CC"; then
746 # Extract the first word of "cl", so it can be a program name with args.
747 set dummy cl; ac_word=$2
748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
749 echo "configure:750: checking for $ac_word" >&5
750 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 if test -n "$CC"; then
754 ac_cv_prog_CC="$CC" # Let the user override the test.
756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
758 for ac_dir in $ac_dummy; do
759 test -z "$ac_dir" && ac_dir=.
760 if test -f $ac_dir/$ac_word; then
769 if test -n "$CC"; then
770 echo "$ac_t""$CC" 1>&6
772 echo "$ac_t""no" 1>&6
777 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
780 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
781 echo "configure:782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
785 ac_cpp='$CPP $CPPFLAGS'
786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
788 cross_compiling=$ac_cv_prog_cc_cross
790 cat > conftest.$ac_ext << EOF
792 #line 793 "configure"
793 #include "confdefs.h"
797 if { (eval echo configure:798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
798 ac_cv_prog_cc_works=yes
799 # If we can't run a trivial program, we are probably using a cross compiler.
800 if (./conftest; exit) 2>/dev/null; then
801 ac_cv_prog_cc_cross=no
803 ac_cv_prog_cc_cross=yes
806 echo "configure: failed program was:" >&5
807 cat conftest.$ac_ext >&5
808 ac_cv_prog_cc_works=no
812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
813 ac_cpp='$CPP $CPPFLAGS'
814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
816 cross_compiling=$ac_cv_prog_cc_cross
818 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
819 if test $ac_cv_prog_cc_works = no; then
820 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
823 echo "configure:824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
824 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
825 cross_compiling=$ac_cv_prog_cc_cross
827 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
828 echo "configure:829: checking whether we are using GNU C" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 cat > conftest.c <<EOF
837 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
844 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
846 if test $ac_cv_prog_gcc = yes; then
852 ac_test_CFLAGS="${CFLAGS+set}"
853 ac_save_CFLAGS="$CFLAGS"
855 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
856 echo "configure:857: checking whether ${CC-cc} accepts -g" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
860 echo 'void f(){}' > conftest.c
861 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
870 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
871 if test "$ac_test_CFLAGS" = set; then
872 CFLAGS="$ac_save_CFLAGS"
873 elif test $ac_cv_prog_cc_g = yes; then
874 if test "$GCC" = yes; then
880 if test "$GCC" = yes; then
887 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
888 echo "configure:889: checking for POSIXized ISC" >&5
889 if test -d /etc/conf/kconfig.d &&
890 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
892 echo "$ac_t""yes" 1>&6
893 ISC=yes # If later tests want to check for ISC.
894 cat >> confdefs.h <<\EOF
895 #define _POSIX_SOURCE 1
898 if test "$GCC" = yes; then
904 echo "$ac_t""no" 1>&6
909 # We currently only use the version number for the name of any shared
910 # library. For user convenience, we always use the same version
911 # number that BFD is using.
912 BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
914 # Find a good install program. We prefer a C program (faster),
915 # so one script is as good as another. But avoid the broken or
916 # incompatible versions:
917 # SysV /etc/install, /usr/sbin/install
918 # SunOS /usr/etc/install
921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
924 # ./install, which can be erroneously created by make from ./install.sh.
925 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
926 echo "configure:927: checking for a BSD compatible install" >&5
927 if test -z "$INSTALL"; then
928 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
932 for ac_dir in $PATH; do
933 # Account for people who put trailing slashes in PATH elements.
935 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
937 # OSF1 and SCO ODT 3.0 have their own names for install.
938 # Don't use installbsd from OSF since it installs stuff as root
940 for ac_prog in ginstall scoinst install; do
941 if test -f $ac_dir/$ac_prog; then
942 if test $ac_prog = install &&
943 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
944 # AIX install. It has an incompatible calling convention.
947 ac_cv_path_install="$ac_dir/$ac_prog -c"
958 if test "${ac_cv_path_install+set}" = set; then
959 INSTALL="$ac_cv_path_install"
961 # As a last resort, use the slow shell script. We don't cache a
962 # path for INSTALL within a source directory, because that will
963 # break other packages using the cache if that directory is
964 # removed, or if the path is relative.
965 INSTALL="$ac_install_sh"
968 echo "$ac_t""$INSTALL" 1>&6
970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
971 # It thinks the first close brace ends the variable substitution.
972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
978 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
979 echo "configure:980: checking whether build environment is sane" >&5
982 echo timestamp > conftestfile
983 # Do `set' in a subshell so we don't clobber the current shell's
984 # arguments. Must try -L first in case configure is actually a
985 # symlink; some systems play weird games with the mod time of symlinks
986 # (eg FreeBSD returns the mod time of the symlink's containing
989 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
990 if test "$*" = "X"; then
992 set X `ls -t $srcdir/configure conftestfile`
994 if test "$*" != "X $srcdir/configure conftestfile" \
995 && test "$*" != "X conftestfile $srcdir/configure"; then
997 # If neither matched, then we have a broken ls. This can happen
998 # if, for instance, CONFIG_SHELL is bash and it inherits a
999 # broken ls alias from the environment. This has actually
1000 # happened. Such a system could not be considered "sane".
1001 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1002 alias in your environment" 1>&2; exit 1; }
1005 test "$2" = conftestfile
1011 { echo "configure: error: newly created file is older than distributed files!
1012 Check your system clock" 1>&2; exit 1; }
1015 echo "$ac_t""yes" 1>&6
1016 if test "$program_transform_name" = s,x,x,; then
1017 program_transform_name=
1019 # Double any \ or $. echo might interpret backslashes.
1020 cat <<\EOF_SED > conftestsed
1021 s,\\,\\\\,g; s,\$,$$,g
1023 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1026 test "$program_prefix" != NONE &&
1027 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1028 # Use a double $ so make ignores it.
1029 test "$program_suffix" != NONE &&
1030 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1032 # sed with no file args requires a program.
1033 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1035 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether ${MAKE-make} sets \${MAKE}" >&5
1037 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1038 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 cat > conftestmake <<\EOF
1043 @echo 'ac_maketemp="${MAKE}"'
1045 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1046 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1047 if test -n "$ac_maketemp"; then
1048 eval ac_cv_prog_make_${ac_make}_set=yes
1050 eval ac_cv_prog_make_${ac_make}_set=no
1054 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1055 echo "$ac_t""yes" 1>&6
1058 echo "$ac_t""no" 1>&6
1059 SET_MAKE="MAKE=${MAKE-make}"
1065 VERSION=${BFD_VERSION}
1067 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1068 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1070 cat >> confdefs.h <<EOF
1071 #define PACKAGE "$PACKAGE"
1074 cat >> confdefs.h <<EOF
1075 #define VERSION "$VERSION"
1080 missing_dir=`cd $ac_aux_dir && pwd`
1081 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1082 echo "configure:1083: checking for working aclocal" >&5
1083 # Run test in a subshell; some versions of sh will print an error if
1084 # an executable is not found, even if stderr is redirected.
1085 # Redirect stdin to placate older versions of autoconf. Sigh.
1086 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1088 echo "$ac_t""found" 1>&6
1090 ACLOCAL="$missing_dir/missing aclocal"
1091 echo "$ac_t""missing" 1>&6
1094 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1095 echo "configure:1096: checking for working autoconf" >&5
1096 # Run test in a subshell; some versions of sh will print an error if
1097 # an executable is not found, even if stderr is redirected.
1098 # Redirect stdin to placate older versions of autoconf. Sigh.
1099 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1101 echo "$ac_t""found" 1>&6
1103 AUTOCONF="$missing_dir/missing autoconf"
1104 echo "$ac_t""missing" 1>&6
1107 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1108 echo "configure:1109: checking for working automake" >&5
1109 # Run test in a subshell; some versions of sh will print an error if
1110 # an executable is not found, even if stderr is redirected.
1111 # Redirect stdin to placate older versions of autoconf. Sigh.
1112 if (automake --version) < /dev/null > /dev/null 2>&1; then
1114 echo "$ac_t""found" 1>&6
1116 AUTOMAKE="$missing_dir/missing automake"
1117 echo "$ac_t""missing" 1>&6
1120 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1121 echo "configure:1122: checking for working autoheader" >&5
1122 # Run test in a subshell; some versions of sh will print an error if
1123 # an executable is not found, even if stderr is redirected.
1124 # Redirect stdin to placate older versions of autoconf. Sigh.
1125 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1126 AUTOHEADER=autoheader
1127 echo "$ac_t""found" 1>&6
1129 AUTOHEADER="$missing_dir/missing autoheader"
1130 echo "$ac_t""missing" 1>&6
1133 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1134 echo "configure:1135: checking for working makeinfo" >&5
1135 # Run test in a subshell; some versions of sh will print an error if
1136 # an executable is not found, even if stderr is redirected.
1137 # Redirect stdin to placate older versions of autoconf. Sigh.
1138 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1140 echo "$ac_t""found" 1>&6
1142 MAKEINFO="$missing_dir/missing makeinfo"
1143 echo "$ac_t""missing" 1>&6
1148 if test $host != $build; then
1149 ac_tool_prefix=${host_alias}-
1154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1155 set dummy ${ac_tool_prefix}ar; ac_word=$2
1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157 echo "configure:1158: checking for $ac_word" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 if test -n "$AR"; then
1162 ac_cv_prog_AR="$AR" # Let the user override the test.
1164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1166 for ac_dir in $ac_dummy; do
1167 test -z "$ac_dir" && ac_dir=.
1168 if test -f $ac_dir/$ac_word; then
1169 ac_cv_prog_AR="${ac_tool_prefix}ar"
1174 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1178 if test -n "$AR"; then
1179 echo "$ac_t""$AR" 1>&6
1181 echo "$ac_t""no" 1>&6
1186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$RANLIB"; then
1194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1198 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1208 RANLIB="$ac_cv_prog_RANLIB"
1209 if test -n "$RANLIB"; then
1210 echo "$ac_t""$RANLIB" 1>&6
1212 echo "$ac_t""no" 1>&6
1216 if test -z "$ac_cv_prog_RANLIB"; then
1217 if test -n "$ac_tool_prefix"; then
1218 # Extract the first word of "ranlib", so it can be a program name with args.
1219 set dummy ranlib; ac_word=$2
1220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1221 echo "configure:1222: checking for $ac_word" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 if test -n "$RANLIB"; then
1226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1230 for ac_dir in $ac_dummy; do
1231 test -z "$ac_dir" && ac_dir=.
1232 if test -f $ac_dir/$ac_word; then
1233 ac_cv_prog_RANLIB="ranlib"
1238 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1241 RANLIB="$ac_cv_prog_RANLIB"
1242 if test -n "$RANLIB"; then
1243 echo "$ac_t""$RANLIB" 1>&6
1245 echo "$ac_t""no" 1>&6
1254 # Check whether --enable-shared or --disable-shared was given.
1255 if test "${enable_shared+set}" = set; then
1256 enableval="$enable_shared"
1257 p=${PACKAGE-default}
1258 case "$enableval" in
1259 yes) enable_shared=yes ;;
1260 no) enable_shared=no ;;
1263 # Look at the argument we got. We use all the common list separators.
1264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1265 for pkg in $enableval; do
1266 if test "X$pkg" = "X$p"; then
1278 # Check whether --enable-static or --disable-static was given.
1279 if test "${enable_static+set}" = set; then
1280 enableval="$enable_static"
1281 p=${PACKAGE-default}
1282 case "$enableval" in
1283 yes) enable_static=yes ;;
1284 no) enable_static=no ;;
1287 # Look at the argument we got. We use all the common list separators.
1288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1289 for pkg in $enableval; do
1290 if test "X$pkg" = "X$p"; then
1301 # Check whether --enable-fast-install or --disable-fast-install was given.
1302 if test "${enable_fast_install+set}" = set; then
1303 enableval="$enable_fast_install"
1304 p=${PACKAGE-default}
1305 case "$enableval" in
1306 yes) enable_fast_install=yes ;;
1307 no) enable_fast_install=no ;;
1309 enable_fast_install=no
1310 # Look at the argument we got. We use all the common list separators.
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1312 for pkg in $enableval; do
1313 if test "X$pkg" = "X$p"; then
1314 enable_fast_install=yes
1321 enable_fast_install=yes
1324 # Extract the first word of "ranlib", so it can be a program name with args.
1325 set dummy ranlib; ac_word=$2
1326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_word" >&5
1328 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1331 if test -n "$RANLIB"; then
1332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1336 for ac_dir in $ac_dummy; do
1337 test -z "$ac_dir" && ac_dir=.
1338 if test -f $ac_dir/$ac_word; then
1339 ac_cv_prog_RANLIB="ranlib"
1344 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1347 RANLIB="$ac_cv_prog_RANLIB"
1348 if test -n "$RANLIB"; then
1349 echo "$ac_t""$RANLIB" 1>&6
1351 echo "$ac_t""no" 1>&6
1354 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1355 if test "${with_gnu_ld+set}" = set; then
1356 withval="$with_gnu_ld"
1357 test "$withval" = no || with_gnu_ld=yes
1363 if test "$ac_cv_prog_gcc" = yes; then
1364 # Check if gcc -print-prog-name=ld gives a path.
1365 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1366 echo "configure:1367: checking for ld used by GCC" >&5
1367 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1369 # Accept absolute paths.
1370 [\\/]* | [A-Za-z]:[\\/]*)
1371 re_direlt='/[^/][^/]*/\.\./'
1372 # Canonicalize the path of ld
1373 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1374 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1375 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1377 test -z "$LD" && LD="$ac_prog"
1380 # If it fails, then pretend we aren't using GCC.
1384 # If it is relative, then search for the first ld in PATH.
1388 elif test "$with_gnu_ld" = yes; then
1389 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1390 echo "configure:1391: checking for GNU ld" >&5
1392 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1393 echo "configure:1394: checking for non-GNU ld" >&5
1395 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test -z "$LD"; then
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1400 for ac_dir in $PATH; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1403 ac_cv_path_LD="$ac_dir/$ac_prog"
1404 # Check to see if the program is GNU ld. I'd rather use --version,
1405 # but apparently some GNU ld's only accept -v.
1406 # Break only if it was the GNU/non-GNU ld that we prefer.
1407 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1408 test "$with_gnu_ld" != no && break
1410 test "$with_gnu_ld" != yes && break
1416 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1421 if test -n "$LD"; then
1422 echo "$ac_t""$LD" 1>&6
1424 echo "$ac_t""no" 1>&6
1426 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1427 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1428 echo "configure:1429: checking if the linker ($LD) is GNU ld" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1433 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1434 ac_cv_prog_gnu_ld=yes
1436 ac_cv_prog_gnu_ld=no
1440 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1443 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1444 echo "configure:1445: checking for BSD-compatible nm" >&5
1445 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 if test -n "$NM"; then
1449 # Let the user override the test.
1452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1453 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1454 test -z "$ac_dir" && ac_dir=.
1455 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1456 # Check to see if the nm accepts a BSD-compat flag.
1457 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1458 # nm: unknown option "B" ignored
1459 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1460 ac_cv_path_NM="$ac_dir/nm -B"
1462 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1463 ac_cv_path_NM="$ac_dir/nm -p"
1466 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1467 continue # so that we can try to find one that supports BSD flags
1472 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1477 echo "$ac_t""$NM" 1>&6
1479 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1480 echo "configure:1481: checking whether ln -s works" >&5
1481 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1485 if ln -s X conftestdata 2>/dev/null
1488 ac_cv_prog_LN_S="ln -s"
1493 LN_S="$ac_cv_prog_LN_S"
1494 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1495 echo "$ac_t""yes" 1>&6
1497 echo "$ac_t""no" 1>&6
1502 NONE) lt_target="$host" ;;
1503 *) lt_target="$target" ;;
1506 # Check for any special flags to pass to ltconfig.
1507 libtool_flags="--cache-file=$cache_file"
1508 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1509 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1510 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1511 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1512 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1515 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1516 if test "${enable_libtool_lock+set}" = set; then
1517 enableval="$enable_libtool_lock"
1521 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1522 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1524 # Some flags need to be propagated to the compiler or linker for good
1526 case "$lt_target" in
1528 # Find out which ABI we are using.
1529 echo '#line 1530 "configure"' > conftest.$ac_ext
1530 if { (eval echo configure:1531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1531 case "`/usr/bin/file conftest.o`" in
1547 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1548 SAVE_CFLAGS="$CFLAGS"
1549 CFLAGS="$CFLAGS -belf"
1550 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1551 echo "configure:1552: checking whether the C compiler needs -belf" >&5
1552 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 cat > conftest.$ac_ext <<EOF
1556 #line 1557 "configure"
1557 #include "confdefs.h"
1563 if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1565 lt_cv_cc_needs_belf=yes
1567 echo "configure: failed program was:" >&5
1568 cat conftest.$ac_ext >&5
1570 lt_cv_cc_needs_belf=no
1575 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1576 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1577 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1578 CFLAGS="$SAVE_CFLAGS"
1586 # Save cache, so that ltconfig can load it
1587 cat > confcache <<\EOF
1588 # This file is a shell script that caches the results of configure
1589 # tests run on this system so they can be shared between configure
1590 # scripts and configure runs. It is not useful on other systems.
1591 # If it contains results you don't want to keep, you may remove or edit it.
1593 # By default, configure uses ./config.cache as the cache file,
1594 # creating it if it does not exist already. You can give configure
1595 # the --cache-file=FILE option to use a different cache file; that is
1596 # what configure does when it calls configure scripts in
1597 # subdirectories, so they share the cache.
1598 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1599 # config.status only pays attention to the cache file if you give it the
1600 # --recheck option to rerun configure.
1603 # The following way of writing the cache mishandles newlines in values,
1604 # but we know of no workaround that is simple, portable, and efficient.
1605 # So, don't put newlines in cache variables' values.
1606 # Ultrix sh set writes to stderr and can't be redirected directly,
1607 # and sets the high bit in the cache file unless we assign to the vars.
1609 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1611 # `set' does not quote correctly, so add quotes (double-quote substitution
1612 # turns \\\\ into \\, and sed turns \\ into \).
1614 -e "s/'/'\\\\''/g" \
1615 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1618 # `set' quotes correctly as required by POSIX, so do not add quotes.
1619 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1622 if cmp -s $cache_file confcache; then
1625 if test -w $cache_file; then
1626 echo "updating cache $cache_file"
1627 cat confcache > $cache_file
1629 echo "not updating unwritable cache $cache_file"
1635 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1636 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1637 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1638 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1639 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1640 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1641 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1642 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1644 # Reload cache, that may have been modified by ltconfig
1645 if test -r "$cache_file"; then
1646 echo "loading cache $cache_file"
1649 echo "creating cache $cache_file"
1654 # This can be used to rebuild libtool when needed
1655 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1657 # Always use our own libtool.
1658 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1660 # Redirect the config.log output again, so that the ltconfig log is not
1661 # clobbered by the next message.
1662 exec 5>>./config.log
1665 # Check whether --enable-targets or --disable-targets was given.
1666 if test "${enable_targets+set}" = set; then
1667 enableval="$enable_targets"
1668 case "${enableval}" in
1669 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1671 no) enable_targets= ;;
1672 *) enable_targets=$enableval ;;
1675 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1676 if test "${enable_commonbfdlib+set}" = set; then
1677 enableval="$enable_commonbfdlib"
1678 case "${enableval}" in
1679 yes) commonbfdlib=true ;;
1680 no) commonbfdlib=false ;;
1681 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1689 if test -z "$target" ; then
1690 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1692 if test "$program_transform_name" = s,x,x,; then
1693 program_transform_name=
1695 # Double any \ or $. echo might interpret backslashes.
1696 cat <<\EOF_SED > conftestsed
1697 s,\\,\\\\,g; s,\$,$$,g
1699 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1702 test "$program_prefix" != NONE &&
1703 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1704 # Use a double $ so make ignores it.
1705 test "$program_suffix" != NONE &&
1706 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1708 # sed with no file args requires a program.
1709 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1712 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1713 echo "configure:1714: checking whether to enable maintainer-specific portions of Makefiles" >&5
1714 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1715 if test "${enable_maintainer_mode+set}" = set; then
1716 enableval="$enable_maintainer_mode"
1717 USE_MAINTAINER_MODE=$enableval
1719 USE_MAINTAINER_MODE=no
1722 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1725 if test $USE_MAINTAINER_MODE = yes; then
1726 MAINTAINER_MODE_TRUE=
1727 MAINTAINER_MODE_FALSE='#'
1729 MAINTAINER_MODE_TRUE='#'
1730 MAINTAINER_MODE_FALSE=
1732 MAINT=$MAINTAINER_MODE_TRUE
1735 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1736 echo "configure:1737: checking for Cygwin environment" >&5
1737 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1747 #define __CYGWIN__ __CYGWIN32__
1752 if { (eval echo configure:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1765 echo "$ac_t""$ac_cv_cygwin" 1>&6
1767 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1768 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1769 echo "configure:1770: checking for mingw32 environment" >&5
1770 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1781 if { (eval echo configure:1782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1794 echo "$ac_t""$ac_cv_mingw32" 1>&6
1796 test "$ac_cv_mingw32" = yes && MINGW32=yes
1799 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1800 echo "configure:1801: checking for executable suffix" >&5
1801 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1808 echo 'int main () { return 0; }' > conftest.$ac_ext
1810 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1811 for file in conftest.*; do
1813 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1814 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1818 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1821 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1826 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1827 echo "$ac_t""${ac_cv_exeext}" 1>&6
1831 # host-specific stuff:
1833 # Extract the first word of "gcc", so it can be a program name with args.
1834 set dummy gcc; ac_word=$2
1835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_word" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1845 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f $ac_dir/$ac_word; then
1856 if test -n "$CC"; then
1857 echo "$ac_t""$CC" 1>&6
1859 echo "$ac_t""no" 1>&6
1862 if test -z "$CC"; then
1863 # Extract the first word of "cc", so it can be a program name with args.
1864 set dummy cc; ac_word=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1867 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1876 for ac_dir in $ac_dummy; do
1877 test -z "$ac_dir" && ac_dir=.
1878 if test -f $ac_dir/$ac_word; then
1879 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1880 ac_prog_rejected=yes
1888 if test $ac_prog_rejected = yes; then
1889 # We found a bogon in the path, so make sure we never use it.
1890 set dummy $ac_cv_prog_CC
1892 if test $# -gt 0; then
1893 # We chose a different compiler from the bogus one.
1894 # However, it has the same basename, so the bogon will be chosen
1895 # first if we set CC to just the basename; use the full file name.
1897 set dummy "$ac_dir/$ac_word" "$@"
1905 if test -n "$CC"; then
1906 echo "$ac_t""$CC" 1>&6
1908 echo "$ac_t""no" 1>&6
1911 if test -z "$CC"; then
1912 case "`uname -s`" in
1914 # Extract the first word of "cl", so it can be a program name with args.
1915 set dummy cl; ac_word=$2
1916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_word" >&5
1918 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1926 for ac_dir in $ac_dummy; do
1927 test -z "$ac_dir" && ac_dir=.
1928 if test -f $ac_dir/$ac_word; then
1937 if test -n "$CC"; then
1938 echo "$ac_t""$CC" 1>&6
1940 echo "$ac_t""no" 1>&6
1945 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1948 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1949 echo "configure:1950: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1956 cross_compiling=$ac_cv_prog_cc_cross
1958 cat > conftest.$ac_ext << EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966 ac_cv_prog_cc_works=yes
1967 # If we can't run a trivial program, we are probably using a cross compiler.
1968 if (./conftest; exit) 2>/dev/null; then
1969 ac_cv_prog_cc_cross=no
1971 ac_cv_prog_cc_cross=yes
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 ac_cv_prog_cc_works=no
1980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1981 ac_cpp='$CPP $CPPFLAGS'
1982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1984 cross_compiling=$ac_cv_prog_cc_cross
1986 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1987 if test $ac_cv_prog_cc_works = no; then
1988 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1990 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1991 echo "configure:1992: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1992 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1993 cross_compiling=$ac_cv_prog_cc_cross
1995 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1996 echo "configure:1997: checking whether we are using GNU C" >&5
1997 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 cat > conftest.c <<EOF
2005 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2012 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2014 if test $ac_cv_prog_gcc = yes; then
2020 ac_test_CFLAGS="${CFLAGS+set}"
2021 ac_save_CFLAGS="$CFLAGS"
2023 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether ${CC-cc} accepts -g" >&5
2025 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 echo 'void f(){}' > conftest.c
2029 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2038 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2039 if test "$ac_test_CFLAGS" = set; then
2040 CFLAGS="$ac_save_CFLAGS"
2041 elif test $ac_cv_prog_cc_g = yes; then
2042 if test "$GCC" = yes; then
2048 if test "$GCC" = yes; then
2057 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2058 echo "configure:2059: checking how to run the C preprocessor" >&5
2059 # On Suns, sometimes $CPP names a directory.
2060 if test -n "$CPP" && test -d "$CPP"; then
2063 if test -z "$CPP"; then
2064 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 # This must be in double quotes, not single quotes, because CPP may get
2068 # substituted into the Makefile and "${CC-cc}" will confuse make.
2070 # On the NeXT, cc -E runs the code through the compiler's parser,
2071 # not just through cpp.
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2079 { (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2081 if test -z "$ac_err"; then
2085 echo "configure: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 CPP="${CC-cc} -E -traditional-cpp"
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2096 { (eval echo configure:2097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2098 if test -z "$ac_err"; then
2102 echo "configure: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2105 CPP="${CC-cc} -nologo -E"
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2113 { (eval echo configure:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2115 if test -z "$ac_err"; then
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2129 ac_cv_prog_CPP="$CPP"
2131 CPP="$ac_cv_prog_CPP"
2133 ac_cv_prog_CPP="$CPP"
2135 echo "$ac_t""$CPP" 1>&6
2137 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2138 echo "configure:2139: checking for ANSI C header files" >&5
2139 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2151 { (eval echo configure:2152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2153 if test -z "$ac_err"; then
2155 ac_cv_header_stdc=yes
2158 echo "configure: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2161 ac_cv_header_stdc=no
2165 if test $ac_cv_header_stdc = yes; then
2166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2173 egrep "memchr" >/dev/null 2>&1; then
2177 ac_cv_header_stdc=no
2183 if test $ac_cv_header_stdc = yes; then
2184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2191 egrep "free" >/dev/null 2>&1; then
2195 ac_cv_header_stdc=no
2201 if test $ac_cv_header_stdc = yes; then
2202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2203 if test "$cross_compiling" = yes; then
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2210 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2211 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2213 int main () { int i; for (i = 0; i < 256; i++)
2214 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2225 ac_cv_header_stdc=no
2233 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2234 if test $ac_cv_header_stdc = yes; then
2235 cat >> confdefs.h <<\EOF
2236 #define STDC_HEADERS 1
2241 echo $ac_n "checking for working const""... $ac_c" 1>&6
2242 echo "configure:2243: checking for working const" >&5
2243 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2252 /* Ultrix mips cc rejects this. */
2253 typedef int charset[2]; const charset x;
2254 /* SunOS 4.1.1 cc rejects this. */
2255 char const *const *ccp;
2257 /* NEC SVR4.0.2 mips cc rejects this. */
2258 struct point {int x, y;};
2259 static struct point const zero = {0,0};
2260 /* AIX XL C 1.02.0.0 rejects this.
2261 It does not let you subtract one const X* pointer from another in an arm
2262 of an if-expression whose if-part is not a constant expression */
2263 const char *g = "string";
2264 ccp = &g + (g ? g-g : 0);
2265 /* HPUX 7.0 cc rejects these. */
2268 ccp = (char const *const *) p;
2269 { /* SCO 3.2v4 cc rejects this. */
2271 char const *s = 0 ? (char *) 0 : (char const *) 0;
2275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2277 const int *foo = &x[0];
2280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2281 typedef const int *iptr;
2285 { /* AIX XL C 1.02.0.0 rejects this saying
2286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2287 struct s { int j; const int *ap[3]; };
2288 struct s *b; b->j = 5;
2290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2296 if { (eval echo configure:2297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2308 echo "$ac_t""$ac_cv_c_const" 1>&6
2309 if test $ac_cv_c_const = no; then
2310 cat >> confdefs.h <<\EOF
2316 echo $ac_n "checking for inline""... $ac_c" 1>&6
2317 echo "configure:2318: checking for inline" >&5
2318 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2322 for ac_kw in inline __inline__ __inline; do
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2331 if { (eval echo configure:2332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2333 ac_cv_c_inline=$ac_kw; break
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2343 echo "$ac_t""$ac_cv_c_inline" 1>&6
2344 case "$ac_cv_c_inline" in
2346 no) cat >> confdefs.h <<\EOF
2350 *) cat >> confdefs.h <<EOF
2351 #define inline $ac_cv_c_inline
2356 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2357 echo "configure:2358: checking for off_t" >&5
2358 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 #include <sys/types.h>
2370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2371 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2373 ac_cv_type_off_t=yes
2381 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2382 if test $ac_cv_type_off_t = no; then
2383 cat >> confdefs.h <<\EOF
2389 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2390 echo "configure:2391: checking for size_t" >&5
2391 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 #include <sys/types.h>
2403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2404 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2406 ac_cv_type_size_t=yes
2409 ac_cv_type_size_t=no
2414 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2415 if test $ac_cv_type_size_t = no; then
2416 cat >> confdefs.h <<\EOF
2417 #define size_t unsigned
2422 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2423 # for constant arguments. Useless!
2424 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2425 echo "configure:2426: checking for working alloca.h" >&5
2426 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2434 char *p = alloca(2 * sizeof(int));
2437 if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2439 ac_cv_header_alloca_h=yes
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 ac_cv_header_alloca_h=no
2449 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2450 if test $ac_cv_header_alloca_h = yes; then
2451 cat >> confdefs.h <<\EOF
2452 #define HAVE_ALLOCA_H 1
2457 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2458 echo "configure:2459: checking for alloca" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2467 # define alloca __builtin_alloca
2470 # include <malloc.h>
2471 # define alloca _alloca
2474 # include <alloca.h>
2479 # ifndef alloca /* predefined by HP cc +Olibcalls */
2488 char *p = (char *) alloca(1);
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2493 ac_cv_func_alloca_works=yes
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 ac_cv_func_alloca_works=no
2503 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2504 if test $ac_cv_func_alloca_works = yes; then
2505 cat >> confdefs.h <<\EOF
2506 #define HAVE_ALLOCA 1
2511 if test $ac_cv_func_alloca_works = no; then
2512 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2513 # that cause trouble. Some versions do not even contain alloca or
2514 # contain a buggy version. If you still want to use their alloca,
2515 # use ar to extract alloca.o from them instead of compiling alloca.c.
2516 ALLOCA=alloca.${ac_objext}
2517 cat >> confdefs.h <<\EOF
2522 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2523 echo "configure:2524: checking whether alloca needs Cray hooks" >&5
2524 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2530 #if defined(CRAY) && ! defined(CRAY2)
2537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2538 egrep "webecray" >/dev/null 2>&1; then
2549 echo "$ac_t""$ac_cv_os_cray" 1>&6
2550 if test $ac_cv_os_cray = yes; then
2551 for ac_func in _getb67 GETB67 getb67; do
2552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2553 echo "configure:2554: checking for $ac_func" >&5
2554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $ac_func(); below. */
2563 /* Override any gcc2 internal prototype to avoid an error. */
2564 /* We use char because int might match the return type of a gcc2
2565 builtin and then its argument prototype would still apply. */
2570 /* The GNU C library defines this for functions which it implements
2571 to always fail with ENOSYS. Some functions are actually named
2572 something starting with __ and the normal name is an alias. */
2573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2583 eval "ac_cv_func_$ac_func=yes"
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2588 eval "ac_cv_func_$ac_func=no"
2593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2594 echo "$ac_t""yes" 1>&6
2595 cat >> confdefs.h <<EOF
2596 #define CRAY_STACKSEG_END $ac_func
2601 echo "$ac_t""no" 1>&6
2607 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2608 echo "configure:2609: checking stack direction for C alloca" >&5
2609 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2612 if test "$cross_compiling" = yes; then
2613 ac_cv_c_stack_direction=0
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2618 find_stack_direction ()
2620 static char *addr = 0;
2625 return find_stack_direction ();
2628 return (&dummy > addr) ? 1 : -1;
2632 exit (find_stack_direction() < 0);
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2637 ac_cv_c_stack_direction=1
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 ac_cv_c_stack_direction=-1
2649 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2650 cat >> confdefs.h <<EOF
2651 #define STACK_DIRECTION $ac_cv_c_stack_direction
2656 for ac_hdr in unistd.h
2658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2660 echo "configure:2661: checking for $ac_hdr" >&5
2661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2670 { (eval echo configure:2671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2672 if test -z "$ac_err"; then
2674 eval "ac_cv_header_$ac_safe=yes"
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2680 eval "ac_cv_header_$ac_safe=no"
2684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2685 echo "$ac_t""yes" 1>&6
2686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2687 cat >> confdefs.h <<EOF
2688 #define $ac_tr_hdr 1
2692 echo "$ac_t""no" 1>&6
2696 for ac_func in getpagesize
2698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_func" >&5
2700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2706 /* System header to define __stub macros and hopefully few prototypes,
2707 which can conflict with char $ac_func(); below. */
2709 /* Override any gcc2 internal prototype to avoid an error. */
2710 /* We use char because int might match the return type of a gcc2
2711 builtin and then its argument prototype would still apply. */
2716 /* The GNU C library defines this for functions which it implements
2717 to always fail with ENOSYS. Some functions are actually named
2718 something starting with __ and the normal name is an alias. */
2719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2727 if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2729 eval "ac_cv_func_$ac_func=yes"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2734 eval "ac_cv_func_$ac_func=no"
2739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2740 echo "$ac_t""yes" 1>&6
2741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2742 cat >> confdefs.h <<EOF
2743 #define $ac_tr_func 1
2747 echo "$ac_t""no" 1>&6
2751 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2752 echo "configure:2753: checking for working mmap" >&5
2753 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 if test "$cross_compiling" = yes; then
2757 ac_cv_func_mmap_fixed_mapped=no
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2763 /* Thanks to Mike Haertel and Jim Avera for this test.
2764 Here is a matrix of mmap possibilities:
2765 mmap private not fixed
2766 mmap private fixed at somewhere currently unmapped
2767 mmap private fixed at somewhere already mapped
2768 mmap shared not fixed
2769 mmap shared fixed at somewhere currently unmapped
2770 mmap shared fixed at somewhere already mapped
2771 For private mappings, we should verify that changes cannot be read()
2772 back from the file, nor mmap's back from the file at a different
2773 address. (There have been systems where private was not correctly
2774 implemented like the infamous i386 svr4.0, and systems where the
2775 VM page cache was not coherent with the filesystem buffer cache
2776 like early versions of FreeBSD and possibly contemporary NetBSD.)
2777 For shared mappings, we should conversely verify that changes get
2778 propogated back to all the places they're supposed to be.
2780 Grep wants private fixed already mapped.
2781 The main things grep needs to know about mmap are:
2782 * does it exist and is it safe to write into the mmap'd area
2783 * how to use it (BSD variants) */
2784 #include <sys/types.h>
2786 #include <sys/mman.h>
2788 /* This mess was copied from the GNU getpagesize.h. */
2789 #ifndef HAVE_GETPAGESIZE
2790 # ifdef HAVE_UNISTD_H
2791 # include <unistd.h>
2794 /* Assume that all systems that can run configure have sys/param.h. */
2795 # ifndef HAVE_SYS_PARAM_H
2796 # define HAVE_SYS_PARAM_H 1
2799 # ifdef _SC_PAGESIZE
2800 # define getpagesize() sysconf(_SC_PAGESIZE)
2801 # else /* no _SC_PAGESIZE */
2802 # ifdef HAVE_SYS_PARAM_H
2803 # include <sys/param.h>
2804 # ifdef EXEC_PAGESIZE
2805 # define getpagesize() EXEC_PAGESIZE
2806 # else /* no EXEC_PAGESIZE */
2808 # define getpagesize() NBPG * CLSIZE
2811 # endif /* no CLSIZE */
2812 # else /* no NBPG */
2814 # define getpagesize() NBPC
2815 # else /* no NBPC */
2817 # define getpagesize() PAGESIZE
2818 # endif /* PAGESIZE */
2819 # endif /* no NBPC */
2820 # endif /* no NBPG */
2821 # endif /* no EXEC_PAGESIZE */
2822 # else /* no HAVE_SYS_PARAM_H */
2823 # define getpagesize() 8192 /* punt totally */
2824 # endif /* no HAVE_SYS_PARAM_H */
2825 # endif /* no _SC_PAGESIZE */
2827 #endif /* no HAVE_GETPAGESIZE */
2830 extern "C" { void *malloc(unsigned); }
2838 char *data, *data2, *data3;
2842 pagesize = getpagesize();
2845 * First, make a file with some known garbage in it.
2847 data = malloc(pagesize);
2850 for (i = 0; i < pagesize; ++i)
2851 *(data + i) = rand();
2853 fd = creat("conftestmmap", 0600);
2856 if (write(fd, data, pagesize) != pagesize)
2861 * Next, try to mmap the file at a fixed address which
2862 * already has something else allocated at it. If we can,
2863 * also make sure that we see the same garbage.
2865 fd = open("conftestmmap", O_RDWR);
2868 data2 = malloc(2 * pagesize);
2871 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2872 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2873 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2875 for (i = 0; i < pagesize; ++i)
2876 if (*(data + i) != *(data2 + i))
2880 * Finally, make sure that changes to the mapped area
2881 * do not percolate back to the file as seen by read().
2882 * (This is a bug on some variants of i386 svr4.0.)
2884 for (i = 0; i < pagesize; ++i)
2885 *(data2 + i) = *(data2 + i) + 1;
2886 data3 = malloc(pagesize);
2889 if (read(fd, data3, pagesize) != pagesize)
2891 for (i = 0; i < pagesize; ++i)
2892 if (*(data + i) != *(data3 + i))
2895 unlink("conftestmmap");
2900 if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2902 ac_cv_func_mmap_fixed_mapped=yes
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2907 ac_cv_func_mmap_fixed_mapped=no
2914 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2915 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2916 cat >> confdefs.h <<\EOF
2923 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2924 unistd.h values.h sys/param.h
2926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2928 echo "configure:2929: checking for $ac_hdr" >&5
2929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2938 { (eval echo configure:2939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2940 if test -z "$ac_err"; then
2942 eval "ac_cv_header_$ac_safe=yes"
2945 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2948 eval "ac_cv_header_$ac_safe=no"
2952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2953 echo "$ac_t""yes" 1>&6
2954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2955 cat >> confdefs.h <<EOF
2956 #define $ac_tr_hdr 1
2960 echo "$ac_t""no" 1>&6
2964 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2965 __argz_count __argz_stringify __argz_next
2967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2968 echo "configure:2969: checking for $ac_func" >&5
2969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2975 /* System header to define __stub macros and hopefully few prototypes,
2976 which can conflict with char $ac_func(); below. */
2978 /* Override any gcc2 internal prototype to avoid an error. */
2979 /* We use char because int might match the return type of a gcc2
2980 builtin and then its argument prototype would still apply. */
2985 /* The GNU C library defines this for functions which it implements
2986 to always fail with ENOSYS. Some functions are actually named
2987 something starting with __ and the normal name is an alias. */
2988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2996 if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2998 eval "ac_cv_func_$ac_func=yes"
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3003 eval "ac_cv_func_$ac_func=no"
3008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3009 echo "$ac_t""yes" 1>&6
3010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3011 cat >> confdefs.h <<EOF
3012 #define $ac_tr_func 1
3016 echo "$ac_t""no" 1>&6
3021 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3022 for ac_func in stpcpy
3024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3025 echo "configure:3026: checking for $ac_func" >&5
3026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3032 /* System header to define __stub macros and hopefully few prototypes,
3033 which can conflict with char $ac_func(); below. */
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3042 /* The GNU C library defines this for functions which it implements
3043 to always fail with ENOSYS. Some functions are actually named
3044 something starting with __ and the normal name is an alias. */
3045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3053 if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3055 eval "ac_cv_func_$ac_func=yes"
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3060 eval "ac_cv_func_$ac_func=no"
3065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3068 cat >> confdefs.h <<EOF
3069 #define $ac_tr_func 1
3073 echo "$ac_t""no" 1>&6
3078 if test "${ac_cv_func_stpcpy}" = "yes"; then
3079 cat >> confdefs.h <<\EOF
3080 #define HAVE_STPCPY 1
3085 if test $ac_cv_header_locale_h = yes; then
3086 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3087 echo "configure:3088: checking for LC_MESSAGES" >&5
3088 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 cat > conftest.$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3101 am_cv_val_LC_MESSAGES=yes
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3106 am_cv_val_LC_MESSAGES=no
3111 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3112 if test $am_cv_val_LC_MESSAGES = yes; then
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_LC_MESSAGES 1
3119 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3120 echo "configure:3121: checking whether NLS is requested" >&5
3121 # Check whether --enable-nls or --disable-nls was given.
3122 if test "${enable_nls+set}" = set; then
3123 enableval="$enable_nls"
3129 echo "$ac_t""$USE_NLS" 1>&6
3132 USE_INCLUDED_LIBINTL=no
3134 if test "$USE_NLS" = "yes"; then
3135 cat >> confdefs.h <<\EOF
3136 #define ENABLE_NLS 1
3139 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3140 echo "configure:3141: checking whether included gettext is requested" >&5
3141 # Check whether --with-included-gettext or --without-included-gettext was given.
3142 if test "${with_included_gettext+set}" = set; then
3143 withval="$with_included_gettext"
3144 nls_cv_force_use_gnu_gettext=$withval
3146 nls_cv_force_use_gnu_gettext=no
3149 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3151 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3152 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3154 nls_cv_header_libgt=
3157 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3158 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3159 echo "configure:3160: checking for libintl.h" >&5
3160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 #include <libintl.h>
3168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3169 { (eval echo configure:3170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3171 if test -z "$ac_err"; then
3173 eval "ac_cv_header_$ac_safe=yes"
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3179 eval "ac_cv_header_$ac_safe=no"
3183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3184 echo "$ac_t""yes" 1>&6
3185 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3186 echo "configure:3187: checking for gettext in libc" >&5
3187 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 #include <libintl.h>
3195 return (int) gettext ("")
3198 if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3200 gt_cv_func_gettext_libc=yes
3202 echo "configure: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3205 gt_cv_func_gettext_libc=no
3210 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3212 if test "$gt_cv_func_gettext_libc" != "yes"; then
3213 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3214 echo "configure:3215: checking for bindtextdomain in -lintl" >&5
3215 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 ac_save_LIBS="$LIBS"
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3227 char bindtextdomain();
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3235 eval "ac_cv_lib_$ac_lib_var=yes"
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3240 eval "ac_cv_lib_$ac_lib_var=no"
3243 LIBS="$ac_save_LIBS"
3246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3247 echo "$ac_t""yes" 1>&6
3248 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3249 echo "configure:3250: checking for gettext in libintl" >&5
3250 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3258 return (int) gettext ("")
3261 if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3263 gt_cv_func_gettext_libintl=yes
3265 echo "configure: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3268 gt_cv_func_gettext_libintl=no
3273 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3275 echo "$ac_t""no" 1>&6
3280 if test "$gt_cv_func_gettext_libc" = "yes" \
3281 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3282 cat >> confdefs.h <<\EOF
3283 #define HAVE_GETTEXT 1
3286 # Extract the first word of "msgfmt", so it can be a program name with args.
3287 set dummy msgfmt; ac_word=$2
3288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3289 echo "configure:3290: checking for $ac_word" >&5
3290 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3295 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3299 for ac_dir in $PATH; do
3300 test -z "$ac_dir" && ac_dir=.
3301 if test -f $ac_dir/$ac_word; then
3302 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3303 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3309 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3313 MSGFMT="$ac_cv_path_MSGFMT"
3314 if test -n "$MSGFMT"; then
3315 echo "$ac_t""$MSGFMT" 1>&6
3317 echo "$ac_t""no" 1>&6
3319 if test "$MSGFMT" != "no"; then
3320 for ac_func in dcgettext
3322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3323 echo "configure:3324: checking for $ac_func" >&5
3324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3330 /* System header to define __stub macros and hopefully few prototypes,
3331 which can conflict with char $ac_func(); below. */
3333 /* Override any gcc2 internal prototype to avoid an error. */
3334 /* We use char because int might match the return type of a gcc2
3335 builtin and then its argument prototype would still apply. */
3340 /* The GNU C library defines this for functions which it implements
3341 to always fail with ENOSYS. Some functions are actually named
3342 something starting with __ and the normal name is an alias. */
3343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3351 if { (eval echo configure:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3353 eval "ac_cv_func_$ac_func=yes"
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3358 eval "ac_cv_func_$ac_func=no"
3363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3364 echo "$ac_t""yes" 1>&6
3365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3366 cat >> confdefs.h <<EOF
3367 #define $ac_tr_func 1
3371 echo "$ac_t""no" 1>&6
3375 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3376 set dummy gmsgfmt; ac_word=$2
3377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3378 echo "configure:3379: checking for $ac_word" >&5
3379 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3384 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3387 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3392 for ac_dir in $ac_dummy; do
3393 test -z "$ac_dir" && ac_dir=.
3394 if test -f $ac_dir/$ac_word; then
3395 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3400 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3404 GMSGFMT="$ac_cv_path_GMSGFMT"
3405 if test -n "$GMSGFMT"; then
3406 echo "$ac_t""$GMSGFMT" 1>&6
3408 echo "$ac_t""no" 1>&6
3411 # Extract the first word of "xgettext", so it can be a program name with args.
3412 set dummy xgettext; ac_word=$2
3413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_word" >&5
3415 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3420 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3424 for ac_dir in $PATH; do
3425 test -z "$ac_dir" && ac_dir=.
3426 if test -f $ac_dir/$ac_word; then
3427 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3428 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3434 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3438 XGETTEXT="$ac_cv_path_XGETTEXT"
3439 if test -n "$XGETTEXT"; then
3440 echo "$ac_t""$XGETTEXT" 1>&6
3442 echo "$ac_t""no" 1>&6
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3450 extern int _nl_msg_cat_cntr;
3451 return _nl_msg_cat_cntr
3454 if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3471 echo "$ac_t""no" 1>&6
3476 if test "$CATOBJEXT" = "NONE"; then
3477 nls_cv_use_gnu_gettext=yes
3481 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3482 INTLOBJS="\$(GETTOBJS)"
3483 # Extract the first word of "msgfmt", so it can be a program name with args.
3484 set dummy msgfmt; ac_word=$2
3485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3486 echo "configure:3487: checking for $ac_word" >&5
3487 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3492 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3496 for ac_dir in $PATH; do
3497 test -z "$ac_dir" && ac_dir=.
3498 if test -f $ac_dir/$ac_word; then
3499 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3500 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3506 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3510 MSGFMT="$ac_cv_path_MSGFMT"
3511 if test -n "$MSGFMT"; then
3512 echo "$ac_t""$MSGFMT" 1>&6
3514 echo "$ac_t""no" 1>&6
3517 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3518 set dummy gmsgfmt; ac_word=$2
3519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3520 echo "configure:3521: checking for $ac_word" >&5
3521 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3526 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3529 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3534 for ac_dir in $ac_dummy; do
3535 test -z "$ac_dir" && ac_dir=.
3536 if test -f $ac_dir/$ac_word; then
3537 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3542 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3546 GMSGFMT="$ac_cv_path_GMSGFMT"
3547 if test -n "$GMSGFMT"; then
3548 echo "$ac_t""$GMSGFMT" 1>&6
3550 echo "$ac_t""no" 1>&6
3553 # Extract the first word of "xgettext", so it can be a program name with args.
3554 set dummy xgettext; ac_word=$2
3555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3556 echo "configure:3557: checking for $ac_word" >&5
3557 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3562 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3566 for ac_dir in $PATH; do
3567 test -z "$ac_dir" && ac_dir=.
3568 if test -f $ac_dir/$ac_word; then
3569 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3570 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3576 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3580 XGETTEXT="$ac_cv_path_XGETTEXT"
3581 if test -n "$XGETTEXT"; then
3582 echo "$ac_t""$XGETTEXT" 1>&6
3584 echo "$ac_t""no" 1>&6
3588 USE_INCLUDED_LIBINTL=yes
3592 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3594 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3595 nls_cv_header_intl=libintl.h
3596 nls_cv_header_libgt=libgettext.h
3599 if test "$XGETTEXT" != ":"; then
3600 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3603 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3608 # We need to process the po/ directory.
3612 nls_cv_header_intl=libintl.h
3613 nls_cv_header_libgt=libgettext.h
3616 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3617 # because some of the sources are only built for this goal.
3618 if test "$PACKAGE" = gettext; then
3620 USE_INCLUDED_LIBINTL=yes
3623 for lang in $ALL_LINGUAS; do
3624 GMOFILES="$GMOFILES $lang.gmo"
3625 POFILES="$POFILES $lang.po"
3641 if test "x$CATOBJEXT" != "x"; then
3642 if test "x$ALL_LINGUAS" = "x"; then
3645 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3646 echo "configure:3647: checking for catalogs to be installed" >&5
3648 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3649 case "$ALL_LINGUAS" in
3650 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3653 LINGUAS=$NEW_LINGUAS
3654 echo "$ac_t""$LINGUAS" 1>&6
3657 if test -n "$LINGUAS"; then
3658 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3662 if test $ac_cv_header_locale_h = yes; then
3663 INCLUDE_LOCALE_H="#include <locale.h>"
3666 /* The system does not provide the header <locale.h>. Take care yourself. */"
3670 if test -f $srcdir/po2tbl.sed.in; then
3671 if test "$CATOBJEXT" = ".cat"; then
3672 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3673 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3674 echo "configure:3675: checking for linux/version.h" >&5
3675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3681 #include <linux/version.h>
3683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3684 { (eval echo configure:3685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3686 if test -z "$ac_err"; then
3688 eval "ac_cv_header_$ac_safe=yes"
3691 echo "configure: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3694 eval "ac_cv_header_$ac_safe=no"
3698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3702 echo "$ac_t""no" 1>&6
3707 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3709 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3710 $srcdir/po2tbl.sed.in > po2tbl.sed
3713 if test "$PACKAGE" = "gettext"; then
3723 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3729 if test -d $srcdir/po; then
3730 test -d po || mkdir po
3731 if test "x$srcdir" != "x."; then
3732 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3733 posrcprefix="$srcdir/"
3735 posrcprefix="../$srcdir/"
3741 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3742 < $srcdir/po/POTFILES.in > po/POTFILES
3746 . ${srcdir}/../bfd/configure.host
3749 # Find a good install program. We prefer a C program (faster),
3750 # so one script is as good as another. But avoid the broken or
3751 # incompatible versions:
3752 # SysV /etc/install, /usr/sbin/install
3753 # SunOS /usr/etc/install
3754 # IRIX /sbin/install
3756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3759 # ./install, which can be erroneously created by make from ./install.sh.
3760 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3761 echo "configure:3762: checking for a BSD compatible install" >&5
3762 if test -z "$INSTALL"; then
3763 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3767 for ac_dir in $PATH; do
3768 # Account for people who put trailing slashes in PATH elements.
3770 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3772 # OSF1 and SCO ODT 3.0 have their own names for install.
3773 # Don't use installbsd from OSF since it installs stuff as root
3775 for ac_prog in ginstall scoinst install; do
3776 if test -f $ac_dir/$ac_prog; then
3777 if test $ac_prog = install &&
3778 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3779 # AIX install. It has an incompatible calling convention.
3782 ac_cv_path_install="$ac_dir/$ac_prog -c"
3793 if test "${ac_cv_path_install+set}" = set; then
3794 INSTALL="$ac_cv_path_install"
3796 # As a last resort, use the slow shell script. We don't cache a
3797 # path for INSTALL within a source directory, because that will
3798 # break other packages using the cache if that directory is
3799 # removed, or if the path is relative.
3800 INSTALL="$ac_install_sh"
3803 echo "$ac_t""$INSTALL" 1>&6
3805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3806 # It thinks the first close brace ends the variable substitution.
3807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3814 for ac_hdr in string.h strings.h stdlib.h
3816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3818 echo "configure:3819: checking for $ac_hdr" >&5
3819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3828 { (eval echo configure:3829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3830 if test -z "$ac_err"; then
3832 eval "ac_cv_header_$ac_safe=yes"
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3838 eval "ac_cv_header_$ac_safe=no"
3842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3843 echo "$ac_t""yes" 1>&6
3844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3845 cat >> confdefs.h <<EOF
3846 #define $ac_tr_hdr 1
3850 echo "$ac_t""no" 1>&6
3858 # Horrible hacks to build DLLs on Windows.
3863 if test "$enable_shared" = "yes"; then
3864 WIN32LDFLAGS="-no-undefined"
3865 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
3872 # target-specific stuff:
3874 # Canonicalize the secondary target names.
3875 if test -n "$enable_targets" ; then
3876 for targ in `echo $enable_targets | sed 's/,/ /g'`
3878 result=`$ac_config_sub $targ 2>/dev/null`
3879 if test -n "$result" ; then
3880 canon_targets="$canon_targets $result"
3882 # Allow targets that config.sub doesn't recognize, like "all".
3883 canon_targets="$canon_targets $targ"
3890 for targ in $target $canon_targets
3892 if test "x$targ" = "xall" ; then
3895 . $srcdir/../bfd/config.bfd
3896 selarchs="$selarchs $targ_archs"
3900 # Utility var, documents generic cgen support files.
3902 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
3904 # We don't do any links based on the target system, just makefile config.
3906 if test x${all_targets} = xfalse ; then
3908 # Target architecture .o files.
3911 for arch in $selarchs
3913 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
3914 archdefs="$archdefs -DARCH_$ad"
3916 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
3917 bfd_alliant_arch) ;;
3918 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
3919 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
3920 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
3922 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
3923 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
3924 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
3925 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
3926 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
3927 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
3928 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
3929 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
3931 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
3932 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 ;;
3933 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
3934 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
3935 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
3936 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3937 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
3938 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
3939 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
3940 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
3941 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3942 bfd_pyramid_arch) ;;
3944 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3945 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
3946 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
3948 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
3949 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
3950 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3951 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3952 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3953 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
3954 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
3956 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
3959 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
3963 if test $using_cgen = yes ; then
3964 ta="$ta $cgen_files"
3967 # Weed out duplicate .o files.
3977 # And duplicate -D flags.
3979 for i in $archdefs ; do
3989 else # all_targets is true
3991 BFD_MACHINES='$(ALL_MACHINES)'
3998 cat > confcache <<\EOF
3999 # This file is a shell script that caches the results of configure
4000 # tests run on this system so they can be shared between configure
4001 # scripts and configure runs. It is not useful on other systems.
4002 # If it contains results you don't want to keep, you may remove or edit it.
4004 # By default, configure uses ./config.cache as the cache file,
4005 # creating it if it does not exist already. You can give configure
4006 # the --cache-file=FILE option to use a different cache file; that is
4007 # what configure does when it calls configure scripts in
4008 # subdirectories, so they share the cache.
4009 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4010 # config.status only pays attention to the cache file if you give it the
4011 # --recheck option to rerun configure.
4014 # The following way of writing the cache mishandles newlines in values,
4015 # but we know of no workaround that is simple, portable, and efficient.
4016 # So, don't put newlines in cache variables' values.
4017 # Ultrix sh set writes to stderr and can't be redirected directly,
4018 # and sets the high bit in the cache file unless we assign to the vars.
4020 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4022 # `set' does not quote correctly, so add quotes (double-quote substitution
4023 # turns \\\\ into \\, and sed turns \\ into \).
4025 -e "s/'/'\\\\''/g" \
4026 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4029 # `set' quotes correctly as required by POSIX, so do not add quotes.
4030 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4033 if cmp -s $cache_file confcache; then
4036 if test -w $cache_file; then
4037 echo "updating cache $cache_file"
4038 cat confcache > $cache_file
4040 echo "not updating unwritable cache $cache_file"
4045 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4048 # Let make expand exec_prefix.
4049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4051 # Any assignment to VPATH causes Sun make to only execute
4052 # the first set of double-colon rules, so remove it if not needed.
4053 # If there is a colon in the path, we need to keep it.
4054 if test "x$srcdir" = x.; then
4055 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4058 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4060 DEFS=-DHAVE_CONFIG_H
4062 # Without the "./", some shells look in PATH for config.status.
4063 : ${CONFIG_STATUS=./config.status}
4065 echo creating $CONFIG_STATUS
4066 rm -f $CONFIG_STATUS
4067 cat > $CONFIG_STATUS <<EOF
4069 # Generated automatically by configure.
4070 # Run this file to recreate the current configuration.
4071 # This directory was configured as follows,
4072 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4074 # $0 $ac_configure_args
4076 # Compiler output produced by configure, useful for debugging
4077 # configure, is in ./config.log if it exists.
4079 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4082 case "\$ac_option" in
4083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4084 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4085 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4086 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4087 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4089 -help | --help | --hel | --he | --h)
4090 echo "\$ac_cs_usage"; exit 0 ;;
4091 *) echo "\$ac_cs_usage"; exit 1 ;;
4095 ac_given_srcdir=$srcdir
4096 ac_given_INSTALL="$INSTALL"
4098 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4100 cat >> $CONFIG_STATUS <<EOF
4102 # Protect against being on the right side of a sed subst in config.status.
4103 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4104 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4108 s%@CFLAGS@%$CFLAGS%g
4109 s%@CPPFLAGS@%$CPPFLAGS%g
4110 s%@CXXFLAGS@%$CXXFLAGS%g
4111 s%@FFLAGS@%$FFLAGS%g
4113 s%@LDFLAGS@%$LDFLAGS%g
4115 s%@exec_prefix@%$exec_prefix%g
4116 s%@prefix@%$prefix%g
4117 s%@program_transform_name@%$program_transform_name%g
4118 s%@bindir@%$bindir%g
4119 s%@sbindir@%$sbindir%g
4120 s%@libexecdir@%$libexecdir%g
4121 s%@datadir@%$datadir%g
4122 s%@sysconfdir@%$sysconfdir%g
4123 s%@sharedstatedir@%$sharedstatedir%g
4124 s%@localstatedir@%$localstatedir%g
4125 s%@libdir@%$libdir%g
4126 s%@includedir@%$includedir%g
4127 s%@oldincludedir@%$oldincludedir%g
4128 s%@infodir@%$infodir%g
4129 s%@mandir@%$mandir%g
4131 s%@host_alias@%$host_alias%g
4132 s%@host_cpu@%$host_cpu%g
4133 s%@host_vendor@%$host_vendor%g
4134 s%@host_os@%$host_os%g
4135 s%@target@%$target%g
4136 s%@target_alias@%$target_alias%g
4137 s%@target_cpu@%$target_cpu%g
4138 s%@target_vendor@%$target_vendor%g
4139 s%@target_os@%$target_os%g
4141 s%@build_alias@%$build_alias%g
4142 s%@build_cpu@%$build_cpu%g
4143 s%@build_vendor@%$build_vendor%g
4144 s%@build_os@%$build_os%g
4146 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4147 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4148 s%@INSTALL_DATA@%$INSTALL_DATA%g
4149 s%@PACKAGE@%$PACKAGE%g
4150 s%@VERSION@%$VERSION%g
4151 s%@ACLOCAL@%$ACLOCAL%g
4152 s%@AUTOCONF@%$AUTOCONF%g
4153 s%@AUTOMAKE@%$AUTOMAKE%g
4154 s%@AUTOHEADER@%$AUTOHEADER%g
4155 s%@MAKEINFO@%$MAKEINFO%g
4156 s%@SET_MAKE@%$SET_MAKE%g
4158 s%@RANLIB@%$RANLIB%g
4160 s%@LIBTOOL@%$LIBTOOL%g
4161 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4162 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4164 s%@EXEEXT@%$EXEEXT%g
4166 s%@ALLOCA@%$ALLOCA%g
4167 s%@USE_NLS@%$USE_NLS%g
4168 s%@MSGFMT@%$MSGFMT%g
4169 s%@GMSGFMT@%$GMSGFMT%g
4170 s%@XGETTEXT@%$XGETTEXT%g
4171 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4172 s%@CATALOGS@%$CATALOGS%g
4173 s%@CATOBJEXT@%$CATOBJEXT%g
4174 s%@DATADIRNAME@%$DATADIRNAME%g
4175 s%@GMOFILES@%$GMOFILES%g
4176 s%@INSTOBJEXT@%$INSTOBJEXT%g
4177 s%@INTLDEPS@%$INTLDEPS%g
4178 s%@INTLLIBS@%$INTLLIBS%g
4179 s%@INTLOBJS@%$INTLOBJS%g
4180 s%@POFILES@%$POFILES%g
4182 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4184 s%@GT_YES@%$GT_YES%g
4185 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4187 s%@HDEFINES@%$HDEFINES%g
4188 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4189 s%@WIN32LIBADD@%$WIN32LIBADD%g
4190 s%@archdefs@%$archdefs%g
4191 s%@BFD_MACHINES@%$BFD_MACHINES%g
4196 cat >> $CONFIG_STATUS <<\EOF
4198 # Split the substitutions into bite-sized pieces for seds with
4199 # small command number limits, like on Digital OSF/1 and HP-UX.
4200 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4201 ac_file=1 # Number of current file.
4202 ac_beg=1 # First line for current file.
4203 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4206 while $ac_more_lines; do
4207 if test $ac_beg -gt 1; then
4208 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4210 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4212 if test ! -s conftest.s$ac_file; then
4214 rm -f conftest.s$ac_file
4216 if test -z "$ac_sed_cmds"; then
4217 ac_sed_cmds="sed -f conftest.s$ac_file"
4219 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4221 ac_file=`expr $ac_file + 1`
4223 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4226 if test -z "$ac_sed_cmds"; then
4231 cat >> $CONFIG_STATUS <<EOF
4233 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4235 cat >> $CONFIG_STATUS <<\EOF
4236 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4239 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4240 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4241 *) ac_file_in="${ac_file}.in" ;;
4244 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4246 # Remove last slash and all that follows it. Not all systems have dirname.
4247 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4248 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4249 # The file is in a subdirectory.
4250 test ! -d "$ac_dir" && mkdir "$ac_dir"
4251 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4252 # A "../" for each directory in $ac_dir_suffix.
4253 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4255 ac_dir_suffix= ac_dots=
4258 case "$ac_given_srcdir" in
4260 if test -z "$ac_dots"; then top_srcdir=.
4261 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4262 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4264 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4265 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4268 case "$ac_given_INSTALL" in
4269 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4270 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4273 echo creating "$ac_file"
4275 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4277 *Makefile*) ac_comsub="1i\\
4278 # $configure_input" ;;
4282 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4284 s%@configure_input@%$configure_input%g
4285 s%@srcdir@%$srcdir%g
4286 s%@top_srcdir@%$top_srcdir%g
4287 s%@INSTALL@%$INSTALL%g
4288 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4292 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4293 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4295 # ac_d sets the value in "#define NAME VALUE" lines.
4296 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4297 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4300 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4301 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4302 ac_uB='\([ ]\)%\1#\2define\3'
4305 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4306 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4307 ac_eB='$%\1#\2define\3'
4311 if test "${CONFIG_HEADERS+set}" != set; then
4313 cat >> $CONFIG_STATUS <<EOF
4314 CONFIG_HEADERS="config.h:config.in"
4316 cat >> $CONFIG_STATUS <<\EOF
4318 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4321 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4322 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4323 *) ac_file_in="${ac_file}.in" ;;
4326 echo creating $ac_file
4328 rm -f conftest.frag conftest.in conftest.out
4329 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4330 cat $ac_file_inputs > conftest.in
4334 # Transform confdefs.h into a sed script conftest.vals that substitutes
4335 # the proper values into config.h.in to produce config.h. And first:
4336 # Protect against being on the right side of a sed subst in config.status.
4337 # Protect against being in an unquoted here document in config.status.
4339 cat > conftest.hdr <<\EOF
4342 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4346 sed -n -f conftest.hdr confdefs.h > conftest.vals
4349 # This sed command replaces #undef with comments. This is necessary, for
4350 # example, in the case of _POSIX_SOURCE, which is predefined and required
4351 # on some systems where configure will not decide to define it.
4352 cat >> conftest.vals <<\EOF
4353 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4356 # Break up conftest.vals because some shells have a limit on
4357 # the size of here documents, and old seds have small limits too.
4362 ac_lines=`grep -c . conftest.vals`
4363 # grep -c gives empty output for an empty file on some AIX systems.
4364 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4365 # Write a limited-size here document to conftest.frag.
4366 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4367 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4369 sed -f conftest.frag conftest.in > conftest.out
4371 mv conftest.out conftest.in
4373 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4375 mv conftest.tail conftest.vals
4379 cat >> $CONFIG_STATUS <<\EOF
4380 rm -f conftest.frag conftest.h
4381 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4382 cat conftest.in >> conftest.h
4384 if cmp -s $ac_file conftest.h 2>/dev/null; then
4385 echo "$ac_file is unchanged"
4388 # Remove last slash and all that follows it. Not all systems have dirname.
4389 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4390 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4391 # The file is in a subdirectory.
4392 test ! -d "$ac_dir" && mkdir "$ac_dir"
4395 mv conftest.h $ac_file
4400 cat >> $CONFIG_STATUS <<EOF
4404 cat >> $CONFIG_STATUS <<\EOF
4405 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4406 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4409 chmod +x $CONFIG_STATUS
4410 rm -fr confdefs* $ac_clean_files
4411 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1