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 --disable-nls do not use Native Language Support"
29 --with-included-gettext use the GNU gettext library included here"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --site-file=FILE use FILE as the site file
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -site-file | --site-file | --site-fil | --site-fi | --site-f)
340 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341 sitefile="$ac_optarg" ;;
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=gprof.c
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 CONFIG_SITE="$sitefile"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
555 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
556 echo "configure:557: checking for Cygwin environment" >&5
557 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
560 cat > conftest.$ac_ext <<EOF
561 #line 562 "configure"
562 #include "confdefs.h"
567 #define __CYGWIN__ __CYGWIN32__
572 if { (eval echo configure:573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
576 echo "configure: failed program was:" >&5
577 cat conftest.$ac_ext >&5
585 echo "$ac_t""$ac_cv_cygwin" 1>&6
587 test "$ac_cv_cygwin" = yes && CYGWIN=yes
588 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
589 echo "configure:590: checking for mingw32 environment" >&5
590 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
591 echo $ac_n "(cached) $ac_c" 1>&6
593 cat > conftest.$ac_ext <<EOF
594 #line 595 "configure"
595 #include "confdefs.h"
601 if { (eval echo configure:602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
605 echo "configure: failed program was:" >&5
606 cat conftest.$ac_ext >&5
614 echo "$ac_t""$ac_cv_mingw32" 1>&6
616 test "$ac_cv_mingw32" = yes && MINGW32=yes
620 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621 if test -f $ac_dir/install-sh; then
623 ac_install_sh="$ac_aux_dir/install-sh -c"
625 elif test -f $ac_dir/install.sh; then
627 ac_install_sh="$ac_aux_dir/install.sh -c"
631 if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
634 ac_config_guess=$ac_aux_dir/config.guess
635 ac_config_sub=$ac_aux_dir/config.sub
636 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
639 # Do some error checking and defaulting for the host and target type.
641 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
644 # 1. You are not allowed to specify --host, --target, and nonopt at the
646 # 2. Host defaults to nonopt.
647 # 3. If nonopt is not specified, then host defaults to the current host,
648 # as determined by config.guess.
649 # 4. Target and build default to nonopt.
650 # 5. If nonopt is not specified, then target and build default to host.
652 # The aliases save the names the user supplied, while $host etc.
653 # will get canonicalized.
654 case $host---$target---$nonopt in
655 NONE---*---* | *---NONE---* | *---*---NONE) ;;
656 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
660 # Make sure we can run config.sub.
661 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
662 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
665 echo $ac_n "checking host system type""... $ac_c" 1>&6
666 echo "configure:667: checking host system type" >&5
669 case "$host_alias" in
673 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
674 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
676 *) host_alias=$nonopt ;;
680 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
681 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
682 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
683 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
684 echo "$ac_t""$host" 1>&6
686 echo $ac_n "checking target system type""... $ac_c" 1>&6
687 echo "configure:688: checking target system type" >&5
690 case "$target_alias" in
693 NONE) target_alias=$host_alias ;;
694 *) target_alias=$nonopt ;;
698 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
699 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
700 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
701 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
702 echo "$ac_t""$target" 1>&6
704 echo $ac_n "checking build system type""... $ac_c" 1>&6
705 echo "configure:706: checking build system type" >&5
708 case "$build_alias" in
711 NONE) build_alias=$host_alias ;;
712 *) build_alias=$nonopt ;;
716 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
717 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
718 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
719 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
720 echo "$ac_t""$build" 1>&6
722 test "$host_alias" != "$target_alias" &&
723 test "$program_prefix$program_suffix$program_transform_name" = \
725 program_prefix=${target_alias}-
727 # Extract the first word of "gcc", so it can be a program name with args.
728 set dummy gcc; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
756 if test -z "$CC"; then
757 # Extract the first word of "cc", so it can be a program name with args.
758 set dummy cc; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
770 for ac_dir in $ac_dummy; do
771 test -z "$ac_dir" && ac_dir=.
772 if test -f $ac_dir/$ac_word; then
773 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
782 if test $ac_prog_rejected = yes; then
783 # We found a bogon in the path, so make sure we never use it.
784 set dummy $ac_cv_prog_CC
786 if test $# -gt 0; then
787 # We chose a different compiler from the bogus one.
788 # However, it has the same basename, so the bogon will be chosen
789 # first if we set CC to just the basename; use the full file name.
791 set dummy "$ac_dir/$ac_word" "$@"
799 if test -n "$CC"; then
800 echo "$ac_t""$CC" 1>&6
802 echo "$ac_t""no" 1>&6
805 if test -z "$CC"; then
808 # Extract the first word of "cl", so it can be a program name with args.
809 set dummy cl; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
834 echo "$ac_t""no" 1>&6
839 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
842 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
843 echo "configure:844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
847 ac_cpp='$CPP $CPPFLAGS'
848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
850 cross_compiling=$ac_cv_prog_cc_cross
852 cat > conftest.$ac_ext << EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 if { (eval echo configure:860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
860 ac_cv_prog_cc_works=yes
861 # If we can't run a trivial program, we are probably using a cross compiler.
862 if (./conftest; exit) 2>/dev/null; then
863 ac_cv_prog_cc_cross=no
865 ac_cv_prog_cc_cross=yes
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
870 ac_cv_prog_cc_works=no
874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
875 ac_cpp='$CPP $CPPFLAGS'
876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
878 cross_compiling=$ac_cv_prog_cc_cross
880 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
881 if test $ac_cv_prog_cc_works = no; then
882 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
884 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
885 echo "configure:886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
886 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
887 cross_compiling=$ac_cv_prog_cc_cross
889 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
890 echo "configure:891: checking whether we are using GNU C" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
894 cat > conftest.c <<EOF
899 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
906 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
908 if test $ac_cv_prog_gcc = yes; then
914 ac_test_CFLAGS="${CFLAGS+set}"
915 ac_save_CFLAGS="$CFLAGS"
917 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
918 echo "configure:919: checking whether ${CC-cc} accepts -g" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 echo 'void f(){}' > conftest.c
923 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
932 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
933 if test "$ac_test_CFLAGS" = set; then
934 CFLAGS="$ac_save_CFLAGS"
935 elif test $ac_cv_prog_cc_g = yes; then
936 if test "$GCC" = yes; then
942 if test "$GCC" = yes; then
949 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
950 echo "configure:951: checking for POSIXized ISC" >&5
951 if test -d /etc/conf/kconfig.d &&
952 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
954 echo "$ac_t""yes" 1>&6
955 ISC=yes # If later tests want to check for ISC.
956 cat >> confdefs.h <<\EOF
957 #define _POSIX_SOURCE 1
960 if test "$GCC" = yes; then
966 echo "$ac_t""no" 1>&6
971 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
972 # Find a good install program. We prefer a C program (faster),
973 # so one script is as good as another. But avoid the broken or
974 # incompatible versions:
975 # SysV /etc/install, /usr/sbin/install
976 # SunOS /usr/etc/install
979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
982 # ./install, which can be erroneously created by make from ./install.sh.
983 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
984 echo "configure:985: checking for a BSD compatible install" >&5
985 if test -z "$INSTALL"; then
986 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
990 for ac_dir in $PATH; do
991 # Account for people who put trailing slashes in PATH elements.
993 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
995 # OSF1 and SCO ODT 3.0 have their own names for install.
996 # Don't use installbsd from OSF since it installs stuff as root
998 for ac_prog in ginstall scoinst install; do
999 if test -f $ac_dir/$ac_prog; then
1000 if test $ac_prog = install &&
1001 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1002 # AIX install. It has an incompatible calling convention.
1005 ac_cv_path_install="$ac_dir/$ac_prog -c"
1016 if test "${ac_cv_path_install+set}" = set; then
1017 INSTALL="$ac_cv_path_install"
1019 # As a last resort, use the slow shell script. We don't cache a
1020 # path for INSTALL within a source directory, because that will
1021 # break other packages using the cache if that directory is
1022 # removed, or if the path is relative.
1023 INSTALL="$ac_install_sh"
1026 echo "$ac_t""$INSTALL" 1>&6
1028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1029 # It thinks the first close brace ends the variable substitution.
1030 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1032 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1034 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1036 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1037 echo "configure:1038: checking whether build environment is sane" >&5
1040 echo timestamp > conftestfile
1041 # Do `set' in a subshell so we don't clobber the current shell's
1042 # arguments. Must try -L first in case configure is actually a
1043 # symlink; some systems play weird games with the mod time of symlinks
1044 # (eg FreeBSD returns the mod time of the symlink's containing
1047 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1048 if test "$*" = "X"; then
1050 set X `ls -t $srcdir/configure conftestfile`
1052 if test "$*" != "X $srcdir/configure conftestfile" \
1053 && test "$*" != "X conftestfile $srcdir/configure"; then
1055 # If neither matched, then we have a broken ls. This can happen
1056 # if, for instance, CONFIG_SHELL is bash and it inherits a
1057 # broken ls alias from the environment. This has actually
1058 # happened. Such a system could not be considered "sane".
1059 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1060 alias in your environment" 1>&2; exit 1; }
1063 test "$2" = conftestfile
1069 { echo "configure: error: newly created file is older than distributed files!
1070 Check your system clock" 1>&2; exit 1; }
1073 echo "$ac_t""yes" 1>&6
1074 if test "$program_transform_name" = s,x,x,; then
1075 program_transform_name=
1077 # Double any \ or $. echo might interpret backslashes.
1078 cat <<\EOF_SED > conftestsed
1079 s,\\,\\\\,g; s,\$,$$,g
1081 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1084 test "$program_prefix" != NONE &&
1085 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1086 # Use a double $ so make ignores it.
1087 test "$program_suffix" != NONE &&
1088 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1090 # sed with no file args requires a program.
1091 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1093 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1094 echo "configure:1095: checking whether ${MAKE-make} sets \${MAKE}" >&5
1095 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1096 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 cat > conftestmake <<\EOF
1101 @echo 'ac_maketemp="${MAKE}"'
1103 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1104 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1105 if test -n "$ac_maketemp"; then
1106 eval ac_cv_prog_make_${ac_make}_set=yes
1108 eval ac_cv_prog_make_${ac_make}_set=no
1112 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1113 echo "$ac_t""yes" 1>&6
1116 echo "$ac_t""no" 1>&6
1117 SET_MAKE="MAKE=${MAKE-make}"
1123 VERSION=${BFD_VERSION}
1125 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1126 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1128 cat >> confdefs.h <<EOF
1129 #define PACKAGE "$PACKAGE"
1132 cat >> confdefs.h <<EOF
1133 #define VERSION "$VERSION"
1138 missing_dir=`cd $ac_aux_dir && pwd`
1139 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1140 echo "configure:1141: checking for working aclocal" >&5
1141 # Run test in a subshell; some versions of sh will print an error if
1142 # an executable is not found, even if stderr is redirected.
1143 # Redirect stdin to placate older versions of autoconf. Sigh.
1144 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1146 echo "$ac_t""found" 1>&6
1148 ACLOCAL="$missing_dir/missing aclocal"
1149 echo "$ac_t""missing" 1>&6
1152 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1153 echo "configure:1154: checking for working autoconf" >&5
1154 # Run test in a subshell; some versions of sh will print an error if
1155 # an executable is not found, even if stderr is redirected.
1156 # Redirect stdin to placate older versions of autoconf. Sigh.
1157 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1159 echo "$ac_t""found" 1>&6
1161 AUTOCONF="$missing_dir/missing autoconf"
1162 echo "$ac_t""missing" 1>&6
1165 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1166 echo "configure:1167: checking for working automake" >&5
1167 # Run test in a subshell; some versions of sh will print an error if
1168 # an executable is not found, even if stderr is redirected.
1169 # Redirect stdin to placate older versions of autoconf. Sigh.
1170 if (automake --version) < /dev/null > /dev/null 2>&1; then
1172 echo "$ac_t""found" 1>&6
1174 AUTOMAKE="$missing_dir/missing automake"
1175 echo "$ac_t""missing" 1>&6
1178 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1179 echo "configure:1180: checking for working autoheader" >&5
1180 # Run test in a subshell; some versions of sh will print an error if
1181 # an executable is not found, even if stderr is redirected.
1182 # Redirect stdin to placate older versions of autoconf. Sigh.
1183 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1184 AUTOHEADER=autoheader
1185 echo "$ac_t""found" 1>&6
1187 AUTOHEADER="$missing_dir/missing autoheader"
1188 echo "$ac_t""missing" 1>&6
1191 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1192 echo "configure:1193: checking for working makeinfo" >&5
1193 # Run test in a subshell; some versions of sh will print an error if
1194 # an executable is not found, even if stderr is redirected.
1195 # Redirect stdin to placate older versions of autoconf. Sigh.
1196 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1198 echo "$ac_t""found" 1>&6
1200 MAKEINFO="$missing_dir/missing makeinfo"
1201 echo "$ac_t""missing" 1>&6
1206 # Check whether --enable-shared or --disable-shared was given.
1207 if test "${enable_shared+set}" = set; then
1208 enableval="$enable_shared"
1209 p=${PACKAGE-default}
1210 case "$enableval" in
1211 yes) enable_shared=yes ;;
1212 no) enable_shared=no ;;
1215 # Look at the argument we got. We use all the common list separators.
1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1217 for pkg in $enableval; do
1218 if test "X$pkg" = "X$p"; then
1229 # Check whether --enable-static or --disable-static was given.
1230 if test "${enable_static+set}" = set; then
1231 enableval="$enable_static"
1232 p=${PACKAGE-default}
1233 case "$enableval" in
1234 yes) enable_static=yes ;;
1235 no) enable_static=no ;;
1238 # Look at the argument we got. We use all the common list separators.
1239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1240 for pkg in $enableval; do
1241 if test "X$pkg" = "X$p"; then
1252 # Check whether --enable-fast-install or --disable-fast-install was given.
1253 if test "${enable_fast_install+set}" = set; then
1254 enableval="$enable_fast_install"
1255 p=${PACKAGE-default}
1256 case "$enableval" in
1257 yes) enable_fast_install=yes ;;
1258 no) enable_fast_install=no ;;
1260 enable_fast_install=no
1261 # Look at the argument we got. We use all the common list separators.
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1263 for pkg in $enableval; do
1264 if test "X$pkg" = "X$p"; then
1265 enable_fast_install=yes
1272 enable_fast_install=yes
1275 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1276 if test "${with_gnu_ld+set}" = set; then
1277 withval="$with_gnu_ld"
1278 test "$withval" = no || with_gnu_ld=yes
1284 if test "$ac_cv_prog_gcc" = yes; then
1285 # Check if gcc -print-prog-name=ld gives a path.
1286 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1287 echo "configure:1288: checking for ld used by GCC" >&5
1290 # gcc leaves a trailing carriage return which upsets mingw
1291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1296 # Accept absolute paths.
1297 [\\/]* | [A-Za-z]:[\\/]*)
1298 re_direlt='/[^/][^/]*/\.\./'
1299 # Canonicalize the path of ld
1300 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1301 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1302 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1304 test -z "$LD" && LD="$ac_prog"
1307 # If it fails, then pretend we aren't using GCC.
1311 # If it is relative, then search for the first ld in PATH.
1315 elif test "$with_gnu_ld" = yes; then
1316 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1317 echo "configure:1318: checking for GNU ld" >&5
1319 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1320 echo "configure:1321: checking for non-GNU ld" >&5
1322 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1325 if test -z "$LD"; then
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1327 for ac_dir in $PATH; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1330 ac_cv_path_LD="$ac_dir/$ac_prog"
1331 # Check to see if the program is GNU ld. I'd rather use --version,
1332 # but apparently some GNU ld's only accept -v.
1333 # Break only if it was the GNU/non-GNU ld that we prefer.
1334 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1335 test "$with_gnu_ld" != no && break
1337 test "$with_gnu_ld" != yes && break
1343 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1348 if test -n "$LD"; then
1349 echo "$ac_t""$LD" 1>&6
1351 echo "$ac_t""no" 1>&6
1353 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1354 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1355 echo "configure:1356: checking if the linker ($LD) is GNU ld" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1360 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1361 ac_cv_prog_gnu_ld=yes
1363 ac_cv_prog_gnu_ld=no
1367 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1368 with_gnu_ld=$ac_cv_prog_gnu_ld
1371 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1372 echo "configure:1373: checking for $LD option to reload object files" >&5
1373 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 lt_cv_ld_reload_flag='-r'
1379 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1380 reload_flag=$lt_cv_ld_reload_flag
1381 test -n "$reload_flag" && reload_flag=" $reload_flag"
1383 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1384 echo "configure:1385: checking for BSD-compatible nm" >&5
1385 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 if test -n "$NM"; then
1389 # Let the user override the test.
1392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1393 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1394 test -z "$ac_dir" && ac_dir=.
1395 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1396 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1397 # Check to see if the nm accepts a BSD-compat flag.
1398 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1399 # nm: unknown option "B" ignored
1400 # Tru64's nm complains that /dev/null is an invalid object file
1401 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1402 ac_cv_path_NM="$tmp_nm -B"
1404 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1405 ac_cv_path_NM="$tmp_nm -p"
1408 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1409 continue # so that we can try to find one that supports BSD flags
1414 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1419 echo "$ac_t""$NM" 1>&6
1421 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1422 echo "configure:1423: checking whether ln -s works" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1427 if ln -s X conftestdata 2>/dev/null
1430 ac_cv_prog_LN_S="ln -s"
1435 LN_S="$ac_cv_prog_LN_S"
1436 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1437 echo "$ac_t""yes" 1>&6
1439 echo "$ac_t""no" 1>&6
1442 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1443 echo "configure:1444: checking how to recognise dependant libraries" >&5
1444 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1447 lt_cv_file_magic_cmd='$MAGIC_CMD'
1448 lt_cv_file_magic_test_file=
1449 lt_cv_deplibs_check_method='unknown'
1450 # Need to set the preceding variable on all platforms that support
1451 # interlibrary dependencies.
1452 # 'none' -- dependencies not supported.
1453 # `unknown' -- same as none, but documents that we really don't know.
1454 # 'pass_all' -- all dependencies passed with no checks.
1455 # 'test_compile' -- check by making test program.
1456 # 'file_magic [regex]' -- check by looking for files in library path
1457 # which responds to the $file_magic_cmd with a given egrep regex.
1458 # If you have `file' or equivalent on your system and you're not sure
1459 # whether `pass_all' will *always* work, you probably want this one.
1463 lt_cv_deplibs_check_method=pass_all
1467 lt_cv_deplibs_check_method=pass_all
1471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1472 lt_cv_file_magic_cmd='/usr/bin/file -L'
1473 lt_cv_file_magic_test_file=/shlib/libc.so
1476 cygwin* | mingw* |pw32*)
1477 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1478 lt_cv_file_magic_cmd='$OBJDUMP -f'
1482 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1485 # Not sure whether the presence of OpenBSD here was a mistake.
1486 # Let's accept both of them until this is cleared up.
1487 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1488 lt_cv_file_magic_cmd=/usr/bin/file
1489 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1493 lt_cv_deplibs_check_method=pass_all
1498 lt_cv_deplibs_check_method=pass_all
1502 # TODO: Does this work for hpux-11 too?
1503 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1504 lt_cv_file_magic_cmd=/usr/bin/file
1505 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1511 # this will be overridden with pass_all, but let us keep it just in case
1512 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1516 *-32|*"-32 ") libmagic=32-bit;;
1517 *-n32|*"-n32 ") libmagic=N32;;
1518 *-64|*"-64 ") libmagic=64-bit;;
1519 *) libmagic=never-match;;
1521 # this will be overridden with pass_all, but let us keep it just in case
1522 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1525 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1526 lt_cv_deplibs_check_method=pass_all
1529 # This must be Linux ELF.
1532 alpha* | i*86 | powerpc* | sparc* | ia64* )
1533 lt_cv_deplibs_check_method=pass_all ;;
1535 # glibc up to 2.1.1 does not perform some relocations on ARM
1536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1538 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1542 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1544 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1545 lt_cv_file_magic_cmd='/usr/bin/file -L'
1546 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1550 osf3* | osf4* | osf5*)
1551 # this will be overridden with pass_all, but let us keep it just in case
1552 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1553 lt_cv_file_magic_test_file=/shlib/libc.so
1554 lt_cv_deplibs_check_method=pass_all
1558 lt_cv_deplibs_check_method=pass_all
1562 lt_cv_deplibs_check_method=pass_all
1563 lt_cv_file_magic_test_file=/lib/libc.so
1566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1567 case "$host_vendor" in
1569 lt_cv_deplibs_check_method=pass_all
1572 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]'
1573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1581 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1582 file_magic_cmd=$lt_cv_file_magic_cmd
1583 deplibs_check_method=$lt_cv_deplibs_check_method
1585 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1586 echo "configure:1587: checking for object suffix" >&5
1587 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1591 echo 'int i = 1;' > conftest.$ac_ext
1592 if { (eval echo configure:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1593 for ac_file in conftest.*; do
1596 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1600 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1605 echo "$ac_t""$ac_cv_objext" 1>&6
1606 OBJEXT=$ac_cv_objext
1607 ac_objext=$ac_cv_objext
1611 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1612 echo "configure:1613: checking for executable suffix" >&5
1613 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1620 echo 'int main () { return 0; }' > conftest.$ac_ext
1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1623 for file in conftest.*; do
1625 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1626 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1630 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1633 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1638 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1639 echo "$ac_t""${ac_cv_exeext}" 1>&6
1642 if test $host != $build; then
1643 ac_tool_prefix=${host_alias}-
1648 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1650 # Only perform the check for file, if the check method requires it
1651 case "$deplibs_check_method" in
1653 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1654 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1655 echo "configure:1656: checking for ${ac_tool_prefix}file" >&5
1656 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 case "$MAGIC_CMD" in
1661 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1664 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1667 ac_save_MAGIC_CMD="$MAGIC_CMD"
1668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1669 ac_dummy="/usr/bin:$PATH"
1670 for ac_dir in $ac_dummy; do
1671 test -z "$ac_dir" && ac_dir=.
1672 if test -f $ac_dir/${ac_tool_prefix}file; then
1673 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1674 if test -n "$file_magic_test_file"; then
1675 case "$deplibs_check_method" in
1677 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1679 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1680 egrep "$file_magic_regex" > /dev/null; then
1685 *** Warning: the command libtool uses to detect shared libraries,
1686 *** $file_magic_cmd, produces output that libtool cannot recognize.
1687 *** The result is that libtool may fail to recognize shared libraries
1688 *** as such. This will affect the creation of libtool libraries that
1689 *** depend on shared libraries, but programs linked with such libtool
1690 *** libraries will work regardless of this problem. Nevertheless, you
1691 *** may want to report the problem to your system manager and/or to
1692 *** bug-libtool@gnu.org
1702 MAGIC_CMD="$ac_save_MAGIC_CMD"
1707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1708 if test -n "$MAGIC_CMD"; then
1709 echo "$ac_t""$MAGIC_CMD" 1>&6
1711 echo "$ac_t""no" 1>&6
1714 if test -z "$lt_cv_path_MAGIC_CMD"; then
1715 if test -n "$ac_tool_prefix"; then
1716 echo $ac_n "checking for file""... $ac_c" 1>&6
1717 echo "configure:1718: checking for file" >&5
1718 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 case "$MAGIC_CMD" in
1723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1726 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1729 ac_save_MAGIC_CMD="$MAGIC_CMD"
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1731 ac_dummy="/usr/bin:$PATH"
1732 for ac_dir in $ac_dummy; do
1733 test -z "$ac_dir" && ac_dir=.
1734 if test -f $ac_dir/file; then
1735 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1736 if test -n "$file_magic_test_file"; then
1737 case "$deplibs_check_method" in
1739 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1741 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1742 egrep "$file_magic_regex" > /dev/null; then
1747 *** Warning: the command libtool uses to detect shared libraries,
1748 *** $file_magic_cmd, produces output that libtool cannot recognize.
1749 *** The result is that libtool may fail to recognize shared libraries
1750 *** as such. This will affect the creation of libtool libraries that
1751 *** depend on shared libraries, but programs linked with such libtool
1752 *** libraries will work regardless of this problem. Nevertheless, you
1753 *** may want to report the problem to your system manager and/or to
1754 *** bug-libtool@gnu.org
1764 MAGIC_CMD="$ac_save_MAGIC_CMD"
1769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1770 if test -n "$MAGIC_CMD"; then
1771 echo "$ac_t""$MAGIC_CMD" 1>&6
1773 echo "$ac_t""no" 1>&6
1785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1786 set dummy ${ac_tool_prefix}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="${ac_tool_prefix}ranlib"
1807 RANLIB="$ac_cv_prog_RANLIB"
1808 if test -n "$RANLIB"; then
1809 echo "$ac_t""$RANLIB" 1>&6
1811 echo "$ac_t""no" 1>&6
1815 if test -z "$ac_cv_prog_RANLIB"; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "ranlib", so it can be a program name with args.
1818 set dummy ranlib; ac_word=$2
1819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1820 echo "configure:1821: checking for $ac_word" >&5
1821 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 if test -n "$RANLIB"; then
1825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 for ac_dir in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then
1832 ac_cv_prog_RANLIB="ranlib"
1837 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1840 RANLIB="$ac_cv_prog_RANLIB"
1841 if test -n "$RANLIB"; then
1842 echo "$ac_t""$RANLIB" 1>&6
1844 echo "$ac_t""no" 1>&6
1852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1853 set dummy ${ac_tool_prefix}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="${ac_tool_prefix}strip"
1874 STRIP="$ac_cv_prog_STRIP"
1875 if test -n "$STRIP"; then
1876 echo "$ac_t""$STRIP" 1>&6
1878 echo "$ac_t""no" 1>&6
1882 if test -z "$ac_cv_prog_STRIP"; then
1883 if test -n "$ac_tool_prefix"; then
1884 # Extract the first word of "strip", so it can be a program name with args.
1885 set dummy strip; ac_word=$2
1886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $ac_word" >&5
1888 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 if test -n "$STRIP"; then
1892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1896 for ac_dir in $ac_dummy; do
1897 test -z "$ac_dir" && ac_dir=.
1898 if test -f $ac_dir/$ac_word; then
1899 ac_cv_prog_STRIP="strip"
1904 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1907 STRIP="$ac_cv_prog_STRIP"
1908 if test -n "$STRIP"; then
1909 echo "$ac_t""$STRIP" 1>&6
1911 echo "$ac_t""no" 1>&6
1920 # Check for any special flags to pass to ltconfig.
1921 libtool_flags="--cache-file=$cache_file"
1922 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1923 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1924 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1925 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1926 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1929 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1930 if test "${enable_libtool_lock+set}" = set; then
1931 enableval="$enable_libtool_lock"
1935 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1936 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1938 # Check whether --with-pic or --without-pic was given.
1939 if test "${with_pic+set}" = set; then
1946 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1947 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1949 # Some flags need to be propagated to the compiler or linker for good
1953 # Find out which ABI we are using.
1954 echo '#line 1955 "configure"' > conftest.$ac_ext
1955 if { (eval echo configure:1956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1956 case "`/usr/bin/file conftest.o`" in
1972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1973 SAVE_CFLAGS="$CFLAGS"
1974 CFLAGS="$CFLAGS -belf"
1975 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1976 echo "configure:1977: checking whether the C compiler needs -belf" >&5
1977 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1983 ac_cpp='$CPP $CPPFLAGS'
1984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1986 cross_compiling=$ac_cv_prog_cc_cross
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1996 if { (eval echo configure:1997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998 lt_cv_cc_needs_belf=yes
2000 echo "configure: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2003 lt_cv_cc_needs_belf=no
2007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2011 cross_compiling=$ac_cv_prog_cc_cross
2015 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2016 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2017 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2018 CFLAGS="$SAVE_CFLAGS"
2026 # Save cache, so that ltconfig can load it
2027 cat > confcache <<\EOF
2028 # This file is a shell script that caches the results of configure
2029 # tests run on this system so they can be shared between configure
2030 # scripts and configure runs. It is not useful on other systems.
2031 # If it contains results you don't want to keep, you may remove or edit it.
2033 # By default, configure uses ./config.cache as the cache file,
2034 # creating it if it does not exist already. You can give configure
2035 # the --cache-file=FILE option to use a different cache file; that is
2036 # what configure does when it calls configure scripts in
2037 # subdirectories, so they share the cache.
2038 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2039 # config.status only pays attention to the cache file if you give it the
2040 # --recheck option to rerun configure.
2043 # The following way of writing the cache mishandles newlines in values,
2044 # but we know of no workaround that is simple, portable, and efficient.
2045 # So, don't put newlines in cache variables' values.
2046 # Ultrix sh set writes to stderr and can't be redirected directly,
2047 # and sets the high bit in the cache file unless we assign to the vars.
2049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2051 # `set' does not quote correctly, so add quotes (double-quote substitution
2052 # turns \\\\ into \\, and sed turns \\ into \).
2054 -e "s/'/'\\\\''/g" \
2055 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2058 # `set' quotes correctly as required by POSIX, so do not add quotes.
2059 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2062 if cmp -s $cache_file confcache; then
2065 if test -w $cache_file; then
2066 echo "updating cache $cache_file"
2067 cat confcache > $cache_file
2069 echo "not updating unwritable cache $cache_file"
2075 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2076 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2077 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2078 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2079 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2080 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2081 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2082 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2083 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2084 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2086 # Reload cache, that may have been modified by ltconfig
2087 if test -r "$cache_file"; then
2088 echo "loading cache $cache_file"
2091 echo "creating cache $cache_file"
2096 # This can be used to rebuild libtool when needed
2097 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2099 # Always use our own libtool.
2100 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2102 # Redirect the config.log output again, so that the ltconfig log is not
2103 # clobbered by the next message.
2104 exec 5>>./config.log
2117 # Extract the first word of "gcc", so it can be a program name with args.
2118 set dummy gcc; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 if test -n "$CC"; then
2125 ac_cv_prog_CC="$CC" # Let the user override the test.
2127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2129 for ac_dir in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir=.
2131 if test -f $ac_dir/$ac_word; then
2140 if test -n "$CC"; then
2141 echo "$ac_t""$CC" 1>&6
2143 echo "$ac_t""no" 1>&6
2146 if test -z "$CC"; then
2147 # Extract the first word of "cc", so it can be a program name with args.
2148 set dummy cc; ac_word=$2
2149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_word" >&5
2151 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 if test -n "$CC"; then
2155 ac_cv_prog_CC="$CC" # Let the user override the test.
2157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2160 for ac_dir in $ac_dummy; do
2161 test -z "$ac_dir" && ac_dir=.
2162 if test -f $ac_dir/$ac_word; then
2163 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2164 ac_prog_rejected=yes
2172 if test $ac_prog_rejected = yes; then
2173 # We found a bogon in the path, so make sure we never use it.
2174 set dummy $ac_cv_prog_CC
2176 if test $# -gt 0; then
2177 # We chose a different compiler from the bogus one.
2178 # However, it has the same basename, so the bogon will be chosen
2179 # first if we set CC to just the basename; use the full file name.
2181 set dummy "$ac_dir/$ac_word" "$@"
2189 if test -n "$CC"; then
2190 echo "$ac_t""$CC" 1>&6
2192 echo "$ac_t""no" 1>&6
2195 if test -z "$CC"; then
2196 case "`uname -s`" in
2198 # Extract the first word of "cl", so it can be a program name with args.
2199 set dummy cl; ac_word=$2
2200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2201 echo "configure:2202: checking for $ac_word" >&5
2202 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2210 for ac_dir in $ac_dummy; do
2211 test -z "$ac_dir" && ac_dir=.
2212 if test -f $ac_dir/$ac_word; then
2221 if test -n "$CC"; then
2222 echo "$ac_t""$CC" 1>&6
2224 echo "$ac_t""no" 1>&6
2229 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2232 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2233 echo "configure:2234: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2240 cross_compiling=$ac_cv_prog_cc_cross
2242 cat > conftest.$ac_ext << EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2249 if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2250 ac_cv_prog_cc_works=yes
2251 # If we can't run a trivial program, we are probably using a cross compiler.
2252 if (./conftest; exit) 2>/dev/null; then
2253 ac_cv_prog_cc_cross=no
2255 ac_cv_prog_cc_cross=yes
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2260 ac_cv_prog_cc_works=no
2264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2268 cross_compiling=$ac_cv_prog_cc_cross
2270 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2271 if test $ac_cv_prog_cc_works = no; then
2272 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2274 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2276 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2277 cross_compiling=$ac_cv_prog_cc_cross
2279 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2280 echo "configure:2281: checking whether we are using GNU C" >&5
2281 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 cat > conftest.c <<EOF
2289 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2296 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2298 if test $ac_cv_prog_gcc = yes; then
2304 ac_test_CFLAGS="${CFLAGS+set}"
2305 ac_save_CFLAGS="$CFLAGS"
2307 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2308 echo "configure:2309: checking whether ${CC-cc} accepts -g" >&5
2309 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 echo 'void f(){}' > conftest.c
2313 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2322 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2323 if test "$ac_test_CFLAGS" = set; then
2324 CFLAGS="$ac_save_CFLAGS"
2325 elif test $ac_cv_prog_cc_g = yes; then
2326 if test "$GCC" = yes; then
2332 if test "$GCC" = yes; then
2339 # Find a good install program. We prefer a C program (faster),
2340 # so one script is as good as another. But avoid the broken or
2341 # incompatible versions:
2342 # SysV /etc/install, /usr/sbin/install
2343 # SunOS /usr/etc/install
2344 # IRIX /sbin/install
2346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2349 # ./install, which can be erroneously created by make from ./install.sh.
2350 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2351 echo "configure:2352: checking for a BSD compatible install" >&5
2352 if test -z "$INSTALL"; then
2353 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2357 for ac_dir in $PATH; do
2358 # Account for people who put trailing slashes in PATH elements.
2360 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2362 # OSF1 and SCO ODT 3.0 have their own names for install.
2363 # Don't use installbsd from OSF since it installs stuff as root
2365 for ac_prog in ginstall scoinst install; do
2366 if test -f $ac_dir/$ac_prog; then
2367 if test $ac_prog = install &&
2368 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2369 # AIX install. It has an incompatible calling convention.
2372 ac_cv_path_install="$ac_dir/$ac_prog -c"
2383 if test "${ac_cv_path_install+set}" = set; then
2384 INSTALL="$ac_cv_path_install"
2386 # As a last resort, use the slow shell script. We don't cache a
2387 # path for INSTALL within a source directory, because that will
2388 # break other packages using the cache if that directory is
2389 # removed, or if the path is relative.
2390 INSTALL="$ac_install_sh"
2393 echo "$ac_t""$INSTALL" 1>&6
2395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2396 # It thinks the first close brace ends the variable substitution.
2397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2404 for ac_func in setmode
2406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2407 echo "configure:2408: checking for $ac_func" >&5
2408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 /* System header to define __stub macros and hopefully few prototypes,
2415 which can conflict with char $ac_func(); below. */
2417 /* Override any gcc2 internal prototype to avoid an error. */
2418 /* We use char because int might match the return type of a gcc2
2419 builtin and then its argument prototype would still apply. */
2424 /* The GNU C library defines this for functions which it implements
2425 to always fail with ENOSYS. Some functions are actually named
2426 something starting with __ and the normal name is an alias. */
2427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2437 eval "ac_cv_func_$ac_func=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_func_$ac_func=no"
2447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2450 cat >> confdefs.h <<EOF
2451 #define $ac_tr_func 1
2455 echo "$ac_t""no" 1>&6
2461 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2462 echo "configure:2463: checking how to run the C preprocessor" >&5
2463 # On Suns, sometimes $CPP names a directory.
2464 if test -n "$CPP" && test -d "$CPP"; then
2467 if test -z "$CPP"; then
2468 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 # This must be in double quotes, not single quotes, because CPP may get
2472 # substituted into the Makefile and "${CC-cc}" will confuse make.
2474 # On the NeXT, cc -E runs the code through the compiler's parser,
2475 # not just through cpp.
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2483 { (eval echo configure:2484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2485 if test -z "$ac_err"; then
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2492 CPP="${CC-cc} -E -traditional-cpp"
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2509 CPP="${CC-cc} -nologo -E"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2517 { (eval echo configure:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2519 if test -z "$ac_err"; then
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2533 ac_cv_prog_CPP="$CPP"
2535 CPP="$ac_cv_prog_CPP"
2537 ac_cv_prog_CPP="$CPP"
2539 echo "$ac_t""$CPP" 1>&6
2541 # Extract the first word of "ranlib", so it can be a program name with args.
2542 set dummy ranlib; ac_word=$2
2543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_word" >&5
2545 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 if test -n "$RANLIB"; then
2549 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2553 for ac_dir in $ac_dummy; do
2554 test -z "$ac_dir" && ac_dir=.
2555 if test -f $ac_dir/$ac_word; then
2556 ac_cv_prog_RANLIB="ranlib"
2561 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2564 RANLIB="$ac_cv_prog_RANLIB"
2565 if test -n "$RANLIB"; then
2566 echo "$ac_t""$RANLIB" 1>&6
2568 echo "$ac_t""no" 1>&6
2571 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2572 echo "configure:2573: checking for ANSI C header files" >&5
2573 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2585 { (eval echo configure:2586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2587 if test -z "$ac_err"; then
2589 ac_cv_header_stdc=yes
2592 echo "configure: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2595 ac_cv_header_stdc=no
2599 if test $ac_cv_header_stdc = yes; then
2600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2607 egrep "memchr" >/dev/null 2>&1; then
2611 ac_cv_header_stdc=no
2617 if test $ac_cv_header_stdc = yes; then
2618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2625 egrep "free" >/dev/null 2>&1; then
2629 ac_cv_header_stdc=no
2635 if test $ac_cv_header_stdc = yes; then
2636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2637 if test "$cross_compiling" = yes; then
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2644 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2645 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2647 int main () { int i; for (i = 0; i < 256; i++)
2648 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2652 if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2659 ac_cv_header_stdc=no
2667 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2668 if test $ac_cv_header_stdc = yes; then
2669 cat >> confdefs.h <<\EOF
2670 #define STDC_HEADERS 1
2675 echo $ac_n "checking for working const""... $ac_c" 1>&6
2676 echo "configure:2677: checking for working const" >&5
2677 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2686 /* Ultrix mips cc rejects this. */
2687 typedef int charset[2]; const charset x;
2688 /* SunOS 4.1.1 cc rejects this. */
2689 char const *const *ccp;
2691 /* NEC SVR4.0.2 mips cc rejects this. */
2692 struct point {int x, y;};
2693 static struct point const zero = {0,0};
2694 /* AIX XL C 1.02.0.0 rejects this.
2695 It does not let you subtract one const X* pointer from another in an arm
2696 of an if-expression whose if-part is not a constant expression */
2697 const char *g = "string";
2698 ccp = &g + (g ? g-g : 0);
2699 /* HPUX 7.0 cc rejects these. */
2702 ccp = (char const *const *) p;
2703 { /* SCO 3.2v4 cc rejects this. */
2705 char const *s = 0 ? (char *) 0 : (char const *) 0;
2709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2711 const int *foo = &x[0];
2714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2715 typedef const int *iptr;
2719 { /* AIX XL C 1.02.0.0 rejects this saying
2720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2721 struct s { int j; const int *ap[3]; };
2722 struct s *b; b->j = 5;
2724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2730 if { (eval echo configure:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2742 echo "$ac_t""$ac_cv_c_const" 1>&6
2743 if test $ac_cv_c_const = no; then
2744 cat >> confdefs.h <<\EOF
2750 echo $ac_n "checking for inline""... $ac_c" 1>&6
2751 echo "configure:2752: checking for inline" >&5
2752 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2756 for ac_kw in inline __inline__ __inline; do
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767 ac_cv_c_inline=$ac_kw; break
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2777 echo "$ac_t""$ac_cv_c_inline" 1>&6
2778 case "$ac_cv_c_inline" in
2780 no) cat >> confdefs.h <<\EOF
2784 *) cat >> confdefs.h <<EOF
2785 #define inline $ac_cv_c_inline
2790 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2791 echo "configure:2792: checking for off_t" >&5
2792 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2798 #include <sys/types.h>
2804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2805 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2807 ac_cv_type_off_t=yes
2815 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2816 if test $ac_cv_type_off_t = no; then
2817 cat >> confdefs.h <<\EOF
2823 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2824 echo "configure:2825: checking for size_t" >&5
2825 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #include <sys/types.h>
2837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2838 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2840 ac_cv_type_size_t=yes
2843 ac_cv_type_size_t=no
2848 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2849 if test $ac_cv_type_size_t = no; then
2850 cat >> confdefs.h <<\EOF
2851 #define size_t unsigned
2856 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2857 # for constant arguments. Useless!
2858 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2859 echo "configure:2860: checking for working alloca.h" >&5
2860 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2868 char *p = alloca(2 * sizeof(int));
2871 if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2873 ac_cv_header_alloca_h=yes
2875 echo "configure: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2878 ac_cv_header_alloca_h=no
2883 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2884 if test $ac_cv_header_alloca_h = yes; then
2885 cat >> confdefs.h <<\EOF
2886 #define HAVE_ALLOCA_H 1
2891 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2892 echo "configure:2893: checking for alloca" >&5
2893 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2901 # define alloca __builtin_alloca
2904 # include <malloc.h>
2905 # define alloca _alloca
2908 # include <alloca.h>
2913 # ifndef alloca /* predefined by HP cc +Olibcalls */
2922 char *p = (char *) alloca(1);
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2927 ac_cv_func_alloca_works=yes
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 ac_cv_func_alloca_works=no
2937 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2938 if test $ac_cv_func_alloca_works = yes; then
2939 cat >> confdefs.h <<\EOF
2940 #define HAVE_ALLOCA 1
2945 if test $ac_cv_func_alloca_works = no; then
2946 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2947 # that cause trouble. Some versions do not even contain alloca or
2948 # contain a buggy version. If you still want to use their alloca,
2949 # use ar to extract alloca.o from them instead of compiling alloca.c.
2950 ALLOCA=alloca.${ac_objext}
2951 cat >> confdefs.h <<\EOF
2956 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2957 echo "configure:2958: checking whether alloca needs Cray hooks" >&5
2958 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #if defined(CRAY) && ! defined(CRAY2)
2971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2972 egrep "webecray" >/dev/null 2>&1; then
2983 echo "$ac_t""$ac_cv_os_cray" 1>&6
2984 if test $ac_cv_os_cray = yes; then
2985 for ac_func in _getb67 GETB67 getb67; do
2986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_func" >&5
2988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 /* System header to define __stub macros and hopefully few prototypes,
2995 which can conflict with char $ac_func(); below. */
2997 /* Override any gcc2 internal prototype to avoid an error. */
2998 /* We use char because int might match the return type of a gcc2
2999 builtin and then its argument prototype would still apply. */
3004 /* The GNU C library defines this for functions which it implements
3005 to always fail with ENOSYS. Some functions are actually named
3006 something starting with __ and the normal name is an alias. */
3007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3015 if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3017 eval "ac_cv_func_$ac_func=yes"
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3022 eval "ac_cv_func_$ac_func=no"
3027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3028 echo "$ac_t""yes" 1>&6
3029 cat >> confdefs.h <<EOF
3030 #define CRAY_STACKSEG_END $ac_func
3035 echo "$ac_t""no" 1>&6
3041 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3042 echo "configure:3043: checking stack direction for C alloca" >&5
3043 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 if test "$cross_compiling" = yes; then
3047 ac_cv_c_stack_direction=0
3049 cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 find_stack_direction ()
3054 static char *addr = 0;
3059 return find_stack_direction ();
3062 return (&dummy > addr) ? 1 : -1;
3066 exit (find_stack_direction() < 0);
3069 if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3071 ac_cv_c_stack_direction=1
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3076 ac_cv_c_stack_direction=-1
3083 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3084 cat >> confdefs.h <<EOF
3085 #define STACK_DIRECTION $ac_cv_c_stack_direction
3090 for ac_hdr in unistd.h
3092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3094 echo "configure:3095: checking for $ac_hdr" >&5
3095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3104 { (eval echo configure:3105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3106 if test -z "$ac_err"; then
3108 eval "ac_cv_header_$ac_safe=yes"
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3114 eval "ac_cv_header_$ac_safe=no"
3118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3119 echo "$ac_t""yes" 1>&6
3120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3121 cat >> confdefs.h <<EOF
3122 #define $ac_tr_hdr 1
3126 echo "$ac_t""no" 1>&6
3130 for ac_func in getpagesize
3132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3133 echo "configure:3134: checking for $ac_func" >&5
3134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 cat > conftest.$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3140 /* System header to define __stub macros and hopefully few prototypes,
3141 which can conflict with char $ac_func(); below. */
3143 /* Override any gcc2 internal prototype to avoid an error. */
3144 /* We use char because int might match the return type of a gcc2
3145 builtin and then its argument prototype would still apply. */
3150 /* The GNU C library defines this for functions which it implements
3151 to always fail with ENOSYS. Some functions are actually named
3152 something starting with __ and the normal name is an alias. */
3153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3163 eval "ac_cv_func_$ac_func=yes"
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3168 eval "ac_cv_func_$ac_func=no"
3173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3174 echo "$ac_t""yes" 1>&6
3175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3176 cat >> confdefs.h <<EOF
3177 #define $ac_tr_func 1
3181 echo "$ac_t""no" 1>&6
3185 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3186 echo "configure:3187: checking for working mmap" >&5
3187 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 if test "$cross_compiling" = yes; then
3191 ac_cv_func_mmap_fixed_mapped=no
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3197 /* Thanks to Mike Haertel and Jim Avera for this test.
3198 Here is a matrix of mmap possibilities:
3199 mmap private not fixed
3200 mmap private fixed at somewhere currently unmapped
3201 mmap private fixed at somewhere already mapped
3202 mmap shared not fixed
3203 mmap shared fixed at somewhere currently unmapped
3204 mmap shared fixed at somewhere already mapped
3205 For private mappings, we should verify that changes cannot be read()
3206 back from the file, nor mmap's back from the file at a different
3207 address. (There have been systems where private was not correctly
3208 implemented like the infamous i386 svr4.0, and systems where the
3209 VM page cache was not coherent with the filesystem buffer cache
3210 like early versions of FreeBSD and possibly contemporary NetBSD.)
3211 For shared mappings, we should conversely verify that changes get
3212 propogated back to all the places they're supposed to be.
3214 Grep wants private fixed already mapped.
3215 The main things grep needs to know about mmap are:
3216 * does it exist and is it safe to write into the mmap'd area
3217 * how to use it (BSD variants) */
3218 #include <sys/types.h>
3220 #include <sys/mman.h>
3222 /* This mess was copied from the GNU getpagesize.h. */
3223 #ifndef HAVE_GETPAGESIZE
3224 # ifdef HAVE_UNISTD_H
3225 # include <unistd.h>
3228 /* Assume that all systems that can run configure have sys/param.h. */
3229 # ifndef HAVE_SYS_PARAM_H
3230 # define HAVE_SYS_PARAM_H 1
3233 # ifdef _SC_PAGESIZE
3234 # define getpagesize() sysconf(_SC_PAGESIZE)
3235 # else /* no _SC_PAGESIZE */
3236 # ifdef HAVE_SYS_PARAM_H
3237 # include <sys/param.h>
3238 # ifdef EXEC_PAGESIZE
3239 # define getpagesize() EXEC_PAGESIZE
3240 # else /* no EXEC_PAGESIZE */
3242 # define getpagesize() NBPG * CLSIZE
3245 # endif /* no CLSIZE */
3246 # else /* no NBPG */
3248 # define getpagesize() NBPC
3249 # else /* no NBPC */
3251 # define getpagesize() PAGESIZE
3252 # endif /* PAGESIZE */
3253 # endif /* no NBPC */
3254 # endif /* no NBPG */
3255 # endif /* no EXEC_PAGESIZE */
3256 # else /* no HAVE_SYS_PARAM_H */
3257 # define getpagesize() 8192 /* punt totally */
3258 # endif /* no HAVE_SYS_PARAM_H */
3259 # endif /* no _SC_PAGESIZE */
3261 #endif /* no HAVE_GETPAGESIZE */
3264 extern "C" { void *malloc(unsigned); }
3272 char *data, *data2, *data3;
3276 pagesize = getpagesize();
3279 * First, make a file with some known garbage in it.
3281 data = malloc(pagesize);
3284 for (i = 0; i < pagesize; ++i)
3285 *(data + i) = rand();
3287 fd = creat("conftestmmap", 0600);
3290 if (write(fd, data, pagesize) != pagesize)
3295 * Next, try to mmap the file at a fixed address which
3296 * already has something else allocated at it. If we can,
3297 * also make sure that we see the same garbage.
3299 fd = open("conftestmmap", O_RDWR);
3302 data2 = malloc(2 * pagesize);
3305 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3306 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3307 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3309 for (i = 0; i < pagesize; ++i)
3310 if (*(data + i) != *(data2 + i))
3314 * Finally, make sure that changes to the mapped area
3315 * do not percolate back to the file as seen by read().
3316 * (This is a bug on some variants of i386 svr4.0.)
3318 for (i = 0; i < pagesize; ++i)
3319 *(data2 + i) = *(data2 + i) + 1;
3320 data3 = malloc(pagesize);
3323 if (read(fd, data3, pagesize) != pagesize)
3325 for (i = 0; i < pagesize; ++i)
3326 if (*(data + i) != *(data3 + i))
3329 unlink("conftestmmap");
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3336 ac_cv_func_mmap_fixed_mapped=yes
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3341 ac_cv_func_mmap_fixed_mapped=no
3348 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3349 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3350 cat >> confdefs.h <<\EOF
3357 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3358 unistd.h values.h sys/param.h
3360 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3361 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3362 echo "configure:3363: checking for $ac_hdr" >&5
3363 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3372 { (eval echo configure:3373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3374 if test -z "$ac_err"; then
3376 eval "ac_cv_header_$ac_safe=yes"
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3382 eval "ac_cv_header_$ac_safe=no"
3386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3388 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3389 cat >> confdefs.h <<EOF
3390 #define $ac_tr_hdr 1
3394 echo "$ac_t""no" 1>&6
3398 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3399 __argz_count __argz_stringify __argz_next
3401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3402 echo "configure:3403: checking for $ac_func" >&5
3403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 /* System header to define __stub macros and hopefully few prototypes,
3410 which can conflict with char $ac_func(); below. */
3412 /* Override any gcc2 internal prototype to avoid an error. */
3413 /* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3419 /* The GNU C library defines this for functions which it implements
3420 to always fail with ENOSYS. Some functions are actually named
3421 something starting with __ and the normal name is an alias. */
3422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3432 eval "ac_cv_func_$ac_func=yes"
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3437 eval "ac_cv_func_$ac_func=no"
3442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3443 echo "$ac_t""yes" 1>&6
3444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3445 cat >> confdefs.h <<EOF
3446 #define $ac_tr_func 1
3450 echo "$ac_t""no" 1>&6
3455 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3456 for ac_func in stpcpy
3458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3459 echo "configure:3460: checking for $ac_func" >&5
3460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 /* System header to define __stub macros and hopefully few prototypes,
3467 which can conflict with char $ac_func(); below. */
3469 /* Override any gcc2 internal prototype to avoid an error. */
3470 /* We use char because int might match the return type of a gcc2
3471 builtin and then its argument prototype would still apply. */
3476 /* The GNU C library defines this for functions which it implements
3477 to always fail with ENOSYS. Some functions are actually named
3478 something starting with __ and the normal name is an alias. */
3479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3489 eval "ac_cv_func_$ac_func=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3494 eval "ac_cv_func_$ac_func=no"
3499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3502 cat >> confdefs.h <<EOF
3503 #define $ac_tr_func 1
3507 echo "$ac_t""no" 1>&6
3512 if test "${ac_cv_func_stpcpy}" = "yes"; then
3513 cat >> confdefs.h <<\EOF
3514 #define HAVE_STPCPY 1
3519 if test $ac_cv_header_locale_h = yes; then
3520 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3521 echo "configure:3522: checking for LC_MESSAGES" >&5
3522 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3533 if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3535 am_cv_val_LC_MESSAGES=yes
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 am_cv_val_LC_MESSAGES=no
3545 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3546 if test $am_cv_val_LC_MESSAGES = yes; then
3547 cat >> confdefs.h <<\EOF
3548 #define HAVE_LC_MESSAGES 1
3553 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3554 echo "configure:3555: checking whether NLS is requested" >&5
3555 # Check whether --enable-nls or --disable-nls was given.
3556 if test "${enable_nls+set}" = set; then
3557 enableval="$enable_nls"
3563 echo "$ac_t""$USE_NLS" 1>&6
3566 USE_INCLUDED_LIBINTL=no
3568 if test "$USE_NLS" = "yes"; then
3569 cat >> confdefs.h <<\EOF
3570 #define ENABLE_NLS 1
3573 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3574 echo "configure:3575: checking whether included gettext is requested" >&5
3575 # Check whether --with-included-gettext or --without-included-gettext was given.
3576 if test "${with_included_gettext+set}" = set; then
3577 withval="$with_included_gettext"
3578 nls_cv_force_use_gnu_gettext=$withval
3580 nls_cv_force_use_gnu_gettext=no
3583 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3585 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3586 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3588 nls_cv_header_libgt=
3591 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3592 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3593 echo "configure:3594: checking for libintl.h" >&5
3594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <libintl.h>
3602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3603 { (eval echo configure:3604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3605 if test -z "$ac_err"; then
3607 eval "ac_cv_header_$ac_safe=yes"
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3613 eval "ac_cv_header_$ac_safe=no"
3617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3618 echo "$ac_t""yes" 1>&6
3619 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3620 echo "configure:3621: checking for gettext in libc" >&5
3621 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 cat > conftest.$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3627 #include <libintl.h>
3629 return (int) gettext ("")
3632 if { (eval echo configure:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3634 gt_cv_func_gettext_libc=yes
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3639 gt_cv_func_gettext_libc=no
3644 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3646 if test "$gt_cv_func_gettext_libc" != "yes"; then
3647 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3648 echo "configure:3649: checking for bindtextdomain in -lintl" >&5
3649 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 ac_save_LIBS="$LIBS"
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661 char bindtextdomain();
3667 if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3669 eval "ac_cv_lib_$ac_lib_var=yes"
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 eval "ac_cv_lib_$ac_lib_var=no"
3677 LIBS="$ac_save_LIBS"
3680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3682 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3683 echo "configure:3684: checking for gettext in libintl" >&5
3684 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3692 return (int) gettext ("")
3695 if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3697 gt_cv_func_gettext_libintl=yes
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 gt_cv_func_gettext_libintl=no
3707 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3709 echo "$ac_t""no" 1>&6
3714 if test "$gt_cv_func_gettext_libc" = "yes" \
3715 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3716 cat >> confdefs.h <<\EOF
3717 #define HAVE_GETTEXT 1
3720 # Extract the first word of "msgfmt", so it can be a program name with args.
3721 set dummy msgfmt; ac_word=$2
3722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3723 echo "configure:3724: checking for $ac_word" >&5
3724 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3729 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3733 for ac_dir in $PATH; do
3734 test -z "$ac_dir" && ac_dir=.
3735 if test -f $ac_dir/$ac_word; then
3736 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3737 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3743 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3747 MSGFMT="$ac_cv_path_MSGFMT"
3748 if test -n "$MSGFMT"; then
3749 echo "$ac_t""$MSGFMT" 1>&6
3751 echo "$ac_t""no" 1>&6
3753 if test "$MSGFMT" != "no"; then
3754 for ac_func in dcgettext
3756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3757 echo "configure:3758: checking for $ac_func" >&5
3758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 /* System header to define __stub macros and hopefully few prototypes,
3765 which can conflict with char $ac_func(); below. */
3767 /* Override any gcc2 internal prototype to avoid an error. */
3768 /* We use char because int might match the return type of a gcc2
3769 builtin and then its argument prototype would still apply. */
3774 /* The GNU C library defines this for functions which it implements
3775 to always fail with ENOSYS. Some functions are actually named
3776 something starting with __ and the normal name is an alias. */
3777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3785 if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3787 eval "ac_cv_func_$ac_func=yes"
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3792 eval "ac_cv_func_$ac_func=no"
3797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3798 echo "$ac_t""yes" 1>&6
3799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3800 cat >> confdefs.h <<EOF
3801 #define $ac_tr_func 1
3805 echo "$ac_t""no" 1>&6
3809 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3810 set dummy gmsgfmt; ac_word=$2
3811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3812 echo "configure:3813: checking for $ac_word" >&5
3813 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3818 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3821 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3826 for ac_dir in $ac_dummy; do
3827 test -z "$ac_dir" && ac_dir=.
3828 if test -f $ac_dir/$ac_word; then
3829 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3834 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3838 GMSGFMT="$ac_cv_path_GMSGFMT"
3839 if test -n "$GMSGFMT"; then
3840 echo "$ac_t""$GMSGFMT" 1>&6
3842 echo "$ac_t""no" 1>&6
3845 # Extract the first word of "xgettext", so it can be a program name with args.
3846 set dummy xgettext; ac_word=$2
3847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3848 echo "configure:3849: checking for $ac_word" >&5
3849 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3854 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3858 for ac_dir in $PATH; do
3859 test -z "$ac_dir" && ac_dir=.
3860 if test -f $ac_dir/$ac_word; then
3861 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3862 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3868 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3872 XGETTEXT="$ac_cv_path_XGETTEXT"
3873 if test -n "$XGETTEXT"; then
3874 echo "$ac_t""$XGETTEXT" 1>&6
3876 echo "$ac_t""no" 1>&6
3879 cat > conftest.$ac_ext <<EOF
3880 #line 3881 "configure"
3881 #include "confdefs.h"
3884 extern int _nl_msg_cat_cntr;
3885 return _nl_msg_cat_cntr
3888 if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3905 echo "$ac_t""no" 1>&6
3910 if test "$CATOBJEXT" = "NONE"; then
3911 nls_cv_use_gnu_gettext=yes
3915 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3916 INTLOBJS="\$(GETTOBJS)"
3917 # Extract the first word of "msgfmt", so it can be a program name with args.
3918 set dummy msgfmt; ac_word=$2
3919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3920 echo "configure:3921: checking for $ac_word" >&5
3921 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3926 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3930 for ac_dir in $PATH; do
3931 test -z "$ac_dir" && ac_dir=.
3932 if test -f $ac_dir/$ac_word; then
3933 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3934 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3940 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3944 MSGFMT="$ac_cv_path_MSGFMT"
3945 if test -n "$MSGFMT"; then
3946 echo "$ac_t""$MSGFMT" 1>&6
3948 echo "$ac_t""no" 1>&6
3951 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3952 set dummy gmsgfmt; ac_word=$2
3953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3954 echo "configure:3955: checking for $ac_word" >&5
3955 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3960 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3963 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3968 for ac_dir in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir=.
3970 if test -f $ac_dir/$ac_word; then
3971 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3976 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3980 GMSGFMT="$ac_cv_path_GMSGFMT"
3981 if test -n "$GMSGFMT"; then
3982 echo "$ac_t""$GMSGFMT" 1>&6
3984 echo "$ac_t""no" 1>&6
3987 # Extract the first word of "xgettext", so it can be a program name with args.
3988 set dummy xgettext; ac_word=$2
3989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3990 echo "configure:3991: checking for $ac_word" >&5
3991 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3996 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4000 for ac_dir in $PATH; do
4001 test -z "$ac_dir" && ac_dir=.
4002 if test -f $ac_dir/$ac_word; then
4003 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4004 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4010 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4014 XGETTEXT="$ac_cv_path_XGETTEXT"
4015 if test -n "$XGETTEXT"; then
4016 echo "$ac_t""$XGETTEXT" 1>&6
4018 echo "$ac_t""no" 1>&6
4022 USE_INCLUDED_LIBINTL=yes
4026 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4028 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4029 nls_cv_header_intl=libintl.h
4030 nls_cv_header_libgt=libgettext.h
4033 if test "$XGETTEXT" != ":"; then
4034 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4037 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4042 # We need to process the po/ directory.
4046 nls_cv_header_intl=libintl.h
4047 nls_cv_header_libgt=libgettext.h
4050 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4051 # because some of the sources are only built for this goal.
4052 if test "$PACKAGE" = gettext; then
4054 USE_INCLUDED_LIBINTL=yes
4057 for lang in $ALL_LINGUAS; do
4058 GMOFILES="$GMOFILES $lang.gmo"
4059 POFILES="$POFILES $lang.po"
4075 if test "x$CATOBJEXT" != "x"; then
4076 if test "x$ALL_LINGUAS" = "x"; then
4079 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4080 echo "configure:4081: checking for catalogs to be installed" >&5
4082 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4083 case "$ALL_LINGUAS" in
4084 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4087 LINGUAS=$NEW_LINGUAS
4088 echo "$ac_t""$LINGUAS" 1>&6
4091 if test -n "$LINGUAS"; then
4092 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4096 if test $ac_cv_header_locale_h = yes; then
4097 INCLUDE_LOCALE_H="#include <locale.h>"
4100 /* The system does not provide the header <locale.h>. Take care yourself. */"
4104 if test -f $srcdir/po2tbl.sed.in; then
4105 if test "$CATOBJEXT" = ".cat"; then
4106 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4107 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4108 echo "configure:4109: checking for linux/version.h" >&5
4109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 #include <linux/version.h>
4117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4118 { (eval echo configure:4119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4120 if test -z "$ac_err"; then
4122 eval "ac_cv_header_$ac_safe=yes"
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 eval "ac_cv_header_$ac_safe=no"
4132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4133 echo "$ac_t""yes" 1>&6
4136 echo "$ac_t""no" 1>&6
4141 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4143 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4144 $srcdir/po2tbl.sed.in > po2tbl.sed
4147 if test "$PACKAGE" = "gettext"; then
4157 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4163 if test -d $srcdir/po; then
4164 test -d po || mkdir po
4165 if test "x$srcdir" != "x."; then
4166 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4167 posrcprefix="$srcdir/"
4169 posrcprefix="../$srcdir/"
4175 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4176 < $srcdir/po/POTFILES.in > po/POTFILES
4180 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4181 echo "configure:4182: checking whether to enable maintainer-specific portions of Makefiles" >&5
4182 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4183 if test "${enable_maintainer_mode+set}" = set; then
4184 enableval="$enable_maintainer_mode"
4185 USE_MAINTAINER_MODE=$enableval
4187 USE_MAINTAINER_MODE=no
4190 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4193 if test $USE_MAINTAINER_MODE = yes; then
4194 MAINTAINER_MODE_TRUE=
4195 MAINTAINER_MODE_FALSE='#'
4197 MAINTAINER_MODE_TRUE='#'
4198 MAINTAINER_MODE_FALSE=
4200 MAINT=$MAINTAINER_MODE_TRUE
4205 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4206 echo "configure:4207: checking for executable suffix" >&5
4207 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4210 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4214 echo 'int main () { return 0; }' > conftest.$ac_ext
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4217 for file in conftest.*; do
4219 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4220 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4224 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4227 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4232 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4233 echo "$ac_t""${ac_cv_exeext}" 1>&6
4237 build_warnings="-W -Wall"
4238 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4239 if test "${enable_build_warnings+set}" = set; then
4240 enableval="$enable_build_warnings"
4241 case "${enableval}" in
4243 no) build_warnings="-w";;
4244 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4245 build_warnings="${build_warnings} ${t}";;
4246 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4247 build_warnings="${t} ${build_warnings}";;
4248 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4250 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4251 echo "Setting warning flags = $build_warnings" 6>&1
4255 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4256 WARN_CFLAGS="${build_warnings}"
4261 cat > confcache <<\EOF
4262 # This file is a shell script that caches the results of configure
4263 # tests run on this system so they can be shared between configure
4264 # scripts and configure runs. It is not useful on other systems.
4265 # If it contains results you don't want to keep, you may remove or edit it.
4267 # By default, configure uses ./config.cache as the cache file,
4268 # creating it if it does not exist already. You can give configure
4269 # the --cache-file=FILE option to use a different cache file; that is
4270 # what configure does when it calls configure scripts in
4271 # subdirectories, so they share the cache.
4272 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4273 # config.status only pays attention to the cache file if you give it the
4274 # --recheck option to rerun configure.
4277 # The following way of writing the cache mishandles newlines in values,
4278 # but we know of no workaround that is simple, portable, and efficient.
4279 # So, don't put newlines in cache variables' values.
4280 # Ultrix sh set writes to stderr and can't be redirected directly,
4281 # and sets the high bit in the cache file unless we assign to the vars.
4283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4285 # `set' does not quote correctly, so add quotes (double-quote substitution
4286 # turns \\\\ into \\, and sed turns \\ into \).
4288 -e "s/'/'\\\\''/g" \
4289 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4292 # `set' quotes correctly as required by POSIX, so do not add quotes.
4293 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4296 if cmp -s $cache_file confcache; then
4299 if test -w $cache_file; then
4300 echo "updating cache $cache_file"
4301 cat confcache > $cache_file
4303 echo "not updating unwritable cache $cache_file"
4308 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4311 # Let make expand exec_prefix.
4312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4314 # Any assignment to VPATH causes Sun make to only execute
4315 # the first set of double-colon rules, so remove it if not needed.
4316 # If there is a colon in the path, we need to keep it.
4317 if test "x$srcdir" = x.; then
4318 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4321 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4323 DEFS=-DHAVE_CONFIG_H
4325 # Without the "./", some shells look in PATH for config.status.
4326 : ${CONFIG_STATUS=./config.status}
4328 echo creating $CONFIG_STATUS
4329 rm -f $CONFIG_STATUS
4330 cat > $CONFIG_STATUS <<EOF
4332 # Generated automatically by configure.
4333 # Run this file to recreate the current configuration.
4334 # This directory was configured as follows,
4335 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4337 # $0 $ac_configure_args
4339 # Compiler output produced by configure, useful for debugging
4340 # configure, is in ./config.log if it exists.
4342 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4345 case "\$ac_option" in
4346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4347 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4348 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4349 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4350 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4352 -help | --help | --hel | --he | --h)
4353 echo "\$ac_cs_usage"; exit 0 ;;
4354 *) echo "\$ac_cs_usage"; exit 1 ;;
4358 ac_given_srcdir=$srcdir
4359 ac_given_INSTALL="$INSTALL"
4361 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4363 cat >> $CONFIG_STATUS <<EOF
4365 # Protect against being on the right side of a sed subst in config.status.
4366 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4367 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4371 s%@CFLAGS@%$CFLAGS%g
4372 s%@CPPFLAGS@%$CPPFLAGS%g
4373 s%@CXXFLAGS@%$CXXFLAGS%g
4374 s%@FFLAGS@%$FFLAGS%g
4376 s%@LDFLAGS@%$LDFLAGS%g
4378 s%@exec_prefix@%$exec_prefix%g
4379 s%@prefix@%$prefix%g
4380 s%@program_transform_name@%$program_transform_name%g
4381 s%@bindir@%$bindir%g
4382 s%@sbindir@%$sbindir%g
4383 s%@libexecdir@%$libexecdir%g
4384 s%@datadir@%$datadir%g
4385 s%@sysconfdir@%$sysconfdir%g
4386 s%@sharedstatedir@%$sharedstatedir%g
4387 s%@localstatedir@%$localstatedir%g
4388 s%@libdir@%$libdir%g
4389 s%@includedir@%$includedir%g
4390 s%@oldincludedir@%$oldincludedir%g
4391 s%@infodir@%$infodir%g
4392 s%@mandir@%$mandir%g
4394 s%@host_alias@%$host_alias%g
4395 s%@host_cpu@%$host_cpu%g
4396 s%@host_vendor@%$host_vendor%g
4397 s%@host_os@%$host_os%g
4398 s%@target@%$target%g
4399 s%@target_alias@%$target_alias%g
4400 s%@target_cpu@%$target_cpu%g
4401 s%@target_vendor@%$target_vendor%g
4402 s%@target_os@%$target_os%g
4404 s%@build_alias@%$build_alias%g
4405 s%@build_cpu@%$build_cpu%g
4406 s%@build_vendor@%$build_vendor%g
4407 s%@build_os@%$build_os%g
4409 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4410 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4411 s%@INSTALL_DATA@%$INSTALL_DATA%g
4412 s%@PACKAGE@%$PACKAGE%g
4413 s%@VERSION@%$VERSION%g
4414 s%@ACLOCAL@%$ACLOCAL%g
4415 s%@AUTOCONF@%$AUTOCONF%g
4416 s%@AUTOMAKE@%$AUTOMAKE%g
4417 s%@AUTOHEADER@%$AUTOHEADER%g
4418 s%@MAKEINFO@%$MAKEINFO%g
4419 s%@SET_MAKE@%$SET_MAKE%g
4421 s%@OBJEXT@%$OBJEXT%g
4422 s%@EXEEXT@%$EXEEXT%g
4423 s%@RANLIB@%$RANLIB%g
4425 s%@LIBTOOL@%$LIBTOOL%g
4427 s%@ALLOCA@%$ALLOCA%g
4428 s%@USE_NLS@%$USE_NLS%g
4429 s%@MSGFMT@%$MSGFMT%g
4430 s%@GMSGFMT@%$GMSGFMT%g
4431 s%@XGETTEXT@%$XGETTEXT%g
4432 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4433 s%@CATALOGS@%$CATALOGS%g
4434 s%@CATOBJEXT@%$CATOBJEXT%g
4435 s%@DATADIRNAME@%$DATADIRNAME%g
4436 s%@GMOFILES@%$GMOFILES%g
4437 s%@INSTOBJEXT@%$INSTOBJEXT%g
4438 s%@INTLDEPS@%$INTLDEPS%g
4439 s%@INTLLIBS@%$INTLLIBS%g
4440 s%@INTLOBJS@%$INTLOBJS%g
4441 s%@POFILES@%$POFILES%g
4443 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4445 s%@GT_YES@%$GT_YES%g
4446 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4448 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4449 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4451 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4456 cat >> $CONFIG_STATUS <<\EOF
4458 # Split the substitutions into bite-sized pieces for seds with
4459 # small command number limits, like on Digital OSF/1 and HP-UX.
4460 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4461 ac_file=1 # Number of current file.
4462 ac_beg=1 # First line for current file.
4463 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4466 while $ac_more_lines; do
4467 if test $ac_beg -gt 1; then
4468 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4470 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4472 if test ! -s conftest.s$ac_file; then
4474 rm -f conftest.s$ac_file
4476 if test -z "$ac_sed_cmds"; then
4477 ac_sed_cmds="sed -f conftest.s$ac_file"
4479 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4481 ac_file=`expr $ac_file + 1`
4483 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4486 if test -z "$ac_sed_cmds"; then
4491 cat >> $CONFIG_STATUS <<EOF
4493 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4495 cat >> $CONFIG_STATUS <<\EOF
4496 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4497 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4499 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4500 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4501 *) ac_file_in="${ac_file}.in" ;;
4504 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4506 # Remove last slash and all that follows it. Not all systems have dirname.
4507 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4508 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4509 # The file is in a subdirectory.
4510 test ! -d "$ac_dir" && mkdir "$ac_dir"
4511 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4512 # A "../" for each directory in $ac_dir_suffix.
4513 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4515 ac_dir_suffix= ac_dots=
4518 case "$ac_given_srcdir" in
4520 if test -z "$ac_dots"; then top_srcdir=.
4521 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4522 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4524 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4525 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4528 case "$ac_given_INSTALL" in
4529 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4530 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4533 echo creating "$ac_file"
4535 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4537 *Makefile*) ac_comsub="1i\\
4538 # $configure_input" ;;
4542 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4544 s%@configure_input@%$configure_input%g
4545 s%@srcdir@%$srcdir%g
4546 s%@top_srcdir@%$top_srcdir%g
4547 s%@INSTALL@%$INSTALL%g
4548 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4552 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4553 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4555 # ac_d sets the value in "#define NAME VALUE" lines.
4556 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4557 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4560 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4561 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4562 ac_uB='\([ ]\)%\1#\2define\3'
4565 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4566 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4567 ac_eB='$%\1#\2define\3'
4571 if test "${CONFIG_HEADERS+set}" != set; then
4573 cat >> $CONFIG_STATUS <<EOF
4574 CONFIG_HEADERS="gconfig.h:gconfig.in"
4576 cat >> $CONFIG_STATUS <<\EOF
4578 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4581 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4582 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4583 *) ac_file_in="${ac_file}.in" ;;
4586 echo creating $ac_file
4588 rm -f conftest.frag conftest.in conftest.out
4589 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4590 cat $ac_file_inputs > conftest.in
4594 # Transform confdefs.h into a sed script conftest.vals that substitutes
4595 # the proper values into config.h.in to produce config.h. And first:
4596 # Protect against being on the right side of a sed subst in config.status.
4597 # Protect against being in an unquoted here document in config.status.
4599 cat > conftest.hdr <<\EOF
4602 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4606 sed -n -f conftest.hdr confdefs.h > conftest.vals
4609 # This sed command replaces #undef with comments. This is necessary, for
4610 # example, in the case of _POSIX_SOURCE, which is predefined and required
4611 # on some systems where configure will not decide to define it.
4612 cat >> conftest.vals <<\EOF
4613 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4616 # Break up conftest.vals because some shells have a limit on
4617 # the size of here documents, and old seds have small limits too.
4622 ac_lines=`grep -c . conftest.vals`
4623 # grep -c gives empty output for an empty file on some AIX systems.
4624 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4625 # Write a limited-size here document to conftest.frag.
4626 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4627 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4629 sed -f conftest.frag conftest.in > conftest.out
4631 mv conftest.out conftest.in
4633 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4635 mv conftest.tail conftest.vals
4639 cat >> $CONFIG_STATUS <<\EOF
4640 rm -f conftest.frag conftest.h
4641 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4642 cat conftest.in >> conftest.h
4644 if cmp -s $ac_file conftest.h 2>/dev/null; then
4645 echo "$ac_file is unchanged"
4648 # Remove last slash and all that follows it. Not all systems have dirname.
4649 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4650 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4651 # The file is in a subdirectory.
4652 test ! -d "$ac_dir" && mkdir "$ac_dir"
4655 mv conftest.h $ac_file
4660 cat >> $CONFIG_STATUS <<EOF
4664 cat >> $CONFIG_STATUS <<\EOF
4665 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4666 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4669 chmod +x $CONFIG_STATUS
4670 rm -fr confdefs* $ac_clean_files
4671 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1