3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-targets alternative target configurations"
27 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
29 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 --disable-nls do not use Native Language Support"
36 --with-included-gettext use the GNU gettext library included here"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file=./config.cache
51 program_transform_name=s,x,x,
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --site-file=FILE use FILE as the site file
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host | --host | --hos | --ho)
216 -host=* | --host=* | --hos=* | --ho=*)
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 sbindir="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 sharedstatedir="$ac_optarg" ;;
335 -site | --site | --sit)
337 -site=* | --site=* | --sit=*)
340 -site-file | --site-file | --site-fil | --site-fi | --site-f)
342 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
343 sitefile="$ac_optarg" ;;
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
357 -target | --target | --targe | --targ | --tar | --ta | --t)
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.13"
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=z8k-dis.c
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$sitefile"; then
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 CONFIG_SITE="$sitefile"
521 for ac_site_file in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
532 echo "creating cache $cache_file"
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp='$CPP $CPPFLAGS'
539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling=$ac_cv_prog_cc_cross
545 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554 ac_n= ac_c='\c' ac_t=
560 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
561 if test -f $ac_dir/install-sh; then
563 ac_install_sh="$ac_aux_dir/install-sh -c"
565 elif test -f $ac_dir/install.sh; then
567 ac_install_sh="$ac_aux_dir/install.sh -c"
571 if test -z "$ac_aux_dir"; then
572 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
574 ac_config_guess=$ac_aux_dir/config.guess
575 ac_config_sub=$ac_aux_dir/config.sub
576 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
579 # Do some error checking and defaulting for the host and target type.
581 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
584 # 1. You are not allowed to specify --host, --target, and nonopt at the
586 # 2. Host defaults to nonopt.
587 # 3. If nonopt is not specified, then host defaults to the current host,
588 # as determined by config.guess.
589 # 4. Target and build default to nonopt.
590 # 5. If nonopt is not specified, then target and build default to host.
592 # The aliases save the names the user supplied, while $host etc.
593 # will get canonicalized.
594 case $host---$target---$nonopt in
595 NONE---*---* | *---NONE---* | *---*---NONE) ;;
596 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
600 # Make sure we can run config.sub.
601 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
602 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
605 echo $ac_n "checking host system type""... $ac_c" 1>&6
606 echo "configure:607: checking host system type" >&5
609 case "$host_alias" in
613 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
614 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
616 *) host_alias=$nonopt ;;
620 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
621 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
622 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
623 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
624 echo "$ac_t""$host" 1>&6
626 echo $ac_n "checking target system type""... $ac_c" 1>&6
627 echo "configure:628: checking target system type" >&5
630 case "$target_alias" in
633 NONE) target_alias=$host_alias ;;
634 *) target_alias=$nonopt ;;
638 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
639 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
640 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
641 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
642 echo "$ac_t""$target" 1>&6
644 echo $ac_n "checking build system type""... $ac_c" 1>&6
645 echo "configure:646: checking build system type" >&5
648 case "$build_alias" in
651 NONE) build_alias=$host_alias ;;
652 *) build_alias=$nonopt ;;
656 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
657 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
658 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
659 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
660 echo "$ac_t""$build" 1>&6
662 test "$host_alias" != "$target_alias" &&
663 test "$program_prefix$program_suffix$program_transform_name" = \
665 program_prefix=${target_alias}-
667 # Extract the first word of "gcc", so it can be a program name with args.
668 set dummy gcc; ac_word=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
674 if test -n "$CC"; then
675 ac_cv_prog_CC="$CC" # Let the user override the test.
677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
690 if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
693 echo "$ac_t""no" 1>&6
696 if test -z "$CC"; then
697 # Extract the first word of "cc", so it can be a program name with args.
698 set dummy cc; ac_word=$2
699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700 echo "configure:701: checking for $ac_word" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 if test -n "$CC"; then
705 ac_cv_prog_CC="$CC" # Let the user override the test.
707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
710 for ac_dir in $ac_dummy; do
711 test -z "$ac_dir" && ac_dir=.
712 if test -f $ac_dir/$ac_word; then
713 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
722 if test $ac_prog_rejected = yes; then
723 # We found a bogon in the path, so make sure we never use it.
724 set dummy $ac_cv_prog_CC
726 if test $# -gt 0; then
727 # We chose a different compiler from the bogus one.
728 # However, it has the same basename, so the bogon will be chosen
729 # first if we set CC to just the basename; use the full file name.
731 set dummy "$ac_dir/$ac_word" "$@"
739 if test -n "$CC"; then
740 echo "$ac_t""$CC" 1>&6
742 echo "$ac_t""no" 1>&6
745 if test -z "$CC"; then
748 # Extract the first word of "cl", so it can be a program name with args.
749 set dummy cl; ac_word=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 if test -n "$CC"; then
756 ac_cv_prog_CC="$CC" # Let the user override the test.
758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
760 for ac_dir in $ac_dummy; do
761 test -z "$ac_dir" && ac_dir=.
762 if test -f $ac_dir/$ac_word; then
771 if test -n "$CC"; then
772 echo "$ac_t""$CC" 1>&6
774 echo "$ac_t""no" 1>&6
779 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787 ac_cpp='$CPP $CPPFLAGS'
788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790 cross_compiling=$ac_cv_prog_cc_cross
792 cat > conftest.$ac_ext << EOF
794 #line 795 "configure"
795 #include "confdefs.h"
799 if { (eval echo configure:800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
800 ac_cv_prog_cc_works=yes
801 # If we can't run a trivial program, we are probably using a cross compiler.
802 if (./conftest; exit) 2>/dev/null; then
803 ac_cv_prog_cc_cross=no
805 ac_cv_prog_cc_cross=yes
808 echo "configure: failed program was:" >&5
809 cat conftest.$ac_ext >&5
810 ac_cv_prog_cc_works=no
814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
815 ac_cpp='$CPP $CPPFLAGS'
816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
818 cross_compiling=$ac_cv_prog_cc_cross
820 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
821 if test $ac_cv_prog_cc_works = no; then
822 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
824 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
825 echo "configure:826: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
826 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
827 cross_compiling=$ac_cv_prog_cc_cross
829 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
830 echo "configure:831: checking whether we are using GNU C" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 cat > conftest.c <<EOF
839 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
846 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
848 if test $ac_cv_prog_gcc = yes; then
854 ac_test_CFLAGS="${CFLAGS+set}"
855 ac_save_CFLAGS="$CFLAGS"
857 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
858 echo "configure:859: checking whether ${CC-cc} accepts -g" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 echo 'void f(){}' > conftest.c
863 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
872 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
873 if test "$ac_test_CFLAGS" = set; then
874 CFLAGS="$ac_save_CFLAGS"
875 elif test $ac_cv_prog_cc_g = yes; then
876 if test "$GCC" = yes; then
882 if test "$GCC" = yes; then
889 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
890 echo "configure:891: checking for POSIXized ISC" >&5
891 if test -d /etc/conf/kconfig.d &&
892 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
894 echo "$ac_t""yes" 1>&6
895 ISC=yes # If later tests want to check for ISC.
896 cat >> confdefs.h <<\EOF
897 #define _POSIX_SOURCE 1
900 if test "$GCC" = yes; then
906 echo "$ac_t""no" 1>&6
911 # We currently only use the version number for the name of any shared
912 # library. For user convenience, we always use the same version
913 # number that BFD is using.
914 BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
916 # Find a good install program. We prefer a C program (faster),
917 # so one script is as good as another. But avoid the broken or
918 # incompatible versions:
919 # SysV /etc/install, /usr/sbin/install
920 # SunOS /usr/etc/install
923 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
924 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
925 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
926 # ./install, which can be erroneously created by make from ./install.sh.
927 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
928 echo "configure:929: checking for a BSD compatible install" >&5
929 if test -z "$INSTALL"; then
930 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
934 for ac_dir in $PATH; do
935 # Account for people who put trailing slashes in PATH elements.
937 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
939 # OSF1 and SCO ODT 3.0 have their own names for install.
940 # Don't use installbsd from OSF since it installs stuff as root
942 for ac_prog in ginstall scoinst install; do
943 if test -f $ac_dir/$ac_prog; then
944 if test $ac_prog = install &&
945 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
946 # AIX install. It has an incompatible calling convention.
949 ac_cv_path_install="$ac_dir/$ac_prog -c"
960 if test "${ac_cv_path_install+set}" = set; then
961 INSTALL="$ac_cv_path_install"
963 # As a last resort, use the slow shell script. We don't cache a
964 # path for INSTALL within a source directory, because that will
965 # break other packages using the cache if that directory is
966 # removed, or if the path is relative.
967 INSTALL="$ac_install_sh"
970 echo "$ac_t""$INSTALL" 1>&6
972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
973 # It thinks the first close brace ends the variable substitution.
974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
980 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
981 echo "configure:982: checking whether build environment is sane" >&5
984 echo timestamp > conftestfile
985 # Do `set' in a subshell so we don't clobber the current shell's
986 # arguments. Must try -L first in case configure is actually a
987 # symlink; some systems play weird games with the mod time of symlinks
988 # (eg FreeBSD returns the mod time of the symlink's containing
991 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
992 if test "$*" = "X"; then
994 set X `ls -t $srcdir/configure conftestfile`
996 if test "$*" != "X $srcdir/configure conftestfile" \
997 && test "$*" != "X conftestfile $srcdir/configure"; then
999 # If neither matched, then we have a broken ls. This can happen
1000 # if, for instance, CONFIG_SHELL is bash and it inherits a
1001 # broken ls alias from the environment. This has actually
1002 # happened. Such a system could not be considered "sane".
1003 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1004 alias in your environment" 1>&2; exit 1; }
1007 test "$2" = conftestfile
1013 { echo "configure: error: newly created file is older than distributed files!
1014 Check your system clock" 1>&2; exit 1; }
1017 echo "$ac_t""yes" 1>&6
1018 if test "$program_transform_name" = s,x,x,; then
1019 program_transform_name=
1021 # Double any \ or $. echo might interpret backslashes.
1022 cat <<\EOF_SED > conftestsed
1023 s,\\,\\\\,g; s,\$,$$,g
1025 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1028 test "$program_prefix" != NONE &&
1029 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1030 # Use a double $ so make ignores it.
1031 test "$program_suffix" != NONE &&
1032 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1034 # sed with no file args requires a program.
1035 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1037 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1038 echo "configure:1039: checking whether ${MAKE-make} sets \${MAKE}" >&5
1039 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1040 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 cat > conftestmake <<\EOF
1045 @echo 'ac_maketemp="${MAKE}"'
1047 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1048 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1049 if test -n "$ac_maketemp"; then
1050 eval ac_cv_prog_make_${ac_make}_set=yes
1052 eval ac_cv_prog_make_${ac_make}_set=no
1056 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1057 echo "$ac_t""yes" 1>&6
1060 echo "$ac_t""no" 1>&6
1061 SET_MAKE="MAKE=${MAKE-make}"
1067 VERSION=${BFD_VERSION}
1069 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1070 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1072 cat >> confdefs.h <<EOF
1073 #define PACKAGE "$PACKAGE"
1076 cat >> confdefs.h <<EOF
1077 #define VERSION "$VERSION"
1082 missing_dir=`cd $ac_aux_dir && pwd`
1083 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1084 echo "configure:1085: checking for working aclocal" >&5
1085 # Run test in a subshell; some versions of sh will print an error if
1086 # an executable is not found, even if stderr is redirected.
1087 # Redirect stdin to placate older versions of autoconf. Sigh.
1088 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1090 echo "$ac_t""found" 1>&6
1092 ACLOCAL="$missing_dir/missing aclocal"
1093 echo "$ac_t""missing" 1>&6
1096 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1097 echo "configure:1098: checking for working autoconf" >&5
1098 # Run test in a subshell; some versions of sh will print an error if
1099 # an executable is not found, even if stderr is redirected.
1100 # Redirect stdin to placate older versions of autoconf. Sigh.
1101 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1103 echo "$ac_t""found" 1>&6
1105 AUTOCONF="$missing_dir/missing autoconf"
1106 echo "$ac_t""missing" 1>&6
1109 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1110 echo "configure:1111: checking for working automake" >&5
1111 # Run test in a subshell; some versions of sh will print an error if
1112 # an executable is not found, even if stderr is redirected.
1113 # Redirect stdin to placate older versions of autoconf. Sigh.
1114 if (automake --version) < /dev/null > /dev/null 2>&1; then
1116 echo "$ac_t""found" 1>&6
1118 AUTOMAKE="$missing_dir/missing automake"
1119 echo "$ac_t""missing" 1>&6
1122 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1123 echo "configure:1124: checking for working autoheader" >&5
1124 # Run test in a subshell; some versions of sh will print an error if
1125 # an executable is not found, even if stderr is redirected.
1126 # Redirect stdin to placate older versions of autoconf. Sigh.
1127 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1128 AUTOHEADER=autoheader
1129 echo "$ac_t""found" 1>&6
1131 AUTOHEADER="$missing_dir/missing autoheader"
1132 echo "$ac_t""missing" 1>&6
1135 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1136 echo "configure:1137: checking for working makeinfo" >&5
1137 # Run test in a subshell; some versions of sh will print an error if
1138 # an executable is not found, even if stderr is redirected.
1139 # Redirect stdin to placate older versions of autoconf. Sigh.
1140 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1142 echo "$ac_t""found" 1>&6
1144 MAKEINFO="$missing_dir/missing makeinfo"
1145 echo "$ac_t""missing" 1>&6
1150 if test $host != $build; then
1151 ac_tool_prefix=${host_alias}-
1156 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1157 set dummy ${ac_tool_prefix}ar; ac_word=$2
1158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159 echo "configure:1160: checking for $ac_word" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 if test -n "$AR"; then
1164 ac_cv_prog_AR="$AR" # Let the user override the test.
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1168 for ac_dir in $ac_dummy; do
1169 test -z "$ac_dir" && ac_dir=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_prog_AR="${ac_tool_prefix}ar"
1176 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1180 if test -n "$AR"; then
1181 echo "$ac_t""$AR" 1>&6
1183 echo "$ac_t""no" 1>&6
1188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1189 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1191 echo "configure:1192: checking for $ac_word" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 if test -n "$RANLIB"; then
1196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1200 for ac_dir in $ac_dummy; do
1201 test -z "$ac_dir" && ac_dir=.
1202 if test -f $ac_dir/$ac_word; then
1203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1210 RANLIB="$ac_cv_prog_RANLIB"
1211 if test -n "$RANLIB"; then
1212 echo "$ac_t""$RANLIB" 1>&6
1214 echo "$ac_t""no" 1>&6
1218 if test -z "$ac_cv_prog_RANLIB"; then
1219 if test -n "$ac_tool_prefix"; then
1220 # Extract the first word of "ranlib", so it can be a program name with args.
1221 set dummy ranlib; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 if test -n "$RANLIB"; then
1228 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_RANLIB="ranlib"
1240 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1243 RANLIB="$ac_cv_prog_RANLIB"
1244 if test -n "$RANLIB"; then
1245 echo "$ac_t""$RANLIB" 1>&6
1247 echo "$ac_t""no" 1>&6
1256 # Check whether --enable-shared or --disable-shared was given.
1257 if test "${enable_shared+set}" = set; then
1258 enableval="$enable_shared"
1259 p=${PACKAGE-default}
1260 case "$enableval" in
1261 yes) enable_shared=yes ;;
1262 no) enable_shared=no ;;
1265 # Look at the argument we got. We use all the common list separators.
1266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1267 for pkg in $enableval; do
1268 if test "X$pkg" = "X$p"; then
1280 # Check whether --enable-static or --disable-static was given.
1281 if test "${enable_static+set}" = set; then
1282 enableval="$enable_static"
1283 p=${PACKAGE-default}
1284 case "$enableval" in
1285 yes) enable_static=yes ;;
1286 no) enable_static=no ;;
1289 # Look at the argument we got. We use all the common list separators.
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1291 for pkg in $enableval; do
1292 if test "X$pkg" = "X$p"; then
1303 # Check whether --enable-fast-install or --disable-fast-install was given.
1304 if test "${enable_fast_install+set}" = set; then
1305 enableval="$enable_fast_install"
1306 p=${PACKAGE-default}
1307 case "$enableval" in
1308 yes) enable_fast_install=yes ;;
1309 no) enable_fast_install=no ;;
1311 enable_fast_install=no
1312 # Look at the argument we got. We use all the common list separators.
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1314 for pkg in $enableval; do
1315 if test "X$pkg" = "X$p"; then
1316 enable_fast_install=yes
1323 enable_fast_install=yes
1326 # Extract the first word of "ranlib", so it can be a program name with args.
1327 set dummy ranlib; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 if test -n "$RANLIB"; then
1334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1338 for ac_dir in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_prog_RANLIB="ranlib"
1346 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1349 RANLIB="$ac_cv_prog_RANLIB"
1350 if test -n "$RANLIB"; then
1351 echo "$ac_t""$RANLIB" 1>&6
1353 echo "$ac_t""no" 1>&6
1356 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1357 if test "${with_gnu_ld+set}" = set; then
1358 withval="$with_gnu_ld"
1359 test "$withval" = no || with_gnu_ld=yes
1365 if test "$ac_cv_prog_gcc" = yes; then
1366 # Check if gcc -print-prog-name=ld gives a path.
1367 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1368 echo "configure:1369: checking for ld used by GCC" >&5
1369 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1371 # Accept absolute paths.
1372 [\\/]* | [A-Za-z]:[\\/]*)
1373 re_direlt='/[^/][^/]*/\.\./'
1374 # Canonicalize the path of ld
1375 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1376 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1377 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1379 test -z "$LD" && LD="$ac_prog"
1382 # If it fails, then pretend we aren't using GCC.
1386 # If it is relative, then search for the first ld in PATH.
1390 elif test "$with_gnu_ld" = yes; then
1391 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1392 echo "configure:1393: checking for GNU ld" >&5
1394 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1395 echo "configure:1396: checking for non-GNU ld" >&5
1397 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 if test -z "$LD"; then
1401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1402 for ac_dir in $PATH; do
1403 test -z "$ac_dir" && ac_dir=.
1404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1405 ac_cv_path_LD="$ac_dir/$ac_prog"
1406 # Check to see if the program is GNU ld. I'd rather use --version,
1407 # but apparently some GNU ld's only accept -v.
1408 # Break only if it was the GNU/non-GNU ld that we prefer.
1409 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1410 test "$with_gnu_ld" != no && break
1412 test "$with_gnu_ld" != yes && break
1418 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1423 if test -n "$LD"; then
1424 echo "$ac_t""$LD" 1>&6
1426 echo "$ac_t""no" 1>&6
1428 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1429 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1430 echo "configure:1431: checking if the linker ($LD) is GNU ld" >&5
1431 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1435 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1436 ac_cv_prog_gnu_ld=yes
1438 ac_cv_prog_gnu_ld=no
1442 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1445 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1446 echo "configure:1447: checking for BSD-compatible nm" >&5
1447 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1450 if test -n "$NM"; then
1451 # Let the user override the test.
1454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1455 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1456 test -z "$ac_dir" && ac_dir=.
1457 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1458 # Check to see if the nm accepts a BSD-compat flag.
1459 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1460 # nm: unknown option "B" ignored
1461 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1462 ac_cv_path_NM="$ac_dir/nm -B"
1464 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1465 ac_cv_path_NM="$ac_dir/nm -p"
1468 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1469 continue # so that we can try to find one that supports BSD flags
1474 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1479 echo "$ac_t""$NM" 1>&6
1481 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1482 echo "configure:1483: checking whether ln -s works" >&5
1483 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1487 if ln -s X conftestdata 2>/dev/null
1490 ac_cv_prog_LN_S="ln -s"
1495 LN_S="$ac_cv_prog_LN_S"
1496 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1497 echo "$ac_t""yes" 1>&6
1499 echo "$ac_t""no" 1>&6
1504 NONE) lt_target="$host" ;;
1505 *) lt_target="$target" ;;
1508 # Check for any special flags to pass to ltconfig.
1509 libtool_flags="--cache-file=$cache_file"
1510 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1511 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1512 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1513 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1514 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1517 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1518 if test "${enable_libtool_lock+set}" = set; then
1519 enableval="$enable_libtool_lock"
1523 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1524 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1526 # Some flags need to be propagated to the compiler or linker for good
1528 case "$lt_target" in
1530 # Find out which ABI we are using.
1531 echo '#line 1532 "configure"' > conftest.$ac_ext
1532 if { (eval echo configure:1533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1533 case "`/usr/bin/file conftest.o`" in
1549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1550 SAVE_CFLAGS="$CFLAGS"
1551 CFLAGS="$CFLAGS -belf"
1552 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1553 echo "configure:1554: checking whether the C compiler needs -belf" >&5
1554 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1565 if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1567 lt_cv_cc_needs_belf=yes
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1572 lt_cv_cc_needs_belf=no
1577 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1578 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1579 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1580 CFLAGS="$SAVE_CFLAGS"
1588 # Save cache, so that ltconfig can load it
1589 cat > confcache <<\EOF
1590 # This file is a shell script that caches the results of configure
1591 # tests run on this system so they can be shared between configure
1592 # scripts and configure runs. It is not useful on other systems.
1593 # If it contains results you don't want to keep, you may remove or edit it.
1595 # By default, configure uses ./config.cache as the cache file,
1596 # creating it if it does not exist already. You can give configure
1597 # the --cache-file=FILE option to use a different cache file; that is
1598 # what configure does when it calls configure scripts in
1599 # subdirectories, so they share the cache.
1600 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1601 # config.status only pays attention to the cache file if you give it the
1602 # --recheck option to rerun configure.
1605 # The following way of writing the cache mishandles newlines in values,
1606 # but we know of no workaround that is simple, portable, and efficient.
1607 # So, don't put newlines in cache variables' values.
1608 # Ultrix sh set writes to stderr and can't be redirected directly,
1609 # and sets the high bit in the cache file unless we assign to the vars.
1611 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1613 # `set' does not quote correctly, so add quotes (double-quote substitution
1614 # turns \\\\ into \\, and sed turns \\ into \).
1616 -e "s/'/'\\\\''/g" \
1617 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1620 # `set' quotes correctly as required by POSIX, so do not add quotes.
1621 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1624 if cmp -s $cache_file confcache; then
1627 if test -w $cache_file; then
1628 echo "updating cache $cache_file"
1629 cat confcache > $cache_file
1631 echo "not updating unwritable cache $cache_file"
1637 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1638 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1639 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1640 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1641 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1642 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1643 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1644 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1646 # Reload cache, that may have been modified by ltconfig
1647 if test -r "$cache_file"; then
1648 echo "loading cache $cache_file"
1651 echo "creating cache $cache_file"
1656 # This can be used to rebuild libtool when needed
1657 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1659 # Always use our own libtool.
1660 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1662 # Redirect the config.log output again, so that the ltconfig log is not
1663 # clobbered by the next message.
1664 exec 5>>./config.log
1667 # Check whether --enable-targets or --disable-targets was given.
1668 if test "${enable_targets+set}" = set; then
1669 enableval="$enable_targets"
1670 case "${enableval}" in
1671 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1673 no) enable_targets= ;;
1674 *) enable_targets=$enableval ;;
1677 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1678 if test "${enable_commonbfdlib+set}" = set; then
1679 enableval="$enable_commonbfdlib"
1680 case "${enableval}" in
1681 yes) commonbfdlib=true ;;
1682 no) commonbfdlib=false ;;
1683 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1687 build_warnings="-W -Wall"
1688 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1689 if test "${enable_build_warnings+set}" = set; then
1690 enableval="$enable_build_warnings"
1691 case "${enableval}" in
1693 no) build_warnings="-w";;
1694 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1695 build_warnings="${build_warnings} ${t}";;
1696 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1697 build_warnings="${t} ${build_warnings}";;
1698 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1700 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
1701 echo "Setting warning flags = $build_warnings" 6>&1
1705 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
1706 WARN_CFLAGS="${build_warnings}"
1714 if test -z "$target" ; then
1715 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1717 if test "$program_transform_name" = s,x,x,; then
1718 program_transform_name=
1720 # Double any \ or $. echo might interpret backslashes.
1721 cat <<\EOF_SED > conftestsed
1722 s,\\,\\\\,g; s,\$,$$,g
1724 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1727 test "$program_prefix" != NONE &&
1728 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1729 # Use a double $ so make ignores it.
1730 test "$program_suffix" != NONE &&
1731 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1733 # sed with no file args requires a program.
1734 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1737 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1738 echo "configure:1739: checking whether to enable maintainer-specific portions of Makefiles" >&5
1739 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1740 if test "${enable_maintainer_mode+set}" = set; then
1741 enableval="$enable_maintainer_mode"
1742 USE_MAINTAINER_MODE=$enableval
1744 USE_MAINTAINER_MODE=no
1747 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1750 if test $USE_MAINTAINER_MODE = yes; then
1751 MAINTAINER_MODE_TRUE=
1752 MAINTAINER_MODE_FALSE='#'
1754 MAINTAINER_MODE_TRUE='#'
1755 MAINTAINER_MODE_FALSE=
1757 MAINT=$MAINTAINER_MODE_TRUE
1760 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1761 echo "configure:1762: checking for Cygwin environment" >&5
1762 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 cat > conftest.$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1772 #define __CYGWIN__ __CYGWIN32__
1777 if { (eval echo configure:1778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1790 echo "$ac_t""$ac_cv_cygwin" 1>&6
1792 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1793 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1794 echo "configure:1795: checking for mingw32 environment" >&5
1795 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1806 if { (eval echo configure:1807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1819 echo "$ac_t""$ac_cv_mingw32" 1>&6
1821 test "$ac_cv_mingw32" = yes && MINGW32=yes
1824 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1825 echo "configure:1826: checking for executable suffix" >&5
1826 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1833 echo 'int main () { return 0; }' > conftest.$ac_ext
1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1836 for file in conftest.*; do
1838 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1839 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1843 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1846 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1851 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1852 echo "$ac_t""${ac_cv_exeext}" 1>&6
1856 # host-specific stuff:
1858 # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_word" >&5
1862 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 if test -n "$CC"; then
1866 ac_cv_prog_CC="$CC" # Let the user override the test.
1868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1870 for ac_dir in $ac_dummy; do
1871 test -z "$ac_dir" && ac_dir=.
1872 if test -f $ac_dir/$ac_word; then
1881 if test -n "$CC"; then
1882 echo "$ac_t""$CC" 1>&6
1884 echo "$ac_t""no" 1>&6
1887 if test -z "$CC"; then
1888 # Extract the first word of "cc", so it can be a program name with args.
1889 set dummy cc; ac_word=$2
1890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1891 echo "configure:1892: checking for $ac_word" >&5
1892 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test.
1898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1901 for ac_dir in $ac_dummy; do
1902 test -z "$ac_dir" && ac_dir=.
1903 if test -f $ac_dir/$ac_word; then
1904 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1905 ac_prog_rejected=yes
1913 if test $ac_prog_rejected = yes; then
1914 # We found a bogon in the path, so make sure we never use it.
1915 set dummy $ac_cv_prog_CC
1917 if test $# -gt 0; then
1918 # We chose a different compiler from the bogus one.
1919 # However, it has the same basename, so the bogon will be chosen
1920 # first if we set CC to just the basename; use the full file name.
1922 set dummy "$ac_dir/$ac_word" "$@"
1930 if test -n "$CC"; then
1931 echo "$ac_t""$CC" 1>&6
1933 echo "$ac_t""no" 1>&6
1936 if test -z "$CC"; then
1937 case "`uname -s`" in
1939 # Extract the first word of "cl", so it can be a program name with args.
1940 set dummy cl; ac_word=$2
1941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_word" >&5
1943 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1946 if test -n "$CC"; then
1947 ac_cv_prog_CC="$CC" # Let the user override the test.
1949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1951 for ac_dir in $ac_dummy; do
1952 test -z "$ac_dir" && ac_dir=.
1953 if test -f $ac_dir/$ac_word; then
1962 if test -n "$CC"; then
1963 echo "$ac_t""$CC" 1>&6
1965 echo "$ac_t""no" 1>&6
1970 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1978 ac_cpp='$CPP $CPPFLAGS'
1979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1981 cross_compiling=$ac_cv_prog_cc_cross
1983 cat > conftest.$ac_ext << EOF
1985 #line 1986 "configure"
1986 #include "confdefs.h"
1990 if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1991 ac_cv_prog_cc_works=yes
1992 # If we can't run a trivial program, we are probably using a cross compiler.
1993 if (./conftest; exit) 2>/dev/null; then
1994 ac_cv_prog_cc_cross=no
1996 ac_cv_prog_cc_cross=yes
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2001 ac_cv_prog_cc_works=no
2005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2009 cross_compiling=$ac_cv_prog_cc_cross
2011 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2012 if test $ac_cv_prog_cc_works = no; then
2013 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2015 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2016 echo "configure:2017: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2017 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2018 cross_compiling=$ac_cv_prog_cc_cross
2020 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2021 echo "configure:2022: checking whether we are using GNU C" >&5
2022 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 cat > conftest.c <<EOF
2030 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2037 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2039 if test $ac_cv_prog_gcc = yes; then
2045 ac_test_CFLAGS="${CFLAGS+set}"
2046 ac_save_CFLAGS="$CFLAGS"
2048 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2049 echo "configure:2050: checking whether ${CC-cc} accepts -g" >&5
2050 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 echo 'void f(){}' > conftest.c
2054 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2063 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2064 if test "$ac_test_CFLAGS" = set; then
2065 CFLAGS="$ac_save_CFLAGS"
2066 elif test $ac_cv_prog_cc_g = yes; then
2067 if test "$GCC" = yes; then
2073 if test "$GCC" = yes; then
2082 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2083 echo "configure:2084: checking how to run the C preprocessor" >&5
2084 # On Suns, sometimes $CPP names a directory.
2085 if test -n "$CPP" && test -d "$CPP"; then
2088 if test -z "$CPP"; then
2089 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 # This must be in double quotes, not single quotes, because CPP may get
2093 # substituted into the Makefile and "${CC-cc}" will confuse make.
2095 # On the NeXT, cc -E runs the code through the compiler's parser,
2096 # not just through cpp.
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2104 { (eval echo configure:2105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2106 if test -z "$ac_err"; then
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2113 CPP="${CC-cc} -E -traditional-cpp"
2114 cat > conftest.$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2121 { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2123 if test -z "$ac_err"; then
2127 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2130 CPP="${CC-cc} -nologo -E"
2131 cat > conftest.$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2138 { (eval echo configure:2139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2140 if test -z "$ac_err"; then
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2154 ac_cv_prog_CPP="$CPP"
2156 CPP="$ac_cv_prog_CPP"
2158 ac_cv_prog_CPP="$CPP"
2160 echo "$ac_t""$CPP" 1>&6
2162 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2163 echo "configure:2164: checking for ANSI C header files" >&5
2164 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2176 { (eval echo configure:2177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2178 if test -z "$ac_err"; then
2180 ac_cv_header_stdc=yes
2183 echo "configure: failed program was:" >&5
2184 cat conftest.$ac_ext >&5
2186 ac_cv_header_stdc=no
2190 if test $ac_cv_header_stdc = yes; then
2191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2198 egrep "memchr" >/dev/null 2>&1; then
2202 ac_cv_header_stdc=no
2208 if test $ac_cv_header_stdc = yes; then
2209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2216 egrep "free" >/dev/null 2>&1; then
2220 ac_cv_header_stdc=no
2226 if test $ac_cv_header_stdc = yes; then
2227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2228 if test "$cross_compiling" = yes; then
2231 cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2235 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2236 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2238 int main () { int i; for (i = 0; i < 256; i++)
2239 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2250 ac_cv_header_stdc=no
2258 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2259 if test $ac_cv_header_stdc = yes; then
2260 cat >> confdefs.h <<\EOF
2261 #define STDC_HEADERS 1
2266 echo $ac_n "checking for working const""... $ac_c" 1>&6
2267 echo "configure:2268: checking for working const" >&5
2268 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2277 /* Ultrix mips cc rejects this. */
2278 typedef int charset[2]; const charset x;
2279 /* SunOS 4.1.1 cc rejects this. */
2280 char const *const *ccp;
2282 /* NEC SVR4.0.2 mips cc rejects this. */
2283 struct point {int x, y;};
2284 static struct point const zero = {0,0};
2285 /* AIX XL C 1.02.0.0 rejects this.
2286 It does not let you subtract one const X* pointer from another in an arm
2287 of an if-expression whose if-part is not a constant expression */
2288 const char *g = "string";
2289 ccp = &g + (g ? g-g : 0);
2290 /* HPUX 7.0 cc rejects these. */
2293 ccp = (char const *const *) p;
2294 { /* SCO 3.2v4 cc rejects this. */
2296 char const *s = 0 ? (char *) 0 : (char const *) 0;
2300 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2302 const int *foo = &x[0];
2305 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2306 typedef const int *iptr;
2310 { /* AIX XL C 1.02.0.0 rejects this saying
2311 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2312 struct s { int j; const int *ap[3]; };
2313 struct s *b; b->j = 5;
2315 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2321 if { (eval echo configure:2322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2333 echo "$ac_t""$ac_cv_c_const" 1>&6
2334 if test $ac_cv_c_const = no; then
2335 cat >> confdefs.h <<\EOF
2341 echo $ac_n "checking for inline""... $ac_c" 1>&6
2342 echo "configure:2343: checking for inline" >&5
2343 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2347 for ac_kw in inline __inline__ __inline; do
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2356 if { (eval echo configure:2357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2358 ac_cv_c_inline=$ac_kw; break
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2368 echo "$ac_t""$ac_cv_c_inline" 1>&6
2369 case "$ac_cv_c_inline" in
2371 no) cat >> confdefs.h <<\EOF
2375 *) cat >> confdefs.h <<EOF
2376 #define inline $ac_cv_c_inline
2381 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2382 echo "configure:2383: checking for off_t" >&5
2383 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 #include <sys/types.h>
2395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2396 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2398 ac_cv_type_off_t=yes
2406 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2407 if test $ac_cv_type_off_t = no; then
2408 cat >> confdefs.h <<\EOF
2414 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2415 echo "configure:2416: checking for size_t" >&5
2416 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 cat > conftest.$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2422 #include <sys/types.h>
2428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2429 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2431 ac_cv_type_size_t=yes
2434 ac_cv_type_size_t=no
2439 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2440 if test $ac_cv_type_size_t = no; then
2441 cat >> confdefs.h <<\EOF
2442 #define size_t unsigned
2447 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2448 # for constant arguments. Useless!
2449 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2450 echo "configure:2451: checking for working alloca.h" >&5
2451 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2459 char *p = alloca(2 * sizeof(int));
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464 ac_cv_header_alloca_h=yes
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2469 ac_cv_header_alloca_h=no
2474 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2475 if test $ac_cv_header_alloca_h = yes; then
2476 cat >> confdefs.h <<\EOF
2477 #define HAVE_ALLOCA_H 1
2482 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2483 echo "configure:2484: checking for alloca" >&5
2484 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2492 # define alloca __builtin_alloca
2495 # include <malloc.h>
2496 # define alloca _alloca
2499 # include <alloca.h>
2504 # ifndef alloca /* predefined by HP cc +Olibcalls */
2513 char *p = (char *) alloca(1);
2516 if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2518 ac_cv_func_alloca_works=yes
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 ac_cv_func_alloca_works=no
2528 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2529 if test $ac_cv_func_alloca_works = yes; then
2530 cat >> confdefs.h <<\EOF
2531 #define HAVE_ALLOCA 1
2536 if test $ac_cv_func_alloca_works = no; then
2537 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2538 # that cause trouble. Some versions do not even contain alloca or
2539 # contain a buggy version. If you still want to use their alloca,
2540 # use ar to extract alloca.o from them instead of compiling alloca.c.
2541 ALLOCA=alloca.${ac_objext}
2542 cat >> confdefs.h <<\EOF
2547 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether alloca needs Cray hooks" >&5
2549 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #if defined(CRAY) && ! defined(CRAY2)
2562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2563 egrep "webecray" >/dev/null 2>&1; then
2574 echo "$ac_t""$ac_cv_os_cray" 1>&6
2575 if test $ac_cv_os_cray = yes; then
2576 for ac_func in _getb67 GETB67 getb67; do
2577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_func" >&5
2579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $ac_func(); below. */
2588 /* Override any gcc2 internal prototype to avoid an error. */
2589 /* We use char because int might match the return type of a gcc2
2590 builtin and then its argument prototype would still apply. */
2595 /* The GNU C library defines this for functions which it implements
2596 to always fail with ENOSYS. Some functions are actually named
2597 something starting with __ and the normal name is an alias. */
2598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2608 eval "ac_cv_func_$ac_func=yes"
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 eval "ac_cv_func_$ac_func=no"
2618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2619 echo "$ac_t""yes" 1>&6
2620 cat >> confdefs.h <<EOF
2621 #define CRAY_STACKSEG_END $ac_func
2626 echo "$ac_t""no" 1>&6
2632 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2633 echo "configure:2634: checking stack direction for C alloca" >&5
2634 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 if test "$cross_compiling" = yes; then
2638 ac_cv_c_stack_direction=0
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 find_stack_direction ()
2645 static char *addr = 0;
2650 return find_stack_direction ();
2653 return (&dummy > addr) ? 1 : -1;
2657 exit (find_stack_direction() < 0);
2660 if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2662 ac_cv_c_stack_direction=1
2664 echo "configure: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2667 ac_cv_c_stack_direction=-1
2674 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2675 cat >> confdefs.h <<EOF
2676 #define STACK_DIRECTION $ac_cv_c_stack_direction
2681 for ac_hdr in unistd.h
2683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2685 echo "configure:2686: checking for $ac_hdr" >&5
2686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2689 cat > conftest.$ac_ext <<EOF
2690 #line 2691 "configure"
2691 #include "confdefs.h"
2694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2695 { (eval echo configure:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2697 if test -z "$ac_err"; then
2699 eval "ac_cv_header_$ac_safe=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 eval "ac_cv_header_$ac_safe=no"
2709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2712 cat >> confdefs.h <<EOF
2713 #define $ac_tr_hdr 1
2717 echo "$ac_t""no" 1>&6
2721 for ac_func in getpagesize
2723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2724 echo "configure:2725: checking for $ac_func" >&5
2725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 /* System header to define __stub macros and hopefully few prototypes,
2732 which can conflict with char $ac_func(); below. */
2734 /* Override any gcc2 internal prototype to avoid an error. */
2735 /* We use char because int might match the return type of a gcc2
2736 builtin and then its argument prototype would still apply. */
2741 /* The GNU C library defines this for functions which it implements
2742 to always fail with ENOSYS. Some functions are actually named
2743 something starting with __ and the normal name is an alias. */
2744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2754 eval "ac_cv_func_$ac_func=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2759 eval "ac_cv_func_$ac_func=no"
2764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2765 echo "$ac_t""yes" 1>&6
2766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2767 cat >> confdefs.h <<EOF
2768 #define $ac_tr_func 1
2772 echo "$ac_t""no" 1>&6
2776 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2777 echo "configure:2778: checking for working mmap" >&5
2778 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 if test "$cross_compiling" = yes; then
2782 ac_cv_func_mmap_fixed_mapped=no
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2788 /* Thanks to Mike Haertel and Jim Avera for this test.
2789 Here is a matrix of mmap possibilities:
2790 mmap private not fixed
2791 mmap private fixed at somewhere currently unmapped
2792 mmap private fixed at somewhere already mapped
2793 mmap shared not fixed
2794 mmap shared fixed at somewhere currently unmapped
2795 mmap shared fixed at somewhere already mapped
2796 For private mappings, we should verify that changes cannot be read()
2797 back from the file, nor mmap's back from the file at a different
2798 address. (There have been systems where private was not correctly
2799 implemented like the infamous i386 svr4.0, and systems where the
2800 VM page cache was not coherent with the filesystem buffer cache
2801 like early versions of FreeBSD and possibly contemporary NetBSD.)
2802 For shared mappings, we should conversely verify that changes get
2803 propogated back to all the places they're supposed to be.
2805 Grep wants private fixed already mapped.
2806 The main things grep needs to know about mmap are:
2807 * does it exist and is it safe to write into the mmap'd area
2808 * how to use it (BSD variants) */
2809 #include <sys/types.h>
2811 #include <sys/mman.h>
2813 /* This mess was copied from the GNU getpagesize.h. */
2814 #ifndef HAVE_GETPAGESIZE
2815 # ifdef HAVE_UNISTD_H
2816 # include <unistd.h>
2819 /* Assume that all systems that can run configure have sys/param.h. */
2820 # ifndef HAVE_SYS_PARAM_H
2821 # define HAVE_SYS_PARAM_H 1
2824 # ifdef _SC_PAGESIZE
2825 # define getpagesize() sysconf(_SC_PAGESIZE)
2826 # else /* no _SC_PAGESIZE */
2827 # ifdef HAVE_SYS_PARAM_H
2828 # include <sys/param.h>
2829 # ifdef EXEC_PAGESIZE
2830 # define getpagesize() EXEC_PAGESIZE
2831 # else /* no EXEC_PAGESIZE */
2833 # define getpagesize() NBPG * CLSIZE
2836 # endif /* no CLSIZE */
2837 # else /* no NBPG */
2839 # define getpagesize() NBPC
2840 # else /* no NBPC */
2842 # define getpagesize() PAGESIZE
2843 # endif /* PAGESIZE */
2844 # endif /* no NBPC */
2845 # endif /* no NBPG */
2846 # endif /* no EXEC_PAGESIZE */
2847 # else /* no HAVE_SYS_PARAM_H */
2848 # define getpagesize() 8192 /* punt totally */
2849 # endif /* no HAVE_SYS_PARAM_H */
2850 # endif /* no _SC_PAGESIZE */
2852 #endif /* no HAVE_GETPAGESIZE */
2855 extern "C" { void *malloc(unsigned); }
2863 char *data, *data2, *data3;
2867 pagesize = getpagesize();
2870 * First, make a file with some known garbage in it.
2872 data = malloc(pagesize);
2875 for (i = 0; i < pagesize; ++i)
2876 *(data + i) = rand();
2878 fd = creat("conftestmmap", 0600);
2881 if (write(fd, data, pagesize) != pagesize)
2886 * Next, try to mmap the file at a fixed address which
2887 * already has something else allocated at it. If we can,
2888 * also make sure that we see the same garbage.
2890 fd = open("conftestmmap", O_RDWR);
2893 data2 = malloc(2 * pagesize);
2896 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2897 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2898 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2900 for (i = 0; i < pagesize; ++i)
2901 if (*(data + i) != *(data2 + i))
2905 * Finally, make sure that changes to the mapped area
2906 * do not percolate back to the file as seen by read().
2907 * (This is a bug on some variants of i386 svr4.0.)
2909 for (i = 0; i < pagesize; ++i)
2910 *(data2 + i) = *(data2 + i) + 1;
2911 data3 = malloc(pagesize);
2914 if (read(fd, data3, pagesize) != pagesize)
2916 for (i = 0; i < pagesize; ++i)
2917 if (*(data + i) != *(data3 + i))
2920 unlink("conftestmmap");
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2927 ac_cv_func_mmap_fixed_mapped=yes
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 ac_cv_func_mmap_fixed_mapped=no
2939 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2940 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2941 cat >> confdefs.h <<\EOF
2948 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2949 unistd.h values.h sys/param.h
2951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2953 echo "configure:2954: checking for $ac_hdr" >&5
2954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2955 echo $ac_n "(cached) $ac_c" 1>&6
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2963 { (eval echo configure:2964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2965 if test -z "$ac_err"; then
2967 eval "ac_cv_header_$ac_safe=yes"
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2973 eval "ac_cv_header_$ac_safe=no"
2977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2980 cat >> confdefs.h <<EOF
2981 #define $ac_tr_hdr 1
2985 echo "$ac_t""no" 1>&6
2989 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2990 __argz_count __argz_stringify __argz_next
2992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_func" >&5
2994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 /* System header to define __stub macros and hopefully few prototypes,
3001 which can conflict with char $ac_func(); below. */
3003 /* Override any gcc2 internal prototype to avoid an error. */
3004 /* We use char because int might match the return type of a gcc2
3005 builtin and then its argument prototype would still apply. */
3010 /* The GNU C library defines this for functions which it implements
3011 to always fail with ENOSYS. Some functions are actually named
3012 something starting with __ and the normal name is an alias. */
3013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3021 if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3023 eval "ac_cv_func_$ac_func=yes"
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3028 eval "ac_cv_func_$ac_func=no"
3033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3036 cat >> confdefs.h <<EOF
3037 #define $ac_tr_func 1
3041 echo "$ac_t""no" 1>&6
3046 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3047 for ac_func in stpcpy
3049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_func" >&5
3051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 /* System header to define __stub macros and hopefully few prototypes,
3058 which can conflict with char $ac_func(); below. */
3060 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3067 /* The GNU C library defines this for functions which it implements
3068 to always fail with ENOSYS. Some functions are actually named
3069 something starting with __ and the normal name is an alias. */
3070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3078 if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3080 eval "ac_cv_func_$ac_func=yes"
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3085 eval "ac_cv_func_$ac_func=no"
3090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3093 cat >> confdefs.h <<EOF
3094 #define $ac_tr_func 1
3098 echo "$ac_t""no" 1>&6
3103 if test "${ac_cv_func_stpcpy}" = "yes"; then
3104 cat >> confdefs.h <<\EOF
3105 #define HAVE_STPCPY 1
3110 if test $ac_cv_header_locale_h = yes; then
3111 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3112 echo "configure:3113: checking for LC_MESSAGES" >&5
3113 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3124 if { (eval echo configure:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3126 am_cv_val_LC_MESSAGES=yes
3128 echo "configure: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3131 am_cv_val_LC_MESSAGES=no
3136 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3137 if test $am_cv_val_LC_MESSAGES = yes; then
3138 cat >> confdefs.h <<\EOF
3139 #define HAVE_LC_MESSAGES 1
3144 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3145 echo "configure:3146: checking whether NLS is requested" >&5
3146 # Check whether --enable-nls or --disable-nls was given.
3147 if test "${enable_nls+set}" = set; then
3148 enableval="$enable_nls"
3154 echo "$ac_t""$USE_NLS" 1>&6
3157 USE_INCLUDED_LIBINTL=no
3159 if test "$USE_NLS" = "yes"; then
3160 cat >> confdefs.h <<\EOF
3161 #define ENABLE_NLS 1
3164 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3165 echo "configure:3166: checking whether included gettext is requested" >&5
3166 # Check whether --with-included-gettext or --without-included-gettext was given.
3167 if test "${with_included_gettext+set}" = set; then
3168 withval="$with_included_gettext"
3169 nls_cv_force_use_gnu_gettext=$withval
3171 nls_cv_force_use_gnu_gettext=no
3174 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3176 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3177 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3179 nls_cv_header_libgt=
3182 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3183 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3184 echo "configure:3185: checking for libintl.h" >&5
3185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 #include <libintl.h>
3193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3194 { (eval echo configure:3195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3196 if test -z "$ac_err"; then
3198 eval "ac_cv_header_$ac_safe=yes"
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3204 eval "ac_cv_header_$ac_safe=no"
3208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3209 echo "$ac_t""yes" 1>&6
3210 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3211 echo "configure:3212: checking for gettext in libc" >&5
3212 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218 #include <libintl.h>
3220 return (int) gettext ("")
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3225 gt_cv_func_gettext_libc=yes
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3230 gt_cv_func_gettext_libc=no
3235 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3237 if test "$gt_cv_func_gettext_libc" != "yes"; then
3238 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3239 echo "configure:3240: checking for bindtextdomain in -lintl" >&5
3240 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 ac_save_LIBS="$LIBS"
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 /* Override any gcc2 internal prototype to avoid an error. */
3250 /* We use char because int might match the return type of a gcc2
3251 builtin and then its argument prototype would still apply. */
3252 char bindtextdomain();
3258 if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3260 eval "ac_cv_lib_$ac_lib_var=yes"
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3265 eval "ac_cv_lib_$ac_lib_var=no"
3268 LIBS="$ac_save_LIBS"
3271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3272 echo "$ac_t""yes" 1>&6
3273 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3274 echo "configure:3275: checking for gettext in libintl" >&5
3275 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3283 return (int) gettext ("")
3286 if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3288 gt_cv_func_gettext_libintl=yes
3290 echo "configure: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3293 gt_cv_func_gettext_libintl=no
3298 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3300 echo "$ac_t""no" 1>&6
3305 if test "$gt_cv_func_gettext_libc" = "yes" \
3306 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3307 cat >> confdefs.h <<\EOF
3308 #define HAVE_GETTEXT 1
3311 # Extract the first word of "msgfmt", so it can be a program name with args.
3312 set dummy msgfmt; ac_word=$2
3313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3314 echo "configure:3315: checking for $ac_word" >&5
3315 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3320 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3324 for ac_dir in $PATH; do
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f $ac_dir/$ac_word; then
3327 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3328 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3334 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3338 MSGFMT="$ac_cv_path_MSGFMT"
3339 if test -n "$MSGFMT"; then
3340 echo "$ac_t""$MSGFMT" 1>&6
3342 echo "$ac_t""no" 1>&6
3344 if test "$MSGFMT" != "no"; then
3345 for ac_func in dcgettext
3347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3348 echo "configure:3349: checking for $ac_func" >&5
3349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 /* System header to define __stub macros and hopefully few prototypes,
3356 which can conflict with char $ac_func(); below. */
3358 /* Override any gcc2 internal prototype to avoid an error. */
3359 /* We use char because int might match the return type of a gcc2
3360 builtin and then its argument prototype would still apply. */
3365 /* The GNU C library defines this for functions which it implements
3366 to always fail with ENOSYS. Some functions are actually named
3367 something starting with __ and the normal name is an alias. */
3368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3376 if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3378 eval "ac_cv_func_$ac_func=yes"
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3383 eval "ac_cv_func_$ac_func=no"
3388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3389 echo "$ac_t""yes" 1>&6
3390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3391 cat >> confdefs.h <<EOF
3392 #define $ac_tr_func 1
3396 echo "$ac_t""no" 1>&6
3400 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3401 set dummy gmsgfmt; ac_word=$2
3402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3403 echo "configure:3404: checking for $ac_word" >&5
3404 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3409 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3412 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3417 for ac_dir in $ac_dummy; do
3418 test -z "$ac_dir" && ac_dir=.
3419 if test -f $ac_dir/$ac_word; then
3420 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3425 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3429 GMSGFMT="$ac_cv_path_GMSGFMT"
3430 if test -n "$GMSGFMT"; then
3431 echo "$ac_t""$GMSGFMT" 1>&6
3433 echo "$ac_t""no" 1>&6
3436 # Extract the first word of "xgettext", so it can be a program name with args.
3437 set dummy xgettext; ac_word=$2
3438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3439 echo "configure:3440: checking for $ac_word" >&5
3440 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3445 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3449 for ac_dir in $PATH; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if test -f $ac_dir/$ac_word; then
3452 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3453 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3459 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3463 XGETTEXT="$ac_cv_path_XGETTEXT"
3464 if test -n "$XGETTEXT"; then
3465 echo "$ac_t""$XGETTEXT" 1>&6
3467 echo "$ac_t""no" 1>&6
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3475 extern int _nl_msg_cat_cntr;
3476 return _nl_msg_cat_cntr
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3496 echo "$ac_t""no" 1>&6
3501 if test "$CATOBJEXT" = "NONE"; then
3502 nls_cv_use_gnu_gettext=yes
3506 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3507 INTLOBJS="\$(GETTOBJS)"
3508 # Extract the first word of "msgfmt", so it can be a program name with args.
3509 set dummy msgfmt; ac_word=$2
3510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3511 echo "configure:3512: checking for $ac_word" >&5
3512 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3517 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3521 for ac_dir in $PATH; do
3522 test -z "$ac_dir" && ac_dir=.
3523 if test -f $ac_dir/$ac_word; then
3524 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3525 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3531 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3535 MSGFMT="$ac_cv_path_MSGFMT"
3536 if test -n "$MSGFMT"; then
3537 echo "$ac_t""$MSGFMT" 1>&6
3539 echo "$ac_t""no" 1>&6
3542 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3543 set dummy gmsgfmt; ac_word=$2
3544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3545 echo "configure:3546: checking for $ac_word" >&5
3546 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3551 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3554 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3559 for ac_dir in $ac_dummy; do
3560 test -z "$ac_dir" && ac_dir=.
3561 if test -f $ac_dir/$ac_word; then
3562 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3567 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3571 GMSGFMT="$ac_cv_path_GMSGFMT"
3572 if test -n "$GMSGFMT"; then
3573 echo "$ac_t""$GMSGFMT" 1>&6
3575 echo "$ac_t""no" 1>&6
3578 # Extract the first word of "xgettext", so it can be a program name with args.
3579 set dummy xgettext; ac_word=$2
3580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3581 echo "configure:3582: checking for $ac_word" >&5
3582 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3587 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3591 for ac_dir in $PATH; do
3592 test -z "$ac_dir" && ac_dir=.
3593 if test -f $ac_dir/$ac_word; then
3594 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3595 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3601 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3605 XGETTEXT="$ac_cv_path_XGETTEXT"
3606 if test -n "$XGETTEXT"; then
3607 echo "$ac_t""$XGETTEXT" 1>&6
3609 echo "$ac_t""no" 1>&6
3613 USE_INCLUDED_LIBINTL=yes
3617 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3619 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3620 nls_cv_header_intl=libintl.h
3621 nls_cv_header_libgt=libgettext.h
3624 if test "$XGETTEXT" != ":"; then
3625 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3628 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3633 # We need to process the po/ directory.
3637 nls_cv_header_intl=libintl.h
3638 nls_cv_header_libgt=libgettext.h
3641 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3642 # because some of the sources are only built for this goal.
3643 if test "$PACKAGE" = gettext; then
3645 USE_INCLUDED_LIBINTL=yes
3648 for lang in $ALL_LINGUAS; do
3649 GMOFILES="$GMOFILES $lang.gmo"
3650 POFILES="$POFILES $lang.po"
3666 if test "x$CATOBJEXT" != "x"; then
3667 if test "x$ALL_LINGUAS" = "x"; then
3670 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3671 echo "configure:3672: checking for catalogs to be installed" >&5
3673 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3674 case "$ALL_LINGUAS" in
3675 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3678 LINGUAS=$NEW_LINGUAS
3679 echo "$ac_t""$LINGUAS" 1>&6
3682 if test -n "$LINGUAS"; then
3683 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3687 if test $ac_cv_header_locale_h = yes; then
3688 INCLUDE_LOCALE_H="#include <locale.h>"
3691 /* The system does not provide the header <locale.h>. Take care yourself. */"
3695 if test -f $srcdir/po2tbl.sed.in; then
3696 if test "$CATOBJEXT" = ".cat"; then
3697 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3698 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3699 echo "configure:3700: checking for linux/version.h" >&5
3700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 #include <linux/version.h>
3708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3709 { (eval echo configure:3710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3711 if test -z "$ac_err"; then
3713 eval "ac_cv_header_$ac_safe=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_header_$ac_safe=no"
3723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3727 echo "$ac_t""no" 1>&6
3732 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3734 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3735 $srcdir/po2tbl.sed.in > po2tbl.sed
3738 if test "$PACKAGE" = "gettext"; then
3748 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3754 if test -d $srcdir/po; then
3755 test -d po || mkdir po
3756 if test "x$srcdir" != "x."; then
3757 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3758 posrcprefix="$srcdir/"
3760 posrcprefix="../$srcdir/"
3766 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3767 < $srcdir/po/POTFILES.in > po/POTFILES
3771 . ${srcdir}/../bfd/configure.host
3774 # Find a good install program. We prefer a C program (faster),
3775 # so one script is as good as another. But avoid the broken or
3776 # incompatible versions:
3777 # SysV /etc/install, /usr/sbin/install
3778 # SunOS /usr/etc/install
3779 # IRIX /sbin/install
3781 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3782 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3783 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3784 # ./install, which can be erroneously created by make from ./install.sh.
3785 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3786 echo "configure:3787: checking for a BSD compatible install" >&5
3787 if test -z "$INSTALL"; then
3788 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3792 for ac_dir in $PATH; do
3793 # Account for people who put trailing slashes in PATH elements.
3795 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3797 # OSF1 and SCO ODT 3.0 have their own names for install.
3798 # Don't use installbsd from OSF since it installs stuff as root
3800 for ac_prog in ginstall scoinst install; do
3801 if test -f $ac_dir/$ac_prog; then
3802 if test $ac_prog = install &&
3803 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3804 # AIX install. It has an incompatible calling convention.
3807 ac_cv_path_install="$ac_dir/$ac_prog -c"
3818 if test "${ac_cv_path_install+set}" = set; then
3819 INSTALL="$ac_cv_path_install"
3821 # As a last resort, use the slow shell script. We don't cache a
3822 # path for INSTALL within a source directory, because that will
3823 # break other packages using the cache if that directory is
3824 # removed, or if the path is relative.
3825 INSTALL="$ac_install_sh"
3828 echo "$ac_t""$INSTALL" 1>&6
3830 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3831 # It thinks the first close brace ends the variable substitution.
3832 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3834 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3836 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3839 for ac_hdr in string.h strings.h stdlib.h
3841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3843 echo "configure:3844: checking for $ac_hdr" >&5
3844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3853 { (eval echo configure:3854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3855 if test -z "$ac_err"; then
3857 eval "ac_cv_header_$ac_safe=yes"
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3863 eval "ac_cv_header_$ac_safe=no"
3867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3870 cat >> confdefs.h <<EOF
3871 #define $ac_tr_hdr 1
3875 echo "$ac_t""no" 1>&6
3883 # Horrible hacks to build DLLs on Windows.
3888 if test "$enable_shared" = "yes"; then
3889 WIN32LDFLAGS="-no-undefined"
3890 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
3897 # target-specific stuff:
3899 # Canonicalize the secondary target names.
3900 if test -n "$enable_targets" ; then
3901 for targ in `echo $enable_targets | sed 's/,/ /g'`
3903 result=`$ac_config_sub $targ 2>/dev/null`
3904 if test -n "$result" ; then
3905 canon_targets="$canon_targets $result"
3907 # Allow targets that config.sub doesn't recognize, like "all".
3908 canon_targets="$canon_targets $targ"
3915 for targ in $target $canon_targets
3917 if test "x$targ" = "xall" ; then
3920 . $srcdir/../bfd/config.bfd
3921 selarchs="$selarchs $targ_archs"
3925 # Utility var, documents generic cgen support files.
3927 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
3929 # We don't do any links based on the target system, just makefile config.
3931 if test x${all_targets} = xfalse ; then
3933 # Target architecture .o files.
3936 for arch in $selarchs
3938 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
3939 archdefs="$archdefs -DARCH_$ad"
3941 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
3942 bfd_alliant_arch) ;;
3943 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
3944 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
3945 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
3946 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
3948 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
3949 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
3950 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
3951 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
3952 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
3953 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
3954 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
3955 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
3957 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
3958 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
3959 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 ;;
3960 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
3961 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
3962 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
3963 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3964 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
3965 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
3966 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
3967 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
3968 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3969 bfd_pyramid_arch) ;;
3971 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3972 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3973 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
3974 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
3976 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
3977 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
3978 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
3979 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3980 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3981 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3982 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
3983 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
3985 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
3988 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
3992 if test $using_cgen = yes ; then
3993 ta="$ta $cgen_files"
3996 # Weed out duplicate .o files.
4006 # And duplicate -D flags.
4008 for i in $archdefs ; do
4018 else # all_targets is true
4020 BFD_MACHINES='$(ALL_MACHINES)'
4027 cat > confcache <<\EOF
4028 # This file is a shell script that caches the results of configure
4029 # tests run on this system so they can be shared between configure
4030 # scripts and configure runs. It is not useful on other systems.
4031 # If it contains results you don't want to keep, you may remove or edit it.
4033 # By default, configure uses ./config.cache as the cache file,
4034 # creating it if it does not exist already. You can give configure
4035 # the --cache-file=FILE option to use a different cache file; that is
4036 # what configure does when it calls configure scripts in
4037 # subdirectories, so they share the cache.
4038 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4039 # config.status only pays attention to the cache file if you give it the
4040 # --recheck option to rerun configure.
4043 # The following way of writing the cache mishandles newlines in values,
4044 # but we know of no workaround that is simple, portable, and efficient.
4045 # So, don't put newlines in cache variables' values.
4046 # Ultrix sh set writes to stderr and can't be redirected directly,
4047 # and sets the high bit in the cache file unless we assign to the vars.
4049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4051 # `set' does not quote correctly, so add quotes (double-quote substitution
4052 # turns \\\\ into \\, and sed turns \\ into \).
4054 -e "s/'/'\\\\''/g" \
4055 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4058 # `set' quotes correctly as required by POSIX, so do not add quotes.
4059 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4062 if cmp -s $cache_file confcache; then
4065 if test -w $cache_file; then
4066 echo "updating cache $cache_file"
4067 cat confcache > $cache_file
4069 echo "not updating unwritable cache $cache_file"
4074 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4076 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4077 # Let make expand exec_prefix.
4078 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4080 # Any assignment to VPATH causes Sun make to only execute
4081 # the first set of double-colon rules, so remove it if not needed.
4082 # If there is a colon in the path, we need to keep it.
4083 if test "x$srcdir" = x.; then
4084 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4087 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4089 DEFS=-DHAVE_CONFIG_H
4091 # Without the "./", some shells look in PATH for config.status.
4092 : ${CONFIG_STATUS=./config.status}
4094 echo creating $CONFIG_STATUS
4095 rm -f $CONFIG_STATUS
4096 cat > $CONFIG_STATUS <<EOF
4098 # Generated automatically by configure.
4099 # Run this file to recreate the current configuration.
4100 # This directory was configured as follows,
4101 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4103 # $0 $ac_configure_args
4105 # Compiler output produced by configure, useful for debugging
4106 # configure, is in ./config.log if it exists.
4108 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4111 case "\$ac_option" in
4112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4113 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4114 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4115 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4116 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4118 -help | --help | --hel | --he | --h)
4119 echo "\$ac_cs_usage"; exit 0 ;;
4120 *) echo "\$ac_cs_usage"; exit 1 ;;
4124 ac_given_srcdir=$srcdir
4125 ac_given_INSTALL="$INSTALL"
4127 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4129 cat >> $CONFIG_STATUS <<EOF
4131 # Protect against being on the right side of a sed subst in config.status.
4132 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4133 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4137 s%@CFLAGS@%$CFLAGS%g
4138 s%@CPPFLAGS@%$CPPFLAGS%g
4139 s%@CXXFLAGS@%$CXXFLAGS%g
4140 s%@FFLAGS@%$FFLAGS%g
4142 s%@LDFLAGS@%$LDFLAGS%g
4144 s%@exec_prefix@%$exec_prefix%g
4145 s%@prefix@%$prefix%g
4146 s%@program_transform_name@%$program_transform_name%g
4147 s%@bindir@%$bindir%g
4148 s%@sbindir@%$sbindir%g
4149 s%@libexecdir@%$libexecdir%g
4150 s%@datadir@%$datadir%g
4151 s%@sysconfdir@%$sysconfdir%g
4152 s%@sharedstatedir@%$sharedstatedir%g
4153 s%@localstatedir@%$localstatedir%g
4154 s%@libdir@%$libdir%g
4155 s%@includedir@%$includedir%g
4156 s%@oldincludedir@%$oldincludedir%g
4157 s%@infodir@%$infodir%g
4158 s%@mandir@%$mandir%g
4160 s%@host_alias@%$host_alias%g
4161 s%@host_cpu@%$host_cpu%g
4162 s%@host_vendor@%$host_vendor%g
4163 s%@host_os@%$host_os%g
4164 s%@target@%$target%g
4165 s%@target_alias@%$target_alias%g
4166 s%@target_cpu@%$target_cpu%g
4167 s%@target_vendor@%$target_vendor%g
4168 s%@target_os@%$target_os%g
4170 s%@build_alias@%$build_alias%g
4171 s%@build_cpu@%$build_cpu%g
4172 s%@build_vendor@%$build_vendor%g
4173 s%@build_os@%$build_os%g
4175 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4176 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4177 s%@INSTALL_DATA@%$INSTALL_DATA%g
4178 s%@PACKAGE@%$PACKAGE%g
4179 s%@VERSION@%$VERSION%g
4180 s%@ACLOCAL@%$ACLOCAL%g
4181 s%@AUTOCONF@%$AUTOCONF%g
4182 s%@AUTOMAKE@%$AUTOMAKE%g
4183 s%@AUTOHEADER@%$AUTOHEADER%g
4184 s%@MAKEINFO@%$MAKEINFO%g
4185 s%@SET_MAKE@%$SET_MAKE%g
4187 s%@RANLIB@%$RANLIB%g
4189 s%@LIBTOOL@%$LIBTOOL%g
4190 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4191 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4192 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4194 s%@EXEEXT@%$EXEEXT%g
4196 s%@ALLOCA@%$ALLOCA%g
4197 s%@USE_NLS@%$USE_NLS%g
4198 s%@MSGFMT@%$MSGFMT%g
4199 s%@GMSGFMT@%$GMSGFMT%g
4200 s%@XGETTEXT@%$XGETTEXT%g
4201 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4202 s%@CATALOGS@%$CATALOGS%g
4203 s%@CATOBJEXT@%$CATOBJEXT%g
4204 s%@DATADIRNAME@%$DATADIRNAME%g
4205 s%@GMOFILES@%$GMOFILES%g
4206 s%@INSTOBJEXT@%$INSTOBJEXT%g
4207 s%@INTLDEPS@%$INTLDEPS%g
4208 s%@INTLLIBS@%$INTLLIBS%g
4209 s%@INTLOBJS@%$INTLOBJS%g
4210 s%@POFILES@%$POFILES%g
4212 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4214 s%@GT_YES@%$GT_YES%g
4215 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4217 s%@HDEFINES@%$HDEFINES%g
4218 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4219 s%@WIN32LIBADD@%$WIN32LIBADD%g
4220 s%@archdefs@%$archdefs%g
4221 s%@BFD_MACHINES@%$BFD_MACHINES%g
4226 cat >> $CONFIG_STATUS <<\EOF
4228 # Split the substitutions into bite-sized pieces for seds with
4229 # small command number limits, like on Digital OSF/1 and HP-UX.
4230 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4231 ac_file=1 # Number of current file.
4232 ac_beg=1 # First line for current file.
4233 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4236 while $ac_more_lines; do
4237 if test $ac_beg -gt 1; then
4238 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4240 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4242 if test ! -s conftest.s$ac_file; then
4244 rm -f conftest.s$ac_file
4246 if test -z "$ac_sed_cmds"; then
4247 ac_sed_cmds="sed -f conftest.s$ac_file"
4249 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4251 ac_file=`expr $ac_file + 1`
4253 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4256 if test -z "$ac_sed_cmds"; then
4261 cat >> $CONFIG_STATUS <<EOF
4263 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4265 cat >> $CONFIG_STATUS <<\EOF
4266 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4267 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4269 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4270 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4271 *) ac_file_in="${ac_file}.in" ;;
4274 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4276 # Remove last slash and all that follows it. Not all systems have dirname.
4277 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4278 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4279 # The file is in a subdirectory.
4280 test ! -d "$ac_dir" && mkdir "$ac_dir"
4281 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4282 # A "../" for each directory in $ac_dir_suffix.
4283 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4285 ac_dir_suffix= ac_dots=
4288 case "$ac_given_srcdir" in
4290 if test -z "$ac_dots"; then top_srcdir=.
4291 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4292 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4294 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4295 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4298 case "$ac_given_INSTALL" in
4299 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4300 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4303 echo creating "$ac_file"
4305 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4307 *Makefile*) ac_comsub="1i\\
4308 # $configure_input" ;;
4312 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4314 s%@configure_input@%$configure_input%g
4315 s%@srcdir@%$srcdir%g
4316 s%@top_srcdir@%$top_srcdir%g
4317 s%@INSTALL@%$INSTALL%g
4318 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4322 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4323 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4325 # ac_d sets the value in "#define NAME VALUE" lines.
4326 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4327 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4330 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4331 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4332 ac_uB='\([ ]\)%\1#\2define\3'
4335 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4336 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4337 ac_eB='$%\1#\2define\3'
4341 if test "${CONFIG_HEADERS+set}" != set; then
4343 cat >> $CONFIG_STATUS <<EOF
4344 CONFIG_HEADERS="config.h:config.in"
4346 cat >> $CONFIG_STATUS <<\EOF
4348 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4349 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4351 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4352 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4353 *) ac_file_in="${ac_file}.in" ;;
4356 echo creating $ac_file
4358 rm -f conftest.frag conftest.in conftest.out
4359 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4360 cat $ac_file_inputs > conftest.in
4364 # Transform confdefs.h into a sed script conftest.vals that substitutes
4365 # the proper values into config.h.in to produce config.h. And first:
4366 # Protect against being on the right side of a sed subst in config.status.
4367 # Protect against being in an unquoted here document in config.status.
4369 cat > conftest.hdr <<\EOF
4372 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4376 sed -n -f conftest.hdr confdefs.h > conftest.vals
4379 # This sed command replaces #undef with comments. This is necessary, for
4380 # example, in the case of _POSIX_SOURCE, which is predefined and required
4381 # on some systems where configure will not decide to define it.
4382 cat >> conftest.vals <<\EOF
4383 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4386 # Break up conftest.vals because some shells have a limit on
4387 # the size of here documents, and old seds have small limits too.
4392 ac_lines=`grep -c . conftest.vals`
4393 # grep -c gives empty output for an empty file on some AIX systems.
4394 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4395 # Write a limited-size here document to conftest.frag.
4396 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4397 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4399 sed -f conftest.frag conftest.in > conftest.out
4401 mv conftest.out conftest.in
4403 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4405 mv conftest.tail conftest.vals
4409 cat >> $CONFIG_STATUS <<\EOF
4410 rm -f conftest.frag conftest.h
4411 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4412 cat conftest.in >> conftest.h
4414 if cmp -s $ac_file conftest.h 2>/dev/null; then
4415 echo "$ac_file is unchanged"
4418 # Remove last slash and all that follows it. Not all systems have dirname.
4419 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4420 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4421 # The file is in a subdirectory.
4422 test ! -d "$ac_dir" && mkdir "$ac_dir"
4425 mv conftest.h $ac_file
4430 cat >> $CONFIG_STATUS <<EOF
4434 cat >> $CONFIG_STATUS <<\EOF
4435 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4436 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4439 chmod +x $CONFIG_STATUS
4440 rm -fr confdefs* $ac_clean_files
4441 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1