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=yes]"
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 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-targets alternative target configurations"
29 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
33 --disable-nls do not use Native Language Support"
35 --with-included-gettext use the GNU gettext library included here"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file=./config.cache
53 program_transform_name=s,x,x,
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
77 SHELL=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 datadir="$ac_optarg" ;;
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
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 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=ldmain.c
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CPP $CPPFLAGS'
530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='\c' ac_t=
548 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
549 echo "configure:550: checking for Cygwin environment" >&5
550 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
553 cat > conftest.$ac_ext <<EOF
554 #line 555 "configure"
555 #include "confdefs.h"
560 #define __CYGWIN__ __CYGWIN32__
565 if { (eval echo configure:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
569 echo "configure: failed program was:" >&5
570 cat conftest.$ac_ext >&5
578 echo "$ac_t""$ac_cv_cygwin" 1>&6
580 test "$ac_cv_cygwin" = yes && CYGWIN=yes
581 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
582 echo "configure:583: checking for mingw32 environment" >&5
583 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 cat > conftest.$ac_ext <<EOF
587 #line 588 "configure"
588 #include "confdefs.h"
594 if { (eval echo configure:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
598 echo "configure: failed program was:" >&5
599 cat conftest.$ac_ext >&5
607 echo "$ac_t""$ac_cv_mingw32" 1>&6
609 test "$ac_cv_mingw32" = yes && MINGW32=yes
613 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
614 if test -f $ac_dir/install-sh; then
616 ac_install_sh="$ac_aux_dir/install-sh -c"
618 elif test -f $ac_dir/install.sh; then
620 ac_install_sh="$ac_aux_dir/install.sh -c"
624 if test -z "$ac_aux_dir"; then
625 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
632 # Do some error checking and defaulting for the host and target type.
634 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
637 # 1. You are not allowed to specify --host, --target, and nonopt at the
639 # 2. Host defaults to nonopt.
640 # 3. If nonopt is not specified, then host defaults to the current host,
641 # as determined by config.guess.
642 # 4. Target and build default to nonopt.
643 # 5. If nonopt is not specified, then target and build default to host.
645 # The aliases save the names the user supplied, while $host etc.
646 # will get canonicalized.
647 case $host---$target---$nonopt in
648 NONE---*---* | *---NONE---* | *---*---NONE) ;;
649 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
662 case "$host_alias" in
666 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
669 *) host_alias=$nonopt ;;
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
679 echo $ac_n "checking target system type""... $ac_c" 1>&6
680 echo "configure:681: checking target system type" >&5
683 case "$target_alias" in
686 NONE) target_alias=$host_alias ;;
687 *) target_alias=$nonopt ;;
691 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$target" 1>&6
697 echo $ac_n "checking build system type""... $ac_c" 1>&6
698 echo "configure:699: checking build system type" >&5
701 case "$build_alias" in
704 NONE) build_alias=$host_alias ;;
705 *) build_alias=$nonopt ;;
709 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$build" 1>&6
715 test "$host_alias" != "$target_alias" &&
716 test "$program_prefix$program_suffix$program_transform_name" = \
718 program_prefix=${target_alias}-
721 # Find a good install program. We prefer a C program (faster),
722 # so one script is as good as another. But avoid the broken or
723 # incompatible versions:
724 # SysV /etc/install, /usr/sbin/install
725 # SunOS /usr/etc/install
728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
731 # ./install, which can be erroneously created by make from ./install.sh.
732 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
733 echo "configure:734: checking for a BSD compatible install" >&5
734 if test -z "$INSTALL"; then
735 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
739 for ac_dir in $PATH; do
740 # Account for people who put trailing slashes in PATH elements.
742 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
744 # OSF1 and SCO ODT 3.0 have their own names for install.
745 # Don't use installbsd from OSF since it installs stuff as root
747 for ac_prog in ginstall scoinst install; do
748 if test -f $ac_dir/$ac_prog; then
749 if test $ac_prog = install &&
750 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
751 # AIX install. It has an incompatible calling convention.
754 ac_cv_path_install="$ac_dir/$ac_prog -c"
765 if test "${ac_cv_path_install+set}" = set; then
766 INSTALL="$ac_cv_path_install"
768 # As a last resort, use the slow shell script. We don't cache a
769 # path for INSTALL within a source directory, because that will
770 # break other packages using the cache if that directory is
771 # removed, or if the path is relative.
772 INSTALL="$ac_install_sh"
775 echo "$ac_t""$INSTALL" 1>&6
777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
778 # It thinks the first close brace ends the variable substitution.
779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
785 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
786 echo "configure:787: checking whether build environment is sane" >&5
789 echo timestamp > conftestfile
790 # Do `set' in a subshell so we don't clobber the current shell's
791 # arguments. Must try -L first in case configure is actually a
792 # symlink; some systems play weird games with the mod time of symlinks
793 # (eg FreeBSD returns the mod time of the symlink's containing
796 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
797 if test "$*" = "X"; then
799 set X `ls -t $srcdir/configure conftestfile`
801 if test "$*" != "X $srcdir/configure conftestfile" \
802 && test "$*" != "X conftestfile $srcdir/configure"; then
804 # If neither matched, then we have a broken ls. This can happen
805 # if, for instance, CONFIG_SHELL is bash and it inherits a
806 # broken ls alias from the environment. This has actually
807 # happened. Such a system could not be considered "sane".
808 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
809 alias in your environment" 1>&2; exit 1; }
812 test "$2" = conftestfile
818 { echo "configure: error: newly created file is older than distributed files!
819 Check your system clock" 1>&2; exit 1; }
822 echo "$ac_t""yes" 1>&6
823 if test "$program_transform_name" = s,x,x,; then
824 program_transform_name=
826 # Double any \ or $. echo might interpret backslashes.
827 cat <<\EOF_SED > conftestsed
828 s,\\,\\\\,g; s,\$,$$,g
830 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
833 test "$program_prefix" != NONE &&
834 program_transform_name="s,^,${program_prefix},; $program_transform_name"
835 # Use a double $ so make ignores it.
836 test "$program_suffix" != NONE &&
837 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
839 # sed with no file args requires a program.
840 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
842 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
843 echo "configure:844: checking whether ${MAKE-make} sets \${MAKE}" >&5
844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
845 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 cat > conftestmake <<\EOF
850 @echo 'ac_maketemp="${MAKE}"'
852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
853 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
854 if test -n "$ac_maketemp"; then
855 eval ac_cv_prog_make_${ac_make}_set=yes
857 eval ac_cv_prog_make_${ac_make}_set=no
861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
862 echo "$ac_t""yes" 1>&6
865 echo "$ac_t""no" 1>&6
866 SET_MAKE="MAKE=${MAKE-make}"
874 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
875 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
877 cat >> confdefs.h <<EOF
878 #define PACKAGE "$PACKAGE"
881 cat >> confdefs.h <<EOF
882 #define VERSION "$VERSION"
887 missing_dir=`cd $ac_aux_dir && pwd`
888 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
889 echo "configure:890: checking for working aclocal" >&5
890 # Run test in a subshell; some versions of sh will print an error if
891 # an executable is not found, even if stderr is redirected.
892 # Redirect stdin to placate older versions of autoconf. Sigh.
893 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
895 echo "$ac_t""found" 1>&6
897 ACLOCAL="$missing_dir/missing aclocal"
898 echo "$ac_t""missing" 1>&6
901 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
902 echo "configure:903: checking for working autoconf" >&5
903 # Run test in a subshell; some versions of sh will print an error if
904 # an executable is not found, even if stderr is redirected.
905 # Redirect stdin to placate older versions of autoconf. Sigh.
906 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
908 echo "$ac_t""found" 1>&6
910 AUTOCONF="$missing_dir/missing autoconf"
911 echo "$ac_t""missing" 1>&6
914 echo $ac_n "checking for working automake""... $ac_c" 1>&6
915 echo "configure:916: checking for working automake" >&5
916 # Run test in a subshell; some versions of sh will print an error if
917 # an executable is not found, even if stderr is redirected.
918 # Redirect stdin to placate older versions of autoconf. Sigh.
919 if (automake --version) < /dev/null > /dev/null 2>&1; then
921 echo "$ac_t""found" 1>&6
923 AUTOMAKE="$missing_dir/missing automake"
924 echo "$ac_t""missing" 1>&6
927 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
928 echo "configure:929: checking for working autoheader" >&5
929 # Run test in a subshell; some versions of sh will print an error if
930 # an executable is not found, even if stderr is redirected.
931 # Redirect stdin to placate older versions of autoconf. Sigh.
932 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
933 AUTOHEADER=autoheader
934 echo "$ac_t""found" 1>&6
936 AUTOHEADER="$missing_dir/missing autoheader"
937 echo "$ac_t""missing" 1>&6
940 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
941 echo "configure:942: checking for working makeinfo" >&5
942 # Run test in a subshell; some versions of sh will print an error if
943 # an executable is not found, even if stderr is redirected.
944 # Redirect stdin to placate older versions of autoconf. Sigh.
945 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
947 echo "$ac_t""found" 1>&6
949 MAKEINFO="$missing_dir/missing makeinfo"
950 echo "$ac_t""missing" 1>&6
955 # Check whether --enable-shared or --disable-shared was given.
956 if test "${enable_shared+set}" = set; then
957 enableval="$enable_shared"
960 yes) enable_shared=yes ;;
961 no) enable_shared=no ;;
964 # Look at the argument we got. We use all the common list separators.
965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
966 for pkg in $enableval; do
967 if test "X$pkg" = "X$p"; then
978 # Check whether --enable-static or --disable-static was given.
979 if test "${enable_static+set}" = set; then
980 enableval="$enable_static"
983 yes) enable_static=yes ;;
984 no) enable_static=no ;;
987 # Look at the argument we got. We use all the common list separators.
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
989 for pkg in $enableval; do
990 if test "X$pkg" = "X$p"; then
1001 # Check whether --enable-fast-install or --disable-fast-install was given.
1002 if test "${enable_fast_install+set}" = set; then
1003 enableval="$enable_fast_install"
1004 p=${PACKAGE-default}
1005 case "$enableval" in
1006 yes) enable_fast_install=yes ;;
1007 no) enable_fast_install=no ;;
1009 enable_fast_install=no
1010 # Look at the argument we got. We use all the common list separators.
1011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1012 for pkg in $enableval; do
1013 if test "X$pkg" = "X$p"; then
1014 enable_fast_install=yes
1021 enable_fast_install=yes
1024 # Extract the first word of "gcc", so it can be a program name with args.
1025 set dummy gcc; ac_word=$2
1026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027 echo "configure:1028: checking for $ac_word" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 if test -n "$CC"; then
1032 ac_cv_prog_CC="$CC" # Let the user override the test.
1034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1036 for ac_dir in $ac_dummy; do
1037 test -z "$ac_dir" && ac_dir=.
1038 if test -f $ac_dir/$ac_word; then
1047 if test -n "$CC"; then
1048 echo "$ac_t""$CC" 1>&6
1050 echo "$ac_t""no" 1>&6
1053 if test -z "$CC"; then
1054 # Extract the first word of "cc", so it can be a program name with args.
1055 set dummy cc; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1061 if test -n "$CC"; then
1062 ac_cv_prog_CC="$CC" # Let the user override the test.
1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1067 for ac_dir in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir=.
1069 if test -f $ac_dir/$ac_word; then
1070 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1071 ac_prog_rejected=yes
1079 if test $ac_prog_rejected = yes; then
1080 # We found a bogon in the path, so make sure we never use it.
1081 set dummy $ac_cv_prog_CC
1083 if test $# -gt 0; then
1084 # We chose a different compiler from the bogus one.
1085 # However, it has the same basename, so the bogon will be chosen
1086 # first if we set CC to just the basename; use the full file name.
1088 set dummy "$ac_dir/$ac_word" "$@"
1096 if test -n "$CC"; then
1097 echo "$ac_t""$CC" 1>&6
1099 echo "$ac_t""no" 1>&6
1102 if test -z "$CC"; then
1103 case "`uname -s`" in
1105 # Extract the first word of "cl", so it can be a program name with args.
1106 set dummy cl; ac_word=$2
1107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1108 echo "configure:1109: checking for $ac_word" >&5
1109 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 if test -n "$CC"; then
1113 ac_cv_prog_CC="$CC" # Let the user override the test.
1115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1117 for ac_dir in $ac_dummy; do
1118 test -z "$ac_dir" && ac_dir=.
1119 if test -f $ac_dir/$ac_word; then
1128 if test -n "$CC"; then
1129 echo "$ac_t""$CC" 1>&6
1131 echo "$ac_t""no" 1>&6
1136 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1139 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1144 ac_cpp='$CPP $CPPFLAGS'
1145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1147 cross_compiling=$ac_cv_prog_cc_cross
1149 cat > conftest.$ac_ext << EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1156 if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1157 ac_cv_prog_cc_works=yes
1158 # If we can't run a trivial program, we are probably using a cross compiler.
1159 if (./conftest; exit) 2>/dev/null; then
1160 ac_cv_prog_cc_cross=no
1162 ac_cv_prog_cc_cross=yes
1165 echo "configure: failed program was:" >&5
1166 cat conftest.$ac_ext >&5
1167 ac_cv_prog_cc_works=no
1171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1172 ac_cpp='$CPP $CPPFLAGS'
1173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1175 cross_compiling=$ac_cv_prog_cc_cross
1177 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1178 if test $ac_cv_prog_cc_works = no; then
1179 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1181 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1183 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1184 cross_compiling=$ac_cv_prog_cc_cross
1186 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether we are using GNU C" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftest.c <<EOF
1196 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1203 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1205 if test $ac_cv_prog_gcc = yes; then
1211 ac_test_CFLAGS="${CFLAGS+set}"
1212 ac_save_CFLAGS="$CFLAGS"
1214 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether ${CC-cc} accepts -g" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 echo 'void f(){}' > conftest.c
1220 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1229 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1230 if test "$ac_test_CFLAGS" = set; then
1231 CFLAGS="$ac_save_CFLAGS"
1232 elif test $ac_cv_prog_cc_g = yes; then
1233 if test "$GCC" = yes; then
1239 if test "$GCC" = yes; then
1246 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1247 if test "${with_gnu_ld+set}" = set; then
1248 withval="$with_gnu_ld"
1249 test "$withval" = no || with_gnu_ld=yes
1255 if test "$ac_cv_prog_gcc" = yes; then
1256 # Check if gcc -print-prog-name=ld gives a path.
1257 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1258 echo "configure:1259: checking for ld used by GCC" >&5
1261 # gcc leaves a trailing carriage return which upsets mingw
1262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1267 # Accept absolute paths.
1268 [\\/]* | [A-Za-z]:[\\/]*)
1269 re_direlt='/[^/][^/]*/\.\./'
1270 # Canonicalize the path of ld
1271 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1272 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1273 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1275 test -z "$LD" && LD="$ac_prog"
1278 # If it fails, then pretend we aren't using GCC.
1282 # If it is relative, then search for the first ld in PATH.
1286 elif test "$with_gnu_ld" = yes; then
1287 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1288 echo "configure:1289: checking for GNU ld" >&5
1290 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1291 echo "configure:1292: checking for non-GNU ld" >&5
1293 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if test -z "$LD"; then
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1298 for ac_dir in $PATH; do
1299 test -z "$ac_dir" && ac_dir=.
1300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1301 ac_cv_path_LD="$ac_dir/$ac_prog"
1302 # Check to see if the program is GNU ld. I'd rather use --version,
1303 # but apparently some GNU ld's only accept -v.
1304 # Break only if it was the GNU/non-GNU ld that we prefer.
1305 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1306 test "$with_gnu_ld" != no && break
1308 test "$with_gnu_ld" != yes && break
1314 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1319 if test -n "$LD"; then
1320 echo "$ac_t""$LD" 1>&6
1322 echo "$ac_t""no" 1>&6
1324 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1325 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1326 echo "configure:1327: checking if the linker ($LD) is GNU ld" >&5
1327 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1331 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1332 ac_cv_prog_gnu_ld=yes
1334 ac_cv_prog_gnu_ld=no
1338 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1339 with_gnu_ld=$ac_cv_prog_gnu_ld
1342 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1343 echo "configure:1344: checking for $LD option to reload object files" >&5
1344 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 lt_cv_ld_reload_flag='-r'
1350 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1351 reload_flag=$lt_cv_ld_reload_flag
1352 test -n "$reload_flag" && reload_flag=" $reload_flag"
1354 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1355 echo "configure:1356: checking for BSD-compatible nm" >&5
1356 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 if test -n "$NM"; then
1360 # Let the user override the test.
1363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1364 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1365 test -z "$ac_dir" && ac_dir=.
1366 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1367 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1368 # Check to see if the nm accepts a BSD-compat flag.
1369 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1370 # nm: unknown option "B" ignored
1371 # Tru64's nm complains that /dev/null is an invalid object file
1372 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1373 ac_cv_path_NM="$tmp_nm -B"
1375 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1376 ac_cv_path_NM="$tmp_nm -p"
1379 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1380 continue # so that we can try to find one that supports BSD flags
1385 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1390 echo "$ac_t""$NM" 1>&6
1392 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1393 echo "configure:1394: checking whether ln -s works" >&5
1394 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1398 if ln -s X conftestdata 2>/dev/null
1401 ac_cv_prog_LN_S="ln -s"
1406 LN_S="$ac_cv_prog_LN_S"
1407 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1408 echo "$ac_t""yes" 1>&6
1410 echo "$ac_t""no" 1>&6
1413 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1414 echo "configure:1415: checking how to recognise dependant libraries" >&5
1415 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 lt_cv_file_magic_cmd='${MAGIC}'
1419 lt_cv_file_magic_test_file=
1420 lt_cv_deplibs_check_method='unknown'
1421 # Need to set the preceding variable on all platforms that support
1422 # interlibrary dependencies.
1423 # 'none' -- dependencies not supported.
1424 # `unknown' -- same as none, but documents that we really don't know.
1425 # 'pass_all' -- all dependencies passed with no checks.
1426 # 'test_compile' -- check by making test program.
1427 # 'file_magic [regex]' -- check by looking for files in library path
1428 # which responds to the $file_magic_cmd with a given egrep regex.
1429 # If you have `file' or equivalent on your system and you're not sure
1430 # whether `pass_all' will *always* work, you probably want this one.
1434 lt_cv_deplibs_check_method=pass_all
1438 lt_cv_deplibs_check_method=pass_all
1442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1443 lt_cv_file_magic_cmd='/usr/bin/file -L'
1444 lt_cv_file_magic_test_file=/shlib/libc.so
1448 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1449 lt_cv_file_magic_cmd='${OBJDUMP} -f'
1453 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1456 # Not sure whether the presence of OpenBSD here was a mistake.
1457 # Let's accept both of them until this is cleared up.
1458 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1459 lt_cv_file_magic_cmd=/usr/bin/file
1460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1464 lt_cv_deplibs_check_method=pass_all
1469 lt_cv_deplibs_check_method=pass_all
1473 # TODO: Does this work for hpux-11 too?
1474 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1475 lt_cv_file_magic_cmd=/usr/bin/file
1476 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1482 # this will be overridden with pass_all, but let us keep it just in case
1483 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1487 *-32|*"-32 ") libmagic=32-bit;;
1488 *-n32|*"-n32 ") libmagic=N32;;
1489 *-64|*"-64 ") libmagic=64-bit;;
1490 *) libmagic=never-match;;
1492 # this will be overridden with pass_all, but let us keep it just in case
1493 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1496 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1497 lt_cv_deplibs_check_method=pass_all
1500 # This must be Linux ELF.
1503 alpha* | i*86 | powerpc* | sparc* | ia64* )
1504 lt_cv_deplibs_check_method=pass_all ;;
1506 # glibc up to 2.1.1 does not perform some relocations on ARM
1507 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1509 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1513 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1516 lt_cv_file_magic_cmd='/usr/bin/file -L'
1517 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1521 osf3* | osf4* | osf5*)
1522 # this will be overridden with pass_all, but let us keep it just in case
1523 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1524 lt_cv_file_magic_test_file=/shlib/libc.so
1525 lt_cv_deplibs_check_method=pass_all
1529 lt_cv_deplibs_check_method=pass_all
1533 lt_cv_deplibs_check_method=pass_all
1534 lt_cv_file_magic_test_file=/lib/libc.so
1537 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1538 case "$host_vendor" in
1540 lt_cv_deplibs_check_method=pass_all
1543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1544 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1552 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1553 file_magic_cmd=$lt_cv_file_magic_cmd
1554 deplibs_check_method=$lt_cv_deplibs_check_method
1556 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1557 echo "configure:1558: checking for object suffix" >&5
1558 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1562 echo 'int i = 1;' > conftest.$ac_ext
1563 if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1564 for ac_file in conftest.*; do
1567 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1571 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1576 echo "$ac_t""$ac_cv_objext" 1>&6
1577 OBJEXT=$ac_cv_objext
1578 ac_objext=$ac_cv_objext
1582 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1583 echo "configure:1584: checking for executable suffix" >&5
1584 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1591 echo 'int main () { return 0; }' > conftest.$ac_ext
1593 if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1594 for file in conftest.*; do
1596 *.c | *.o | *.obj) ;;
1597 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1601 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1604 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1609 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1610 echo "$ac_t""${ac_cv_exeext}" 1>&6
1613 if test $host != $build; then
1614 ac_tool_prefix=${host_alias}-
1619 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1621 # Only perform the check for file, if the check method requires it
1622 case "$deplibs_check_method" in
1624 if test "$file_magic_cmd" = '${MAGIC}'; then
1625 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1626 echo "configure:1627: checking for ${ac_tool_prefix}file" >&5
1627 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1632 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1635 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1638 ac_save_MAGIC="$MAGIC"
1639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1640 ac_dummy="/usr/bin:$PATH"
1641 for ac_dir in $ac_dummy; do
1642 test -z "$ac_dir" && ac_dir=.
1643 if test -f $ac_dir/${ac_tool_prefix}file; then
1644 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
1645 if test -n "$file_magic_test_file"; then
1646 case "$deplibs_check_method" in
1648 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1649 MAGIC="$lt_cv_path_MAGIC"
1650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1651 egrep "$file_magic_regex" > /dev/null; then
1656 *** Warning: the command libtool uses to detect shared libraries,
1657 *** $file_magic_cmd, produces output that libtool cannot recognize.
1658 *** The result is that libtool may fail to recognize shared libraries
1659 *** as such. This will affect the creation of libtool libraries that
1660 *** depend on shared libraries, but programs linked with such libtool
1661 *** libraries will work regardless of this problem. Nevertheless, you
1662 *** may want to report the problem to your system manager and/or to
1663 *** bug-libtool@gnu.org
1673 MAGIC="$ac_save_MAGIC"
1678 MAGIC="$lt_cv_path_MAGIC"
1679 if test -n "$MAGIC"; then
1680 echo "$ac_t""$MAGIC" 1>&6
1682 echo "$ac_t""no" 1>&6
1685 if test -z "$lt_cv_path_MAGIC"; then
1686 if test -n "$ac_tool_prefix"; then
1687 echo $ac_n "checking for file""... $ac_c" 1>&6
1688 echo "configure:1689: checking for file" >&5
1689 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1694 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1697 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1700 ac_save_MAGIC="$MAGIC"
1701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1702 ac_dummy="/usr/bin:$PATH"
1703 for ac_dir in $ac_dummy; do
1704 test -z "$ac_dir" && ac_dir=.
1705 if test -f $ac_dir/file; then
1706 lt_cv_path_MAGIC="$ac_dir/file"
1707 if test -n "$file_magic_test_file"; then
1708 case "$deplibs_check_method" in
1710 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1711 MAGIC="$lt_cv_path_MAGIC"
1712 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1713 egrep "$file_magic_regex" > /dev/null; then
1718 *** Warning: the command libtool uses to detect shared libraries,
1719 *** $file_magic_cmd, produces output that libtool cannot recognize.
1720 *** The result is that libtool may fail to recognize shared libraries
1721 *** as such. This will affect the creation of libtool libraries that
1722 *** depend on shared libraries, but programs linked with such libtool
1723 *** libraries will work regardless of this problem. Nevertheless, you
1724 *** may want to report the problem to your system manager and/or to
1725 *** bug-libtool@gnu.org
1735 MAGIC="$ac_save_MAGIC"
1740 MAGIC="$lt_cv_path_MAGIC"
1741 if test -n "$MAGIC"; then
1742 echo "$ac_t""$MAGIC" 1>&6
1744 echo "$ac_t""no" 1>&6
1756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1759 echo "configure:1760: checking for $ac_word" >&5
1760 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 if test -n "$RANLIB"; then
1764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1768 for ac_dir in $ac_dummy; do
1769 test -z "$ac_dir" && ac_dir=.
1770 if test -f $ac_dir/$ac_word; then
1771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1778 RANLIB="$ac_cv_prog_RANLIB"
1779 if test -n "$RANLIB"; then
1780 echo "$ac_t""$RANLIB" 1>&6
1782 echo "$ac_t""no" 1>&6
1786 if test -z "$ac_cv_prog_RANLIB"; then
1787 if test -n "$ac_tool_prefix"; then
1788 # Extract the first word of "ranlib", so it can be a program name with args.
1789 set dummy ranlib; ac_word=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 if test -n "$RANLIB"; then
1796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1800 for ac_dir in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_RANLIB="ranlib"
1808 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1811 RANLIB="$ac_cv_prog_RANLIB"
1812 if test -n "$RANLIB"; then
1813 echo "$ac_t""$RANLIB" 1>&6
1815 echo "$ac_t""no" 1>&6
1823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1824 set dummy ${ac_tool_prefix}strip; ac_word=$2
1825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_word" >&5
1827 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 if test -n "$STRIP"; then
1831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1835 for ac_dir in $ac_dummy; do
1836 test -z "$ac_dir" && ac_dir=.
1837 if test -f $ac_dir/$ac_word; then
1838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1845 STRIP="$ac_cv_prog_STRIP"
1846 if test -n "$STRIP"; then
1847 echo "$ac_t""$STRIP" 1>&6
1849 echo "$ac_t""no" 1>&6
1853 if test -z "$ac_cv_prog_STRIP"; then
1854 if test -n "$ac_tool_prefix"; then
1855 # Extract the first word of "strip", so it can be a program name with args.
1856 set dummy strip; ac_word=$2
1857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $ac_word" >&5
1859 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 if test -n "$STRIP"; then
1863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1867 for ac_dir in $ac_dummy; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
1870 ac_cv_prog_STRIP="strip"
1875 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1878 STRIP="$ac_cv_prog_STRIP"
1879 if test -n "$STRIP"; then
1880 echo "$ac_t""$STRIP" 1>&6
1882 echo "$ac_t""no" 1>&6
1891 # Check for any special flags to pass to ltconfig.
1892 libtool_flags="--cache-file=$cache_file"
1893 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1894 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1895 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1896 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1897 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1900 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1901 if test "${enable_libtool_lock+set}" = set; then
1902 enableval="$enable_libtool_lock"
1906 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1907 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1909 # Check whether --with-pic or --without-pic was given.
1910 if test "${with_pic+set}" = set; then
1917 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1918 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1920 # Some flags need to be propagated to the compiler or linker for good
1924 # Find out which ABI we are using.
1925 echo '#line 1926 "configure"' > conftest.$ac_ext
1926 if { (eval echo configure:1927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1927 case "`/usr/bin/file conftest.o`" in
1943 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1944 SAVE_CFLAGS="$CFLAGS"
1945 CFLAGS="$CFLAGS -belf"
1946 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether the C compiler needs -belf" >&5
1948 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1954 ac_cpp='$CPP $CPPFLAGS'
1955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1957 cross_compiling=$ac_cv_prog_cc_cross
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1967 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1969 lt_cv_cc_needs_belf=yes
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1974 lt_cv_cc_needs_belf=no
1978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1979 ac_cpp='$CPP $CPPFLAGS'
1980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1982 cross_compiling=$ac_cv_prog_cc_cross
1986 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1989 CFLAGS="$SAVE_CFLAGS"
1997 # Save cache, so that ltconfig can load it
1998 cat > confcache <<\EOF
1999 # This file is a shell script that caches the results of configure
2000 # tests run on this system so they can be shared between configure
2001 # scripts and configure runs. It is not useful on other systems.
2002 # If it contains results you don't want to keep, you may remove or edit it.
2004 # By default, configure uses ./config.cache as the cache file,
2005 # creating it if it does not exist already. You can give configure
2006 # the --cache-file=FILE option to use a different cache file; that is
2007 # what configure does when it calls configure scripts in
2008 # subdirectories, so they share the cache.
2009 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2010 # config.status only pays attention to the cache file if you give it the
2011 # --recheck option to rerun configure.
2014 # The following way of writing the cache mishandles newlines in values,
2015 # but we know of no workaround that is simple, portable, and efficient.
2016 # So, don't put newlines in cache variables' values.
2017 # Ultrix sh set writes to stderr and can't be redirected directly,
2018 # and sets the high bit in the cache file unless we assign to the vars.
2020 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2022 # `set' does not quote correctly, so add quotes (double-quote substitution
2023 # turns \\\\ into \\, and sed turns \\ into \).
2025 -e "s/'/'\\\\''/g" \
2026 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2029 # `set' quotes correctly as required by POSIX, so do not add quotes.
2030 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2033 if cmp -s $cache_file confcache; then
2036 if test -w $cache_file; then
2037 echo "updating cache $cache_file"
2038 cat confcache > $cache_file
2040 echo "not updating unwritable cache $cache_file"
2046 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2047 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2048 MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2049 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2050 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2051 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2052 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2053 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2054 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2055 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2057 # Reload cache, that may have been modified by ltconfig
2058 if test -r "$cache_file"; then
2059 echo "loading cache $cache_file"
2062 echo "creating cache $cache_file"
2067 # This can be used to rebuild libtool when needed
2068 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2070 # Always use our own libtool.
2071 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2073 # Redirect the config.log output again, so that the ltconfig log is not
2074 # clobbered by the next message.
2075 exec 5>>./config.log
2083 # Check whether --enable-targets or --disable-targets was given.
2084 if test "${enable_targets+set}" = set; then
2085 enableval="$enable_targets"
2086 case "${enableval}" in
2087 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2089 no) enable_targets= ;;
2090 *) enable_targets=$enableval ;;
2093 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2094 if test "${enable_64_bit_bfd+set}" = set; then
2095 enableval="$enable_64_bit_bfd"
2096 case "${enableval}" in
2099 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2105 build_warnings="-W -Wall"
2106 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2107 if test "${enable_build_warnings+set}" = set; then
2108 enableval="$enable_build_warnings"
2109 case "${enableval}" in
2111 no) build_warnings="-w";;
2112 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2113 build_warnings="${build_warnings} ${t}";;
2114 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2115 build_warnings="${t} ${build_warnings}";;
2116 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2118 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2119 echo "Setting warning flags = $build_warnings" 6>&1
2123 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2124 WARN_CFLAGS="${build_warnings}"
2132 if test -z "$target" ; then
2133 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2135 if test -z "$host" ; then
2136 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2139 # host-specific stuff:
2141 # Extract the first word of "gcc", so it can be a program name with args.
2142 set dummy gcc; ac_word=$2
2143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_word" >&5
2145 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2153 for ac_dir in $ac_dummy; do
2154 test -z "$ac_dir" && ac_dir=.
2155 if test -f $ac_dir/$ac_word; then
2164 if test -n "$CC"; then
2165 echo "$ac_t""$CC" 1>&6
2167 echo "$ac_t""no" 1>&6
2170 if test -z "$CC"; then
2171 # Extract the first word of "cc", so it can be a program name with args.
2172 set dummy cc; ac_word=$2
2173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2174 echo "configure:2175: checking for $ac_word" >&5
2175 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2184 for ac_dir in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir=.
2186 if test -f $ac_dir/$ac_word; then
2187 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2196 if test $ac_prog_rejected = yes; then
2197 # We found a bogon in the path, so make sure we never use it.
2198 set dummy $ac_cv_prog_CC
2200 if test $# -gt 0; then
2201 # We chose a different compiler from the bogus one.
2202 # However, it has the same basename, so the bogon will be chosen
2203 # first if we set CC to just the basename; use the full file name.
2205 set dummy "$ac_dir/$ac_word" "$@"
2213 if test -n "$CC"; then
2214 echo "$ac_t""$CC" 1>&6
2216 echo "$ac_t""no" 1>&6
2219 if test -z "$CC"; then
2220 case "`uname -s`" in
2222 # Extract the first word of "cl", so it can be a program name with args.
2223 set dummy cl; ac_word=$2
2224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2225 echo "configure:2226: checking for $ac_word" >&5
2226 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 if test -n "$CC"; then
2230 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2234 for ac_dir in $ac_dummy; do
2235 test -z "$ac_dir" && ac_dir=.
2236 if test -f $ac_dir/$ac_word; then
2245 if test -n "$CC"; then
2246 echo "$ac_t""$CC" 1>&6
2248 echo "$ac_t""no" 1>&6
2253 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2256 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2257 echo "configure:2258: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2264 cross_compiling=$ac_cv_prog_cc_cross
2266 cat > conftest.$ac_ext << EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2274 ac_cv_prog_cc_works=yes
2275 # If we can't run a trivial program, we are probably using a cross compiler.
2276 if (./conftest; exit) 2>/dev/null; then
2277 ac_cv_prog_cc_cross=no
2279 ac_cv_prog_cc_cross=yes
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2284 ac_cv_prog_cc_works=no
2288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2289 ac_cpp='$CPP $CPPFLAGS'
2290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2292 cross_compiling=$ac_cv_prog_cc_cross
2294 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2295 if test $ac_cv_prog_cc_works = no; then
2296 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2298 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2300 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2301 cross_compiling=$ac_cv_prog_cc_cross
2303 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2304 echo "configure:2305: checking whether we are using GNU C" >&5
2305 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.c <<EOF
2313 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2320 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2322 if test $ac_cv_prog_gcc = yes; then
2328 ac_test_CFLAGS="${CFLAGS+set}"
2329 ac_save_CFLAGS="$CFLAGS"
2331 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2332 echo "configure:2333: checking whether ${CC-cc} accepts -g" >&5
2333 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 echo 'void f(){}' > conftest.c
2337 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2346 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2347 if test "$ac_test_CFLAGS" = set; then
2348 CFLAGS="$ac_save_CFLAGS"
2349 elif test $ac_cv_prog_cc_g = yes; then
2350 if test "$GCC" = yes; then
2356 if test "$GCC" = yes; then
2363 # Find a good install program. We prefer a C program (faster),
2364 # so one script is as good as another. But avoid the broken or
2365 # incompatible versions:
2366 # SysV /etc/install, /usr/sbin/install
2367 # SunOS /usr/etc/install
2368 # IRIX /sbin/install
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # ./install, which can be erroneously created by make from ./install.sh.
2374 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2375 echo "configure:2376: checking for a BSD compatible install" >&5
2376 if test -z "$INSTALL"; then
2377 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2381 for ac_dir in $PATH; do
2382 # Account for people who put trailing slashes in PATH elements.
2384 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2386 # OSF1 and SCO ODT 3.0 have their own names for install.
2387 # Don't use installbsd from OSF since it installs stuff as root
2389 for ac_prog in ginstall scoinst install; do
2390 if test -f $ac_dir/$ac_prog; then
2391 if test $ac_prog = install &&
2392 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2393 # AIX install. It has an incompatible calling convention.
2396 ac_cv_path_install="$ac_dir/$ac_prog -c"
2407 if test "${ac_cv_path_install+set}" = set; then
2408 INSTALL="$ac_cv_path_install"
2410 # As a last resort, use the slow shell script. We don't cache a
2411 # path for INSTALL within a source directory, because that will
2412 # break other packages using the cache if that directory is
2413 # removed, or if the path is relative.
2414 INSTALL="$ac_install_sh"
2417 echo "$ac_t""$INSTALL" 1>&6
2419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2420 # It thinks the first close brace ends the variable substitution.
2421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2429 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2430 echo "configure:2431: checking how to run the C preprocessor" >&5
2431 # On Suns, sometimes $CPP names a directory.
2432 if test -n "$CPP" && test -d "$CPP"; then
2435 if test -z "$CPP"; then
2436 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 # This must be in double quotes, not single quotes, because CPP may get
2440 # substituted into the Makefile and "${CC-cc}" will confuse make.
2442 # On the NeXT, cc -E runs the code through the compiler's parser,
2443 # not just through cpp.
2444 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2451 { (eval echo configure:2452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2453 if test -z "$ac_err"; then
2457 echo "configure: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2460 CPP="${CC-cc} -E -traditional-cpp"
2461 cat > conftest.$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2468 { (eval echo configure:2469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2470 if test -z "$ac_err"; then
2474 echo "configure: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2477 CPP="${CC-cc} -nologo -E"
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2485 { (eval echo configure:2486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2487 if test -z "$ac_err"; then
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2501 ac_cv_prog_CPP="$CPP"
2503 CPP="$ac_cv_prog_CPP"
2505 ac_cv_prog_CPP="$CPP"
2507 echo "$ac_t""$CPP" 1>&6
2509 # Extract the first word of "ranlib", so it can be a program name with args.
2510 set dummy ranlib; ac_word=$2
2511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_word" >&5
2513 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 if test -n "$RANLIB"; then
2517 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2521 for ac_dir in $ac_dummy; do
2522 test -z "$ac_dir" && ac_dir=.
2523 if test -f $ac_dir/$ac_word; then
2524 ac_cv_prog_RANLIB="ranlib"
2529 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2532 RANLIB="$ac_cv_prog_RANLIB"
2533 if test -n "$RANLIB"; then
2534 echo "$ac_t""$RANLIB" 1>&6
2536 echo "$ac_t""no" 1>&6
2539 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2540 echo "configure:2541: checking for POSIXized ISC" >&5
2541 if test -d /etc/conf/kconfig.d &&
2542 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2544 echo "$ac_t""yes" 1>&6
2545 ISC=yes # If later tests want to check for ISC.
2546 cat >> confdefs.h <<\EOF
2547 #define _POSIX_SOURCE 1
2550 if test "$GCC" = yes; then
2556 echo "$ac_t""no" 1>&6
2560 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2561 echo "configure:2562: checking for ANSI C header files" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2576 if test -z "$ac_err"; then
2578 ac_cv_header_stdc=yes
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2584 ac_cv_header_stdc=no
2588 if test $ac_cv_header_stdc = yes; then
2589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596 egrep "memchr" >/dev/null 2>&1; then
2600 ac_cv_header_stdc=no
2606 if test $ac_cv_header_stdc = yes; then
2607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2614 egrep "free" >/dev/null 2>&1; then
2618 ac_cv_header_stdc=no
2624 if test $ac_cv_header_stdc = yes; then
2625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2626 if test "$cross_compiling" = yes; then
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2633 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2634 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2636 int main () { int i; for (i = 0; i < 256; i++)
2637 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2641 if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2648 ac_cv_header_stdc=no
2656 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2657 if test $ac_cv_header_stdc = yes; then
2658 cat >> confdefs.h <<\EOF
2659 #define STDC_HEADERS 1
2664 echo $ac_n "checking for working const""... $ac_c" 1>&6
2665 echo "configure:2666: checking for working const" >&5
2666 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2675 /* Ultrix mips cc rejects this. */
2676 typedef int charset[2]; const charset x;
2677 /* SunOS 4.1.1 cc rejects this. */
2678 char const *const *ccp;
2680 /* NEC SVR4.0.2 mips cc rejects this. */
2681 struct point {int x, y;};
2682 static struct point const zero = {0,0};
2683 /* AIX XL C 1.02.0.0 rejects this.
2684 It does not let you subtract one const X* pointer from another in an arm
2685 of an if-expression whose if-part is not a constant expression */
2686 const char *g = "string";
2687 ccp = &g + (g ? g-g : 0);
2688 /* HPUX 7.0 cc rejects these. */
2691 ccp = (char const *const *) p;
2692 { /* SCO 3.2v4 cc rejects this. */
2694 char const *s = 0 ? (char *) 0 : (char const *) 0;
2698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2700 const int *foo = &x[0];
2703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2704 typedef const int *iptr;
2708 { /* AIX XL C 1.02.0.0 rejects this saying
2709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2710 struct s { int j; const int *ap[3]; };
2711 struct s *b; b->j = 5;
2713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2719 if { (eval echo configure:2720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2723 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2731 echo "$ac_t""$ac_cv_c_const" 1>&6
2732 if test $ac_cv_c_const = no; then
2733 cat >> confdefs.h <<\EOF
2739 echo $ac_n "checking for inline""... $ac_c" 1>&6
2740 echo "configure:2741: checking for inline" >&5
2741 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2745 for ac_kw in inline __inline__ __inline; do
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2754 if { (eval echo configure:2755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2756 ac_cv_c_inline=$ac_kw; break
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2766 echo "$ac_t""$ac_cv_c_inline" 1>&6
2767 case "$ac_cv_c_inline" in
2769 no) cat >> confdefs.h <<\EOF
2773 *) cat >> confdefs.h <<EOF
2774 #define inline $ac_cv_c_inline
2779 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2780 echo "configure:2781: checking for off_t" >&5
2781 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 #include <sys/types.h>
2793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2794 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2796 ac_cv_type_off_t=yes
2804 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2805 if test $ac_cv_type_off_t = no; then
2806 cat >> confdefs.h <<\EOF
2812 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2813 echo "configure:2814: checking for size_t" >&5
2814 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <sys/types.h>
2826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2827 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2829 ac_cv_type_size_t=yes
2832 ac_cv_type_size_t=no
2837 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2838 if test $ac_cv_type_size_t = no; then
2839 cat >> confdefs.h <<\EOF
2840 #define size_t unsigned
2845 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2846 # for constant arguments. Useless!
2847 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2848 echo "configure:2849: checking for working alloca.h" >&5
2849 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2857 char *p = alloca(2 * sizeof(int));
2860 if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2862 ac_cv_header_alloca_h=yes
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2867 ac_cv_header_alloca_h=no
2872 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2873 if test $ac_cv_header_alloca_h = yes; then
2874 cat >> confdefs.h <<\EOF
2875 #define HAVE_ALLOCA_H 1
2880 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2881 echo "configure:2882: checking for alloca" >&5
2882 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2890 # define alloca __builtin_alloca
2893 # include <malloc.h>
2894 # define alloca _alloca
2897 # include <alloca.h>
2902 # ifndef alloca /* predefined by HP cc +Olibcalls */
2911 char *p = (char *) alloca(1);
2914 if { (eval echo configure:2915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2916 ac_cv_func_alloca_works=yes
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2921 ac_cv_func_alloca_works=no
2926 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2927 if test $ac_cv_func_alloca_works = yes; then
2928 cat >> confdefs.h <<\EOF
2929 #define HAVE_ALLOCA 1
2934 if test $ac_cv_func_alloca_works = no; then
2935 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2936 # that cause trouble. Some versions do not even contain alloca or
2937 # contain a buggy version. If you still want to use their alloca,
2938 # use ar to extract alloca.o from them instead of compiling alloca.c.
2939 ALLOCA=alloca.${ac_objext}
2940 cat >> confdefs.h <<\EOF
2945 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2946 echo "configure:2947: checking whether alloca needs Cray hooks" >&5
2947 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #if defined(CRAY) && ! defined(CRAY2)
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 egrep "webecray" >/dev/null 2>&1; then
2972 echo "$ac_t""$ac_cv_os_cray" 1>&6
2973 if test $ac_cv_os_cray = yes; then
2974 for ac_func in _getb67 GETB67 getb67; do
2975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_func" >&5
2977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 /* System header to define __stub macros and hopefully few prototypes,
2984 which can conflict with char $ac_func(); below. */
2986 /* Override any gcc2 internal prototype to avoid an error. */
2987 /* We use char because int might match the return type of a gcc2
2988 builtin and then its argument prototype would still apply. */
2993 /* The GNU C library defines this for functions which it implements
2994 to always fail with ENOSYS. Some functions are actually named
2995 something starting with __ and the normal name is an alias. */
2996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3004 if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3006 eval "ac_cv_func_$ac_func=yes"
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3011 eval "ac_cv_func_$ac_func=no"
3016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 cat >> confdefs.h <<EOF
3019 #define CRAY_STACKSEG_END $ac_func
3024 echo "$ac_t""no" 1>&6
3030 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3031 echo "configure:3032: checking stack direction for C alloca" >&5
3032 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 if test "$cross_compiling" = yes; then
3036 ac_cv_c_stack_direction=0
3038 cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 find_stack_direction ()
3043 static char *addr = 0;
3048 return find_stack_direction ();
3051 return (&dummy > addr) ? 1 : -1;
3055 exit (find_stack_direction() < 0);
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3060 ac_cv_c_stack_direction=1
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 ac_cv_c_stack_direction=-1
3072 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3073 cat >> confdefs.h <<EOF
3074 #define STACK_DIRECTION $ac_cv_c_stack_direction
3079 for ac_hdr in unistd.h
3081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_hdr" >&5
3084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3093 { (eval echo configure:3094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3095 if test -z "$ac_err"; then
3097 eval "ac_cv_header_$ac_safe=yes"
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3103 eval "ac_cv_header_$ac_safe=no"
3107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3108 echo "$ac_t""yes" 1>&6
3109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3110 cat >> confdefs.h <<EOF
3111 #define $ac_tr_hdr 1
3115 echo "$ac_t""no" 1>&6
3119 for ac_func in getpagesize
3121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_func" >&5
3123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 /* System header to define __stub macros and hopefully few prototypes,
3130 which can conflict with char $ac_func(); below. */
3132 /* Override any gcc2 internal prototype to avoid an error. */
3133 /* We use char because int might match the return type of a gcc2
3134 builtin and then its argument prototype would still apply. */
3139 /* The GNU C library defines this for functions which it implements
3140 to always fail with ENOSYS. Some functions are actually named
3141 something starting with __ and the normal name is an alias. */
3142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3150 if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3152 eval "ac_cv_func_$ac_func=yes"
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3157 eval "ac_cv_func_$ac_func=no"
3162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3163 echo "$ac_t""yes" 1>&6
3164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3165 cat >> confdefs.h <<EOF
3166 #define $ac_tr_func 1
3170 echo "$ac_t""no" 1>&6
3174 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3175 echo "configure:3176: checking for working mmap" >&5
3176 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 if test "$cross_compiling" = yes; then
3180 ac_cv_func_mmap_fixed_mapped=no
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3186 /* Thanks to Mike Haertel and Jim Avera for this test.
3187 Here is a matrix of mmap possibilities:
3188 mmap private not fixed
3189 mmap private fixed at somewhere currently unmapped
3190 mmap private fixed at somewhere already mapped
3191 mmap shared not fixed
3192 mmap shared fixed at somewhere currently unmapped
3193 mmap shared fixed at somewhere already mapped
3194 For private mappings, we should verify that changes cannot be read()
3195 back from the file, nor mmap's back from the file at a different
3196 address. (There have been systems where private was not correctly
3197 implemented like the infamous i386 svr4.0, and systems where the
3198 VM page cache was not coherent with the filesystem buffer cache
3199 like early versions of FreeBSD and possibly contemporary NetBSD.)
3200 For shared mappings, we should conversely verify that changes get
3201 propogated back to all the places they're supposed to be.
3203 Grep wants private fixed already mapped.
3204 The main things grep needs to know about mmap are:
3205 * does it exist and is it safe to write into the mmap'd area
3206 * how to use it (BSD variants) */
3207 #include <sys/types.h>
3209 #include <sys/mman.h>
3211 /* This mess was copied from the GNU getpagesize.h. */
3212 #ifndef HAVE_GETPAGESIZE
3213 # ifdef HAVE_UNISTD_H
3214 # include <unistd.h>
3217 /* Assume that all systems that can run configure have sys/param.h. */
3218 # ifndef HAVE_SYS_PARAM_H
3219 # define HAVE_SYS_PARAM_H 1
3222 # ifdef _SC_PAGESIZE
3223 # define getpagesize() sysconf(_SC_PAGESIZE)
3224 # else /* no _SC_PAGESIZE */
3225 # ifdef HAVE_SYS_PARAM_H
3226 # include <sys/param.h>
3227 # ifdef EXEC_PAGESIZE
3228 # define getpagesize() EXEC_PAGESIZE
3229 # else /* no EXEC_PAGESIZE */
3231 # define getpagesize() NBPG * CLSIZE
3234 # endif /* no CLSIZE */
3235 # else /* no NBPG */
3237 # define getpagesize() NBPC
3238 # else /* no NBPC */
3240 # define getpagesize() PAGESIZE
3241 # endif /* PAGESIZE */
3242 # endif /* no NBPC */
3243 # endif /* no NBPG */
3244 # endif /* no EXEC_PAGESIZE */
3245 # else /* no HAVE_SYS_PARAM_H */
3246 # define getpagesize() 8192 /* punt totally */
3247 # endif /* no HAVE_SYS_PARAM_H */
3248 # endif /* no _SC_PAGESIZE */
3250 #endif /* no HAVE_GETPAGESIZE */
3253 extern "C" { void *malloc(unsigned); }
3261 char *data, *data2, *data3;
3265 pagesize = getpagesize();
3268 * First, make a file with some known garbage in it.
3270 data = malloc(pagesize);
3273 for (i = 0; i < pagesize; ++i)
3274 *(data + i) = rand();
3276 fd = creat("conftestmmap", 0600);
3279 if (write(fd, data, pagesize) != pagesize)
3284 * Next, try to mmap the file at a fixed address which
3285 * already has something else allocated at it. If we can,
3286 * also make sure that we see the same garbage.
3288 fd = open("conftestmmap", O_RDWR);
3291 data2 = malloc(2 * pagesize);
3294 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3295 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3296 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3298 for (i = 0; i < pagesize; ++i)
3299 if (*(data + i) != *(data2 + i))
3303 * Finally, make sure that changes to the mapped area
3304 * do not percolate back to the file as seen by read().
3305 * (This is a bug on some variants of i386 svr4.0.)
3307 for (i = 0; i < pagesize; ++i)
3308 *(data2 + i) = *(data2 + i) + 1;
3309 data3 = malloc(pagesize);
3312 if (read(fd, data3, pagesize) != pagesize)
3314 for (i = 0; i < pagesize; ++i)
3315 if (*(data + i) != *(data3 + i))
3318 unlink("conftestmmap");
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3325 ac_cv_func_mmap_fixed_mapped=yes
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 ac_cv_func_mmap_fixed_mapped=no
3337 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3338 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3339 cat >> confdefs.h <<\EOF
3346 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3347 unistd.h values.h sys/param.h
3349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_hdr" >&5
3352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3361 { (eval echo configure:3362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3363 if test -z "$ac_err"; then
3365 eval "ac_cv_header_$ac_safe=yes"
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3371 eval "ac_cv_header_$ac_safe=no"
3375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3376 echo "$ac_t""yes" 1>&6
3377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3378 cat >> confdefs.h <<EOF
3379 #define $ac_tr_hdr 1
3383 echo "$ac_t""no" 1>&6
3387 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3388 __argz_count __argz_stringify __argz_next
3390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3391 echo "configure:3392: checking for $ac_func" >&5
3392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 /* System header to define __stub macros and hopefully few prototypes,
3399 which can conflict with char $ac_func(); below. */
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3408 /* The GNU C library defines this for functions which it implements
3409 to always fail with ENOSYS. Some functions are actually named
3410 something starting with __ and the normal name is an alias. */
3411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3419 if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3421 eval "ac_cv_func_$ac_func=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 eval "ac_cv_func_$ac_func=no"
3431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3432 echo "$ac_t""yes" 1>&6
3433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3434 cat >> confdefs.h <<EOF
3435 #define $ac_tr_func 1
3439 echo "$ac_t""no" 1>&6
3444 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3445 for ac_func in stpcpy
3447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3448 echo "configure:3449: checking for $ac_func" >&5
3449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 /* System header to define __stub macros and hopefully few prototypes,
3456 which can conflict with char $ac_func(); below. */
3458 /* Override any gcc2 internal prototype to avoid an error. */
3459 /* We use char because int might match the return type of a gcc2
3460 builtin and then its argument prototype would still apply. */
3465 /* The GNU C library defines this for functions which it implements
3466 to always fail with ENOSYS. Some functions are actually named
3467 something starting with __ and the normal name is an alias. */
3468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3478 eval "ac_cv_func_$ac_func=yes"
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3483 eval "ac_cv_func_$ac_func=no"
3488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3489 echo "$ac_t""yes" 1>&6
3490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3491 cat >> confdefs.h <<EOF
3492 #define $ac_tr_func 1
3496 echo "$ac_t""no" 1>&6
3501 if test "${ac_cv_func_stpcpy}" = "yes"; then
3502 cat >> confdefs.h <<\EOF
3503 #define HAVE_STPCPY 1
3508 if test $ac_cv_header_locale_h = yes; then
3509 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3510 echo "configure:3511: checking for LC_MESSAGES" >&5
3511 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3522 if { (eval echo configure:3523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3524 am_cv_val_LC_MESSAGES=yes
3526 echo "configure: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3529 am_cv_val_LC_MESSAGES=no
3534 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3535 if test $am_cv_val_LC_MESSAGES = yes; then
3536 cat >> confdefs.h <<\EOF
3537 #define HAVE_LC_MESSAGES 1
3542 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3543 echo "configure:3544: checking whether NLS is requested" >&5
3544 # Check whether --enable-nls or --disable-nls was given.
3545 if test "${enable_nls+set}" = set; then
3546 enableval="$enable_nls"
3552 echo "$ac_t""$USE_NLS" 1>&6
3555 USE_INCLUDED_LIBINTL=no
3557 if test "$USE_NLS" = "yes"; then
3558 cat >> confdefs.h <<\EOF
3559 #define ENABLE_NLS 1
3562 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3563 echo "configure:3564: checking whether included gettext is requested" >&5
3564 # Check whether --with-included-gettext or --without-included-gettext was given.
3565 if test "${with_included_gettext+set}" = set; then
3566 withval="$with_included_gettext"
3567 nls_cv_force_use_gnu_gettext=$withval
3569 nls_cv_force_use_gnu_gettext=no
3572 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3574 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3575 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3577 nls_cv_header_libgt=
3580 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3581 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3582 echo "configure:3583: checking for libintl.h" >&5
3583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <libintl.h>
3591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3592 { (eval echo configure:3593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3594 if test -z "$ac_err"; then
3596 eval "ac_cv_header_$ac_safe=yes"
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3602 eval "ac_cv_header_$ac_safe=no"
3606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3609 echo "configure:3610: checking for gettext in libc" >&5
3610 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616 #include <libintl.h>
3618 return (int) gettext ("")
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 gt_cv_func_gettext_libc=yes
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 gt_cv_func_gettext_libc=no
3633 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3635 if test "$gt_cv_func_gettext_libc" != "yes"; then
3636 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3637 echo "configure:3638: checking for bindtextdomain in -lintl" >&5
3638 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3642 ac_save_LIBS="$LIBS"
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3647 /* Override any gcc2 internal prototype to avoid an error. */
3648 /* We use char because int might match the return type of a gcc2
3649 builtin and then its argument prototype would still apply. */
3650 char bindtextdomain();
3656 if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3658 eval "ac_cv_lib_$ac_lib_var=yes"
3660 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5
3663 eval "ac_cv_lib_$ac_lib_var=no"
3666 LIBS="$ac_save_LIBS"
3669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3670 echo "$ac_t""yes" 1>&6
3671 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3672 echo "configure:3673: checking for gettext in libintl" >&5
3673 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3681 return (int) gettext ("")
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3686 gt_cv_func_gettext_libintl=yes
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3691 gt_cv_func_gettext_libintl=no
3696 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3698 echo "$ac_t""no" 1>&6
3703 if test "$gt_cv_func_gettext_libc" = "yes" \
3704 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3705 cat >> confdefs.h <<\EOF
3706 #define HAVE_GETTEXT 1
3709 # Extract the first word of "msgfmt", so it can be a program name with args.
3710 set dummy msgfmt; ac_word=$2
3711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3712 echo "configure:3713: checking for $ac_word" >&5
3713 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3718 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3722 for ac_dir in $PATH; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/$ac_word; then
3725 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3726 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3732 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3736 MSGFMT="$ac_cv_path_MSGFMT"
3737 if test -n "$MSGFMT"; then
3738 echo "$ac_t""$MSGFMT" 1>&6
3740 echo "$ac_t""no" 1>&6
3742 if test "$MSGFMT" != "no"; then
3743 for ac_func in dcgettext
3745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3746 echo "configure:3747: checking for $ac_func" >&5
3747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 /* System header to define __stub macros and hopefully few prototypes,
3754 which can conflict with char $ac_func(); below. */
3756 /* Override any gcc2 internal prototype to avoid an error. */
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3763 /* The GNU C library defines this for functions which it implements
3764 to always fail with ENOSYS. Some functions are actually named
3765 something starting with __ and the normal name is an alias. */
3766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3774 if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3776 eval "ac_cv_func_$ac_func=yes"
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3781 eval "ac_cv_func_$ac_func=no"
3786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3789 cat >> confdefs.h <<EOF
3790 #define $ac_tr_func 1
3794 echo "$ac_t""no" 1>&6
3798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3799 set dummy gmsgfmt; ac_word=$2
3800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3801 echo "configure:3802: checking for $ac_word" >&5
3802 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3810 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3815 for ac_dir in $ac_dummy; do
3816 test -z "$ac_dir" && ac_dir=.
3817 if test -f $ac_dir/$ac_word; then
3818 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3823 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3827 GMSGFMT="$ac_cv_path_GMSGFMT"
3828 if test -n "$GMSGFMT"; then
3829 echo "$ac_t""$GMSGFMT" 1>&6
3831 echo "$ac_t""no" 1>&6
3834 # Extract the first word of "xgettext", so it can be a program name with args.
3835 set dummy xgettext; ac_word=$2
3836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3837 echo "configure:3838: checking for $ac_word" >&5
3838 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3843 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3847 for ac_dir in $PATH; do
3848 test -z "$ac_dir" && ac_dir=.
3849 if test -f $ac_dir/$ac_word; then
3850 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3851 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3857 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3861 XGETTEXT="$ac_cv_path_XGETTEXT"
3862 if test -n "$XGETTEXT"; then
3863 echo "$ac_t""$XGETTEXT" 1>&6
3865 echo "$ac_t""no" 1>&6
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3873 extern int _nl_msg_cat_cntr;
3874 return _nl_msg_cat_cntr
3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3894 echo "$ac_t""no" 1>&6
3899 if test "$CATOBJEXT" = "NONE"; then
3900 nls_cv_use_gnu_gettext=yes
3904 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3905 INTLOBJS="\$(GETTOBJS)"
3906 # Extract the first word of "msgfmt", so it can be a program name with args.
3907 set dummy msgfmt; ac_word=$2
3908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3909 echo "configure:3910: checking for $ac_word" >&5
3910 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3915 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3919 for ac_dir in $PATH; do
3920 test -z "$ac_dir" && ac_dir=.
3921 if test -f $ac_dir/$ac_word; then
3922 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3923 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3929 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3933 MSGFMT="$ac_cv_path_MSGFMT"
3934 if test -n "$MSGFMT"; then
3935 echo "$ac_t""$MSGFMT" 1>&6
3937 echo "$ac_t""no" 1>&6
3940 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3941 set dummy gmsgfmt; ac_word=$2
3942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3943 echo "configure:3944: checking for $ac_word" >&5
3944 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3949 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3952 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3957 for ac_dir in $ac_dummy; do
3958 test -z "$ac_dir" && ac_dir=.
3959 if test -f $ac_dir/$ac_word; then
3960 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3965 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3969 GMSGFMT="$ac_cv_path_GMSGFMT"
3970 if test -n "$GMSGFMT"; then
3971 echo "$ac_t""$GMSGFMT" 1>&6
3973 echo "$ac_t""no" 1>&6
3976 # Extract the first word of "xgettext", so it can be a program name with args.
3977 set dummy xgettext; ac_word=$2
3978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3979 echo "configure:3980: checking for $ac_word" >&5
3980 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3985 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3989 for ac_dir in $PATH; do
3990 test -z "$ac_dir" && ac_dir=.
3991 if test -f $ac_dir/$ac_word; then
3992 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3993 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3999 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4003 XGETTEXT="$ac_cv_path_XGETTEXT"
4004 if test -n "$XGETTEXT"; then
4005 echo "$ac_t""$XGETTEXT" 1>&6
4007 echo "$ac_t""no" 1>&6
4011 USE_INCLUDED_LIBINTL=yes
4015 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4017 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4018 nls_cv_header_intl=libintl.h
4019 nls_cv_header_libgt=libgettext.h
4022 if test "$XGETTEXT" != ":"; then
4023 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4026 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4031 # We need to process the po/ directory.
4035 nls_cv_header_intl=libintl.h
4036 nls_cv_header_libgt=libgettext.h
4039 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4040 # because some of the sources are only built for this goal.
4041 if test "$PACKAGE" = gettext; then
4043 USE_INCLUDED_LIBINTL=yes
4046 for lang in $ALL_LINGUAS; do
4047 GMOFILES="$GMOFILES $lang.gmo"
4048 POFILES="$POFILES $lang.po"
4064 if test "x$CATOBJEXT" != "x"; then
4065 if test "x$ALL_LINGUAS" = "x"; then
4068 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4069 echo "configure:4070: checking for catalogs to be installed" >&5
4071 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4072 case "$ALL_LINGUAS" in
4073 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4076 LINGUAS=$NEW_LINGUAS
4077 echo "$ac_t""$LINGUAS" 1>&6
4080 if test -n "$LINGUAS"; then
4081 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4085 if test $ac_cv_header_locale_h = yes; then
4086 INCLUDE_LOCALE_H="#include <locale.h>"
4089 /* The system does not provide the header <locale.h>. Take care yourself. */"
4093 if test -f $srcdir/po2tbl.sed.in; then
4094 if test "$CATOBJEXT" = ".cat"; then
4095 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4096 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4097 echo "configure:4098: checking for linux/version.h" >&5
4098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 #include <linux/version.h>
4106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4107 { (eval echo configure:4108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4109 if test -z "$ac_err"; then
4111 eval "ac_cv_header_$ac_safe=yes"
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4117 eval "ac_cv_header_$ac_safe=no"
4121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4125 echo "$ac_t""no" 1>&6
4130 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4132 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4133 $srcdir/po2tbl.sed.in > po2tbl.sed
4136 if test "$PACKAGE" = "gettext"; then
4146 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4152 if test -d $srcdir/po; then
4153 test -d po || mkdir po
4154 if test "x$srcdir" != "x."; then
4155 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4156 posrcprefix="$srcdir/"
4158 posrcprefix="../$srcdir/"
4164 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4165 < $srcdir/po/POTFILES.in > po/POTFILES
4171 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4172 echo "configure:4173: checking for executable suffix" >&5
4173 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4176 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4180 echo 'int main () { return 0; }' > conftest.$ac_ext
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4183 for file in conftest.*; do
4185 *.c | *.o | *.obj) ;;
4186 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4190 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4193 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4198 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4199 echo "$ac_t""${ac_cv_exeext}" 1>&6
4203 for ac_prog in 'bison -y' byacc
4205 # Extract the first word of "$ac_prog", so it can be a program name with args.
4206 set dummy $ac_prog; ac_word=$2
4207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4208 echo "configure:4209: checking for $ac_word" >&5
4209 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 if test -n "$YACC"; then
4213 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4217 for ac_dir in $ac_dummy; do
4218 test -z "$ac_dir" && ac_dir=.
4219 if test -f $ac_dir/$ac_word; then
4220 ac_cv_prog_YACC="$ac_prog"
4227 YACC="$ac_cv_prog_YACC"
4228 if test -n "$YACC"; then
4229 echo "$ac_t""$YACC" 1>&6
4231 echo "$ac_t""no" 1>&6
4234 test -n "$YACC" && break
4236 test -n "$YACC" || YACC="yacc"
4238 missing_dir=`cd $ac_aux_dir && pwd`
4239 for ac_prog in flex lex
4241 # Extract the first word of "$ac_prog", so it can be a program name with args.
4242 set dummy $ac_prog; ac_word=$2
4243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4244 echo "configure:4245: checking for $ac_word" >&5
4245 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 if test -n "$LEX"; then
4249 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4253 for ac_dir in $ac_dummy; do
4254 test -z "$ac_dir" && ac_dir=.
4255 if test -f $ac_dir/$ac_word; then
4256 ac_cv_prog_LEX="$ac_prog"
4263 LEX="$ac_cv_prog_LEX"
4264 if test -n "$LEX"; then
4265 echo "$ac_t""$LEX" 1>&6
4267 echo "$ac_t""no" 1>&6
4270 test -n "$LEX" && break
4272 test -n "$LEX" || LEX=""$missing_dir/missing flex""
4274 # Extract the first word of "flex", so it can be a program name with args.
4275 set dummy flex; ac_word=$2
4276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4277 echo "configure:4278: checking for $ac_word" >&5
4278 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4281 if test -n "$LEX"; then
4282 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4286 for ac_dir in $ac_dummy; do
4287 test -z "$ac_dir" && ac_dir=.
4288 if test -f $ac_dir/$ac_word; then
4289 ac_cv_prog_LEX="flex"
4294 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
4297 LEX="$ac_cv_prog_LEX"
4298 if test -n "$LEX"; then
4299 echo "$ac_t""$LEX" 1>&6
4301 echo "$ac_t""no" 1>&6
4304 if test -z "$LEXLIB"
4310 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4311 echo "configure:4312: checking for yywrap in -l$ac_lib" >&5
4312 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 ac_save_LIBS="$LIBS"
4317 LIBS="-l$ac_lib $LIBS"
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* Override any gcc2 internal prototype to avoid an error. */
4322 /* We use char because int might match the return type of a gcc2
4323 builtin and then its argument prototype would still apply. */
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4332 eval "ac_cv_lib_$ac_lib_var=yes"
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 eval "ac_cv_lib_$ac_lib_var=no"
4340 LIBS="$ac_save_LIBS"
4343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4347 echo "$ac_t""no" 1>&6
4352 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4353 echo "configure:4354: checking lex output file root" >&5
4354 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 # The minimal lex program is just a single line: %%. But some broken lexes
4358 # (Solaris, I think it was) want two %% lines, so accommodate them.
4361 if test -f lex.yy.c; then
4362 ac_cv_prog_lex_root=lex.yy
4363 elif test -f lexyy.c; then
4364 ac_cv_prog_lex_root=lexyy
4366 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4370 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4371 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4373 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4374 echo "configure:4375: checking whether yytext is a pointer" >&5
4375 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 # POSIX says lex can declare yytext either as a pointer or an array; the
4379 # default is implementation-dependent. Figure out which it is, since
4380 # not all implementations provide the %pointer and %array declarations.
4381 ac_cv_prog_lex_yytext_pointer=no
4382 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4383 ac_save_LIBS="$LIBS"
4384 LIBS="$LIBS $LEXLIB"
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 `cat $LEX_OUTPUT_ROOT.c`
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 ac_cv_prog_lex_yytext_pointer=yes
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4401 LIBS="$ac_save_LIBS"
4402 rm -f "${LEX_OUTPUT_ROOT}.c"
4406 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4407 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4408 cat >> confdefs.h <<\EOF
4409 #define YYTEXT_POINTER 1
4415 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4416 echo "configure:4417: checking whether to enable maintainer-specific portions of Makefiles" >&5
4417 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4418 if test "${enable_maintainer_mode+set}" = set; then
4419 enableval="$enable_maintainer_mode"
4420 USE_MAINTAINER_MODE=$enableval
4422 USE_MAINTAINER_MODE=no
4425 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4428 if test $USE_MAINTAINER_MODE = yes; then
4429 MAINTAINER_MODE_TRUE=
4430 MAINTAINER_MODE_FALSE='#'
4432 MAINTAINER_MODE_TRUE='#'
4433 MAINTAINER_MODE_FALSE=
4435 MAINT=$MAINTAINER_MODE_TRUE
4439 . ${srcdir}/configure.host
4446 for ac_hdr in string.h strings.h stdlib.h unistd.h
4448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4450 echo "configure:4451: checking for $ac_hdr" >&5
4451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4460 { (eval echo configure:4461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4462 if test -z "$ac_err"; then
4464 eval "ac_cv_header_$ac_safe=yes"
4467 echo "configure: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4470 eval "ac_cv_header_$ac_safe=no"
4474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4475 echo "$ac_t""yes" 1>&6
4476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4477 cat >> confdefs.h <<EOF
4478 #define $ac_tr_hdr 1
4482 echo "$ac_t""no" 1>&6
4488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4489 echo "configure:4490: checking for $ac_func" >&5
4490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 /* System header to define __stub macros and hopefully few prototypes,
4497 which can conflict with char $ac_func(); below. */
4499 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4506 /* The GNU C library defines this for functions which it implements
4507 to always fail with ENOSYS. Some functions are actually named
4508 something starting with __ and the normal name is an alias. */
4509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4519 eval "ac_cv_func_$ac_func=yes"
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4524 eval "ac_cv_func_$ac_func=no"
4529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4532 cat >> confdefs.h <<EOF
4533 #define $ac_tr_func 1
4537 echo "$ac_t""no" 1>&6
4542 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4545 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4546 echo "configure:4547: checking for $ac_hdr that defines DIR" >&5
4547 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 #include <sys/types.h>
4559 if { (eval echo configure:4560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4561 eval "ac_cv_header_dirent_$ac_safe=yes"
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4566 eval "ac_cv_header_dirent_$ac_safe=no"
4570 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4571 echo "$ac_t""yes" 1>&6
4572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4573 cat >> confdefs.h <<EOF
4574 #define $ac_tr_hdr 1
4576 ac_header_dirent=$ac_hdr; break
4578 echo "$ac_t""no" 1>&6
4581 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4582 if test $ac_header_dirent = dirent.h; then
4583 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4584 echo "configure:4585: checking for opendir in -ldir" >&5
4585 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 ac_save_LIBS="$LIBS"
4591 cat > conftest.$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4594 /* Override any gcc2 internal prototype to avoid an error. */
4595 /* We use char because int might match the return type of a gcc2
4596 builtin and then its argument prototype would still apply. */
4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4605 eval "ac_cv_lib_$ac_lib_var=yes"
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4610 eval "ac_cv_lib_$ac_lib_var=no"
4613 LIBS="$ac_save_LIBS"
4616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4620 echo "$ac_t""no" 1>&6
4624 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4625 echo "configure:4626: checking for opendir in -lx" >&5
4626 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 ac_save_LIBS="$LIBS"
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4635 /* Override any gcc2 internal prototype to avoid an error. */
4636 /* We use char because int might match the return type of a gcc2
4637 builtin and then its argument prototype would still apply. */
4644 if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646 eval "ac_cv_lib_$ac_lib_var=yes"
4648 echo "configure: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4651 eval "ac_cv_lib_$ac_lib_var=no"
4654 LIBS="$ac_save_LIBS"
4657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4661 echo "$ac_t""no" 1>&6
4669 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
4670 cat >> confdefs.h <<\EOF
4671 #define USE_BINARY_FOPEN 1
4676 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4677 echo "configure:4678: checking whether strstr must be declared" >&5
4678 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4679 echo $ac_n "(cached) $ac_c" 1>&6
4681 cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4686 #ifdef HAVE_STRING_H
4689 #ifdef HAVE_STRINGS_H
4690 #include <strings.h>
4693 #ifdef HAVE_STDLIB_H
4696 #ifdef HAVE_UNISTD_H
4700 char *(*pfn) = (char *(*)) strstr
4703 if { (eval echo configure:4704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4705 bfd_cv_decl_needed_strstr=no
4707 echo "configure: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4710 bfd_cv_decl_needed_strstr=yes
4715 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4716 if test $bfd_cv_decl_needed_strstr = yes; then
4717 cat >> confdefs.h <<\EOF
4718 #define NEED_DECLARATION_STRSTR 1
4723 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4724 echo "configure:4725: checking whether free must be declared" >&5
4725 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4733 #ifdef HAVE_STRING_H
4736 #ifdef HAVE_STRINGS_H
4737 #include <strings.h>
4740 #ifdef HAVE_STDLIB_H
4743 #ifdef HAVE_UNISTD_H
4747 char *(*pfn) = (char *(*)) free
4750 if { (eval echo configure:4751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4752 bfd_cv_decl_needed_free=no
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4757 bfd_cv_decl_needed_free=yes
4762 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4763 if test $bfd_cv_decl_needed_free = yes; then
4764 cat >> confdefs.h <<\EOF
4765 #define NEED_DECLARATION_FREE 1
4770 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4771 echo "configure:4772: checking whether sbrk must be declared" >&5
4772 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4780 #ifdef HAVE_STRING_H
4783 #ifdef HAVE_STRINGS_H
4784 #include <strings.h>
4787 #ifdef HAVE_STDLIB_H
4790 #ifdef HAVE_UNISTD_H
4794 char *(*pfn) = (char *(*)) sbrk
4797 if { (eval echo configure:4798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4799 bfd_cv_decl_needed_sbrk=no
4801 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5
4804 bfd_cv_decl_needed_sbrk=yes
4809 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4810 if test $bfd_cv_decl_needed_sbrk = yes; then
4811 cat >> confdefs.h <<\EOF
4812 #define NEED_DECLARATION_SBRK 1
4817 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4818 echo "configure:4819: checking whether getenv must be declared" >&5
4819 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4827 #ifdef HAVE_STRING_H
4830 #ifdef HAVE_STRINGS_H
4831 #include <strings.h>
4834 #ifdef HAVE_STDLIB_H
4837 #ifdef HAVE_UNISTD_H
4841 char *(*pfn) = (char *(*)) getenv
4844 if { (eval echo configure:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 bfd_cv_decl_needed_getenv=no
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 bfd_cv_decl_needed_getenv=yes
4856 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4857 if test $bfd_cv_decl_needed_getenv = yes; then
4858 cat >> confdefs.h <<\EOF
4859 #define NEED_DECLARATION_GETENV 1
4864 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4865 echo "configure:4866: checking whether environ must be declared" >&5
4866 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4874 #ifdef HAVE_STRING_H
4877 #ifdef HAVE_STRINGS_H
4878 #include <strings.h>
4881 #ifdef HAVE_STDLIB_H
4884 #ifdef HAVE_UNISTD_H
4888 char *(*pfn) = (char *(*)) environ
4891 if { (eval echo configure:4892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4893 bfd_cv_decl_needed_environ=no
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4898 bfd_cv_decl_needed_environ=yes
4903 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
4904 if test $bfd_cv_decl_needed_environ = yes; then
4905 cat >> confdefs.h <<\EOF
4906 #define NEED_DECLARATION_ENVIRON 1
4912 # When converting linker scripts into strings for use in emulation
4913 # files, use astring.sed if the compiler supports ANSI string
4914 # concatenation, or ostring.sed otherwise. This is to support the
4915 # broken Microsoft MSVC compiler, which limits the length of string
4916 # constants, while still supporting pre-ANSI compilers which do not
4917 # support string concatenation.
4918 echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
4919 echo "configure:4920: checking whether ANSI C string concatenation works" >&5
4920 if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4931 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4933 ld_cv_string_concatenation=yes
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 ld_cv_string_concatenation=no
4943 echo "$ac_t""$ld_cv_string_concatenation" 1>&6
4944 if test "$ld_cv_string_concatenation" = "yes"; then
4945 STRINGIFY=astring.sed
4947 STRINGIFY=ostring.sed
4951 # target-specific stuff:
4961 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
4963 if test "$targ_alias" = "all"; then
4966 # Canonicalize the secondary target names.
4967 result=`$ac_config_sub $targ_alias 2>/dev/null`
4968 if test -n "$result"; then
4974 . ${srcdir}/configure.tgt
4976 if test "$targ" = "$target"; then
4980 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
4981 case " $all_emuls " in
4984 all_emuls="$all_emuls e${i}.o"
4985 eval result=\$tdir_$i
4986 test -z "$result" && result=$targ_alias
4987 echo tdir_$i=$result >> tdirs
4992 for i in $targ_emul $targ_extra_libpath; do
4993 case " $all_libpath " in
4996 if test -z "$all_libpath"; then
4999 all_libpath="$all_libpath ${i}"
5005 for i in $targ_extra_ofiles; do
5006 case " $all_emul_extras " in
5009 all_emul_extras="$all_emul_extras ${i}"
5021 if test x${all_targets} = xtrue; then
5022 if test x${want64} = xtrue; then
5023 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
5025 EMULATION_OFILES='$(ALL_EMULATIONS)'
5027 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
5029 EMULATION_OFILES=$all_emuls
5030 EMUL_EXTRA_OFILES=$all_emul_extras
5035 EMULATION_LIBPATH=$all_libpath
5038 if test x${enable_static} = xno; then
5039 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
5041 TESTBFDLIB="../bfd/.libs/libbfd.a"
5045 target_vendor=${target_vendor=$host_vendor}
5046 case "$target_vendor" in
5047 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
5048 *) EXTRA_SHLIB_EXTENSION= ;;
5050 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
5051 cat >> confdefs.h <<EOF
5052 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
5058 cat > confcache <<\EOF
5059 # This file is a shell script that caches the results of configure
5060 # tests run on this system so they can be shared between configure
5061 # scripts and configure runs. It is not useful on other systems.
5062 # If it contains results you don't want to keep, you may remove or edit it.
5064 # By default, configure uses ./config.cache as the cache file,
5065 # creating it if it does not exist already. You can give configure
5066 # the --cache-file=FILE option to use a different cache file; that is
5067 # what configure does when it calls configure scripts in
5068 # subdirectories, so they share the cache.
5069 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5070 # config.status only pays attention to the cache file if you give it the
5071 # --recheck option to rerun configure.
5074 # The following way of writing the cache mishandles newlines in values,
5075 # but we know of no workaround that is simple, portable, and efficient.
5076 # So, don't put newlines in cache variables' values.
5077 # Ultrix sh set writes to stderr and can't be redirected directly,
5078 # and sets the high bit in the cache file unless we assign to the vars.
5080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5082 # `set' does not quote correctly, so add quotes (double-quote substitution
5083 # turns \\\\ into \\, and sed turns \\ into \).
5085 -e "s/'/'\\\\''/g" \
5086 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5089 # `set' quotes correctly as required by POSIX, so do not add quotes.
5090 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5093 if cmp -s $cache_file confcache; then
5096 if test -w $cache_file; then
5097 echo "updating cache $cache_file"
5098 cat confcache > $cache_file
5100 echo "not updating unwritable cache $cache_file"
5105 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5107 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5108 # Let make expand exec_prefix.
5109 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5111 # Any assignment to VPATH causes Sun make to only execute
5112 # the first set of double-colon rules, so remove it if not needed.
5113 # If there is a colon in the path, we need to keep it.
5114 if test "x$srcdir" = x.; then
5115 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5118 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5120 DEFS=-DHAVE_CONFIG_H
5122 # Without the "./", some shells look in PATH for config.status.
5123 : ${CONFIG_STATUS=./config.status}
5125 echo creating $CONFIG_STATUS
5126 rm -f $CONFIG_STATUS
5127 cat > $CONFIG_STATUS <<EOF
5129 # Generated automatically by configure.
5130 # Run this file to recreate the current configuration.
5131 # This directory was configured as follows,
5132 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5134 # $0 $ac_configure_args
5136 # Compiler output produced by configure, useful for debugging
5137 # configure, is in ./config.log if it exists.
5139 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5142 case "\$ac_option" in
5143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5144 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5145 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5146 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5147 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5149 -help | --help | --hel | --he | --h)
5150 echo "\$ac_cs_usage"; exit 0 ;;
5151 *) echo "\$ac_cs_usage"; exit 1 ;;
5155 ac_given_srcdir=$srcdir
5156 ac_given_INSTALL="$INSTALL"
5158 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5160 cat >> $CONFIG_STATUS <<EOF
5162 # Protect against being on the right side of a sed subst in config.status.
5163 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5164 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5168 s%@CFLAGS@%$CFLAGS%g
5169 s%@CPPFLAGS@%$CPPFLAGS%g
5170 s%@CXXFLAGS@%$CXXFLAGS%g
5171 s%@FFLAGS@%$FFLAGS%g
5173 s%@LDFLAGS@%$LDFLAGS%g
5175 s%@exec_prefix@%$exec_prefix%g
5176 s%@prefix@%$prefix%g
5177 s%@program_transform_name@%$program_transform_name%g
5178 s%@bindir@%$bindir%g
5179 s%@sbindir@%$sbindir%g
5180 s%@libexecdir@%$libexecdir%g
5181 s%@datadir@%$datadir%g
5182 s%@sysconfdir@%$sysconfdir%g
5183 s%@sharedstatedir@%$sharedstatedir%g
5184 s%@localstatedir@%$localstatedir%g
5185 s%@libdir@%$libdir%g
5186 s%@includedir@%$includedir%g
5187 s%@oldincludedir@%$oldincludedir%g
5188 s%@infodir@%$infodir%g
5189 s%@mandir@%$mandir%g
5191 s%@host_alias@%$host_alias%g
5192 s%@host_cpu@%$host_cpu%g
5193 s%@host_vendor@%$host_vendor%g
5194 s%@host_os@%$host_os%g
5195 s%@target@%$target%g
5196 s%@target_alias@%$target_alias%g
5197 s%@target_cpu@%$target_cpu%g
5198 s%@target_vendor@%$target_vendor%g
5199 s%@target_os@%$target_os%g
5201 s%@build_alias@%$build_alias%g
5202 s%@build_cpu@%$build_cpu%g
5203 s%@build_vendor@%$build_vendor%g
5204 s%@build_os@%$build_os%g
5205 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5206 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5207 s%@INSTALL_DATA@%$INSTALL_DATA%g
5208 s%@PACKAGE@%$PACKAGE%g
5209 s%@VERSION@%$VERSION%g
5210 s%@ACLOCAL@%$ACLOCAL%g
5211 s%@AUTOCONF@%$AUTOCONF%g
5212 s%@AUTOMAKE@%$AUTOMAKE%g
5213 s%@AUTOHEADER@%$AUTOHEADER%g
5214 s%@MAKEINFO@%$MAKEINFO%g
5215 s%@SET_MAKE@%$SET_MAKE%g
5218 s%@OBJEXT@%$OBJEXT%g
5219 s%@EXEEXT@%$EXEEXT%g
5220 s%@RANLIB@%$RANLIB%g
5222 s%@LIBTOOL@%$LIBTOOL%g
5223 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5225 s%@ALLOCA@%$ALLOCA%g
5226 s%@USE_NLS@%$USE_NLS%g
5227 s%@MSGFMT@%$MSGFMT%g
5228 s%@GMSGFMT@%$GMSGFMT%g
5229 s%@XGETTEXT@%$XGETTEXT%g
5230 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5231 s%@CATALOGS@%$CATALOGS%g
5232 s%@CATOBJEXT@%$CATOBJEXT%g
5233 s%@DATADIRNAME@%$DATADIRNAME%g
5234 s%@GMOFILES@%$GMOFILES%g
5235 s%@INSTOBJEXT@%$INSTOBJEXT%g
5236 s%@INTLDEPS@%$INTLDEPS%g
5237 s%@INTLLIBS@%$INTLLIBS%g
5238 s%@INTLOBJS@%$INTLOBJS%g
5239 s%@POFILES@%$POFILES%g
5241 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5243 s%@GT_YES@%$GT_YES%g
5244 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5248 s%@LEXLIB@%$LEXLIB%g
5249 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5250 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5251 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5253 s%@HDEFINES@%$HDEFINES%g
5254 s%@HOSTING_CRT0@%$HOSTING_CRT0%g
5255 s%@HOSTING_LIBS@%$HOSTING_LIBS%g
5256 s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
5257 s%@STRINGIFY@%$STRINGIFY%g
5261 s%@EMULATION_OFILES@%$EMULATION_OFILES%g
5262 s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
5263 s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
5264 s%@TESTBFDLIB@%$TESTBFDLIB%g
5269 cat >> $CONFIG_STATUS <<\EOF
5271 # Split the substitutions into bite-sized pieces for seds with
5272 # small command number limits, like on Digital OSF/1 and HP-UX.
5273 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5274 ac_file=1 # Number of current file.
5275 ac_beg=1 # First line for current file.
5276 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5279 while $ac_more_lines; do
5280 if test $ac_beg -gt 1; then
5281 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5283 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5285 if test ! -s conftest.s$ac_file; then
5287 rm -f conftest.s$ac_file
5289 if test -z "$ac_sed_cmds"; then
5290 ac_sed_cmds="sed -f conftest.s$ac_file"
5292 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5294 ac_file=`expr $ac_file + 1`
5296 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5299 if test -z "$ac_sed_cmds"; then
5304 cat >> $CONFIG_STATUS <<EOF
5306 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5308 cat >> $CONFIG_STATUS <<\EOF
5309 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5310 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5312 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5313 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5314 *) ac_file_in="${ac_file}.in" ;;
5317 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5319 # Remove last slash and all that follows it. Not all systems have dirname.
5320 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5321 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5322 # The file is in a subdirectory.
5323 test ! -d "$ac_dir" && mkdir "$ac_dir"
5324 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5325 # A "../" for each directory in $ac_dir_suffix.
5326 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5328 ac_dir_suffix= ac_dots=
5331 case "$ac_given_srcdir" in
5333 if test -z "$ac_dots"; then top_srcdir=.
5334 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5335 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5337 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5338 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5341 case "$ac_given_INSTALL" in
5342 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5343 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5346 echo creating "$ac_file"
5348 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5350 *Makefile*) ac_comsub="1i\\
5351 # $configure_input" ;;
5355 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5357 s%@configure_input@%$configure_input%g
5358 s%@srcdir@%$srcdir%g
5359 s%@top_srcdir@%$top_srcdir%g
5360 s%@INSTALL@%$INSTALL%g
5361 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5365 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5366 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5368 # ac_d sets the value in "#define NAME VALUE" lines.
5369 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5370 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5373 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5374 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5375 ac_uB='\([ ]\)%\1#\2define\3'
5378 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5379 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5380 ac_eB='$%\1#\2define\3'
5384 if test "${CONFIG_HEADERS+set}" != set; then
5386 cat >> $CONFIG_STATUS <<EOF
5387 CONFIG_HEADERS="config.h:config.in"
5389 cat >> $CONFIG_STATUS <<\EOF
5391 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5394 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5395 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5396 *) ac_file_in="${ac_file}.in" ;;
5399 echo creating $ac_file
5401 rm -f conftest.frag conftest.in conftest.out
5402 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5403 cat $ac_file_inputs > conftest.in
5407 # Transform confdefs.h into a sed script conftest.vals that substitutes
5408 # the proper values into config.h.in to produce config.h. And first:
5409 # Protect against being on the right side of a sed subst in config.status.
5410 # Protect against being in an unquoted here document in config.status.
5412 cat > conftest.hdr <<\EOF
5415 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5419 sed -n -f conftest.hdr confdefs.h > conftest.vals
5422 # This sed command replaces #undef with comments. This is necessary, for
5423 # example, in the case of _POSIX_SOURCE, which is predefined and required
5424 # on some systems where configure will not decide to define it.
5425 cat >> conftest.vals <<\EOF
5426 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5429 # Break up conftest.vals because some shells have a limit on
5430 # the size of here documents, and old seds have small limits too.
5435 ac_lines=`grep -c . conftest.vals`
5436 # grep -c gives empty output for an empty file on some AIX systems.
5437 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5438 # Write a limited-size here document to conftest.frag.
5439 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5440 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5442 sed -f conftest.frag conftest.in > conftest.out
5444 mv conftest.out conftest.in
5446 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5448 mv conftest.tail conftest.vals
5452 cat >> $CONFIG_STATUS <<\EOF
5453 rm -f conftest.frag conftest.h
5454 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5455 cat conftest.in >> conftest.h
5457 if cmp -s $ac_file conftest.h 2>/dev/null; then
5458 echo "$ac_file is unchanged"
5461 # Remove last slash and all that follows it. Not all systems have dirname.
5462 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5463 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5464 # The file is in a subdirectory.
5465 test ! -d "$ac_dir" && mkdir "$ac_dir"
5468 mv conftest.h $ac_file
5473 cat >> $CONFIG_STATUS <<EOF
5477 cat >> $CONFIG_STATUS <<\EOF
5478 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5479 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5482 chmod +x $CONFIG_STATUS
5483 rm -fr confdefs* $ac_clean_files
5484 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1