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 --enable-targets=LIST support given additional targets, or all"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --site-file=FILE use FILE as the site file
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host | --host | --hos | --ho)
210 -host=* | --host=* | --hos=* | --ho=*)
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
331 -site=* | --site=* | --sit=*)
334 -site-file | --site-file | --site-fil | --site-fi | --site-f)
336 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
337 sitefile="$ac_optarg" ;;
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=Makefile.in
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$sitefile"; then
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 CONFIG_SITE="$sitefile"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='\c' ac_t=
553 for ac_dir in ../config $srcdir/../config; do
554 if test -f $ac_dir/install-sh; then
556 ac_install_sh="$ac_aux_dir/install-sh -c"
558 elif test -f $ac_dir/install.sh; then
560 ac_install_sh="$ac_aux_dir/install.sh -c"
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in ../config $srcdir/../config" 1>&2; exit 1; }
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 # Find a good install program. We prefer a C program (faster),
572 # so one script is as good as another. But avoid the broken or
573 # incompatible versions:
574 # SysV /etc/install, /usr/sbin/install
575 # SunOS /usr/etc/install
578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
581 # ./install, which can be erroneously created by make from ./install.sh.
582 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
583 echo "configure:584: checking for a BSD compatible install" >&5
584 if test -z "$INSTALL"; then
585 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
589 for ac_dir in $PATH; do
590 # Account for people who put trailing slashes in PATH elements.
592 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
594 # OSF1 and SCO ODT 3.0 have their own names for install.
595 # Don't use installbsd from OSF since it installs stuff as root
597 for ac_prog in ginstall scoinst install; do
598 if test -f $ac_dir/$ac_prog; then
599 if test $ac_prog = install &&
600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
601 # AIX install. It has an incompatible calling convention.
604 ac_cv_path_install="$ac_dir/$ac_prog -c"
615 if test "${ac_cv_path_install+set}" = set; then
616 INSTALL="$ac_cv_path_install"
618 # As a last resort, use the slow shell script. We don't cache a
619 # path for INSTALL within a source directory, because that will
620 # break other packages using the cache if that directory is
621 # removed, or if the path is relative.
622 INSTALL="$ac_install_sh"
625 echo "$ac_t""$INSTALL" 1>&6
627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
628 # It thinks the first close brace ends the variable substitution.
629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
635 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
636 echo "configure:637: checking whether build environment is sane" >&5
639 echo timestamp > conftestfile
640 # Do `set' in a subshell so we don't clobber the current shell's
641 # arguments. Must try -L first in case configure is actually a
642 # symlink; some systems play weird games with the mod time of symlinks
643 # (eg FreeBSD returns the mod time of the symlink's containing
646 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
647 if test "$*" = "X"; then
649 set X `ls -t $srcdir/configure conftestfile`
651 if test "$*" != "X $srcdir/configure conftestfile" \
652 && test "$*" != "X conftestfile $srcdir/configure"; then
654 # If neither matched, then we have a broken ls. This can happen
655 # if, for instance, CONFIG_SHELL is bash and it inherits a
656 # broken ls alias from the environment. This has actually
657 # happened. Such a system could not be considered "sane".
658 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
659 alias in your environment" 1>&2; exit 1; }
662 test "$2" = conftestfile
668 { echo "configure: error: newly created file is older than distributed files!
669 Check your system clock" 1>&2; exit 1; }
672 echo "$ac_t""yes" 1>&6
673 if test "$program_transform_name" = s,x,x,; then
674 program_transform_name=
676 # Double any \ or $. echo might interpret backslashes.
677 cat <<\EOF_SED > conftestsed
678 s,\\,\\\\,g; s,\$,$$,g
680 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
683 test "$program_prefix" != NONE &&
684 program_transform_name="s,^,${program_prefix},; $program_transform_name"
685 # Use a double $ so make ignores it.
686 test "$program_suffix" != NONE &&
687 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
689 # sed with no file args requires a program.
690 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
692 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
694 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
695 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 cat > conftestmake <<\EOF
700 @echo 'ac_maketemp="${MAKE}"'
702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
703 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
704 if test -n "$ac_maketemp"; then
705 eval ac_cv_prog_make_${ac_make}_set=yes
707 eval ac_cv_prog_make_${ac_make}_set=no
711 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
712 echo "$ac_t""yes" 1>&6
715 echo "$ac_t""no" 1>&6
716 SET_MAKE="MAKE=${MAKE-make}"
724 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
725 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
727 cat >> confdefs.h <<EOF
728 #define PACKAGE "$PACKAGE"
731 cat >> confdefs.h <<EOF
732 #define VERSION "$VERSION"
737 missing_dir=`cd $ac_aux_dir && pwd`
738 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
739 echo "configure:740: checking for working aclocal" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
745 echo "$ac_t""found" 1>&6
747 ACLOCAL="$missing_dir/missing aclocal"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoconf" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
758 echo "$ac_t""found" 1>&6
760 AUTOCONF="$missing_dir/missing autoconf"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working automake""... $ac_c" 1>&6
765 echo "configure:766: checking for working automake" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (automake --version) < /dev/null > /dev/null 2>&1; then
771 echo "$ac_t""found" 1>&6
773 AUTOMAKE="$missing_dir/missing automake"
774 echo "$ac_t""missing" 1>&6
777 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
778 echo "configure:779: checking for working autoheader" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf. Sigh.
782 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
783 AUTOHEADER=autoheader
784 echo "$ac_t""found" 1>&6
786 AUTOHEADER="$missing_dir/missing autoheader"
787 echo "$ac_t""missing" 1>&6
790 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
791 echo "configure:792: checking for working makeinfo" >&5
792 # Run test in a subshell; some versions of sh will print an error if
793 # an executable is not found, even if stderr is redirected.
794 # Redirect stdin to placate older versions of autoconf. Sigh.
795 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
797 echo "$ac_t""found" 1>&6
799 MAKEINFO="$missing_dir/missing makeinfo"
800 echo "$ac_t""missing" 1>&6
808 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
809 echo "configure:810: checking whether to enable maintainer-specific portions of Makefiles" >&5
810 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
811 if test "${enable_maintainer_mode+set}" = set; then
812 enableval="$enable_maintainer_mode"
813 USE_MAINTAINER_MODE=$enableval
815 USE_MAINTAINER_MODE=no
818 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
821 if test $USE_MAINTAINER_MODE = yes; then
822 MAINTAINER_MODE_TRUE=
823 MAINTAINER_MODE_FALSE='#'
825 MAINTAINER_MODE_TRUE='#'
826 MAINTAINER_MODE_FALSE=
828 MAINT=$MAINTAINER_MODE_TRUE
832 # Check whether --enable-shared or --disable-shared was given.
833 if test "${enable_shared+set}" = set; then
834 enableval="$enable_shared"
837 yes) enable_shared=yes ;;
838 no) enable_shared=no ;;
841 # Look at the argument we got. We use all the common list separators.
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
843 for pkg in $enableval; do
844 if test "X$pkg" = "X$p"; then
855 # Check whether --enable-static or --disable-static was given.
856 if test "${enable_static+set}" = set; then
857 enableval="$enable_static"
860 yes) enable_static=yes ;;
861 no) enable_static=no ;;
864 # Look at the argument we got. We use all the common list separators.
865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
866 for pkg in $enableval; do
867 if test "X$pkg" = "X$p"; then
878 # Check whether --enable-fast-install or --disable-fast-install was given.
879 if test "${enable_fast_install+set}" = set; then
880 enableval="$enable_fast_install"
883 yes) enable_fast_install=yes ;;
884 no) enable_fast_install=no ;;
886 enable_fast_install=no
887 # Look at the argument we got. We use all the common list separators.
888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
889 for pkg in $enableval; do
890 if test "X$pkg" = "X$p"; then
891 enable_fast_install=yes
898 enable_fast_install=yes
902 # Make sure we can run config.sub.
903 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
904 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
907 echo $ac_n "checking host system type""... $ac_c" 1>&6
908 echo "configure:909: checking host system type" >&5
911 case "$host_alias" in
915 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
916 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
918 *) host_alias=$nonopt ;;
922 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
923 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
924 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
925 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
926 echo "$ac_t""$host" 1>&6
928 echo $ac_n "checking build system type""... $ac_c" 1>&6
929 echo "configure:930: checking build system type" >&5
932 case "$build_alias" in
935 NONE) build_alias=$host_alias ;;
936 *) build_alias=$nonopt ;;
940 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
941 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
942 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
943 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
944 echo "$ac_t""$build" 1>&6
946 # Extract the first word of "gcc", so it can be a program name with args.
947 set dummy gcc; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
953 if test -n "$CC"; then
954 ac_cv_prog_CC="$CC" # Let the user override the test.
956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
958 for ac_dir in $ac_dummy; do
959 test -z "$ac_dir" && ac_dir=.
960 if test -f $ac_dir/$ac_word; then
969 if test -n "$CC"; then
970 echo "$ac_t""$CC" 1>&6
972 echo "$ac_t""no" 1>&6
975 if test -z "$CC"; then
976 # Extract the first word of "cc", so it can be a program name with args.
977 set dummy cc; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 if test -n "$CC"; then
984 ac_cv_prog_CC="$CC" # Let the user override the test.
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
989 for ac_dir in $ac_dummy; do
990 test -z "$ac_dir" && ac_dir=.
991 if test -f $ac_dir/$ac_word; then
992 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1001 if test $ac_prog_rejected = yes; then
1002 # We found a bogon in the path, so make sure we never use it.
1003 set dummy $ac_cv_prog_CC
1005 if test $# -gt 0; then
1006 # We chose a different compiler from the bogus one.
1007 # However, it has the same basename, so the bogon will be chosen
1008 # first if we set CC to just the basename; use the full file name.
1010 set dummy "$ac_dir/$ac_word" "$@"
1018 if test -n "$CC"; then
1019 echo "$ac_t""$CC" 1>&6
1021 echo "$ac_t""no" 1>&6
1024 if test -z "$CC"; then
1025 case "`uname -s`" in
1027 # Extract the first word of "cl", so it can be a program name with args.
1028 set dummy cl; ac_word=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 if test -n "$CC"; then
1035 ac_cv_prog_CC="$CC" # Let the user override the test.
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1039 for ac_dir in $ac_dummy; do
1040 test -z "$ac_dir" && ac_dir=.
1041 if test -f $ac_dir/$ac_word; then
1050 if test -n "$CC"; then
1051 echo "$ac_t""$CC" 1>&6
1053 echo "$ac_t""no" 1>&6
1058 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1061 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1066 ac_cpp='$CPP $CPPFLAGS'
1067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1069 cross_compiling=$ac_cv_prog_cc_cross
1071 cat > conftest.$ac_ext << EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1078 if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1079 ac_cv_prog_cc_works=yes
1080 # If we can't run a trivial program, we are probably using a cross compiler.
1081 if (./conftest; exit) 2>/dev/null; then
1082 ac_cv_prog_cc_cross=no
1084 ac_cv_prog_cc_cross=yes
1087 echo "configure: failed program was:" >&5
1088 cat conftest.$ac_ext >&5
1089 ac_cv_prog_cc_works=no
1093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1094 ac_cpp='$CPP $CPPFLAGS'
1095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1097 cross_compiling=$ac_cv_prog_cc_cross
1099 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1100 if test $ac_cv_prog_cc_works = no; then
1101 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1103 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1105 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1106 cross_compiling=$ac_cv_prog_cc_cross
1108 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1109 echo "configure:1110: checking whether we are using GNU C" >&5
1110 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 cat > conftest.c <<EOF
1118 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1125 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1127 if test $ac_cv_prog_gcc = yes; then
1133 ac_test_CFLAGS="${CFLAGS+set}"
1134 ac_save_CFLAGS="$CFLAGS"
1136 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether ${CC-cc} accepts -g" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 echo 'void f(){}' > conftest.c
1142 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1151 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1152 if test "$ac_test_CFLAGS" = set; then
1153 CFLAGS="$ac_save_CFLAGS"
1154 elif test $ac_cv_prog_cc_g = yes; then
1155 if test "$GCC" = yes; then
1161 if test "$GCC" = yes; then
1168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1169 if test "${with_gnu_ld+set}" = set; then
1170 withval="$with_gnu_ld"
1171 test "$withval" = no || with_gnu_ld=yes
1177 if test "$ac_cv_prog_gcc" = yes; then
1178 # Check if gcc -print-prog-name=ld gives a path.
1179 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1180 echo "configure:1181: checking for ld used by GCC" >&5
1183 # gcc leaves a trailing carriage return which upsets mingw
1184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1189 # Accept absolute paths.
1190 [\\/]* | [A-Za-z]:[\\/]*)
1191 re_direlt='/[^/][^/]*/\.\./'
1192 # Canonicalize the path of ld
1193 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1195 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1197 test -z "$LD" && LD="$ac_prog"
1200 # If it fails, then pretend we aren't using GCC.
1204 # If it is relative, then search for the first ld in PATH.
1208 elif test "$with_gnu_ld" = yes; then
1209 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1210 echo "configure:1211: checking for GNU ld" >&5
1212 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1213 echo "configure:1214: checking for non-GNU ld" >&5
1215 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 if test -z "$LD"; then
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1220 for ac_dir in $PATH; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1223 ac_cv_path_LD="$ac_dir/$ac_prog"
1224 # Check to see if the program is GNU ld. I'd rather use --version,
1225 # but apparently some GNU ld's only accept -v.
1226 # Break only if it was the GNU/non-GNU ld that we prefer.
1227 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1228 test "$with_gnu_ld" != no && break
1230 test "$with_gnu_ld" != yes && break
1236 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1241 if test -n "$LD"; then
1242 echo "$ac_t""$LD" 1>&6
1244 echo "$ac_t""no" 1>&6
1246 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1248 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1249 echo "configure:1250: checking if the linker ($LD) is GNU ld" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1254 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1255 ac_cv_prog_gnu_ld=yes
1257 ac_cv_prog_gnu_ld=no
1261 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1264 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1265 echo "configure:1266: checking for BSD-compatible nm" >&5
1266 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$NM"; then
1270 # Let the user override the test.
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1274 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1275 test -z "$ac_dir" && ac_dir=.
1276 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1277 # Check to see if the nm accepts a BSD-compat flag.
1278 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1279 # nm: unknown option "B" ignored
1280 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1281 ac_cv_path_NM="$ac_dir/nm -B"
1283 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1284 ac_cv_path_NM="$ac_dir/nm -p"
1287 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1288 continue # so that we can try to find one that supports BSD flags
1293 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1298 echo "$ac_t""$NM" 1>&6
1301 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1302 echo "configure:1303: checking whether ln -s works" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1307 if ln -s X conftestdata 2>/dev/null
1310 ac_cv_prog_LN_S="ln -s"
1315 LN_S="$ac_cv_prog_LN_S"
1316 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1317 echo "$ac_t""yes" 1>&6
1319 echo "$ac_t""no" 1>&6
1322 if test $host != $build; then
1323 ac_tool_prefix=${host_alias}-
1329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1330 set dummy ${ac_tool_prefix}ar; ac_word=$2
1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332 echo "configure:1333: checking for $ac_word" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 if test -n "$AR"; then
1337 ac_cv_prog_AR="$AR" # Let the user override the test.
1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1341 for ac_dir in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir=.
1343 if test -f $ac_dir/$ac_word; then
1344 ac_cv_prog_AR="${ac_tool_prefix}ar"
1349 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1353 if test -n "$AR"; then
1354 echo "$ac_t""$AR" 1>&6
1356 echo "$ac_t""no" 1>&6
1361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_word" >&5
1365 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 if test -n "$RANLIB"; then
1369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1373 for ac_dir in $ac_dummy; do
1374 test -z "$ac_dir" && ac_dir=.
1375 if test -f $ac_dir/$ac_word; then
1376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1383 RANLIB="$ac_cv_prog_RANLIB"
1384 if test -n "$RANLIB"; then
1385 echo "$ac_t""$RANLIB" 1>&6
1387 echo "$ac_t""no" 1>&6
1391 if test -z "$ac_cv_prog_RANLIB"; then
1392 if test -n "$ac_tool_prefix"; then
1393 # Extract the first word of "ranlib", so it can be a program name with args.
1394 set dummy ranlib; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 if test -n "$RANLIB"; then
1401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1405 for ac_dir in $ac_dummy; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_prog_RANLIB="ranlib"
1413 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1416 RANLIB="$ac_cv_prog_RANLIB"
1417 if test -n "$RANLIB"; then
1418 echo "$ac_t""$RANLIB" 1>&6
1420 echo "$ac_t""no" 1>&6
1429 # Check for any special flags to pass to ltconfig.
1430 libtool_flags="--cache-file=$cache_file"
1431 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1432 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1433 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1434 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1435 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1437 libtool_flags="$libtool_flags --enable-win32-dll"
1438 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1439 if test "${enable_libtool_lock+set}" = set; then
1440 enableval="$enable_libtool_lock"
1444 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1445 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1447 # Check whether --with-pic or --without-pic was given.
1448 if test "${with_pic+set}" = set; then
1455 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1456 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1458 # Some flags need to be propagated to the compiler or linker for good
1462 # Find out which ABI we are using.
1463 echo '#line 1464 "configure"' > conftest.$ac_ext
1464 if { (eval echo configure:1465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1465 case "`/usr/bin/file conftest.o`" in
1481 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1482 SAVE_CFLAGS="$CFLAGS"
1483 CFLAGS="$CFLAGS -belf"
1484 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1485 echo "configure:1486: checking whether the C compiler needs -belf" >&5
1486 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1497 if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1499 lt_cv_cc_needs_belf=yes
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1504 lt_cv_cc_needs_belf=no
1509 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1510 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1511 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1512 CFLAGS="$SAVE_CFLAGS"
1516 *-*-cygwin* | *-*-mingw*)
1517 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 if test -n "$DLLTOOL"; then
1525 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1539 DLLTOOL="$ac_cv_prog_DLLTOOL"
1540 if test -n "$DLLTOOL"; then
1541 echo "$ac_t""$DLLTOOL" 1>&6
1543 echo "$ac_t""no" 1>&6
1547 if test -z "$ac_cv_prog_DLLTOOL"; then
1548 if test -n "$ac_tool_prefix"; then
1549 # Extract the first word of "dlltool", so it can be a program name with args.
1550 set dummy dlltool; ac_word=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 if test -n "$DLLTOOL"; then
1557 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1561 for ac_dir in $ac_dummy; do
1562 test -z "$ac_dir" && ac_dir=.
1563 if test -f $ac_dir/$ac_word; then
1564 ac_cv_prog_DLLTOOL="dlltool"
1569 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1572 DLLTOOL="$ac_cv_prog_DLLTOOL"
1573 if test -n "$DLLTOOL"; then
1574 echo "$ac_t""$DLLTOOL" 1>&6
1576 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1585 set dummy ${ac_tool_prefix}as; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 if test -n "$AS"; then
1592 ac_cv_prog_AS="$AS" # Let the user override the test.
1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1596 for ac_dir in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1599 ac_cv_prog_AS="${ac_tool_prefix}as"
1607 if test -n "$AS"; then
1608 echo "$ac_t""$AS" 1>&6
1610 echo "$ac_t""no" 1>&6
1614 if test -z "$ac_cv_prog_AS"; then
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "as", so it can be a program name with args.
1617 set dummy as; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1620 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 if test -n "$AS"; then
1624 ac_cv_prog_AS="$AS" # Let the user override the test.
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1628 for ac_dir in $ac_dummy; do
1629 test -z "$ac_dir" && ac_dir=.
1630 if test -f $ac_dir/$ac_word; then
1636 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1640 if test -n "$AS"; then
1641 echo "$ac_t""$AS" 1>&6
1643 echo "$ac_t""no" 1>&6
1651 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
1652 set dummy ${ac_tool_prefix}objdump; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 if test -n "$OBJDUMP"; then
1659 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1663 for ac_dir in $ac_dummy; do
1664 test -z "$ac_dir" && ac_dir=.
1665 if test -f $ac_dir/$ac_word; then
1666 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1673 OBJDUMP="$ac_cv_prog_OBJDUMP"
1674 if test -n "$OBJDUMP"; then
1675 echo "$ac_t""$OBJDUMP" 1>&6
1677 echo "$ac_t""no" 1>&6
1681 if test -z "$ac_cv_prog_OBJDUMP"; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "objdump", so it can be a program name with args.
1684 set dummy objdump; ac_word=$2
1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_word" >&5
1687 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 if test -n "$OBJDUMP"; then
1691 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1695 for ac_dir in $ac_dummy; do
1696 test -z "$ac_dir" && ac_dir=.
1697 if test -f $ac_dir/$ac_word; then
1698 ac_cv_prog_OBJDUMP="objdump"
1703 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
1706 OBJDUMP="$ac_cv_prog_OBJDUMP"
1707 if test -n "$OBJDUMP"; then
1708 echo "$ac_t""$OBJDUMP" 1>&6
1710 echo "$ac_t""no" 1>&6
1719 # recent cygwin and mingw systems supply a stub DllMain which the user
1720 # can override, but on older systems we have to supply one
1721 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
1722 echo "configure:1723: checking if libtool should supply DllMain function" >&5
1723 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1731 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1736 lt_cv_need_dllmain=yes
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1741 lt_cv_need_dllmain=no
1746 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
1750 # cygwin systems need to pass --dll to the linker, and not link
1751 # crt.o which will require a WinMain@16 definition.
1752 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1754 # old mingw systems require "-dll" to link a DLL, while more recent ones
1756 SAVE_CFLAGS="$CFLAGS"
1757 CFLAGS="$CFLAGS -mdll"
1758 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
1759 echo "configure:1760: checking how to link DLLs" >&5
1760 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1773 lt_cv_cc_dll_switch=-mdll
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1778 lt_cv_cc_dll_switch=-dll
1783 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
1784 CFLAGS="$SAVE_CFLAGS" ;;
1791 # Save cache, so that ltconfig can load it
1792 cat > confcache <<\EOF
1793 # This file is a shell script that caches the results of configure
1794 # tests run on this system so they can be shared between configure
1795 # scripts and configure runs. It is not useful on other systems.
1796 # If it contains results you don't want to keep, you may remove or edit it.
1798 # By default, configure uses ./config.cache as the cache file,
1799 # creating it if it does not exist already. You can give configure
1800 # the --cache-file=FILE option to use a different cache file; that is
1801 # what configure does when it calls configure scripts in
1802 # subdirectories, so they share the cache.
1803 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1804 # config.status only pays attention to the cache file if you give it the
1805 # --recheck option to rerun configure.
1808 # The following way of writing the cache mishandles newlines in values,
1809 # but we know of no workaround that is simple, portable, and efficient.
1810 # So, don't put newlines in cache variables' values.
1811 # Ultrix sh set writes to stderr and can't be redirected directly,
1812 # and sets the high bit in the cache file unless we assign to the vars.
1814 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1816 # `set' does not quote correctly, so add quotes (double-quote substitution
1817 # turns \\\\ into \\, and sed turns \\ into \).
1819 -e "s/'/'\\\\''/g" \
1820 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1823 # `set' quotes correctly as required by POSIX, so do not add quotes.
1824 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1827 if cmp -s $cache_file confcache; then
1830 if test -w $cache_file; then
1831 echo "updating cache $cache_file"
1832 cat confcache > $cache_file
1834 echo "not updating unwritable cache $cache_file"
1840 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1841 AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1842 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1843 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1844 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1845 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1846 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1847 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1849 # Reload cache, that may have been modified by ltconfig
1850 if test -r "$cache_file"; then
1851 echo "loading cache $cache_file"
1854 echo "creating cache $cache_file"
1859 # This can be used to rebuild libtool when needed
1860 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1862 # Always use our own libtool.
1863 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1865 # Redirect the config.log output again, so that the ltconfig log is not
1866 # clobbered by the next message.
1867 exec 5>>./config.log
1870 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1871 echo "configure:1872: checking for Cygwin environment" >&5
1872 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 cat > conftest.$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1882 #define __CYGWIN__ __CYGWIN32__
1887 if { (eval echo configure:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1900 echo "$ac_t""$ac_cv_cygwin" 1>&6
1902 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1903 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1904 echo "configure:1905: checking for mingw32 environment" >&5
1905 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1916 if { (eval echo configure:1917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1920 echo "configure: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1929 echo "$ac_t""$ac_cv_mingw32" 1>&6
1931 test "$ac_cv_mingw32" = yes && MINGW32=yes
1934 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1935 echo "configure:1936: checking for executable suffix" >&5
1936 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1943 echo 'int main () { return 0; }' > conftest.$ac_ext
1945 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1946 for file in conftest.*; do
1948 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1949 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1953 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1956 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1961 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1962 echo "$ac_t""${ac_cv_exeext}" 1>&6
1965 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1967 # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy $ac_prog; ac_word=$2
1969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1970 echo "configure:1971: checking for $ac_word" >&5
1971 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 if test -n "$CXX"; then
1975 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1979 for ac_dir in $ac_dummy; do
1980 test -z "$ac_dir" && ac_dir=.
1981 if test -f $ac_dir/$ac_word; then
1982 ac_cv_prog_CXX="$ac_prog"
1989 CXX="$ac_cv_prog_CXX"
1990 if test -n "$CXX"; then
1991 echo "$ac_t""$CXX" 1>&6
1993 echo "$ac_t""no" 1>&6
1996 test -n "$CXX" && break
1998 test -n "$CXX" || CXX="gcc"
2001 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2002 echo "configure:2003: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2005 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2006 ac_cpp='$CXXCPP $CPPFLAGS'
2007 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2008 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2009 cross_compiling=$ac_cv_prog_cxx_cross
2011 cat > conftest.$ac_ext << EOF
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2016 int main(){return(0);}
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2019 ac_cv_prog_cxx_works=yes
2020 # If we can't run a trivial program, we are probably using a cross compiler.
2021 if (./conftest; exit) 2>/dev/null; then
2022 ac_cv_prog_cxx_cross=no
2024 ac_cv_prog_cxx_cross=yes
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 ac_cv_prog_cxx_works=no
2033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2037 cross_compiling=$ac_cv_prog_cc_cross
2039 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2040 if test $ac_cv_prog_cxx_works = no; then
2041 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2043 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2044 echo "configure:2045: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2045 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2046 cross_compiling=$ac_cv_prog_cxx_cross
2048 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2049 echo "configure:2050: checking whether we are using GNU C++" >&5
2050 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 cat > conftest.C <<EOF
2058 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2065 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2067 if test $ac_cv_prog_gxx = yes; then
2073 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2074 ac_save_CXXFLAGS="$CXXFLAGS"
2076 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2077 echo "configure:2078: checking whether ${CXX-g++} accepts -g" >&5
2078 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 echo 'void f(){}' > conftest.cc
2082 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2083 ac_cv_prog_cxx_g=yes
2091 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2092 if test "$ac_test_CXXFLAGS" = set; then
2093 CXXFLAGS="$ac_save_CXXFLAGS"
2094 elif test $ac_cv_prog_cxx_g = yes; then
2095 if test "$GXX" = yes; then
2101 if test "$GXX" = yes; then
2108 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2109 echo "configure:2110: checking how to run the C++ preprocessor" >&5
2110 if test -z "$CXXCPP"; then
2111 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2116 ac_cpp='$CXXCPP $CPPFLAGS'
2117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2119 cross_compiling=$ac_cv_prog_cxx_cross
2120 CXXCPP="${CXX-g++} -E"
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2127 { (eval echo configure:2128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2129 if test -z "$ac_err"; then
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2139 ac_cv_prog_CXXCPP="$CXXCPP"
2141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2142 ac_cpp='$CPP $CPPFLAGS'
2143 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2144 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2145 cross_compiling=$ac_cv_prog_cc_cross
2148 CXXCPP="$ac_cv_prog_CXXCPP"
2149 echo "$ac_t""$CXXCPP" 1>&6
2151 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2152 echo "configure:2153: checking whether ${MAKE-make} sets \${MAKE}" >&5
2153 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2154 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 cat > conftestmake <<\EOF
2159 @echo 'ac_maketemp="${MAKE}"'
2161 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2162 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2163 if test -n "$ac_maketemp"; then
2164 eval ac_cv_prog_make_${ac_make}_set=yes
2166 eval ac_cv_prog_make_${ac_make}_set=no
2170 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2174 echo "$ac_t""no" 1>&6
2175 SET_MAKE="MAKE=${MAKE-make}"
2178 if test "$program_transform_name" = s,x,x,; then
2179 program_transform_name=
2181 # Double any \ or $. echo might interpret backslashes.
2182 cat <<\EOF_SED > conftestsed
2183 s,\\,\\\\,g; s,\$,$$,g
2185 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2188 test "$program_prefix" != NONE &&
2189 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2190 # Use a double $ so make ignores it.
2191 test "$program_suffix" != NONE &&
2192 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2194 # sed with no file args requires a program.
2195 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2198 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2199 ac_cpp='$CXXCPP $CPPFLAGS'
2200 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2201 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2202 cross_compiling=$ac_cv_prog_cxx_cross
2204 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2205 echo "configure:2206: checking for ANSI C header files" >&5
2206 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2218 { (eval echo configure:2219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2220 if test -z "$ac_err"; then
2222 ac_cv_header_stdc=yes
2225 echo "configure: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2228 ac_cv_header_stdc=no
2232 if test $ac_cv_header_stdc = yes; then
2233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2240 egrep "memchr" >/dev/null 2>&1; then
2244 ac_cv_header_stdc=no
2250 if test $ac_cv_header_stdc = yes; then
2251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2258 egrep "free" >/dev/null 2>&1; then
2262 ac_cv_header_stdc=no
2268 if test $ac_cv_header_stdc = yes; then
2269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2270 if test "$cross_compiling" = yes; then
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2277 extern "C" void exit(int);
2280 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2281 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2283 int main () { int i; for (i = 0; i < 256; i++)
2284 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2295 ac_cv_header_stdc=no
2303 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2304 if test $ac_cv_header_stdc = yes; then
2305 cat >> confdefs.h <<\EOF
2306 #define STDC_HEADERS 1
2311 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2312 echo "configure:2313: checking whether time.h and sys/time.h may both be included" >&5
2313 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 #include <sys/types.h>
2320 #include <sys/time.h>
2326 if { (eval echo configure:2327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2328 ac_cv_header_time=yes
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 ac_cv_header_time=no
2338 echo "$ac_t""$ac_cv_header_time" 1>&6
2339 if test $ac_cv_header_time = yes; then
2340 cat >> confdefs.h <<\EOF
2341 #define TIME_WITH_SYS_TIME 1
2347 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6
2348 echo "configure:2349: checking for main in -lstdc++" >&5
2349 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'`
2350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 ac_save_LIBS="$LIBS"
2354 LIBS="-lstdc++ $LIBS"
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 eval "ac_cv_lib_$ac_lib_var=yes"
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2370 eval "ac_cv_lib_$ac_lib_var=no"
2373 LIBS="$ac_save_LIBS"
2376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2379 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2380 cat >> confdefs.h <<EOF
2381 #define $ac_tr_lib 1
2384 LIBS="-lstdc++ $LIBS"
2387 echo "$ac_t""no" 1>&6
2390 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2391 echo "configure:2392: checking for main in -lm" >&5
2392 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 ac_save_LIBS="$LIBS"
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 eval "ac_cv_lib_$ac_lib_var=yes"
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2413 eval "ac_cv_lib_$ac_lib_var=no"
2416 LIBS="$ac_save_LIBS"
2419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2421 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2422 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2423 cat >> confdefs.h <<EOF
2424 #define $ac_tr_lib 1
2430 echo "$ac_t""no" 1>&6
2435 echo $ac_n "checking for refresh in -lcurses""... $ac_c" 1>&6
2436 echo "configure:2437: checking for refresh in -lcurses" >&5
2437 ac_lib_var=`echo curses'_'refresh | sed 'y%./+-%__p_%'`
2438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 ac_save_LIBS="$LIBS"
2442 LIBS="-lcurses $LIBS"
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 /* Override any gcc2 internal prototype to avoid an error. */
2450 /* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 eval "ac_cv_lib_$ac_lib_var=yes"
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 eval "ac_cv_lib_$ac_lib_var=no"
2468 LIBS="$ac_save_LIBS"
2471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2472 echo "$ac_t""yes" 1>&6
2473 lcd_libs="-lcurses $lcd_libs"
2475 echo "$ac_t""no" 1>&6
2476 echo $ac_n "checking for refresh in -lcurses""... $ac_c" 1>&6
2477 echo "configure:2478: checking for refresh in -lcurses" >&5
2478 ac_lib_var=`echo curses'_'refresh | sed 'y%./+-%__p_%'`
2479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 ac_save_LIBS="$LIBS"
2483 LIBS="-lcurses -ltermcap $LIBS"
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 /* Override any gcc2 internal prototype to avoid an error. */
2491 /* We use char because int might match the return type of a gcc2
2492 builtin and then its argument prototype would still apply. */
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2501 eval "ac_cv_lib_$ac_lib_var=yes"
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 eval "ac_cv_lib_$ac_lib_var=no"
2509 LIBS="$ac_save_LIBS"
2512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 lcd_libs="-lcurses -ltermcap"
2516 echo "$ac_t""no" 1>&6
2524 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2525 echo "configure:2526: checking for connect in -lsocket" >&5
2526 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 ac_save_LIBS="$LIBS"
2531 LIBS="-lsocket $LIBS"
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 /* Override any gcc2 internal prototype to avoid an error. */
2539 /* We use char because int might match the return type of a gcc2
2540 builtin and then its argument prototype would still apply. */
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2549 eval "ac_cv_lib_$ac_lib_var=yes"
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2554 eval "ac_cv_lib_$ac_lib_var=no"
2557 LIBS="$ac_save_LIBS"
2560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2562 socket_libs="-lsocket $socket_libs"
2564 echo "$ac_t""no" 1>&6
2567 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2568 echo "configure:2569: checking for gethostbyname in -lnsl" >&5
2569 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 ac_save_LIBS="$LIBS"
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 /* Override any gcc2 internal prototype to avoid an error. */
2582 /* We use char because int might match the return type of a gcc2
2583 builtin and then its argument prototype would still apply. */
2584 char gethostbyname();
2590 if { (eval echo configure:2591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2592 eval "ac_cv_lib_$ac_lib_var=yes"
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2597 eval "ac_cv_lib_$ac_lib_var=no"
2600 LIBS="$ac_save_LIBS"
2603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 socket_libs="$socket_libs -lnsl"
2607 echo "$ac_t""no" 1>&6
2608 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2609 echo "configure:2610: checking for gethostbyname in -lresolv" >&5
2610 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 ac_save_LIBS="$LIBS"
2615 LIBS="-lresolv $LIBS"
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 /* Override any gcc2 internal prototype to avoid an error. */
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625 char gethostbyname();
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2633 eval "ac_cv_lib_$ac_lib_var=yes"
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 eval "ac_cv_lib_$ac_lib_var=no"
2641 LIBS="$ac_save_LIBS"
2644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2646 socket_libs="$socket_libs -lresolv"
2648 echo "$ac_t""no" 1>&6
2655 for ac_func in ftime gettimeofday usleep strtoul strtoull select
2657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_func" >&5
2659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 /* System header to define __stub macros and hopefully few prototypes,
2666 which can conflict with char $ac_func(); below. */
2668 /* Override any gcc2 internal prototype to avoid an error. */
2672 /* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2678 /* The GNU C library defines this for functions which it implements
2679 to always fail with ENOSYS. Some functions are actually named
2680 something starting with __ and the normal name is an alias. */
2681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2691 eval "ac_cv_func_$ac_func=yes"
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2696 eval "ac_cv_func_$ac_func=no"
2701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2704 cat >> confdefs.h <<EOF
2705 #define $ac_tr_func 1
2709 echo "$ac_t""no" 1>&6
2715 LIBS="$LIBS $socket_libs"
2716 for ac_func in inet_aton inet_addr
2718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2719 echo "configure:2720: checking for $ac_func" >&5
2720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 /* System header to define __stub macros and hopefully few prototypes,
2727 which can conflict with char $ac_func(); below. */
2729 /* Override any gcc2 internal prototype to avoid an error. */
2733 /* We use char because int might match the return type of a gcc2
2734 builtin and then its argument prototype would still apply. */
2739 /* The GNU C library defines this for functions which it implements
2740 to always fail with ENOSYS. Some functions are actually named
2741 something starting with __ and the normal name is an alias. */
2742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2750 if { (eval echo configure:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2752 eval "ac_cv_func_$ac_func=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 eval "ac_cv_func_$ac_func=no"
2762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2765 cat >> confdefs.h <<EOF
2766 #define $ac_tr_func 1
2770 echo "$ac_t""no" 1>&6
2776 for ac_hdr in curses.h time.h unistd.h
2778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_hdr" >&5
2781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792 if test -z "$ac_err"; then
2794 eval "ac_cv_header_$ac_safe=yes"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2800 eval "ac_cv_header_$ac_safe=no"
2804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2805 echo "$ac_t""yes" 1>&6
2806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2807 cat >> confdefs.h <<EOF
2808 #define $ac_tr_hdr 1
2812 echo "$ac_t""no" 1>&6
2816 for ac_hdr in sys/time.h sys/timeb.h sys/types.h
2818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_hdr" >&5
2821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830 { (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2832 if test -z "$ac_err"; then
2834 eval "ac_cv_header_$ac_safe=yes"
2837 echo "configure: failed program was:" >&5
2838 cat conftest.$ac_ext >&5
2840 eval "ac_cv_header_$ac_safe=no"
2844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2847 cat >> confdefs.h <<EOF
2848 #define $ac_tr_hdr 1
2852 echo "$ac_t""no" 1>&6
2856 for ac_hdr in sys/socket.h netinet/in.h netinet/tcp.h arpa/inet.h
2858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $ac_hdr" >&5
2861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2870 { (eval echo configure:2871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2872 if test -z "$ac_err"; then
2874 eval "ac_cv_header_$ac_safe=yes"
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2880 eval "ac_cv_header_$ac_safe=no"
2884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2887 cat >> confdefs.h <<EOF
2888 #define $ac_tr_hdr 1
2892 echo "$ac_t""no" 1>&6
2897 for ac_hdr in ../ucbinclude/sys/ioctl.h
2899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2915 eval "ac_cv_header_$ac_safe=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2921 eval "ac_cv_header_$ac_safe=no"
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928 cat >> confdefs.h <<EOF
2929 #define $ac_tr_hdr 1
2933 echo "$ac_t""no" 1>&6
2938 echo $ac_n "checking whether ftime is declared""... $ac_c" 1>&6
2939 echo "configure:2940: checking whether ftime is declared" >&5
2940 if eval "test \"`echo '$''{'ac_cv_decl_ftime'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 #include <sys/timeb.h>
2949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2950 egrep "ftime" >/dev/null 2>&1; then
2952 ac_cv_decl_ftime=yes
2962 echo "$ac_t""$ac_cv_decl_ftime" 1>&6
2963 if test x$ac_cv_decl_ftime = xyes; then
2964 cat >> confdefs.h <<\EOF
2965 #define HAVE_FTIME_DECL 1
2969 echo $ac_n "checking whether usleep is declared""... $ac_c" 1>&6
2970 echo "configure:2971: checking whether usleep is declared" >&5
2971 if eval "test \"`echo '$''{'ac_cv_decl_usleep'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 egrep "usleep" >/dev/null 2>&1; then
2983 ac_cv_decl_usleep=yes
2986 ac_cv_decl_usleep=no
2993 echo "$ac_t""$ac_cv_decl_usleep" 1>&6
2994 if test x$ac_cv_decl_usleep = xyes; then
2995 cat >> confdefs.h <<\EOF
2996 #define HAVE_USLEEP_DECL 1
3001 echo $ac_n "checking whether socklen_t is declared""... $ac_c" 1>&6
3002 echo "configure:3003: checking whether socklen_t is declared" >&5
3003 if eval "test \"`echo '$''{'ac_cv_decl_socklen_t'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 #include <sys/socket.h>
3012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3013 egrep "socklen_t" >/dev/null 2>&1; then
3015 ac_cv_decl_socklen_t=yes
3018 ac_cv_decl_socklen_t=no
3025 echo "$ac_t""$ac_cv_decl_socklen_t" 1>&6
3026 if test x$ac_cv_decl_socklen_t = xyes; then
3027 cat >> confdefs.h <<\EOF
3028 #define HAVE_SOCKLEN_T 1
3039 sid_host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host`
3040 sid_target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target`
3042 if test "$sid_host" = "$sid_target" -o "$target" = "NONE"
3044 echo "configure: warning: Assuming --enable-targets=all" 1>&2
3048 all_targets="$target"
3053 # Check whether --enable-targets or --disable-targets was given.
3054 if test "${enable_targets+set}" = set; then
3055 enableval="$enable_targets"
3057 case "${enable_targets}" in
3058 all) sidtarget_default=1 ;;
3059 no) sidtarget_default=0 ;;
3060 *) all_targets="${all_targets} `echo ${enable_targets} | sed -e 's-,- -g'`" ;;
3066 sidtarget_arm=$sidtarget_default
3067 sidtarget_mips=$sidtarget_default
3068 sidtarget_m32r=$sidtarget_default
3069 sidtarget_m68k=$sidtarget_default
3070 sidtarget_ppc=$sidtarget_default
3072 for targ in $all_targets
3075 arm*) sidtarget_arm=1 ;;
3076 thumb*) sidtarget_arm=1 ;;
3077 mips*) sidtarget_mips=1 ;;
3078 m32r*) sidtarget_m32r=1 ;;
3079 m68k*) sidtarget_m68k=1 ;;
3080 powerpc*) sidtarget_ppc=1 ;;
3081 ppc*) sidtarget_ppc=1 ;;
3082 *) echo "configure: warning: "Unknown target $targ"" 1>&2 ;;
3087 ${sidtarget_arm}) ;;
3088 ${sidtarget_mips}) ;;
3089 ${sidtarget_m32r}) ;;
3090 ${sidtarget_m68k}) ;;
3091 ${sidtarget_ppc}) ;;
3092 *) echo "configure: warning: No selected sid targets: use --enable-targets or --target" 1>&2
3097 echo $ac_n "checking ARM family support""... $ac_c" 1>&6
3098 echo "configure:3129: checking ARM family support" >&5
3102 if test "x$sidtarget_arm" = x1; then
3104 SIDTARGET_ARM_FALSE='#'
3106 SIDTARGET_ARM_TRUE='#'
3107 SIDTARGET_ARM_FALSE=
3109 echo "$ac_t""$sidtarget_arm" 1>&6
3112 echo $ac_n "checking MIPS family support""... $ac_c" 1>&6
3113 echo "configure:3159: checking MIPS family support" >&5
3117 if test "x$sidtarget_mips" = x1; then
3118 SIDTARGET_MIPS_TRUE=
3119 SIDTARGET_MIPS_FALSE='#'
3121 SIDTARGET_MIPS_TRUE='#'
3122 SIDTARGET_MIPS_FALSE=
3124 echo "$ac_t""$sidtarget_mips" 1>&6
3126 echo $ac_n "checking M32R family support""... $ac_c" 1>&6
3127 echo "configure:3173: checking M32R family support" >&5
3131 if test "x$sidtarget_m32r" = x1; then
3132 SIDTARGET_M32R_TRUE=
3133 SIDTARGET_M32R_FALSE='#'
3135 SIDTARGET_M32R_TRUE='#'
3136 SIDTARGET_M32R_FALSE=
3138 echo "$ac_t""$sidtarget_m32r" 1>&6
3140 echo $ac_n "checking M68K family support""... $ac_c" 1>&6
3141 echo "configure:3187: checking M68K family support" >&5
3145 if test "x$sidtarget_m68k" = x1; then
3146 SIDTARGET_M68K_TRUE=
3147 SIDTARGET_M68K_FALSE='#'
3149 SIDTARGET_M68K_TRUE='#'
3150 SIDTARGET_M68K_FALSE=
3152 echo "$ac_t""$sidtarget_m68k" 1>&6
3154 echo $ac_n "checking PPC family support""... $ac_c" 1>&6
3155 echo "configure:3201: checking PPC family support" >&5
3159 if test "x$sidtarget_ppc" = x1; then
3161 SIDTARGET_PPC_FALSE='#'
3163 SIDTARGET_PPC_TRUE='#'
3164 SIDTARGET_PPC_FALSE=
3166 echo "$ac_t""$sidtarget_ppc" 1>&6
3172 subdirs="cfgroot tcl audio cgen-cpu timers"
3177 make_subdirs="consoles gdb gloss glue ide interrupt lcd loader mapper memory mmu parport profiling rtc sched uart testsuite"
3181 cat > confcache <<\EOF
3182 # This file is a shell script that caches the results of configure
3183 # tests run on this system so they can be shared between configure
3184 # scripts and configure runs. It is not useful on other systems.
3185 # If it contains results you don't want to keep, you may remove or edit it.
3187 # By default, configure uses ./config.cache as the cache file,
3188 # creating it if it does not exist already. You can give configure
3189 # the --cache-file=FILE option to use a different cache file; that is
3190 # what configure does when it calls configure scripts in
3191 # subdirectories, so they share the cache.
3192 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3193 # config.status only pays attention to the cache file if you give it the
3194 # --recheck option to rerun configure.
3197 # The following way of writing the cache mishandles newlines in values,
3198 # but we know of no workaround that is simple, portable, and efficient.
3199 # So, don't put newlines in cache variables' values.
3200 # Ultrix sh set writes to stderr and can't be redirected directly,
3201 # and sets the high bit in the cache file unless we assign to the vars.
3203 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3205 # `set' does not quote correctly, so add quotes (double-quote substitution
3206 # turns \\\\ into \\, and sed turns \\ into \).
3208 -e "s/'/'\\\\''/g" \
3209 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3212 # `set' quotes correctly as required by POSIX, so do not add quotes.
3213 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3216 if cmp -s $cache_file confcache; then
3219 if test -w $cache_file; then
3220 echo "updating cache $cache_file"
3221 cat confcache > $cache_file
3223 echo "not updating unwritable cache $cache_file"
3228 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3231 # Let make expand exec_prefix.
3232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3234 # Any assignment to VPATH causes Sun make to only execute
3235 # the first set of double-colon rules, so remove it if not needed.
3236 # If there is a colon in the path, we need to keep it.
3237 if test "x$srcdir" = x.; then
3238 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3241 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3243 DEFS=-DHAVE_CONFIG_H
3245 # Without the "./", some shells look in PATH for config.status.
3246 : ${CONFIG_STATUS=./config.status}
3248 echo creating $CONFIG_STATUS
3249 rm -f $CONFIG_STATUS
3250 cat > $CONFIG_STATUS <<EOF
3252 # Generated automatically by configure.
3253 # Run this file to recreate the current configuration.
3254 # This directory was configured as follows,
3255 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3257 # $0 $ac_configure_args
3259 # Compiler output produced by configure, useful for debugging
3260 # configure, is in ./config.log if it exists.
3262 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3265 case "\$ac_option" in
3266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3267 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3268 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3269 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3270 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3272 -help | --help | --hel | --he | --h)
3273 echo "\$ac_cs_usage"; exit 0 ;;
3274 *) echo "\$ac_cs_usage"; exit 1 ;;
3278 ac_given_srcdir=$srcdir
3279 ac_given_INSTALL="$INSTALL"
3281 trap 'rm -fr `echo "Makefile testsuite/Makefile tconfig.h:tconfig.in siddoc
3288 lcd/Makefile lcd/testsuite/Makefile
3290 mapper/Makefile mapper/testsuite/Makefile
3297 uart/Makefile uart/testsuite/Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3299 cat >> $CONFIG_STATUS <<EOF
3301 # Protect against being on the right side of a sed subst in config.status.
3302 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3303 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3307 s%@CFLAGS@%$CFLAGS%g
3308 s%@CPPFLAGS@%$CPPFLAGS%g
3309 s%@CXXFLAGS@%$CXXFLAGS%g
3310 s%@FFLAGS@%$FFLAGS%g
3312 s%@LDFLAGS@%$LDFLAGS%g
3314 s%@exec_prefix@%$exec_prefix%g
3315 s%@prefix@%$prefix%g
3316 s%@program_transform_name@%$program_transform_name%g
3317 s%@bindir@%$bindir%g
3318 s%@sbindir@%$sbindir%g
3319 s%@libexecdir@%$libexecdir%g
3320 s%@datadir@%$datadir%g
3321 s%@sysconfdir@%$sysconfdir%g
3322 s%@sharedstatedir@%$sharedstatedir%g
3323 s%@localstatedir@%$localstatedir%g
3324 s%@libdir@%$libdir%g
3325 s%@includedir@%$includedir%g
3326 s%@oldincludedir@%$oldincludedir%g
3327 s%@infodir@%$infodir%g
3328 s%@mandir@%$mandir%g
3329 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3330 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3331 s%@INSTALL_DATA@%$INSTALL_DATA%g
3332 s%@PACKAGE@%$PACKAGE%g
3333 s%@VERSION@%$VERSION%g
3334 s%@ACLOCAL@%$ACLOCAL%g
3335 s%@AUTOCONF@%$AUTOCONF%g
3336 s%@AUTOMAKE@%$AUTOMAKE%g
3337 s%@AUTOHEADER@%$AUTOHEADER%g
3338 s%@MAKEINFO@%$MAKEINFO%g
3339 s%@SET_MAKE@%$SET_MAKE%g
3340 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3341 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3344 s%@host_alias@%$host_alias%g
3345 s%@host_cpu@%$host_cpu%g
3346 s%@host_vendor@%$host_vendor%g
3347 s%@host_os@%$host_os%g
3349 s%@build_alias@%$build_alias%g
3350 s%@build_cpu@%$build_cpu%g
3351 s%@build_vendor@%$build_vendor%g
3352 s%@build_os@%$build_os%g
3358 s%@RANLIB@%$RANLIB%g
3359 s%@DLLTOOL@%$DLLTOOL%g
3361 s%@OBJDUMP@%$OBJDUMP%g
3362 s%@LIBTOOL@%$LIBTOOL%g
3363 s%@EXEEXT@%$EXEEXT%g
3365 s%@CXXCPP@%$CXXCPP%g
3366 s%@lcd_libs@%$lcd_libs%g
3367 s%@socket_libs@%$socket_libs%g
3368 s%@CYGWIN@%$CYGWIN%g
3369 s%@sidtarget_arm@%$sidtarget_arm%g
3370 s%@SIDTARGET_ARM_TRUE@%$SIDTARGET_ARM_TRUE%g
3371 s%@SIDTARGET_ARM_FALSE@%$SIDTARGET_ARM_FALSE%g
3372 s%@sidtarget_mips@%$sidtarget_mips%g
3373 s%@SIDTARGET_MIPS_TRUE@%$SIDTARGET_MIPS_TRUE%g
3374 s%@SIDTARGET_MIPS_FALSE@%$SIDTARGET_MIPS_FALSE%g
3375 s%@sidtarget_m32r@%$sidtarget_m32r%g
3376 s%@SIDTARGET_M32R_TRUE@%$SIDTARGET_M32R_TRUE%g
3377 s%@SIDTARGET_M32R_FALSE@%$SIDTARGET_M32R_FALSE%g
3378 s%@sidtarget_m68k@%$sidtarget_m68k%g
3379 s%@SIDTARGET_M68K_TRUE@%$SIDTARGET_M68K_TRUE%g
3380 s%@SIDTARGET_M68K_FALSE@%$SIDTARGET_M68K_FALSE%g
3381 s%@sidtarget_ppc@%$sidtarget_ppc%g
3382 s%@SIDTARGET_PPC_TRUE@%$SIDTARGET_PPC_TRUE%g
3383 s%@SIDTARGET_PPC_FALSE@%$SIDTARGET_PPC_FALSE%g
3384 s%@subdirs@%$subdirs%g
3385 s%@make_subdirs@%$make_subdirs%g
3390 cat >> $CONFIG_STATUS <<\EOF
3392 # Split the substitutions into bite-sized pieces for seds with
3393 # small command number limits, like on Digital OSF/1 and HP-UX.
3394 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3395 ac_file=1 # Number of current file.
3396 ac_beg=1 # First line for current file.
3397 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3400 while $ac_more_lines; do
3401 if test $ac_beg -gt 1; then
3402 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3404 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3406 if test ! -s conftest.s$ac_file; then
3408 rm -f conftest.s$ac_file
3410 if test -z "$ac_sed_cmds"; then
3411 ac_sed_cmds="sed -f conftest.s$ac_file"
3413 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3415 ac_file=`expr $ac_file + 1`
3417 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3420 if test -z "$ac_sed_cmds"; then
3425 cat >> $CONFIG_STATUS <<EOF
3427 CONFIG_FILES=\${CONFIG_FILES-"Makefile testsuite/Makefile tconfig.h:tconfig.in siddoc
3434 lcd/Makefile lcd/testsuite/Makefile
3436 mapper/Makefile mapper/testsuite/Makefile
3443 uart/Makefile uart/testsuite/Makefile"}
3445 cat >> $CONFIG_STATUS <<\EOF
3446 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3447 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3449 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3450 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3451 *) ac_file_in="${ac_file}.in" ;;
3454 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3456 # Remove last slash and all that follows it. Not all systems have dirname.
3457 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3458 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3459 # The file is in a subdirectory.
3460 test ! -d "$ac_dir" && mkdir "$ac_dir"
3461 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3462 # A "../" for each directory in $ac_dir_suffix.
3463 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3465 ac_dir_suffix= ac_dots=
3468 case "$ac_given_srcdir" in
3470 if test -z "$ac_dots"; then top_srcdir=.
3471 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3472 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3474 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3475 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3478 case "$ac_given_INSTALL" in
3479 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3480 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3483 echo creating "$ac_file"
3485 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3487 *Makefile*) ac_comsub="1i\\
3488 # $configure_input" ;;
3492 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3494 s%@configure_input@%$configure_input%g
3495 s%@srcdir@%$srcdir%g
3496 s%@top_srcdir@%$top_srcdir%g
3497 s%@INSTALL@%$INSTALL%g
3498 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3502 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3503 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3505 # ac_d sets the value in "#define NAME VALUE" lines.
3506 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3507 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3510 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3511 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3512 ac_uB='\([ ]\)%\1#\2define\3'
3515 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3516 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3517 ac_eB='$%\1#\2define\3'
3521 if test "${CONFIG_HEADERS+set}" != set; then
3523 cat >> $CONFIG_STATUS <<EOF
3524 CONFIG_HEADERS="config.h:config.in"
3526 cat >> $CONFIG_STATUS <<\EOF
3528 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3531 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3532 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3533 *) ac_file_in="${ac_file}.in" ;;
3536 echo creating $ac_file
3538 rm -f conftest.frag conftest.in conftest.out
3539 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3540 cat $ac_file_inputs > conftest.in
3544 # Transform confdefs.h into a sed script conftest.vals that substitutes
3545 # the proper values into config.h.in to produce config.h. And first:
3546 # Protect against being on the right side of a sed subst in config.status.
3547 # Protect against being in an unquoted here document in config.status.
3549 cat > conftest.hdr <<\EOF
3552 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3556 sed -n -f conftest.hdr confdefs.h > conftest.vals
3559 # This sed command replaces #undef with comments. This is necessary, for
3560 # example, in the case of _POSIX_SOURCE, which is predefined and required
3561 # on some systems where configure will not decide to define it.
3562 cat >> conftest.vals <<\EOF
3563 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3566 # Break up conftest.vals because some shells have a limit on
3567 # the size of here documents, and old seds have small limits too.
3572 ac_lines=`grep -c . conftest.vals`
3573 # grep -c gives empty output for an empty file on some AIX systems.
3574 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3575 # Write a limited-size here document to conftest.frag.
3576 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3577 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3579 sed -f conftest.frag conftest.in > conftest.out
3581 mv conftest.out conftest.in
3583 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3585 mv conftest.tail conftest.vals
3589 cat >> $CONFIG_STATUS <<\EOF
3590 rm -f conftest.frag conftest.h
3591 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3592 cat conftest.in >> conftest.h
3594 if cmp -s $ac_file conftest.h 2>/dev/null; then
3595 echo "$ac_file is unchanged"
3598 # Remove last slash and all that follows it. Not all systems have dirname.
3599 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3600 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3601 # The file is in a subdirectory.
3602 test ! -d "$ac_dir" && mkdir "$ac_dir"
3605 mv conftest.h $ac_file
3610 cat >> $CONFIG_STATUS <<EOF
3614 cat >> $CONFIG_STATUS <<\EOF
3615 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3619 chmod +x $CONFIG_STATUS
3620 rm -fr confdefs* $ac_clean_files
3621 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3623 if test "$no_recursion" != yes; then
3625 # Remove --cache-file and --srcdir arguments so they do not pile up.
3626 ac_sub_configure_args=
3628 for ac_arg in $ac_configure_args; do
3629 if test -n "$ac_prev"; then
3634 -cache-file | --cache-file | --cache-fil | --cache-fi \
3635 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3636 ac_prev=cache_file ;;
3637 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3638 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3640 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3642 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3644 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3648 for ac_config_dir in cfgroot tcl audio cgen-cpu timers; do
3650 # Do not complain, so a configure script can configure whichever
3651 # parts of a large source tree are present.
3652 if test ! -d $srcdir/$ac_config_dir; then
3656 echo configuring in $ac_config_dir
3661 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3663 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3671 # A "../" for each directory in /$ac_config_dir.
3672 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3675 .) # No --srcdir option. We are building in place.
3676 ac_sub_srcdir=$srcdir ;;
3677 /*) # Absolute path.
3678 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3680 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3683 # Check for guested configure; otherwise get Cygnus style configure.
3684 if test -f $ac_sub_srcdir/configure; then
3685 ac_sub_configure=$ac_sub_srcdir/configure
3686 elif test -f $ac_sub_srcdir/configure.in; then
3687 ac_sub_configure=$ac_configure
3689 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3693 # The recursion is here.
3694 if test -n "$ac_sub_configure"; then
3696 # Make the cache file name correct relative to the subdirectory.
3697 case "$cache_file" in
3698 /*) ac_sub_cache_file=$cache_file ;;
3700 ac_sub_cache_file="$ac_dots$cache_file" ;;
3702 case "$ac_given_INSTALL" in
3703 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3704 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3707 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3708 # The eval makes quoting arguments work.
3709 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3712 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }