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-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --with-pic try to use only PIC/non-PIC objects [default=use both]"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file=./config.cache
43 program_transform_name=s,x,x,
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
65 # Initialize some other variables.
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --site-file=FILE use FILE as the site file
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -site-file | --site-file | --site-fil | --site-fi | --site-f)
334 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
335 sitefile="$ac_optarg" ;;
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347 sysconfdir="$ac_optarg" ;;
349 -target | --target | --targe | --targ | --tar | --ta | --t)
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* | --without-*)
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392 x_includes="$ac_optarg" ;;
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399 x_libraries="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=Makefile.in
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486 if test ! -r $srcdir/$ac_unique_file; then
490 ac_srcdir_defaulted=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$sitefile"; then
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE; then
505 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 CONFIG_SITE="$sitefile"
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
524 echo "creating cache $cache_file"
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
537 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
546 ac_n= ac_c='\c' ac_t=
551 for ac_dir in ../../../config $srcdir/../../../config; do
552 if test -f $ac_dir/install-sh; then
554 ac_install_sh="$ac_aux_dir/install-sh -c"
556 elif test -f $ac_dir/install.sh; then
558 ac_install_sh="$ac_aux_dir/install.sh -c"
562 if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in ../../../config $srcdir/../../../config" 1>&2; exit 1; }
565 ac_config_guess=$ac_aux_dir/config.guess
566 ac_config_sub=$ac_aux_dir/config.sub
567 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
569 # Find a good install program. We prefer a C program (faster),
570 # so one script is as good as another. But avoid the broken or
571 # incompatible versions:
572 # SysV /etc/install, /usr/sbin/install
573 # SunOS /usr/etc/install
576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
579 # ./install, which can be erroneously created by make from ./install.sh.
580 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
581 echo "configure:582: checking for a BSD compatible install" >&5
582 if test -z "$INSTALL"; then
583 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
587 for ac_dir in $PATH; do
588 # Account for people who put trailing slashes in PATH elements.
590 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
592 # OSF1 and SCO ODT 3.0 have their own names for install.
593 # Don't use installbsd from OSF since it installs stuff as root
595 for ac_prog in ginstall scoinst install; do
596 if test -f $ac_dir/$ac_prog; then
597 if test $ac_prog = install &&
598 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
599 # AIX install. It has an incompatible calling convention.
602 ac_cv_path_install="$ac_dir/$ac_prog -c"
613 if test "${ac_cv_path_install+set}" = set; then
614 INSTALL="$ac_cv_path_install"
616 # As a last resort, use the slow shell script. We don't cache a
617 # path for INSTALL within a source directory, because that will
618 # break other packages using the cache if that directory is
619 # removed, or if the path is relative.
620 INSTALL="$ac_install_sh"
623 echo "$ac_t""$INSTALL" 1>&6
625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
626 # It thinks the first close brace ends the variable substitution.
627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
633 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
634 echo "configure:635: checking whether build environment is sane" >&5
637 echo timestamp > conftestfile
638 # Do `set' in a subshell so we don't clobber the current shell's
639 # arguments. Must try -L first in case configure is actually a
640 # symlink; some systems play weird games with the mod time of symlinks
641 # (eg FreeBSD returns the mod time of the symlink's containing
644 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
645 if test "$*" = "X"; then
647 set X `ls -t $srcdir/configure conftestfile`
649 if test "$*" != "X $srcdir/configure conftestfile" \
650 && test "$*" != "X conftestfile $srcdir/configure"; then
652 # If neither matched, then we have a broken ls. This can happen
653 # if, for instance, CONFIG_SHELL is bash and it inherits a
654 # broken ls alias from the environment. This has actually
655 # happened. Such a system could not be considered "sane".
656 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
657 alias in your environment" 1>&2; exit 1; }
660 test "$2" = conftestfile
666 { echo "configure: error: newly created file is older than distributed files!
667 Check your system clock" 1>&2; exit 1; }
670 echo "$ac_t""yes" 1>&6
671 if test "$program_transform_name" = s,x,x,; then
672 program_transform_name=
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED > conftestsed
676 s,\\,\\\\,g; s,\$,$$,g
678 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
681 test "$program_prefix" != NONE &&
682 program_transform_name="s,^,${program_prefix},; $program_transform_name"
683 # Use a double $ so make ignores it.
684 test "$program_suffix" != NONE &&
685 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
687 # sed with no file args requires a program.
688 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
690 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${MAKE-make} sets \${MAKE}" >&5
692 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
693 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 cat > conftestmake <<\EOF
698 @echo 'ac_maketemp="${MAKE}"'
700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
701 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
702 if test -n "$ac_maketemp"; then
703 eval ac_cv_prog_make_${ac_make}_set=yes
705 eval ac_cv_prog_make_${ac_make}_set=no
709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
710 echo "$ac_t""yes" 1>&6
713 echo "$ac_t""no" 1>&6
714 SET_MAKE="MAKE=${MAKE-make}"
722 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
723 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
725 cat >> confdefs.h <<EOF
726 #define PACKAGE "$PACKAGE"
729 cat >> confdefs.h <<EOF
730 #define VERSION "$VERSION"
735 missing_dir=`cd $ac_aux_dir && pwd`
736 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
737 echo "configure:738: checking for working aclocal" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
743 echo "$ac_t""found" 1>&6
745 ACLOCAL="$missing_dir/missing aclocal"
746 echo "$ac_t""missing" 1>&6
749 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
750 echo "configure:751: checking for working autoconf" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
756 echo "$ac_t""found" 1>&6
758 AUTOCONF="$missing_dir/missing autoconf"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working automake""... $ac_c" 1>&6
763 echo "configure:764: checking for working automake" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (automake --version) < /dev/null > /dev/null 2>&1; then
769 echo "$ac_t""found" 1>&6
771 AUTOMAKE="$missing_dir/missing automake"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
776 echo "configure:777: checking for working autoheader" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
781 AUTOHEADER=autoheader
782 echo "$ac_t""found" 1>&6
784 AUTOHEADER="$missing_dir/missing autoheader"
785 echo "$ac_t""missing" 1>&6
788 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
789 echo "configure:790: checking for working makeinfo" >&5
790 # Run test in a subshell; some versions of sh will print an error if
791 # an executable is not found, even if stderr is redirected.
792 # Redirect stdin to placate older versions of autoconf. Sigh.
793 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
795 echo "$ac_t""found" 1>&6
797 MAKEINFO="$missing_dir/missing makeinfo"
798 echo "$ac_t""missing" 1>&6
803 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
804 echo "configure:805: checking whether to enable maintainer-specific portions of Makefiles" >&5
805 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
806 if test "${enable_maintainer_mode+set}" = set; then
807 enableval="$enable_maintainer_mode"
808 USE_MAINTAINER_MODE=$enableval
810 USE_MAINTAINER_MODE=no
813 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
816 if test $USE_MAINTAINER_MODE = yes; then
817 MAINTAINER_MODE_TRUE=
818 MAINTAINER_MODE_FALSE='#'
820 MAINTAINER_MODE_TRUE='#'
821 MAINTAINER_MODE_FALSE=
823 MAINT=$MAINTAINER_MODE_TRUE
827 # Check whether --enable-shared or --disable-shared was given.
828 if test "${enable_shared+set}" = set; then
829 enableval="$enable_shared"
832 yes) enable_shared=yes ;;
833 no) enable_shared=no ;;
836 # Look at the argument we got. We use all the common list separators.
837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
838 for pkg in $enableval; do
839 if test "X$pkg" = "X$p"; then
850 # Check whether --enable-static or --disable-static was given.
851 if test "${enable_static+set}" = set; then
852 enableval="$enable_static"
855 yes) enable_static=yes ;;
856 no) enable_static=no ;;
859 # Look at the argument we got. We use all the common list separators.
860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
861 for pkg in $enableval; do
862 if test "X$pkg" = "X$p"; then
873 # Check whether --enable-fast-install or --disable-fast-install was given.
874 if test "${enable_fast_install+set}" = set; then
875 enableval="$enable_fast_install"
878 yes) enable_fast_install=yes ;;
879 no) enable_fast_install=no ;;
881 enable_fast_install=no
882 # Look at the argument we got. We use all the common list separators.
883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
884 for pkg in $enableval; do
885 if test "X$pkg" = "X$p"; then
886 enable_fast_install=yes
893 enable_fast_install=yes
897 # Make sure we can run config.sub.
898 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
899 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
902 echo $ac_n "checking host system type""... $ac_c" 1>&6
903 echo "configure:904: checking host system type" >&5
906 case "$host_alias" in
910 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
911 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
913 *) host_alias=$nonopt ;;
917 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
918 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
921 echo "$ac_t""$host" 1>&6
923 echo $ac_n "checking build system type""... $ac_c" 1>&6
924 echo "configure:925: checking build system type" >&5
927 case "$build_alias" in
930 NONE) build_alias=$host_alias ;;
931 *) build_alias=$nonopt ;;
935 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
936 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
937 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
938 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
939 echo "$ac_t""$build" 1>&6
941 # Extract the first word of "gcc", so it can be a program name with args.
942 set dummy gcc; ac_word=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 if test -n "$CC"; then
949 ac_cv_prog_CC="$CC" # Let the user override the test.
951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
953 for ac_dir in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir=.
955 if test -f $ac_dir/$ac_word; then
964 if test -n "$CC"; then
965 echo "$ac_t""$CC" 1>&6
967 echo "$ac_t""no" 1>&6
970 if test -z "$CC"; then
971 # Extract the first word of "cc", so it can be a program name with args.
972 set dummy cc; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test -n "$CC"; then
979 ac_cv_prog_CC="$CC" # Let the user override the test.
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
984 for ac_dir in $ac_dummy; do
985 test -z "$ac_dir" && ac_dir=.
986 if test -f $ac_dir/$ac_word; then
987 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
996 if test $ac_prog_rejected = yes; then
997 # We found a bogon in the path, so make sure we never use it.
998 set dummy $ac_cv_prog_CC
1000 if test $# -gt 0; then
1001 # We chose a different compiler from the bogus one.
1002 # However, it has the same basename, so the bogon will be chosen
1003 # first if we set CC to just the basename; use the full file name.
1005 set dummy "$ac_dir/$ac_word" "$@"
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1016 echo "$ac_t""no" 1>&6
1019 if test -z "$CC"; then
1020 case "`uname -s`" in
1022 # Extract the first word of "cl", so it can be a program name with args.
1023 set dummy cl; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test.
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1045 if test -n "$CC"; then
1046 echo "$ac_t""$CC" 1>&6
1048 echo "$ac_t""no" 1>&6
1053 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1056 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1057 echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1061 ac_cpp='$CPP $CPPFLAGS'
1062 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1063 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1064 cross_compiling=$ac_cv_prog_cc_cross
1066 cat > conftest.$ac_ext << EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1073 if { (eval echo configure:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1074 ac_cv_prog_cc_works=yes
1075 # If we can't run a trivial program, we are probably using a cross compiler.
1076 if (./conftest; exit) 2>/dev/null; then
1077 ac_cv_prog_cc_cross=no
1079 ac_cv_prog_cc_cross=yes
1082 echo "configure: failed program was:" >&5
1083 cat conftest.$ac_ext >&5
1084 ac_cv_prog_cc_works=no
1088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1089 ac_cpp='$CPP $CPPFLAGS'
1090 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1091 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1092 cross_compiling=$ac_cv_prog_cc_cross
1094 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1095 if test $ac_cv_prog_cc_works = no; then
1096 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1098 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1100 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1101 cross_compiling=$ac_cv_prog_cc_cross
1103 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether we are using GNU C" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 cat > conftest.c <<EOF
1113 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1120 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1122 if test $ac_cv_prog_gcc = yes; then
1128 ac_test_CFLAGS="${CFLAGS+set}"
1129 ac_save_CFLAGS="$CFLAGS"
1131 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1132 echo "configure:1133: checking whether ${CC-cc} accepts -g" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 echo 'void f(){}' > conftest.c
1137 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1146 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1147 if test "$ac_test_CFLAGS" = set; then
1148 CFLAGS="$ac_save_CFLAGS"
1149 elif test $ac_cv_prog_cc_g = yes; then
1150 if test "$GCC" = yes; then
1156 if test "$GCC" = yes; then
1163 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1164 if test "${with_gnu_ld+set}" = set; then
1165 withval="$with_gnu_ld"
1166 test "$withval" = no || with_gnu_ld=yes
1172 if test "$ac_cv_prog_gcc" = yes; then
1173 # Check if gcc -print-prog-name=ld gives a path.
1174 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1175 echo "configure:1176: checking for ld used by GCC" >&5
1178 # gcc leaves a trailing carriage return which upsets mingw
1179 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1181 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1184 # Accept absolute paths.
1185 [\\/]* | [A-Za-z]:[\\/]*)
1186 re_direlt='/[^/][^/]*/\.\./'
1187 # Canonicalize the path of ld
1188 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1189 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1190 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1192 test -z "$LD" && LD="$ac_prog"
1195 # If it fails, then pretend we aren't using GCC.
1199 # If it is relative, then search for the first ld in PATH.
1203 elif test "$with_gnu_ld" = yes; then
1204 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1205 echo "configure:1206: checking for GNU ld" >&5
1207 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1208 echo "configure:1209: checking for non-GNU ld" >&5
1210 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 if test -z "$LD"; then
1214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1215 for ac_dir in $PATH; do
1216 test -z "$ac_dir" && ac_dir=.
1217 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1218 ac_cv_path_LD="$ac_dir/$ac_prog"
1219 # Check to see if the program is GNU ld. I'd rather use --version,
1220 # but apparently some GNU ld's only accept -v.
1221 # Break only if it was the GNU/non-GNU ld that we prefer.
1222 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1223 test "$with_gnu_ld" != no && break
1225 test "$with_gnu_ld" != yes && break
1231 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1236 if test -n "$LD"; then
1237 echo "$ac_t""$LD" 1>&6
1239 echo "$ac_t""no" 1>&6
1241 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1243 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1244 echo "configure:1245: checking if the linker ($LD) is GNU ld" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1249 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1250 ac_cv_prog_gnu_ld=yes
1252 ac_cv_prog_gnu_ld=no
1256 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1259 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1260 echo "configure:1261: checking for BSD-compatible nm" >&5
1261 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 if test -n "$NM"; then
1265 # Let the user override the test.
1268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1269 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1272 # Check to see if the nm accepts a BSD-compat flag.
1273 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1274 # nm: unknown option "B" ignored
1275 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1276 ac_cv_path_NM="$ac_dir/nm -B"
1278 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1279 ac_cv_path_NM="$ac_dir/nm -p"
1282 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1283 continue # so that we can try to find one that supports BSD flags
1288 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1293 echo "$ac_t""$NM" 1>&6
1296 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1297 echo "configure:1298: checking whether ln -s works" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1302 if ln -s X conftestdata 2>/dev/null
1305 ac_cv_prog_LN_S="ln -s"
1310 LN_S="$ac_cv_prog_LN_S"
1311 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1312 echo "$ac_t""yes" 1>&6
1314 echo "$ac_t""no" 1>&6
1317 if test $host != $build; then
1318 ac_tool_prefix=${host_alias}-
1324 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1325 set dummy ${ac_tool_prefix}ar; ac_word=$2
1326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_word" >&5
1328 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1331 if test -n "$AR"; then
1332 ac_cv_prog_AR="$AR" # Let the user override the test.
1334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1336 for ac_dir in $ac_dummy; do
1337 test -z "$ac_dir" && ac_dir=.
1338 if test -f $ac_dir/$ac_word; then
1339 ac_cv_prog_AR="${ac_tool_prefix}ar"
1344 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1348 if test -n "$AR"; then
1349 echo "$ac_t""$AR" 1>&6
1351 echo "$ac_t""no" 1>&6
1356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_word" >&5
1360 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 if test -n "$RANLIB"; then
1364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1368 for ac_dir in $ac_dummy; do
1369 test -z "$ac_dir" && ac_dir=.
1370 if test -f $ac_dir/$ac_word; then
1371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1378 RANLIB="$ac_cv_prog_RANLIB"
1379 if test -n "$RANLIB"; then
1380 echo "$ac_t""$RANLIB" 1>&6
1382 echo "$ac_t""no" 1>&6
1386 if test -z "$ac_cv_prog_RANLIB"; then
1387 if test -n "$ac_tool_prefix"; then
1388 # Extract the first word of "ranlib", so it can be a program name with args.
1389 set dummy ranlib; ac_word=$2
1390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_word" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 if test -n "$RANLIB"; then
1396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 for ac_dir in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_RANLIB="ranlib"
1408 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1411 RANLIB="$ac_cv_prog_RANLIB"
1412 if test -n "$RANLIB"; then
1413 echo "$ac_t""$RANLIB" 1>&6
1415 echo "$ac_t""no" 1>&6
1424 # Check for any special flags to pass to ltconfig.
1425 libtool_flags="--cache-file=$cache_file"
1426 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1427 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1428 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1429 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1430 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1432 libtool_flags="$libtool_flags --enable-win32-dll"
1433 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1434 if test "${enable_libtool_lock+set}" = set; then
1435 enableval="$enable_libtool_lock"
1439 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1440 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1442 # Check whether --with-pic or --without-pic was given.
1443 if test "${with_pic+set}" = set; then
1450 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1451 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1453 # Some flags need to be propagated to the compiler or linker for good
1457 # Find out which ABI we are using.
1458 echo '#line 1459 "configure"' > conftest.$ac_ext
1459 if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1460 case "`/usr/bin/file conftest.o`" in
1476 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1477 SAVE_CFLAGS="$CFLAGS"
1478 CFLAGS="$CFLAGS -belf"
1479 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1480 echo "configure:1481: checking whether the C compiler needs -belf" >&5
1481 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1492 if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1494 lt_cv_cc_needs_belf=yes
1496 echo "configure: failed program was:" >&5
1497 cat conftest.$ac_ext >&5
1499 lt_cv_cc_needs_belf=no
1504 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1505 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1506 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1507 CFLAGS="$SAVE_CFLAGS"
1511 *-*-cygwin* | *-*-mingw*)
1512 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1513 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1516 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 if test -n "$DLLTOOL"; then
1520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1524 for ac_dir in $ac_dummy; do
1525 test -z "$ac_dir" && ac_dir=.
1526 if test -f $ac_dir/$ac_word; then
1527 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1534 DLLTOOL="$ac_cv_prog_DLLTOOL"
1535 if test -n "$DLLTOOL"; then
1536 echo "$ac_t""$DLLTOOL" 1>&6
1538 echo "$ac_t""no" 1>&6
1542 if test -z "$ac_cv_prog_DLLTOOL"; then
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "dlltool", so it can be a program name with args.
1545 set dummy dlltool; ac_word=$2
1546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1547 echo "configure:1548: checking for $ac_word" >&5
1548 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 if test -n "$DLLTOOL"; then
1552 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1556 for ac_dir in $ac_dummy; do
1557 test -z "$ac_dir" && ac_dir=.
1558 if test -f $ac_dir/$ac_word; then
1559 ac_cv_prog_DLLTOOL="dlltool"
1564 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1567 DLLTOOL="$ac_cv_prog_DLLTOOL"
1568 if test -n "$DLLTOOL"; then
1569 echo "$ac_t""$DLLTOOL" 1>&6
1571 echo "$ac_t""no" 1>&6
1579 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1580 set dummy ${ac_tool_prefix}as; ac_word=$2
1581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1582 echo "configure:1583: checking for $ac_word" >&5
1583 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 if test -n "$AS"; then
1587 ac_cv_prog_AS="$AS" # Let the user override the test.
1589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1591 for ac_dir in $ac_dummy; do
1592 test -z "$ac_dir" && ac_dir=.
1593 if test -f $ac_dir/$ac_word; then
1594 ac_cv_prog_AS="${ac_tool_prefix}as"
1602 if test -n "$AS"; then
1603 echo "$ac_t""$AS" 1>&6
1605 echo "$ac_t""no" 1>&6
1609 if test -z "$ac_cv_prog_AS"; then
1610 if test -n "$ac_tool_prefix"; then
1611 # Extract the first word of "as", so it can be a program name with args.
1612 set dummy as; ac_word=$2
1613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1614 echo "configure:1615: checking for $ac_word" >&5
1615 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 if test -n "$AS"; then
1619 ac_cv_prog_AS="$AS" # Let the user override the test.
1621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1623 for ac_dir in $ac_dummy; do
1624 test -z "$ac_dir" && ac_dir=.
1625 if test -f $ac_dir/$ac_word; then
1631 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1635 if test -n "$AS"; then
1636 echo "$ac_t""$AS" 1>&6
1638 echo "$ac_t""no" 1>&6
1646 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
1647 set dummy ${ac_tool_prefix}objdump; ac_word=$2
1648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1649 echo "configure:1650: checking for $ac_word" >&5
1650 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 if test -n "$OBJDUMP"; then
1654 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1658 for ac_dir in $ac_dummy; do
1659 test -z "$ac_dir" && ac_dir=.
1660 if test -f $ac_dir/$ac_word; then
1661 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1668 OBJDUMP="$ac_cv_prog_OBJDUMP"
1669 if test -n "$OBJDUMP"; then
1670 echo "$ac_t""$OBJDUMP" 1>&6
1672 echo "$ac_t""no" 1>&6
1676 if test -z "$ac_cv_prog_OBJDUMP"; then
1677 if test -n "$ac_tool_prefix"; then
1678 # Extract the first word of "objdump", so it can be a program name with args.
1679 set dummy objdump; ac_word=$2
1680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1681 echo "configure:1682: checking for $ac_word" >&5
1682 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 if test -n "$OBJDUMP"; then
1686 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1690 for ac_dir in $ac_dummy; do
1691 test -z "$ac_dir" && ac_dir=.
1692 if test -f $ac_dir/$ac_word; then
1693 ac_cv_prog_OBJDUMP="objdump"
1698 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
1701 OBJDUMP="$ac_cv_prog_OBJDUMP"
1702 if test -n "$OBJDUMP"; then
1703 echo "$ac_t""$OBJDUMP" 1>&6
1705 echo "$ac_t""no" 1>&6
1714 # recent cygwin and mingw systems supply a stub DllMain which the user
1715 # can override, but on older systems we have to supply one
1716 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
1717 echo "configure:1718: checking if libtool should supply DllMain function" >&5
1718 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1726 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1729 if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1731 lt_cv_need_dllmain=yes
1733 echo "configure: failed program was:" >&5
1734 cat conftest.$ac_ext >&5
1736 lt_cv_need_dllmain=no
1741 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
1745 # cygwin systems need to pass --dll to the linker, and not link
1746 # crt.o which will require a WinMain@16 definition.
1747 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1749 # old mingw systems require "-dll" to link a DLL, while more recent ones
1751 SAVE_CFLAGS="$CFLAGS"
1752 CFLAGS="$CFLAGS -mdll"
1753 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
1754 echo "configure:1755: checking how to link DLLs" >&5
1755 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 cat > conftest.$ac_ext <<EOF
1759 #line 1760 "configure"
1760 #include "confdefs.h"
1766 if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1768 lt_cv_cc_dll_switch=-mdll
1770 echo "configure: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1773 lt_cv_cc_dll_switch=-dll
1778 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
1779 CFLAGS="$SAVE_CFLAGS" ;;
1786 # Save cache, so that ltconfig can load it
1787 cat > confcache <<\EOF
1788 # This file is a shell script that caches the results of configure
1789 # tests run on this system so they can be shared between configure
1790 # scripts and configure runs. It is not useful on other systems.
1791 # If it contains results you don't want to keep, you may remove or edit it.
1793 # By default, configure uses ./config.cache as the cache file,
1794 # creating it if it does not exist already. You can give configure
1795 # the --cache-file=FILE option to use a different cache file; that is
1796 # what configure does when it calls configure scripts in
1797 # subdirectories, so they share the cache.
1798 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1799 # config.status only pays attention to the cache file if you give it the
1800 # --recheck option to rerun configure.
1803 # The following way of writing the cache mishandles newlines in values,
1804 # but we know of no workaround that is simple, portable, and efficient.
1805 # So, don't put newlines in cache variables' values.
1806 # Ultrix sh set writes to stderr and can't be redirected directly,
1807 # and sets the high bit in the cache file unless we assign to the vars.
1809 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1811 # `set' does not quote correctly, so add quotes (double-quote substitution
1812 # turns \\\\ into \\, and sed turns \\ into \).
1814 -e "s/'/'\\\\''/g" \
1815 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1818 # `set' quotes correctly as required by POSIX, so do not add quotes.
1819 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1822 if cmp -s $cache_file confcache; then
1825 if test -w $cache_file; then
1826 echo "updating cache $cache_file"
1827 cat confcache > $cache_file
1829 echo "not updating unwritable cache $cache_file"
1835 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1836 AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1837 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1838 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1839 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1840 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1841 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1842 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1844 # Reload cache, that may have been modified by ltconfig
1845 if test -r "$cache_file"; then
1846 echo "loading cache $cache_file"
1849 echo "creating cache $cache_file"
1854 # This can be used to rebuild libtool when needed
1855 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1857 # Always use our own libtool.
1858 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1860 # Redirect the config.log output again, so that the ltconfig log is not
1861 # clobbered by the next message.
1862 exec 5>>./config.log
1864 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1866 # Extract the first word of "$ac_prog", so it can be a program name with args.
1867 set dummy $ac_prog; ac_word=$2
1868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $ac_word" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 if test -n "$CXX"; then
1874 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1878 for ac_dir in $ac_dummy; do
1879 test -z "$ac_dir" && ac_dir=.
1880 if test -f $ac_dir/$ac_word; then
1881 ac_cv_prog_CXX="$ac_prog"
1888 CXX="$ac_cv_prog_CXX"
1889 if test -n "$CXX"; then
1890 echo "$ac_t""$CXX" 1>&6
1892 echo "$ac_t""no" 1>&6
1895 test -n "$CXX" && break
1897 test -n "$CXX" || CXX="gcc"
1900 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1905 ac_cpp='$CXXCPP $CPPFLAGS'
1906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1908 cross_compiling=$ac_cv_prog_cxx_cross
1910 cat > conftest.$ac_ext << EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1915 int main(){return(0);}
1917 if { (eval echo configure:1918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1918 ac_cv_prog_cxx_works=yes
1919 # If we can't run a trivial program, we are probably using a cross compiler.
1920 if (./conftest; exit) 2>/dev/null; then
1921 ac_cv_prog_cxx_cross=no
1923 ac_cv_prog_cxx_cross=yes
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1928 ac_cv_prog_cxx_works=no
1932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1936 cross_compiling=$ac_cv_prog_cc_cross
1938 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1939 if test $ac_cv_prog_cxx_works = no; then
1940 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1942 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1943 echo "configure:1944: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1944 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1945 cross_compiling=$ac_cv_prog_cxx_cross
1947 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1948 echo "configure:1949: checking whether we are using GNU C++" >&5
1949 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1952 cat > conftest.C <<EOF
1957 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1964 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1966 if test $ac_cv_prog_gxx = yes; then
1972 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1973 ac_save_CXXFLAGS="$CXXFLAGS"
1975 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1976 echo "configure:1977: checking whether ${CXX-g++} accepts -g" >&5
1977 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 echo 'void f(){}' > conftest.cc
1981 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1982 ac_cv_prog_cxx_g=yes
1990 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1991 if test "$ac_test_CXXFLAGS" = set; then
1992 CXXFLAGS="$ac_save_CXXFLAGS"
1993 elif test $ac_cv_prog_cxx_g = yes; then
1994 if test "$GXX" = yes; then
2000 if test "$GXX" = yes; then
2007 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2008 echo "configure:2009: checking how to run the C++ preprocessor" >&5
2009 if test -z "$CXXCPP"; then
2010 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2015 ac_cpp='$CXXCPP $CPPFLAGS'
2016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2018 cross_compiling=$ac_cv_prog_cxx_cross
2019 CXXCPP="${CXX-g++} -E"
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2028 if test -z "$ac_err"; then
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2038 ac_cv_prog_CXXCPP="$CXXCPP"
2040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2044 cross_compiling=$ac_cv_prog_cc_cross
2047 CXXCPP="$ac_cv_prog_CXXCPP"
2048 echo "$ac_t""$CXXCPP" 1>&6
2050 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2051 echo "configure:2052: checking for Cygwin environment" >&5
2052 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2062 #define __CYGWIN__ __CYGWIN32__
2067 if { (eval echo configure:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2080 echo "$ac_t""$ac_cv_cygwin" 1>&6
2082 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2083 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2084 echo "configure:2085: checking for mingw32 environment" >&5
2085 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2096 if { (eval echo configure:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2109 echo "$ac_t""$ac_cv_mingw32" 1>&6
2111 test "$ac_cv_mingw32" = yes && MINGW32=yes
2114 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2115 echo "configure:2116: checking for executable suffix" >&5
2116 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2123 echo 'int main () { return 0; }' > conftest.$ac_ext
2125 if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2126 for file in conftest.*; do
2128 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2129 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2133 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2136 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2141 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2142 echo "$ac_t""${ac_cv_exeext}" 1>&6
2146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2147 ac_cpp='$CXXCPP $CPPFLAGS'
2148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2150 cross_compiling=$ac_cv_prog_cxx_cross
2154 cat > confcache <<\EOF
2155 # This file is a shell script that caches the results of configure
2156 # tests run on this system so they can be shared between configure
2157 # scripts and configure runs. It is not useful on other systems.
2158 # If it contains results you don't want to keep, you may remove or edit it.
2160 # By default, configure uses ./config.cache as the cache file,
2161 # creating it if it does not exist already. You can give configure
2162 # the --cache-file=FILE option to use a different cache file; that is
2163 # what configure does when it calls configure scripts in
2164 # subdirectories, so they share the cache.
2165 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2166 # config.status only pays attention to the cache file if you give it the
2167 # --recheck option to rerun configure.
2170 # The following way of writing the cache mishandles newlines in values,
2171 # but we know of no workaround that is simple, portable, and efficient.
2172 # So, don't put newlines in cache variables' values.
2173 # Ultrix sh set writes to stderr and can't be redirected directly,
2174 # and sets the high bit in the cache file unless we assign to the vars.
2176 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2178 # `set' does not quote correctly, so add quotes (double-quote substitution
2179 # turns \\\\ into \\, and sed turns \\ into \).
2181 -e "s/'/'\\\\''/g" \
2182 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2185 # `set' quotes correctly as required by POSIX, so do not add quotes.
2186 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2189 if cmp -s $cache_file confcache; then
2192 if test -w $cache_file; then
2193 echo "updating cache $cache_file"
2194 cat confcache > $cache_file
2196 echo "not updating unwritable cache $cache_file"
2201 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2203 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2204 # Let make expand exec_prefix.
2205 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2207 # Any assignment to VPATH causes Sun make to only execute
2208 # the first set of double-colon rules, so remove it if not needed.
2209 # If there is a colon in the path, we need to keep it.
2210 if test "x$srcdir" = x.; then
2211 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2214 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2216 # Transform confdefs.h into DEFS.
2217 # Protect against shell expansion while executing Makefile rules.
2218 # Protect against Makefile macro expansion.
2219 cat > conftest.defs <<\EOF
2220 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2221 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2226 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2230 # Without the "./", some shells look in PATH for config.status.
2231 : ${CONFIG_STATUS=./config.status}
2233 echo creating $CONFIG_STATUS
2234 rm -f $CONFIG_STATUS
2235 cat > $CONFIG_STATUS <<EOF
2237 # Generated automatically by configure.
2238 # Run this file to recreate the current configuration.
2239 # This directory was configured as follows,
2240 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2242 # $0 $ac_configure_args
2244 # Compiler output produced by configure, useful for debugging
2245 # configure, is in ./config.log if it exists.
2247 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2250 case "\$ac_option" in
2251 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2252 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2253 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2254 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2255 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2257 -help | --help | --hel | --he | --h)
2258 echo "\$ac_cs_usage"; exit 0 ;;
2259 *) echo "\$ac_cs_usage"; exit 1 ;;
2263 ac_given_srcdir=$srcdir
2264 ac_given_INSTALL="$INSTALL"
2266 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2268 cat >> $CONFIG_STATUS <<EOF
2270 # Protect against being on the right side of a sed subst in config.status.
2271 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2272 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2276 s%@CFLAGS@%$CFLAGS%g
2277 s%@CPPFLAGS@%$CPPFLAGS%g
2278 s%@CXXFLAGS@%$CXXFLAGS%g
2279 s%@FFLAGS@%$FFLAGS%g
2281 s%@LDFLAGS@%$LDFLAGS%g
2283 s%@exec_prefix@%$exec_prefix%g
2284 s%@prefix@%$prefix%g
2285 s%@program_transform_name@%$program_transform_name%g
2286 s%@bindir@%$bindir%g
2287 s%@sbindir@%$sbindir%g
2288 s%@libexecdir@%$libexecdir%g
2289 s%@datadir@%$datadir%g
2290 s%@sysconfdir@%$sysconfdir%g
2291 s%@sharedstatedir@%$sharedstatedir%g
2292 s%@localstatedir@%$localstatedir%g
2293 s%@libdir@%$libdir%g
2294 s%@includedir@%$includedir%g
2295 s%@oldincludedir@%$oldincludedir%g
2296 s%@infodir@%$infodir%g
2297 s%@mandir@%$mandir%g
2298 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2299 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2300 s%@INSTALL_DATA@%$INSTALL_DATA%g
2301 s%@PACKAGE@%$PACKAGE%g
2302 s%@VERSION@%$VERSION%g
2303 s%@ACLOCAL@%$ACLOCAL%g
2304 s%@AUTOCONF@%$AUTOCONF%g
2305 s%@AUTOMAKE@%$AUTOMAKE%g
2306 s%@AUTOHEADER@%$AUTOHEADER%g
2307 s%@MAKEINFO@%$MAKEINFO%g
2308 s%@SET_MAKE@%$SET_MAKE%g
2309 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2310 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2313 s%@host_alias@%$host_alias%g
2314 s%@host_cpu@%$host_cpu%g
2315 s%@host_vendor@%$host_vendor%g
2316 s%@host_os@%$host_os%g
2318 s%@build_alias@%$build_alias%g
2319 s%@build_cpu@%$build_cpu%g
2320 s%@build_vendor@%$build_vendor%g
2321 s%@build_os@%$build_os%g
2327 s%@RANLIB@%$RANLIB%g
2328 s%@DLLTOOL@%$DLLTOOL%g
2330 s%@OBJDUMP@%$OBJDUMP%g
2331 s%@LIBTOOL@%$LIBTOOL%g
2333 s%@CXXCPP@%$CXXCPP%g
2334 s%@EXEEXT@%$EXEEXT%g
2339 cat >> $CONFIG_STATUS <<\EOF
2341 # Split the substitutions into bite-sized pieces for seds with
2342 # small command number limits, like on Digital OSF/1 and HP-UX.
2343 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2344 ac_file=1 # Number of current file.
2345 ac_beg=1 # First line for current file.
2346 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2349 while $ac_more_lines; do
2350 if test $ac_beg -gt 1; then
2351 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2353 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2355 if test ! -s conftest.s$ac_file; then
2357 rm -f conftest.s$ac_file
2359 if test -z "$ac_sed_cmds"; then
2360 ac_sed_cmds="sed -f conftest.s$ac_file"
2362 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2364 ac_file=`expr $ac_file + 1`
2366 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2369 if test -z "$ac_sed_cmds"; then
2374 cat >> $CONFIG_STATUS <<EOF
2376 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2378 cat >> $CONFIG_STATUS <<\EOF
2379 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2382 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2383 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2384 *) ac_file_in="${ac_file}.in" ;;
2387 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2389 # Remove last slash and all that follows it. Not all systems have dirname.
2390 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2391 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2392 # The file is in a subdirectory.
2393 test ! -d "$ac_dir" && mkdir "$ac_dir"
2394 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2395 # A "../" for each directory in $ac_dir_suffix.
2396 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2398 ac_dir_suffix= ac_dots=
2401 case "$ac_given_srcdir" in
2403 if test -z "$ac_dots"; then top_srcdir=.
2404 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2405 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2407 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2408 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2411 case "$ac_given_INSTALL" in
2412 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2413 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2416 echo creating "$ac_file"
2418 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2420 *Makefile*) ac_comsub="1i\\
2421 # $configure_input" ;;
2425 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2427 s%@configure_input@%$configure_input%g
2428 s%@srcdir@%$srcdir%g
2429 s%@top_srcdir@%$top_srcdir%g
2430 s%@INSTALL@%$INSTALL%g
2431 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2436 cat >> $CONFIG_STATUS <<EOF
2439 cat >> $CONFIG_STATUS <<\EOF
2443 chmod +x $CONFIG_STATUS
2444 rm -fr confdefs* $ac_clean_files
2445 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1