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-commonbfdlib build shared BFD/opcodes/libiberty library"
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.
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 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1372 ac_cv_path_NM="$tmp_nm -B"
1374 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1375 ac_cv_path_NM="$tmp_nm -p"
1378 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1379 continue # so that we can try to find one that supports BSD flags
1384 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1389 echo "$ac_t""$NM" 1>&6
1391 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether ln -s works" >&5
1393 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1397 if ln -s X conftestdata 2>/dev/null
1400 ac_cv_prog_LN_S="ln -s"
1405 LN_S="$ac_cv_prog_LN_S"
1406 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1407 echo "$ac_t""yes" 1>&6
1409 echo "$ac_t""no" 1>&6
1412 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1413 echo "configure:1414: checking how to recognise dependant libraries" >&5
1414 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 lt_cv_file_magic_cmd='${MAGIC}'
1418 lt_cv_file_magic_test_file=
1419 lt_cv_deplibs_check_method='unknown'
1420 # Need to set the preceding variable on all platforms that support
1421 # interlibrary dependencies.
1422 # 'none' -- dependencies not supported.
1423 # `unknown' -- same as none, but documents that we really don't know.
1424 # 'pass_all' -- all dependencies passed with no checks.
1425 # 'test_compile' -- check by making test program.
1426 # 'file_magic [regex]' -- check by looking for files in library path
1427 # which responds to the $file_magic_cmd with a given egrep regex.
1428 # If you have `file' or equivalent on your system and you're not sure
1429 # whether `pass_all' will *always* work, you probably want this one.
1433 lt_cv_deplibs_check_method=pass_all
1437 lt_cv_deplibs_check_method=pass_all
1441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1442 lt_cv_file_magic_cmd='/usr/bin/file -L'
1443 lt_cv_file_magic_test_file=/shlib/libc.so
1447 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1448 lt_cv_file_magic_cmd='${OBJDUMP} -f'
1452 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1455 lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
1456 lt_cv_file_magic_cmd=/usr/bin/file
1457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1461 lt_cv_deplibs_check_method=pass_all
1466 lt_cv_deplibs_check_method=pass_all
1470 # TODO: Does this work for hpux-11 too?
1471 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1472 lt_cv_file_magic_cmd=/usr/bin/file
1473 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1479 # this will be overridden with pass_all, but let us keep it just in case
1480 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1484 *-32|*"-32 ") libmagic=32-bit;;
1485 *-n32|*"-n32 ") libmagic=N32;;
1486 *-64|*"-64 ") libmagic=64-bit;;
1487 *) libmagic=never-match;;
1489 # this will be overridden with pass_all, but let us keep it just in case
1490 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1493 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1494 lt_cv_deplibs_check_method=pass_all
1497 # This must be Linux ELF.
1500 alpha* | i*86 | powerpc* | sparc* | ia64* )
1501 lt_cv_deplibs_check_method=pass_all ;;
1503 # glibc up to 2.1.1 does not perform some relocations on ARM
1504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1506 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1510 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1513 lt_cv_file_magic_cmd='/usr/bin/file -L'
1514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1518 osf3* | osf4* | osf5*)
1519 # this will be overridden with pass_all, but let us keep it just in case
1520 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1521 lt_cv_file_magic_test_file=/shlib/libc.so
1522 lt_cv_deplibs_check_method=pass_all
1526 lt_cv_deplibs_check_method=pass_all
1530 lt_cv_deplibs_check_method=pass_all
1531 lt_cv_file_magic_test_file=/lib/libc.so
1534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1535 case "$host_vendor" in
1537 lt_cv_deplibs_check_method=pass_all
1540 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]'
1541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1549 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1550 file_magic_cmd=$lt_cv_file_magic_cmd
1551 deplibs_check_method=$lt_cv_deplibs_check_method
1553 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1554 echo "configure:1555: checking for object suffix" >&5
1555 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1559 echo 'int i = 1;' > conftest.$ac_ext
1560 if { (eval echo configure:1561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1561 for ac_file in conftest.*; do
1564 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1568 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1573 echo "$ac_t""$ac_cv_objext" 1>&6
1574 OBJEXT=$ac_cv_objext
1575 ac_objext=$ac_cv_objext
1579 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1580 echo "configure:1581: checking for executable suffix" >&5
1581 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1588 echo 'int main () { return 0; }' > conftest.$ac_ext
1590 if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1591 for file in conftest.*; do
1593 *.c | *.o | *.obj) ;;
1594 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1598 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1601 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1606 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1607 echo "$ac_t""${ac_cv_exeext}" 1>&6
1610 if test $host != $build; then
1611 ac_tool_prefix=${host_alias}-
1616 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1618 # Only perform the check for file, if the check method requires it
1619 case "$deplibs_check_method" in
1621 if test "$file_magic_cmd" = '${MAGIC}'; then
1622 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1623 echo "configure:1624: checking for ${ac_tool_prefix}file" >&5
1624 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1629 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1632 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1635 ac_save_MAGIC="$MAGIC"
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1637 ac_dummy="/usr/bin:$PATH"
1638 for ac_dir in $ac_dummy; do
1639 test -z "$ac_dir" && ac_dir=.
1640 if test -f $ac_dir/${ac_tool_prefix}file; then
1641 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
1642 if test -n "$file_magic_test_file"; then
1643 case "$deplibs_check_method" in
1645 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1646 MAGIC="$lt_cv_path_MAGIC"
1647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1648 egrep "$file_magic_regex" > /dev/null; then
1653 *** Warning: the command libtool uses to detect shared libraries,
1654 *** $file_magic_cmd, produces output that libtool cannot recognize.
1655 *** The result is that libtool may fail to recognize shared libraries
1656 *** as such. This will affect the creation of libtool libraries that
1657 *** depend on shared libraries, but programs linked with such libtool
1658 *** libraries will work regardless of this problem. Nevertheless, you
1659 *** may want to report the problem to your system manager and/or to
1660 *** bug-libtool@gnu.org
1670 MAGIC="$ac_save_MAGIC"
1675 MAGIC="$lt_cv_path_MAGIC"
1676 if test -n "$MAGIC"; then
1677 echo "$ac_t""$MAGIC" 1>&6
1679 echo "$ac_t""no" 1>&6
1682 if test -z "$lt_cv_path_MAGIC"; then
1683 if test -n "$ac_tool_prefix"; then
1684 echo $ac_n "checking for file""... $ac_c" 1>&6
1685 echo "configure:1686: checking for file" >&5
1686 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1691 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1694 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1697 ac_save_MAGIC="$MAGIC"
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1699 ac_dummy="/usr/bin:$PATH"
1700 for ac_dir in $ac_dummy; do
1701 test -z "$ac_dir" && ac_dir=.
1702 if test -f $ac_dir/file; then
1703 lt_cv_path_MAGIC="$ac_dir/file"
1704 if test -n "$file_magic_test_file"; then
1705 case "$deplibs_check_method" in
1707 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1708 MAGIC="$lt_cv_path_MAGIC"
1709 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1710 egrep "$file_magic_regex" > /dev/null; then
1715 *** Warning: the command libtool uses to detect shared libraries,
1716 *** $file_magic_cmd, produces output that libtool cannot recognize.
1717 *** The result is that libtool may fail to recognize shared libraries
1718 *** as such. This will affect the creation of libtool libraries that
1719 *** depend on shared libraries, but programs linked with such libtool
1720 *** libraries will work regardless of this problem. Nevertheless, you
1721 *** may want to report the problem to your system manager and/or to
1722 *** bug-libtool@gnu.org
1732 MAGIC="$ac_save_MAGIC"
1737 MAGIC="$lt_cv_path_MAGIC"
1738 if test -n "$MAGIC"; then
1739 echo "$ac_t""$MAGIC" 1>&6
1741 echo "$ac_t""no" 1>&6
1753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1754 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1756 echo "configure:1757: checking for $ac_word" >&5
1757 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 if test -n "$RANLIB"; then
1761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1765 for ac_dir in $ac_dummy; do
1766 test -z "$ac_dir" && ac_dir=.
1767 if test -f $ac_dir/$ac_word; then
1768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1775 RANLIB="$ac_cv_prog_RANLIB"
1776 if test -n "$RANLIB"; then
1777 echo "$ac_t""$RANLIB" 1>&6
1779 echo "$ac_t""no" 1>&6
1783 if test -z "$ac_cv_prog_RANLIB"; then
1784 if test -n "$ac_tool_prefix"; then
1785 # Extract the first word of "ranlib", so it can be a program name with args.
1786 set dummy ranlib; ac_word=$2
1787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_word" >&5
1789 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 if test -n "$RANLIB"; then
1793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1797 for ac_dir in $ac_dummy; do
1798 test -z "$ac_dir" && ac_dir=.
1799 if test -f $ac_dir/$ac_word; then
1800 ac_cv_prog_RANLIB="ranlib"
1805 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1808 RANLIB="$ac_cv_prog_RANLIB"
1809 if test -n "$RANLIB"; then
1810 echo "$ac_t""$RANLIB" 1>&6
1812 echo "$ac_t""no" 1>&6
1820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}strip; ac_word=$2
1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_word" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 if test -n "$STRIP"; then
1828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 for ac_dir in $ac_dummy; do
1833 test -z "$ac_dir" && ac_dir=.
1834 if test -f $ac_dir/$ac_word; then
1835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1842 STRIP="$ac_cv_prog_STRIP"
1843 if test -n "$STRIP"; then
1844 echo "$ac_t""$STRIP" 1>&6
1846 echo "$ac_t""no" 1>&6
1850 if test -z "$ac_cv_prog_STRIP"; then
1851 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "strip", so it can be a program name with args.
1853 set dummy strip; ac_word=$2
1854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_word" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 if test -n "$STRIP"; then
1860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1864 for ac_dir in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1867 ac_cv_prog_STRIP="strip"
1872 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1875 STRIP="$ac_cv_prog_STRIP"
1876 if test -n "$STRIP"; then
1877 echo "$ac_t""$STRIP" 1>&6
1879 echo "$ac_t""no" 1>&6
1888 # Check for any special flags to pass to ltconfig.
1889 libtool_flags="--cache-file=$cache_file"
1890 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1891 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1892 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1893 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1894 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1897 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1898 if test "${enable_libtool_lock+set}" = set; then
1899 enableval="$enable_libtool_lock"
1903 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1904 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1906 # Check whether --with-pic or --without-pic was given.
1907 if test "${with_pic+set}" = set; then
1914 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1915 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1917 # Some flags need to be propagated to the compiler or linker for good
1921 # Find out which ABI we are using.
1922 echo '#line 1923 "configure"' > conftest.$ac_ext
1923 if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 case "`/usr/bin/file conftest.o`" in
1940 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1941 SAVE_CFLAGS="$CFLAGS"
1942 CFLAGS="$CFLAGS -belf"
1943 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1944 echo "configure:1945: checking whether the C compiler needs -belf" >&5
1945 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1954 cross_compiling=$ac_cv_prog_cc_cross
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1964 if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966 lt_cv_cc_needs_belf=yes
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 lt_cv_cc_needs_belf=no
1975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1979 cross_compiling=$ac_cv_prog_cc_cross
1983 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1984 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1985 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1986 CFLAGS="$SAVE_CFLAGS"
1994 # Save cache, so that ltconfig can load it
1995 cat > confcache <<\EOF
1996 # This file is a shell script that caches the results of configure
1997 # tests run on this system so they can be shared between configure
1998 # scripts and configure runs. It is not useful on other systems.
1999 # If it contains results you don't want to keep, you may remove or edit it.
2001 # By default, configure uses ./config.cache as the cache file,
2002 # creating it if it does not exist already. You can give configure
2003 # the --cache-file=FILE option to use a different cache file; that is
2004 # what configure does when it calls configure scripts in
2005 # subdirectories, so they share the cache.
2006 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2007 # config.status only pays attention to the cache file if you give it the
2008 # --recheck option to rerun configure.
2011 # The following way of writing the cache mishandles newlines in values,
2012 # but we know of no workaround that is simple, portable, and efficient.
2013 # So, don't put newlines in cache variables' values.
2014 # Ultrix sh set writes to stderr and can't be redirected directly,
2015 # and sets the high bit in the cache file unless we assign to the vars.
2017 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2019 # `set' does not quote correctly, so add quotes (double-quote substitution
2020 # turns \\\\ into \\, and sed turns \\ into \).
2022 -e "s/'/'\\\\''/g" \
2023 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2026 # `set' quotes correctly as required by POSIX, so do not add quotes.
2027 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2030 if cmp -s $cache_file confcache; then
2033 if test -w $cache_file; then
2034 echo "updating cache $cache_file"
2035 cat confcache > $cache_file
2037 echo "not updating unwritable cache $cache_file"
2043 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2044 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2045 MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2046 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2047 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2048 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2049 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2050 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2051 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2052 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2054 # Reload cache, that may have been modified by ltconfig
2055 if test -r "$cache_file"; then
2056 echo "loading cache $cache_file"
2059 echo "creating cache $cache_file"
2064 # This can be used to rebuild libtool when needed
2065 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2067 # Always use our own libtool.
2068 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2070 # Redirect the config.log output again, so that the ltconfig log is not
2071 # clobbered by the next message.
2072 exec 5>>./config.log
2080 # Check whether --enable-targets or --disable-targets was given.
2081 if test "${enable_targets+set}" = set; then
2082 enableval="$enable_targets"
2083 case "${enableval}" in
2084 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2086 no) enable_targets= ;;
2087 *) enable_targets=$enableval ;;
2090 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2091 if test "${enable_commonbfdlib+set}" = set; then
2092 enableval="$enable_commonbfdlib"
2093 case "${enableval}" in
2094 yes) commonbfdlib=true ;;
2095 no) commonbfdlib=false ;;
2096 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2100 build_warnings="-W -Wall"
2101 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2102 if test "${enable_build_warnings+set}" = set; then
2103 enableval="$enable_build_warnings"
2104 case "${enableval}" in
2106 no) build_warnings="-w";;
2107 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2108 build_warnings="${build_warnings} ${t}";;
2109 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2110 build_warnings="${t} ${build_warnings}";;
2111 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2113 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2114 echo "Setting warning flags = $build_warnings" 6>&1
2118 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2119 WARN_CFLAGS="${build_warnings}"
2127 if test -z "$target" ; then
2128 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2130 if test -z "$host" ; then
2131 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2134 # Extract the first word of "gcc", so it can be a program name with args.
2135 set dummy gcc; ac_word=$2
2136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_word" >&5
2138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 if test -n "$CC"; then
2142 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2146 for ac_dir in $ac_dummy; do
2147 test -z "$ac_dir" && ac_dir=.
2148 if test -f $ac_dir/$ac_word; then
2157 if test -n "$CC"; then
2158 echo "$ac_t""$CC" 1>&6
2160 echo "$ac_t""no" 1>&6
2163 if test -z "$CC"; then
2164 # Extract the first word of "cc", so it can be a program name with args.
2165 set dummy cc; ac_word=$2
2166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2167 echo "configure:2168: checking for $ac_word" >&5
2168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2177 for ac_dir in $ac_dummy; do
2178 test -z "$ac_dir" && ac_dir=.
2179 if test -f $ac_dir/$ac_word; then
2180 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2181 ac_prog_rejected=yes
2189 if test $ac_prog_rejected = yes; then
2190 # We found a bogon in the path, so make sure we never use it.
2191 set dummy $ac_cv_prog_CC
2193 if test $# -gt 0; then
2194 # We chose a different compiler from the bogus one.
2195 # However, it has the same basename, so the bogon will be chosen
2196 # first if we set CC to just the basename; use the full file name.
2198 set dummy "$ac_dir/$ac_word" "$@"
2206 if test -n "$CC"; then
2207 echo "$ac_t""$CC" 1>&6
2209 echo "$ac_t""no" 1>&6
2212 if test -z "$CC"; then
2213 case "`uname -s`" in
2215 # Extract the first word of "cl", so it can be a program name with args.
2216 set dummy cl; ac_word=$2
2217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_word" >&5
2219 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2227 for ac_dir in $ac_dummy; do
2228 test -z "$ac_dir" && ac_dir=.
2229 if test -f $ac_dir/$ac_word; then
2238 if test -n "$CC"; then
2239 echo "$ac_t""$CC" 1>&6
2241 echo "$ac_t""no" 1>&6
2246 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2249 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2250 echo "configure:2251: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2253 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2256 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2257 cross_compiling=$ac_cv_prog_cc_cross
2259 cat > conftest.$ac_ext << EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2266 if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2267 ac_cv_prog_cc_works=yes
2268 # If we can't run a trivial program, we are probably using a cross compiler.
2269 if (./conftest; exit) 2>/dev/null; then
2270 ac_cv_prog_cc_cross=no
2272 ac_cv_prog_cc_cross=yes
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 ac_cv_prog_cc_works=no
2281 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2282 ac_cpp='$CPP $CPPFLAGS'
2283 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2284 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2285 cross_compiling=$ac_cv_prog_cc_cross
2287 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2288 if test $ac_cv_prog_cc_works = no; then
2289 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2291 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2292 echo "configure:2293: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2293 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2294 cross_compiling=$ac_cv_prog_cc_cross
2296 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2297 echo "configure:2298: checking whether we are using GNU C" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.c <<EOF
2306 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2313 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2315 if test $ac_cv_prog_gcc = yes; then
2321 ac_test_CFLAGS="${CFLAGS+set}"
2322 ac_save_CFLAGS="$CFLAGS"
2324 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2325 echo "configure:2326: checking whether ${CC-cc} accepts -g" >&5
2326 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 echo 'void f(){}' > conftest.c
2330 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2339 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2340 if test "$ac_test_CFLAGS" = set; then
2341 CFLAGS="$ac_save_CFLAGS"
2342 elif test $ac_cv_prog_cc_g = yes; then
2343 if test "$GCC" = yes; then
2349 if test "$GCC" = yes; then
2357 for ac_prog in 'bison -y' byacc
2359 # Extract the first word of "$ac_prog", so it can be a program name with args.
2360 set dummy $ac_prog; ac_word=$2
2361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2362 echo "configure:2363: checking for $ac_word" >&5
2363 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 if test -n "$YACC"; then
2367 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2371 for ac_dir in $ac_dummy; do
2372 test -z "$ac_dir" && ac_dir=.
2373 if test -f $ac_dir/$ac_word; then
2374 ac_cv_prog_YACC="$ac_prog"
2381 YACC="$ac_cv_prog_YACC"
2382 if test -n "$YACC"; then
2383 echo "$ac_t""$YACC" 1>&6
2385 echo "$ac_t""no" 1>&6
2388 test -n "$YACC" && break
2390 test -n "$YACC" || YACC="yacc"
2392 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2393 echo "configure:2394: checking how to run the C preprocessor" >&5
2394 # On Suns, sometimes $CPP names a directory.
2395 if test -n "$CPP" && test -d "$CPP"; then
2398 if test -z "$CPP"; then
2399 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 # This must be in double quotes, not single quotes, because CPP may get
2403 # substituted into the Makefile and "${CC-cc}" will confuse make.
2405 # On the NeXT, cc -E runs the code through the compiler's parser,
2406 # not just through cpp.
2407 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2414 { (eval echo configure:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2416 if test -z "$ac_err"; then
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 CPP="${CC-cc} -E -traditional-cpp"
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2431 { (eval echo configure:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2433 if test -z "$ac_err"; then
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 CPP="${CC-cc} -nologo -E"
2441 cat > conftest.$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2454 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2464 ac_cv_prog_CPP="$CPP"
2466 CPP="$ac_cv_prog_CPP"
2468 ac_cv_prog_CPP="$CPP"
2470 echo "$ac_t""$CPP" 1>&6
2472 missing_dir=`cd $ac_aux_dir && pwd`
2473 for ac_prog in flex lex
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_word" >&5
2479 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 if test -n "$LEX"; then
2483 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2487 for ac_dir in $ac_dummy; do
2488 test -z "$ac_dir" && ac_dir=.
2489 if test -f $ac_dir/$ac_word; then
2490 ac_cv_prog_LEX="$ac_prog"
2497 LEX="$ac_cv_prog_LEX"
2498 if test -n "$LEX"; then
2499 echo "$ac_t""$LEX" 1>&6
2501 echo "$ac_t""no" 1>&6
2504 test -n "$LEX" && break
2506 test -n "$LEX" || LEX=""$missing_dir/missing flex""
2508 # Extract the first word of "flex", so it can be a program name with args.
2509 set dummy flex; ac_word=$2
2510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2511 echo "configure:2512: checking for $ac_word" >&5
2512 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 if test -n "$LEX"; then
2516 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2520 for ac_dir in $ac_dummy; do
2521 test -z "$ac_dir" && ac_dir=.
2522 if test -f $ac_dir/$ac_word; then
2523 ac_cv_prog_LEX="flex"
2528 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2531 LEX="$ac_cv_prog_LEX"
2532 if test -n "$LEX"; then
2533 echo "$ac_t""$LEX" 1>&6
2535 echo "$ac_t""no" 1>&6
2538 if test -z "$LEXLIB"
2544 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2545 echo "configure:2546: checking for yywrap in -l$ac_lib" >&5
2546 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 ac_save_LIBS="$LIBS"
2551 LIBS="-l$ac_lib $LIBS"
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 /* Override any gcc2 internal prototype to avoid an error. */
2556 /* We use char because int might match the return type of a gcc2
2557 builtin and then its argument prototype would still apply. */
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2566 eval "ac_cv_lib_$ac_lib_var=yes"
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2571 eval "ac_cv_lib_$ac_lib_var=no"
2574 LIBS="$ac_save_LIBS"
2577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2578 echo "$ac_t""yes" 1>&6
2581 echo "$ac_t""no" 1>&6
2586 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2587 echo "configure:2588: checking lex output file root" >&5
2588 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 # The minimal lex program is just a single line: %%. But some broken lexes
2592 # (Solaris, I think it was) want two %% lines, so accommodate them.
2595 if test -f lex.yy.c; then
2596 ac_cv_prog_lex_root=lex.yy
2597 elif test -f lexyy.c; then
2598 ac_cv_prog_lex_root=lexyy
2600 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2604 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2605 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2607 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2608 echo "configure:2609: checking whether yytext is a pointer" >&5
2609 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2612 # POSIX says lex can declare yytext either as a pointer or an array; the
2613 # default is implementation-dependent. Figure out which it is, since
2614 # not all implementations provide the %pointer and %array declarations.
2615 ac_cv_prog_lex_yytext_pointer=no
2616 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2617 ac_save_LIBS="$LIBS"
2618 LIBS="$LIBS $LEXLIB"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 `cat $LEX_OUTPUT_ROOT.c`
2627 if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2629 ac_cv_prog_lex_yytext_pointer=yes
2631 echo "configure: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2635 LIBS="$ac_save_LIBS"
2636 rm -f "${LEX_OUTPUT_ROOT}.c"
2640 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2641 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2642 cat >> confdefs.h <<\EOF
2643 #define YYTEXT_POINTER 1
2650 # Extract the first word of "ranlib", so it can be a program name with args.
2651 set dummy ranlib; ac_word=$2
2652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2653 echo "configure:2654: checking for $ac_word" >&5
2654 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 if test -n "$RANLIB"; then
2658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2662 for ac_dir in $ac_dummy; do
2663 test -z "$ac_dir" && ac_dir=.
2664 if test -f $ac_dir/$ac_word; then
2665 ac_cv_prog_RANLIB="ranlib"
2670 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2673 RANLIB="$ac_cv_prog_RANLIB"
2674 if test -n "$RANLIB"; then
2675 echo "$ac_t""$RANLIB" 1>&6
2677 echo "$ac_t""no" 1>&6
2680 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2681 echo "configure:2682: checking for POSIXized ISC" >&5
2682 if test -d /etc/conf/kconfig.d &&
2683 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2685 echo "$ac_t""yes" 1>&6
2686 ISC=yes # If later tests want to check for ISC.
2687 cat >> confdefs.h <<\EOF
2688 #define _POSIX_SOURCE 1
2691 if test "$GCC" = yes; then
2697 echo "$ac_t""no" 1>&6
2701 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2702 echo "configure:2703: checking for ANSI C header files" >&5
2703 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2719 ac_cv_header_stdc=yes
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 ac_cv_header_stdc=no
2729 if test $ac_cv_header_stdc = yes; then
2730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2737 egrep "memchr" >/dev/null 2>&1; then
2741 ac_cv_header_stdc=no
2747 if test $ac_cv_header_stdc = yes; then
2748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755 egrep "free" >/dev/null 2>&1; then
2759 ac_cv_header_stdc=no
2765 if test $ac_cv_header_stdc = yes; then
2766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2767 if test "$cross_compiling" = yes; then
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2774 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2775 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2777 int main () { int i; for (i = 0; i < 256; i++)
2778 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2782 if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2789 ac_cv_header_stdc=no
2797 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2798 if test $ac_cv_header_stdc = yes; then
2799 cat >> confdefs.h <<\EOF
2800 #define STDC_HEADERS 1
2805 echo $ac_n "checking for working const""... $ac_c" 1>&6
2806 echo "configure:2807: checking for working const" >&5
2807 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2816 /* Ultrix mips cc rejects this. */
2817 typedef int charset[2]; const charset x;
2818 /* SunOS 4.1.1 cc rejects this. */
2819 char const *const *ccp;
2821 /* NEC SVR4.0.2 mips cc rejects this. */
2822 struct point {int x, y;};
2823 static struct point const zero = {0,0};
2824 /* AIX XL C 1.02.0.0 rejects this.
2825 It does not let you subtract one const X* pointer from another in an arm
2826 of an if-expression whose if-part is not a constant expression */
2827 const char *g = "string";
2828 ccp = &g + (g ? g-g : 0);
2829 /* HPUX 7.0 cc rejects these. */
2832 ccp = (char const *const *) p;
2833 { /* SCO 3.2v4 cc rejects this. */
2835 char const *s = 0 ? (char *) 0 : (char const *) 0;
2839 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2841 const int *foo = &x[0];
2844 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2845 typedef const int *iptr;
2849 { /* AIX XL C 1.02.0.0 rejects this saying
2850 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2851 struct s { int j; const int *ap[3]; };
2852 struct s *b; b->j = 5;
2854 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2860 if { (eval echo configure:2861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2872 echo "$ac_t""$ac_cv_c_const" 1>&6
2873 if test $ac_cv_c_const = no; then
2874 cat >> confdefs.h <<\EOF
2880 echo $ac_n "checking for inline""... $ac_c" 1>&6
2881 echo "configure:2882: checking for inline" >&5
2882 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2886 for ac_kw in inline __inline__ __inline; do
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2895 if { (eval echo configure:2896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2897 ac_cv_c_inline=$ac_kw; break
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2907 echo "$ac_t""$ac_cv_c_inline" 1>&6
2908 case "$ac_cv_c_inline" in
2910 no) cat >> confdefs.h <<\EOF
2914 *) cat >> confdefs.h <<EOF
2915 #define inline $ac_cv_c_inline
2920 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2921 echo "configure:2922: checking for off_t" >&5
2922 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 cat > conftest.$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2928 #include <sys/types.h>
2934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2935 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2937 ac_cv_type_off_t=yes
2945 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2946 if test $ac_cv_type_off_t = no; then
2947 cat >> confdefs.h <<\EOF
2953 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2954 echo "configure:2955: checking for size_t" >&5
2955 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <sys/types.h>
2967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2968 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2970 ac_cv_type_size_t=yes
2973 ac_cv_type_size_t=no
2978 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2979 if test $ac_cv_type_size_t = no; then
2980 cat >> confdefs.h <<\EOF
2981 #define size_t unsigned
2986 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2987 # for constant arguments. Useless!
2988 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2989 echo "configure:2990: checking for working alloca.h" >&5
2990 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2998 char *p = alloca(2 * sizeof(int));
3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3003 ac_cv_header_alloca_h=yes
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3008 ac_cv_header_alloca_h=no
3013 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3014 if test $ac_cv_header_alloca_h = yes; then
3015 cat >> confdefs.h <<\EOF
3016 #define HAVE_ALLOCA_H 1
3021 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3022 echo "configure:3023: checking for alloca" >&5
3023 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3031 # define alloca __builtin_alloca
3034 # include <malloc.h>
3035 # define alloca _alloca
3038 # include <alloca.h>
3043 # ifndef alloca /* predefined by HP cc +Olibcalls */
3052 char *p = (char *) alloca(1);
3055 if { (eval echo configure:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3057 ac_cv_func_alloca_works=yes
3059 echo "configure: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3062 ac_cv_func_alloca_works=no
3067 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3068 if test $ac_cv_func_alloca_works = yes; then
3069 cat >> confdefs.h <<\EOF
3070 #define HAVE_ALLOCA 1
3075 if test $ac_cv_func_alloca_works = no; then
3076 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3077 # that cause trouble. Some versions do not even contain alloca or
3078 # contain a buggy version. If you still want to use their alloca,
3079 # use ar to extract alloca.o from them instead of compiling alloca.c.
3080 ALLOCA=alloca.${ac_objext}
3081 cat >> confdefs.h <<\EOF
3086 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3087 echo "configure:3088: checking whether alloca needs Cray hooks" >&5
3088 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 cat > conftest.$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3094 #if defined(CRAY) && ! defined(CRAY2)
3101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3102 egrep "webecray" >/dev/null 2>&1; then
3113 echo "$ac_t""$ac_cv_os_cray" 1>&6
3114 if test $ac_cv_os_cray = yes; then
3115 for ac_func in _getb67 GETB67 getb67; do
3116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_func" >&5
3118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3124 /* System header to define __stub macros and hopefully few prototypes,
3125 which can conflict with char $ac_func(); below. */
3127 /* Override any gcc2 internal prototype to avoid an error. */
3128 /* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3134 /* The GNU C library defines this for functions which it implements
3135 to always fail with ENOSYS. Some functions are actually named
3136 something starting with __ and the normal name is an alias. */
3137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3145 if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3147 eval "ac_cv_func_$ac_func=yes"
3149 echo "configure: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3152 eval "ac_cv_func_$ac_func=no"
3157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3158 echo "$ac_t""yes" 1>&6
3159 cat >> confdefs.h <<EOF
3160 #define CRAY_STACKSEG_END $ac_func
3165 echo "$ac_t""no" 1>&6
3171 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3172 echo "configure:3173: checking stack direction for C alloca" >&5
3173 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 if test "$cross_compiling" = yes; then
3177 ac_cv_c_stack_direction=0
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 find_stack_direction ()
3184 static char *addr = 0;
3189 return find_stack_direction ();
3192 return (&dummy > addr) ? 1 : -1;
3196 exit (find_stack_direction() < 0);
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3201 ac_cv_c_stack_direction=1
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 ac_cv_c_stack_direction=-1
3213 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3214 cat >> confdefs.h <<EOF
3215 #define STACK_DIRECTION $ac_cv_c_stack_direction
3220 for ac_hdr in unistd.h
3222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3224 echo "configure:3225: checking for $ac_hdr" >&5
3225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3234 { (eval echo configure:3235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3236 if test -z "$ac_err"; then
3238 eval "ac_cv_header_$ac_safe=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3244 eval "ac_cv_header_$ac_safe=no"
3248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3249 echo "$ac_t""yes" 1>&6
3250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3251 cat >> confdefs.h <<EOF
3252 #define $ac_tr_hdr 1
3256 echo "$ac_t""no" 1>&6
3260 for ac_func in getpagesize
3262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3263 echo "configure:3264: checking for $ac_func" >&5
3264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 /* System header to define __stub macros and hopefully few prototypes,
3271 which can conflict with char $ac_func(); below. */
3273 /* Override any gcc2 internal prototype to avoid an error. */
3274 /* We use char because int might match the return type of a gcc2
3275 builtin and then its argument prototype would still apply. */
3280 /* The GNU C library defines this for functions which it implements
3281 to always fail with ENOSYS. Some functions are actually named
3282 something starting with __ and the normal name is an alias. */
3283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3291 if { (eval echo configure:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3293 eval "ac_cv_func_$ac_func=yes"
3295 echo "configure: failed program was:" >&5
3296 cat conftest.$ac_ext >&5
3298 eval "ac_cv_func_$ac_func=no"
3303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3306 cat >> confdefs.h <<EOF
3307 #define $ac_tr_func 1
3311 echo "$ac_t""no" 1>&6
3315 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3316 echo "configure:3317: checking for working mmap" >&5
3317 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 if test "$cross_compiling" = yes; then
3321 ac_cv_func_mmap_fixed_mapped=no
3323 cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3327 /* Thanks to Mike Haertel and Jim Avera for this test.
3328 Here is a matrix of mmap possibilities:
3329 mmap private not fixed
3330 mmap private fixed at somewhere currently unmapped
3331 mmap private fixed at somewhere already mapped
3332 mmap shared not fixed
3333 mmap shared fixed at somewhere currently unmapped
3334 mmap shared fixed at somewhere already mapped
3335 For private mappings, we should verify that changes cannot be read()
3336 back from the file, nor mmap's back from the file at a different
3337 address. (There have been systems where private was not correctly
3338 implemented like the infamous i386 svr4.0, and systems where the
3339 VM page cache was not coherent with the filesystem buffer cache
3340 like early versions of FreeBSD and possibly contemporary NetBSD.)
3341 For shared mappings, we should conversely verify that changes get
3342 propogated back to all the places they're supposed to be.
3344 Grep wants private fixed already mapped.
3345 The main things grep needs to know about mmap are:
3346 * does it exist and is it safe to write into the mmap'd area
3347 * how to use it (BSD variants) */
3348 #include <sys/types.h>
3350 #include <sys/mman.h>
3352 /* This mess was copied from the GNU getpagesize.h. */
3353 #ifndef HAVE_GETPAGESIZE
3354 # ifdef HAVE_UNISTD_H
3355 # include <unistd.h>
3358 /* Assume that all systems that can run configure have sys/param.h. */
3359 # ifndef HAVE_SYS_PARAM_H
3360 # define HAVE_SYS_PARAM_H 1
3363 # ifdef _SC_PAGESIZE
3364 # define getpagesize() sysconf(_SC_PAGESIZE)
3365 # else /* no _SC_PAGESIZE */
3366 # ifdef HAVE_SYS_PARAM_H
3367 # include <sys/param.h>
3368 # ifdef EXEC_PAGESIZE
3369 # define getpagesize() EXEC_PAGESIZE
3370 # else /* no EXEC_PAGESIZE */
3372 # define getpagesize() NBPG * CLSIZE
3375 # endif /* no CLSIZE */
3376 # else /* no NBPG */
3378 # define getpagesize() NBPC
3379 # else /* no NBPC */
3381 # define getpagesize() PAGESIZE
3382 # endif /* PAGESIZE */
3383 # endif /* no NBPC */
3384 # endif /* no NBPG */
3385 # endif /* no EXEC_PAGESIZE */
3386 # else /* no HAVE_SYS_PARAM_H */
3387 # define getpagesize() 8192 /* punt totally */
3388 # endif /* no HAVE_SYS_PARAM_H */
3389 # endif /* no _SC_PAGESIZE */
3391 #endif /* no HAVE_GETPAGESIZE */
3394 extern "C" { void *malloc(unsigned); }
3402 char *data, *data2, *data3;
3406 pagesize = getpagesize();
3409 * First, make a file with some known garbage in it.
3411 data = malloc(pagesize);
3414 for (i = 0; i < pagesize; ++i)
3415 *(data + i) = rand();
3417 fd = creat("conftestmmap", 0600);
3420 if (write(fd, data, pagesize) != pagesize)
3425 * Next, try to mmap the file at a fixed address which
3426 * already has something else allocated at it. If we can,
3427 * also make sure that we see the same garbage.
3429 fd = open("conftestmmap", O_RDWR);
3432 data2 = malloc(2 * pagesize);
3435 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3436 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3437 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3439 for (i = 0; i < pagesize; ++i)
3440 if (*(data + i) != *(data2 + i))
3444 * Finally, make sure that changes to the mapped area
3445 * do not percolate back to the file as seen by read().
3446 * (This is a bug on some variants of i386 svr4.0.)
3448 for (i = 0; i < pagesize; ++i)
3449 *(data2 + i) = *(data2 + i) + 1;
3450 data3 = malloc(pagesize);
3453 if (read(fd, data3, pagesize) != pagesize)
3455 for (i = 0; i < pagesize; ++i)
3456 if (*(data + i) != *(data3 + i))
3459 unlink("conftestmmap");
3464 if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3466 ac_cv_func_mmap_fixed_mapped=yes
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3471 ac_cv_func_mmap_fixed_mapped=no
3478 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3479 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3480 cat >> confdefs.h <<\EOF
3487 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3488 unistd.h values.h sys/param.h
3490 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_hdr" >&5
3493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3502 { (eval echo configure:3503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3504 if test -z "$ac_err"; then
3506 eval "ac_cv_header_$ac_safe=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 eval "ac_cv_header_$ac_safe=no"
3516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3519 cat >> confdefs.h <<EOF
3520 #define $ac_tr_hdr 1
3524 echo "$ac_t""no" 1>&6
3528 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3529 __argz_count __argz_stringify __argz_next
3531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3532 echo "configure:3533: checking for $ac_func" >&5
3533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* System header to define __stub macros and hopefully few prototypes,
3540 which can conflict with char $ac_func(); below. */
3542 /* Override any gcc2 internal prototype to avoid an error. */
3543 /* We use char because int might match the return type of a gcc2
3544 builtin and then its argument prototype would still apply. */
3549 /* The GNU C library defines this for functions which it implements
3550 to always fail with ENOSYS. Some functions are actually named
3551 something starting with __ and the normal name is an alias. */
3552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3562 eval "ac_cv_func_$ac_func=yes"
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3567 eval "ac_cv_func_$ac_func=no"
3572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3573 echo "$ac_t""yes" 1>&6
3574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3575 cat >> confdefs.h <<EOF
3576 #define $ac_tr_func 1
3580 echo "$ac_t""no" 1>&6
3585 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3586 for ac_func in stpcpy
3588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3589 echo "configure:3590: checking for $ac_func" >&5
3590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 /* System header to define __stub macros and hopefully few prototypes,
3597 which can conflict with char $ac_func(); below. */
3599 /* Override any gcc2 internal prototype to avoid an error. */
3600 /* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3606 /* The GNU C library defines this for functions which it implements
3607 to always fail with ENOSYS. Some functions are actually named
3608 something starting with __ and the normal name is an alias. */
3609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3617 if { (eval echo configure:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3619 eval "ac_cv_func_$ac_func=yes"
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3624 eval "ac_cv_func_$ac_func=no"
3629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3632 cat >> confdefs.h <<EOF
3633 #define $ac_tr_func 1
3637 echo "$ac_t""no" 1>&6
3642 if test "${ac_cv_func_stpcpy}" = "yes"; then
3643 cat >> confdefs.h <<\EOF
3644 #define HAVE_STPCPY 1
3649 if test $ac_cv_header_locale_h = yes; then
3650 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3651 echo "configure:3652: checking for LC_MESSAGES" >&5
3652 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3665 am_cv_val_LC_MESSAGES=yes
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3670 am_cv_val_LC_MESSAGES=no
3675 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3676 if test $am_cv_val_LC_MESSAGES = yes; then
3677 cat >> confdefs.h <<\EOF
3678 #define HAVE_LC_MESSAGES 1
3683 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3684 echo "configure:3685: checking whether NLS is requested" >&5
3685 # Check whether --enable-nls or --disable-nls was given.
3686 if test "${enable_nls+set}" = set; then
3687 enableval="$enable_nls"
3693 echo "$ac_t""$USE_NLS" 1>&6
3696 USE_INCLUDED_LIBINTL=no
3698 if test "$USE_NLS" = "yes"; then
3699 cat >> confdefs.h <<\EOF
3700 #define ENABLE_NLS 1
3703 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3704 echo "configure:3705: checking whether included gettext is requested" >&5
3705 # Check whether --with-included-gettext or --without-included-gettext was given.
3706 if test "${with_included_gettext+set}" = set; then
3707 withval="$with_included_gettext"
3708 nls_cv_force_use_gnu_gettext=$withval
3710 nls_cv_force_use_gnu_gettext=no
3713 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3715 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3716 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3718 nls_cv_header_libgt=
3721 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3722 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3723 echo "configure:3724: checking for libintl.h" >&5
3724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <libintl.h>
3732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3733 { (eval echo configure:3734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3735 if test -z "$ac_err"; then
3737 eval "ac_cv_header_$ac_safe=yes"
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3743 eval "ac_cv_header_$ac_safe=no"
3747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3748 echo "$ac_t""yes" 1>&6
3749 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3750 echo "configure:3751: checking for gettext in libc" >&5
3751 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 cat > conftest.$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3757 #include <libintl.h>
3759 return (int) gettext ("")
3762 if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3764 gt_cv_func_gettext_libc=yes
3766 echo "configure: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3769 gt_cv_func_gettext_libc=no
3774 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3776 if test "$gt_cv_func_gettext_libc" != "yes"; then
3777 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3778 echo "configure:3779: checking for bindtextdomain in -lintl" >&5
3779 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3783 ac_save_LIBS="$LIBS"
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3791 char bindtextdomain();
3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3799 eval "ac_cv_lib_$ac_lib_var=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_lib_$ac_lib_var=no"
3807 LIBS="$ac_save_LIBS"
3810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3813 echo "configure:3814: checking for gettext in libintl" >&5
3814 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3822 return (int) gettext ("")
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3827 gt_cv_func_gettext_libintl=yes
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 gt_cv_func_gettext_libintl=no
3837 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3839 echo "$ac_t""no" 1>&6
3844 if test "$gt_cv_func_gettext_libc" = "yes" \
3845 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3846 cat >> confdefs.h <<\EOF
3847 #define HAVE_GETTEXT 1
3850 # Extract the first word of "msgfmt", so it can be a program name with args.
3851 set dummy msgfmt; ac_word=$2
3852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3853 echo "configure:3854: checking for $ac_word" >&5
3854 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3859 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3863 for ac_dir in $PATH; do
3864 test -z "$ac_dir" && ac_dir=.
3865 if test -f $ac_dir/$ac_word; then
3866 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3867 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3873 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3877 MSGFMT="$ac_cv_path_MSGFMT"
3878 if test -n "$MSGFMT"; then
3879 echo "$ac_t""$MSGFMT" 1>&6
3881 echo "$ac_t""no" 1>&6
3883 if test "$MSGFMT" != "no"; then
3884 for ac_func in dcgettext
3886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3887 echo "configure:3888: checking for $ac_func" >&5
3888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 /* System header to define __stub macros and hopefully few prototypes,
3895 which can conflict with char $ac_func(); below. */
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3904 /* The GNU C library defines this for functions which it implements
3905 to always fail with ENOSYS. Some functions are actually named
3906 something starting with __ and the normal name is an alias. */
3907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3917 eval "ac_cv_func_$ac_func=yes"
3919 echo "configure: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3922 eval "ac_cv_func_$ac_func=no"
3927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3930 cat >> confdefs.h <<EOF
3931 #define $ac_tr_func 1
3935 echo "$ac_t""no" 1>&6
3939 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3940 set dummy gmsgfmt; ac_word=$2
3941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3942 echo "configure:3943: checking for $ac_word" >&5
3943 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3948 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3951 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3956 for ac_dir in $ac_dummy; do
3957 test -z "$ac_dir" && ac_dir=.
3958 if test -f $ac_dir/$ac_word; then
3959 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3964 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3968 GMSGFMT="$ac_cv_path_GMSGFMT"
3969 if test -n "$GMSGFMT"; then
3970 echo "$ac_t""$GMSGFMT" 1>&6
3972 echo "$ac_t""no" 1>&6
3975 # Extract the first word of "xgettext", so it can be a program name with args.
3976 set dummy xgettext; ac_word=$2
3977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3978 echo "configure:3979: checking for $ac_word" >&5
3979 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3984 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3988 for ac_dir in $PATH; do
3989 test -z "$ac_dir" && ac_dir=.
3990 if test -f $ac_dir/$ac_word; then
3991 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3992 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3998 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4002 XGETTEXT="$ac_cv_path_XGETTEXT"
4003 if test -n "$XGETTEXT"; then
4004 echo "$ac_t""$XGETTEXT" 1>&6
4006 echo "$ac_t""no" 1>&6
4009 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4014 extern int _nl_msg_cat_cntr;
4015 return _nl_msg_cat_cntr
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4023 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4035 echo "$ac_t""no" 1>&6
4040 if test "$CATOBJEXT" = "NONE"; then
4041 nls_cv_use_gnu_gettext=yes
4045 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4046 INTLOBJS="\$(GETTOBJS)"
4047 # Extract the first word of "msgfmt", so it can be a program name with args.
4048 set dummy msgfmt; ac_word=$2
4049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4050 echo "configure:4051: checking for $ac_word" >&5
4051 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4056 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4060 for ac_dir in $PATH; do
4061 test -z "$ac_dir" && ac_dir=.
4062 if test -f $ac_dir/$ac_word; then
4063 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4064 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4070 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4074 MSGFMT="$ac_cv_path_MSGFMT"
4075 if test -n "$MSGFMT"; then
4076 echo "$ac_t""$MSGFMT" 1>&6
4078 echo "$ac_t""no" 1>&6
4081 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4082 set dummy gmsgfmt; ac_word=$2
4083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_word" >&5
4085 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4090 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4093 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4098 for ac_dir in $ac_dummy; do
4099 test -z "$ac_dir" && ac_dir=.
4100 if test -f $ac_dir/$ac_word; then
4101 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4106 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4110 GMSGFMT="$ac_cv_path_GMSGFMT"
4111 if test -n "$GMSGFMT"; then
4112 echo "$ac_t""$GMSGFMT" 1>&6
4114 echo "$ac_t""no" 1>&6
4117 # Extract the first word of "xgettext", so it can be a program name with args.
4118 set dummy xgettext; ac_word=$2
4119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4120 echo "configure:4121: checking for $ac_word" >&5
4121 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4126 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4130 for ac_dir in $PATH; do
4131 test -z "$ac_dir" && ac_dir=.
4132 if test -f $ac_dir/$ac_word; then
4133 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4134 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4140 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4144 XGETTEXT="$ac_cv_path_XGETTEXT"
4145 if test -n "$XGETTEXT"; then
4146 echo "$ac_t""$XGETTEXT" 1>&6
4148 echo "$ac_t""no" 1>&6
4152 USE_INCLUDED_LIBINTL=yes
4156 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4158 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4159 nls_cv_header_intl=libintl.h
4160 nls_cv_header_libgt=libgettext.h
4163 if test "$XGETTEXT" != ":"; then
4164 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4167 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4172 # We need to process the po/ directory.
4176 nls_cv_header_intl=libintl.h
4177 nls_cv_header_libgt=libgettext.h
4180 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4181 # because some of the sources are only built for this goal.
4182 if test "$PACKAGE" = gettext; then
4184 USE_INCLUDED_LIBINTL=yes
4187 for lang in $ALL_LINGUAS; do
4188 GMOFILES="$GMOFILES $lang.gmo"
4189 POFILES="$POFILES $lang.po"
4205 if test "x$CATOBJEXT" != "x"; then
4206 if test "x$ALL_LINGUAS" = "x"; then
4209 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4210 echo "configure:4211: checking for catalogs to be installed" >&5
4212 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4213 case "$ALL_LINGUAS" in
4214 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4217 LINGUAS=$NEW_LINGUAS
4218 echo "$ac_t""$LINGUAS" 1>&6
4221 if test -n "$LINGUAS"; then
4222 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4226 if test $ac_cv_header_locale_h = yes; then
4227 INCLUDE_LOCALE_H="#include <locale.h>"
4230 /* The system does not provide the header <locale.h>. Take care yourself. */"
4234 if test -f $srcdir/po2tbl.sed.in; then
4235 if test "$CATOBJEXT" = ".cat"; then
4236 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4237 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4238 echo "configure:4239: checking for linux/version.h" >&5
4239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 #include <linux/version.h>
4247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4248 { (eval echo configure:4249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4250 if test -z "$ac_err"; then
4252 eval "ac_cv_header_$ac_safe=yes"
4255 echo "configure: failed program was:" >&5
4256 cat conftest.$ac_ext >&5
4258 eval "ac_cv_header_$ac_safe=no"
4262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4266 echo "$ac_t""no" 1>&6
4271 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4273 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4274 $srcdir/po2tbl.sed.in > po2tbl.sed
4277 if test "$PACKAGE" = "gettext"; then
4287 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4293 if test -d $srcdir/po; then
4294 test -d po || mkdir po
4295 if test "x$srcdir" != "x."; then
4296 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4297 posrcprefix="$srcdir/"
4299 posrcprefix="../$srcdir/"
4305 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4306 < $srcdir/po/POTFILES.in > po/POTFILES
4310 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4311 echo "configure:4312: checking whether to enable maintainer-specific portions of Makefiles" >&5
4312 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4313 if test "${enable_maintainer_mode+set}" = set; then
4314 enableval="$enable_maintainer_mode"
4315 USE_MAINTAINER_MODE=$enableval
4317 USE_MAINTAINER_MODE=no
4320 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4323 if test $USE_MAINTAINER_MODE = yes; then
4324 MAINTAINER_MODE_TRUE=
4325 MAINTAINER_MODE_FALSE='#'
4327 MAINTAINER_MODE_TRUE='#'
4328 MAINTAINER_MODE_FALSE=
4330 MAINT=$MAINTAINER_MODE_TRUE
4335 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4336 echo "configure:4337: checking for executable suffix" >&5
4337 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4340 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4344 echo 'int main () { return 0; }' > conftest.$ac_ext
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4347 for file in conftest.*; do
4349 *.c | *.o | *.obj) ;;
4350 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4354 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4357 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4362 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4363 echo "$ac_t""${ac_cv_exeext}" 1>&6
4366 if test -n "$EXEEXT"; then
4367 cat >> confdefs.h <<\EOF
4368 #define HAVE_EXECUTABLE_SUFFIX 1
4372 cat >> confdefs.h <<EOF
4373 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4377 # host-specific stuff:
4381 . ${srcdir}/../bfd/configure.host
4386 # Extract the first word of "ranlib", so it can be a program name with args.
4387 set dummy ranlib; ac_word=$2
4388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4389 echo "configure:4390: checking for $ac_word" >&5
4390 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 if test -n "$RANLIB"; then
4394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4398 for ac_dir in $ac_dummy; do
4399 test -z "$ac_dir" && ac_dir=.
4400 if test -f $ac_dir/$ac_word; then
4401 ac_cv_prog_RANLIB="ranlib"
4406 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4409 RANLIB="$ac_cv_prog_RANLIB"
4410 if test -n "$RANLIB"; then
4411 echo "$ac_t""$RANLIB" 1>&6
4413 echo "$ac_t""no" 1>&6
4416 # Find a good install program. We prefer a C program (faster),
4417 # so one script is as good as another. But avoid the broken or
4418 # incompatible versions:
4419 # SysV /etc/install, /usr/sbin/install
4420 # SunOS /usr/etc/install
4421 # IRIX /sbin/install
4423 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4424 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4425 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4426 # ./install, which can be erroneously created by make from ./install.sh.
4427 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4428 echo "configure:4429: checking for a BSD compatible install" >&5
4429 if test -z "$INSTALL"; then
4430 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4433 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4434 for ac_dir in $PATH; do
4435 # Account for people who put trailing slashes in PATH elements.
4437 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4439 # OSF1 and SCO ODT 3.0 have their own names for install.
4440 # Don't use installbsd from OSF since it installs stuff as root
4442 for ac_prog in ginstall scoinst install; do
4443 if test -f $ac_dir/$ac_prog; then
4444 if test $ac_prog = install &&
4445 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4446 # AIX install. It has an incompatible calling convention.
4449 ac_cv_path_install="$ac_dir/$ac_prog -c"
4460 if test "${ac_cv_path_install+set}" = set; then
4461 INSTALL="$ac_cv_path_install"
4463 # As a last resort, use the slow shell script. We don't cache a
4464 # path for INSTALL within a source directory, because that will
4465 # break other packages using the cache if that directory is
4466 # removed, or if the path is relative.
4467 INSTALL="$ac_install_sh"
4470 echo "$ac_t""$INSTALL" 1>&6
4472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4473 # It thinks the first close brace ends the variable substitution.
4474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4481 # Put a plausible default for CC_FOR_BUILD in Makefile.
4482 if test -z "$CC_FOR_BUILD"; then
4483 if test "x$cross_compiling" = "xno"; then
4484 CC_FOR_BUILD='$(CC)'
4490 # Also set EXEEXT_FOR_BUILD.
4491 if test "x$cross_compiling" = "xno"; then
4492 EXEEXT_FOR_BUILD='$(EXEEXT)'
4494 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4495 echo "configure:4496: checking for build system executable suffix" >&5
4496 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4500 echo 'int main () { return 0; }' > conftest.c
4501 bfd_cv_build_exeext=
4502 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4503 for file in conftest.*; do
4505 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4506 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4510 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4513 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4515 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4519 DEMANGLER_NAME=c++filt
4521 *-*-go32* | *-*-msdos*)
4522 DEMANGLER_NAME=cxxfilt
4526 for ac_hdr in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
4528 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4530 echo "configure:4531: checking for $ac_hdr" >&5
4531 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4540 { (eval echo configure:4541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4542 if test -z "$ac_err"; then
4544 eval "ac_cv_header_$ac_safe=yes"
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4550 eval "ac_cv_header_$ac_safe=no"
4554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4557 cat >> confdefs.h <<EOF
4558 #define $ac_tr_hdr 1
4562 echo "$ac_t""no" 1>&6
4566 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4567 echo "configure:4568: checking for sys/wait.h that is POSIX.1 compatible" >&5
4568 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 #include <sys/types.h>
4575 #include <sys/wait.h>
4577 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4580 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4585 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4588 if { (eval echo configure:4589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4590 ac_cv_header_sys_wait_h=yes
4592 echo "configure: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4595 ac_cv_header_sys_wait_h=no
4600 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4601 if test $ac_cv_header_sys_wait_h = yes; then
4602 cat >> confdefs.h <<\EOF
4603 #define HAVE_SYS_WAIT_H 1
4608 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4609 # for constant arguments. Useless!
4610 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4611 echo "configure:4612: checking for working alloca.h" >&5
4612 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4620 char *p = alloca(2 * sizeof(int));
4623 if { (eval echo configure:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4625 ac_cv_header_alloca_h=yes
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4630 ac_cv_header_alloca_h=no
4635 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4636 if test $ac_cv_header_alloca_h = yes; then
4637 cat >> confdefs.h <<\EOF
4638 #define HAVE_ALLOCA_H 1
4643 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4644 echo "configure:4645: checking for alloca" >&5
4645 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4653 # define alloca __builtin_alloca
4656 # include <malloc.h>
4657 # define alloca _alloca
4660 # include <alloca.h>
4665 # ifndef alloca /* predefined by HP cc +Olibcalls */
4674 char *p = (char *) alloca(1);
4677 if { (eval echo configure:4678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4679 ac_cv_func_alloca_works=yes
4681 echo "configure: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4684 ac_cv_func_alloca_works=no
4689 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4690 if test $ac_cv_func_alloca_works = yes; then
4691 cat >> confdefs.h <<\EOF
4692 #define HAVE_ALLOCA 1
4697 if test $ac_cv_func_alloca_works = no; then
4698 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4699 # that cause trouble. Some versions do not even contain alloca or
4700 # contain a buggy version. If you still want to use their alloca,
4701 # use ar to extract alloca.o from them instead of compiling alloca.c.
4702 ALLOCA=alloca.${ac_objext}
4703 cat >> confdefs.h <<\EOF
4708 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4709 echo "configure:4710: checking whether alloca needs Cray hooks" >&5
4710 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4713 cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4716 #if defined(CRAY) && ! defined(CRAY2)
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 egrep "webecray" >/dev/null 2>&1; then
4735 echo "$ac_t""$ac_cv_os_cray" 1>&6
4736 if test $ac_cv_os_cray = yes; then
4737 for ac_func in _getb67 GETB67 getb67; do
4738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4739 echo "configure:4740: checking for $ac_func" >&5
4740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 /* System header to define __stub macros and hopefully few prototypes,
4747 which can conflict with char $ac_func(); below. */
4749 /* Override any gcc2 internal prototype to avoid an error. */
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4756 /* The GNU C library defines this for functions which it implements
4757 to always fail with ENOSYS. Some functions are actually named
4758 something starting with __ and the normal name is an alias. */
4759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4767 if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4769 eval "ac_cv_func_$ac_func=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 eval "ac_cv_func_$ac_func=no"
4779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 cat >> confdefs.h <<EOF
4782 #define CRAY_STACKSEG_END $ac_func
4787 echo "$ac_t""no" 1>&6
4793 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4794 echo "configure:4795: checking stack direction for C alloca" >&5
4795 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 if test "$cross_compiling" = yes; then
4799 ac_cv_c_stack_direction=0
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 find_stack_direction ()
4806 static char *addr = 0;
4811 return find_stack_direction ();
4814 return (&dummy > addr) ? 1 : -1;
4818 exit (find_stack_direction() < 0);
4821 if { (eval echo configure:4822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4823 ac_cv_c_stack_direction=1
4825 echo "configure: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4828 ac_cv_c_stack_direction=-1
4835 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4836 cat >> confdefs.h <<EOF
4837 #define STACK_DIRECTION $ac_cv_c_stack_direction
4842 for ac_func in sbrk utimes setmode
4844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4845 echo "configure:4846: checking for $ac_func" >&5
4846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 /* System header to define __stub macros and hopefully few prototypes,
4853 which can conflict with char $ac_func(); below. */
4855 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4862 /* The GNU C library defines this for functions which it implements
4863 to always fail with ENOSYS. Some functions are actually named
4864 something starting with __ and the normal name is an alias. */
4865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4873 if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4875 eval "ac_cv_func_$ac_func=yes"
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4880 eval "ac_cv_func_$ac_func=no"
4885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4886 echo "$ac_t""yes" 1>&6
4887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4888 cat >> confdefs.h <<EOF
4889 #define $ac_tr_func 1
4893 echo "$ac_t""no" 1>&6
4898 # Some systems have frexp only in -lm, not in -lc.
4900 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
4901 echo "configure:4902: checking for library containing frexp" >&5
4902 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 ac_func_search_save_LIBS="$LIBS"
4906 ac_cv_search_frexp="no"
4907 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* Override any gcc2 internal prototype to avoid an error. */
4911 /* We use char because int might match the return type of a gcc2
4912 builtin and then its argument prototype would still apply. */
4919 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4921 ac_cv_search_frexp="none required"
4923 echo "configure: failed program was:" >&5
4924 cat conftest.$ac_ext >&5
4927 test "$ac_cv_search_frexp" = "no" && for i in m; do
4928 LIBS="-l$i $ac_func_search_save_LIBS"
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4932 /* Override any gcc2 internal prototype to avoid an error. */
4933 /* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4941 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4943 ac_cv_search_frexp="-l$i"
4946 echo "configure: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4951 LIBS="$ac_func_search_save_LIBS"
4954 echo "$ac_t""$ac_cv_search_frexp" 1>&6
4955 if test "$ac_cv_search_frexp" != "no"; then
4956 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
4962 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
4963 echo "configure:4964: checking for time_t in time.h" >&5
4964 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4975 if { (eval echo configure:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4977 bu_cv_decl_time_t_time_h=yes
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4982 bu_cv_decl_time_t_time_h=no
4987 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
4988 if test $bu_cv_decl_time_t_time_h = yes; then
4989 cat >> confdefs.h <<\EOF
4990 #define HAVE_TIME_T_IN_TIME_H 1
4995 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
4996 echo "configure:4997: checking for time_t in sys/types.h" >&5
4997 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 #include <sys/types.h>
5008 if { (eval echo configure:5009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5010 bu_cv_decl_time_t_types_h=yes
5012 echo "configure: failed program was:" >&5
5013 cat conftest.$ac_ext >&5
5015 bu_cv_decl_time_t_types_h=no
5020 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5021 if test $bu_cv_decl_time_t_types_h = yes; then
5022 cat >> confdefs.h <<\EOF
5023 #define HAVE_TIME_T_IN_TYPES_H 1
5028 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5030 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5031 echo "configure:5032: checking for utime.h" >&5
5032 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038 #include <sys/types.h>
5047 if { (eval echo configure:5048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5049 bu_cv_header_utime_h=yes
5051 echo "configure: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5054 bu_cv_header_utime_h=no
5059 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5060 if test $bu_cv_header_utime_h = yes; then
5061 cat >> confdefs.h <<\EOF
5062 #define HAVE_GOOD_UTIME_H 1
5067 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5068 echo "configure:5069: checking whether fprintf must be declared" >&5
5069 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5077 #ifdef HAVE_STRING_H
5080 #ifdef HAVE_STRINGS_H
5081 #include <strings.h>
5084 #ifdef HAVE_STDLIB_H
5087 #ifdef HAVE_UNISTD_H
5091 char *(*pfn) = (char *(*)) fprintf
5094 if { (eval echo configure:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5096 bfd_cv_decl_needed_fprintf=no
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5101 bfd_cv_decl_needed_fprintf=yes
5106 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5107 if test $bfd_cv_decl_needed_fprintf = yes; then
5108 cat >> confdefs.h <<\EOF
5109 #define NEED_DECLARATION_FPRINTF 1
5114 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5115 echo "configure:5116: checking whether strstr must be declared" >&5
5116 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5124 #ifdef HAVE_STRING_H
5127 #ifdef HAVE_STRINGS_H
5128 #include <strings.h>
5131 #ifdef HAVE_STDLIB_H
5134 #ifdef HAVE_UNISTD_H
5138 char *(*pfn) = (char *(*)) strstr
5141 if { (eval echo configure:5142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5143 bfd_cv_decl_needed_strstr=no
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5148 bfd_cv_decl_needed_strstr=yes
5153 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5154 if test $bfd_cv_decl_needed_strstr = yes; then
5155 cat >> confdefs.h <<\EOF
5156 #define NEED_DECLARATION_STRSTR 1
5161 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5162 echo "configure:5163: checking whether sbrk must be declared" >&5
5163 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5164 echo $ac_n "(cached) $ac_c" 1>&6
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5171 #ifdef HAVE_STRING_H
5174 #ifdef HAVE_STRINGS_H
5175 #include <strings.h>
5178 #ifdef HAVE_STDLIB_H
5181 #ifdef HAVE_UNISTD_H
5185 char *(*pfn) = (char *(*)) sbrk
5188 if { (eval echo configure:5189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5190 bfd_cv_decl_needed_sbrk=no
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5195 bfd_cv_decl_needed_sbrk=yes
5200 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5201 if test $bfd_cv_decl_needed_sbrk = yes; then
5202 cat >> confdefs.h <<\EOF
5203 #define NEED_DECLARATION_SBRK 1
5208 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5209 echo "configure:5210: checking whether getenv must be declared" >&5
5210 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5218 #ifdef HAVE_STRING_H
5221 #ifdef HAVE_STRINGS_H
5222 #include <strings.h>
5225 #ifdef HAVE_STDLIB_H
5228 #ifdef HAVE_UNISTD_H
5232 char *(*pfn) = (char *(*)) getenv
5235 if { (eval echo configure:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5237 bfd_cv_decl_needed_getenv=no
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5242 bfd_cv_decl_needed_getenv=yes
5247 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5248 if test $bfd_cv_decl_needed_getenv = yes; then
5249 cat >> confdefs.h <<\EOF
5250 #define NEED_DECLARATION_GETENV 1
5255 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5256 echo "configure:5257: checking whether environ must be declared" >&5
5257 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5265 #ifdef HAVE_STRING_H
5268 #ifdef HAVE_STRINGS_H
5269 #include <strings.h>
5272 #ifdef HAVE_STDLIB_H
5275 #ifdef HAVE_UNISTD_H
5279 char *(*pfn) = (char *(*)) environ
5282 if { (eval echo configure:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5284 bfd_cv_decl_needed_environ=no
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5289 bfd_cv_decl_needed_environ=yes
5294 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5295 if test $bfd_cv_decl_needed_environ = yes; then
5296 cat >> confdefs.h <<\EOF
5297 #define NEED_DECLARATION_ENVIRON 1
5305 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5306 cat >> confdefs.h <<\EOF
5307 #define USE_BINARY_FOPEN 1
5312 # target-specific stuff:
5314 # Canonicalize the secondary target names.
5315 if test -n "$enable_targets"; then
5316 for targ in `echo $enable_targets | sed 's/,/ /g'`
5318 result=`$ac_config_sub $targ 2>/dev/null`
5319 if test -n "$result"; then
5320 canon_targets="$canon_targets $result"
5322 # Allow targets that config.sub doesn't recognize, like "all".
5323 canon_targets="$canon_targets $targ"
5338 for targ in $target $canon_targets
5340 if test "x$targ" = "xall"; then
5342 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5343 BUILD_SRCONV='$(SRCONV_PROG)'
5344 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5347 i[3456]86*-*-netware*)
5348 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5349 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
5352 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5353 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5355 powerpc*-*-netware*)
5356 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5357 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5360 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5361 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
5365 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
5368 arm-*pe* | arm-*-wince)
5369 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5370 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5371 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5374 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5375 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5376 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5378 i[3-6]86-*pe* | i[3-6]86-*-cygwin* | i[3-6]86-*-mingw32*)
5379 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5380 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5381 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5382 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
5385 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
5386 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5388 powerpc*-*-*pe* | powerpc*-*-cygwin*)
5389 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5390 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5391 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5394 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5395 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
5396 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5399 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5400 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5401 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5404 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5405 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5406 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5409 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5410 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5425 cat >> confdefs.h <<EOF
5426 #define TARGET "${target}"
5431 . $srcdir/../bfd/config.bfd
5432 if test "x$targ_underscore" = "xyes"; then
5440 cat > confcache <<\EOF
5441 # This file is a shell script that caches the results of configure
5442 # tests run on this system so they can be shared between configure
5443 # scripts and configure runs. It is not useful on other systems.
5444 # If it contains results you don't want to keep, you may remove or edit it.
5446 # By default, configure uses ./config.cache as the cache file,
5447 # creating it if it does not exist already. You can give configure
5448 # the --cache-file=FILE option to use a different cache file; that is
5449 # what configure does when it calls configure scripts in
5450 # subdirectories, so they share the cache.
5451 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5452 # config.status only pays attention to the cache file if you give it the
5453 # --recheck option to rerun configure.
5456 # The following way of writing the cache mishandles newlines in values,
5457 # but we know of no workaround that is simple, portable, and efficient.
5458 # So, don't put newlines in cache variables' values.
5459 # Ultrix sh set writes to stderr and can't be redirected directly,
5460 # and sets the high bit in the cache file unless we assign to the vars.
5462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5464 # `set' does not quote correctly, so add quotes (double-quote substitution
5465 # turns \\\\ into \\, and sed turns \\ into \).
5467 -e "s/'/'\\\\''/g" \
5468 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5471 # `set' quotes correctly as required by POSIX, so do not add quotes.
5472 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5475 if cmp -s $cache_file confcache; then
5478 if test -w $cache_file; then
5479 echo "updating cache $cache_file"
5480 cat confcache > $cache_file
5482 echo "not updating unwritable cache $cache_file"
5487 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5490 # Let make expand exec_prefix.
5491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5493 # Any assignment to VPATH causes Sun make to only execute
5494 # the first set of double-colon rules, so remove it if not needed.
5495 # If there is a colon in the path, we need to keep it.
5496 if test "x$srcdir" = x.; then
5497 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5500 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5502 DEFS=-DHAVE_CONFIG_H
5504 # Without the "./", some shells look in PATH for config.status.
5505 : ${CONFIG_STATUS=./config.status}
5507 echo creating $CONFIG_STATUS
5508 rm -f $CONFIG_STATUS
5509 cat > $CONFIG_STATUS <<EOF
5511 # Generated automatically by configure.
5512 # Run this file to recreate the current configuration.
5513 # This directory was configured as follows,
5514 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5516 # $0 $ac_configure_args
5518 # Compiler output produced by configure, useful for debugging
5519 # configure, is in ./config.log if it exists.
5521 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5524 case "\$ac_option" in
5525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5526 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5527 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5528 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5529 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5531 -help | --help | --hel | --he | --h)
5532 echo "\$ac_cs_usage"; exit 0 ;;
5533 *) echo "\$ac_cs_usage"; exit 1 ;;
5537 ac_given_srcdir=$srcdir
5538 ac_given_INSTALL="$INSTALL"
5540 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5542 cat >> $CONFIG_STATUS <<EOF
5544 # Protect against being on the right side of a sed subst in config.status.
5545 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5546 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5550 s%@CFLAGS@%$CFLAGS%g
5551 s%@CPPFLAGS@%$CPPFLAGS%g
5552 s%@CXXFLAGS@%$CXXFLAGS%g
5553 s%@FFLAGS@%$FFLAGS%g
5555 s%@LDFLAGS@%$LDFLAGS%g
5557 s%@exec_prefix@%$exec_prefix%g
5558 s%@prefix@%$prefix%g
5559 s%@program_transform_name@%$program_transform_name%g
5560 s%@bindir@%$bindir%g
5561 s%@sbindir@%$sbindir%g
5562 s%@libexecdir@%$libexecdir%g
5563 s%@datadir@%$datadir%g
5564 s%@sysconfdir@%$sysconfdir%g
5565 s%@sharedstatedir@%$sharedstatedir%g
5566 s%@localstatedir@%$localstatedir%g
5567 s%@libdir@%$libdir%g
5568 s%@includedir@%$includedir%g
5569 s%@oldincludedir@%$oldincludedir%g
5570 s%@infodir@%$infodir%g
5571 s%@mandir@%$mandir%g
5573 s%@host_alias@%$host_alias%g
5574 s%@host_cpu@%$host_cpu%g
5575 s%@host_vendor@%$host_vendor%g
5576 s%@host_os@%$host_os%g
5577 s%@target@%$target%g
5578 s%@target_alias@%$target_alias%g
5579 s%@target_cpu@%$target_cpu%g
5580 s%@target_vendor@%$target_vendor%g
5581 s%@target_os@%$target_os%g
5583 s%@build_alias@%$build_alias%g
5584 s%@build_cpu@%$build_cpu%g
5585 s%@build_vendor@%$build_vendor%g
5586 s%@build_os@%$build_os%g
5587 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5588 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5589 s%@INSTALL_DATA@%$INSTALL_DATA%g
5590 s%@PACKAGE@%$PACKAGE%g
5591 s%@VERSION@%$VERSION%g
5592 s%@ACLOCAL@%$ACLOCAL%g
5593 s%@AUTOCONF@%$AUTOCONF%g
5594 s%@AUTOMAKE@%$AUTOMAKE%g
5595 s%@AUTOHEADER@%$AUTOHEADER%g
5596 s%@MAKEINFO@%$MAKEINFO%g
5597 s%@SET_MAKE@%$SET_MAKE%g
5600 s%@OBJEXT@%$OBJEXT%g
5601 s%@EXEEXT@%$EXEEXT%g
5602 s%@RANLIB@%$RANLIB%g
5604 s%@LIBTOOL@%$LIBTOOL%g
5605 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5608 s%@LEXLIB@%$LEXLIB%g
5610 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5611 s%@ALLOCA@%$ALLOCA%g
5612 s%@USE_NLS@%$USE_NLS%g
5613 s%@MSGFMT@%$MSGFMT%g
5614 s%@GMSGFMT@%$GMSGFMT%g
5615 s%@XGETTEXT@%$XGETTEXT%g
5616 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5617 s%@CATALOGS@%$CATALOGS%g
5618 s%@CATOBJEXT@%$CATOBJEXT%g
5619 s%@DATADIRNAME@%$DATADIRNAME%g
5620 s%@GMOFILES@%$GMOFILES%g
5621 s%@INSTOBJEXT@%$INSTOBJEXT%g
5622 s%@INTLDEPS@%$INTLDEPS%g
5623 s%@INTLLIBS@%$INTLLIBS%g
5624 s%@INTLOBJS@%$INTLOBJS%g
5625 s%@POFILES@%$POFILES%g
5627 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5629 s%@GT_YES@%$GT_YES%g
5630 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5632 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5633 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5635 s%@HDEFINES@%$HDEFINES%g
5637 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5638 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5639 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5640 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5641 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5642 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5643 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5644 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5645 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5646 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5647 s%@BUILD_MISC@%$BUILD_MISC%g
5648 s%@UNDERSCORE@%$UNDERSCORE%g
5653 cat >> $CONFIG_STATUS <<\EOF
5655 # Split the substitutions into bite-sized pieces for seds with
5656 # small command number limits, like on Digital OSF/1 and HP-UX.
5657 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5658 ac_file=1 # Number of current file.
5659 ac_beg=1 # First line for current file.
5660 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5663 while $ac_more_lines; do
5664 if test $ac_beg -gt 1; then
5665 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5667 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5669 if test ! -s conftest.s$ac_file; then
5671 rm -f conftest.s$ac_file
5673 if test -z "$ac_sed_cmds"; then
5674 ac_sed_cmds="sed -f conftest.s$ac_file"
5676 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5678 ac_file=`expr $ac_file + 1`
5680 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5683 if test -z "$ac_sed_cmds"; then
5688 cat >> $CONFIG_STATUS <<EOF
5690 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5692 cat >> $CONFIG_STATUS <<\EOF
5693 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5696 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5697 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5698 *) ac_file_in="${ac_file}.in" ;;
5701 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5703 # Remove last slash and all that follows it. Not all systems have dirname.
5704 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5705 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5706 # The file is in a subdirectory.
5707 test ! -d "$ac_dir" && mkdir "$ac_dir"
5708 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5709 # A "../" for each directory in $ac_dir_suffix.
5710 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5712 ac_dir_suffix= ac_dots=
5715 case "$ac_given_srcdir" in
5717 if test -z "$ac_dots"; then top_srcdir=.
5718 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5719 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5721 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5722 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5725 case "$ac_given_INSTALL" in
5726 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5727 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5730 echo creating "$ac_file"
5732 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5734 *Makefile*) ac_comsub="1i\\
5735 # $configure_input" ;;
5739 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5741 s%@configure_input@%$configure_input%g
5742 s%@srcdir@%$srcdir%g
5743 s%@top_srcdir@%$top_srcdir%g
5744 s%@INSTALL@%$INSTALL%g
5745 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5749 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5750 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5752 # ac_d sets the value in "#define NAME VALUE" lines.
5753 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5754 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5757 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5758 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5759 ac_uB='\([ ]\)%\1#\2define\3'
5762 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5763 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5764 ac_eB='$%\1#\2define\3'
5768 if test "${CONFIG_HEADERS+set}" != set; then
5770 cat >> $CONFIG_STATUS <<EOF
5771 CONFIG_HEADERS="config.h:config.in"
5773 cat >> $CONFIG_STATUS <<\EOF
5775 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5778 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5779 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5780 *) ac_file_in="${ac_file}.in" ;;
5783 echo creating $ac_file
5785 rm -f conftest.frag conftest.in conftest.out
5786 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5787 cat $ac_file_inputs > conftest.in
5791 # Transform confdefs.h into a sed script conftest.vals that substitutes
5792 # the proper values into config.h.in to produce config.h. And first:
5793 # Protect against being on the right side of a sed subst in config.status.
5794 # Protect against being in an unquoted here document in config.status.
5796 cat > conftest.hdr <<\EOF
5799 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5803 sed -n -f conftest.hdr confdefs.h > conftest.vals
5806 # This sed command replaces #undef with comments. This is necessary, for
5807 # example, in the case of _POSIX_SOURCE, which is predefined and required
5808 # on some systems where configure will not decide to define it.
5809 cat >> conftest.vals <<\EOF
5810 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5813 # Break up conftest.vals because some shells have a limit on
5814 # the size of here documents, and old seds have small limits too.
5819 ac_lines=`grep -c . conftest.vals`
5820 # grep -c gives empty output for an empty file on some AIX systems.
5821 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5822 # Write a limited-size here document to conftest.frag.
5823 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5824 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5826 sed -f conftest.frag conftest.in > conftest.out
5828 mv conftest.out conftest.in
5830 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5832 mv conftest.tail conftest.vals
5836 cat >> $CONFIG_STATUS <<\EOF
5837 rm -f conftest.frag conftest.h
5838 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5839 cat conftest.in >> conftest.h
5841 if cmp -s $ac_file conftest.h 2>/dev/null; then
5842 echo "$ac_file is unchanged"
5845 # Remove last slash and all that follows it. Not all systems have dirname.
5846 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5847 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5848 # The file is in a subdirectory.
5849 test ! -d "$ac_dir" && mkdir "$ac_dir"
5852 mv conftest.h $ac_file
5857 cat >> $CONFIG_STATUS <<EOF
5861 cat >> $CONFIG_STATUS <<\EOF
5862 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5864 case "x$CONFIG_FILES" in
5865 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
5870 chmod +x $CONFIG_STATUS
5871 rm -fr confdefs* $ac_clean_files
5872 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1