2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/subcommand.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CROSS_COMPILING_TRUE CROSS_COMPILING_FALSE INSTALL_LIBGUI_TRUE INSTALL_LIBGUI_FALSE RANLIB ac_ct_RANLIB AR ac_ct_AR ALLOCA CPP EGREP IDE_ENABLED_TRUE IDE_ENABLED_FALSE LIBGUI_CFLAGS LIBGUI_LIBRARY_DIR TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TCL_DEFS TCL_INCLUDES TK_DEFS TK_INCLUDES TK_XINCLUDES TCL_LIBS TK_LIBRARY TCL_LIBRARY TK_LIBS TCL_SHARED_TRUE TCL_SHARED_FALSE RPATH_ENVVAR LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-maintainer-mode enable make rules and dependencies not useful
853 (and sometimes confusing) to the casual installer
854 --disable-dependency-tracking speeds up one-time build
855 --enable-dependency-tracking do not reject slow dependency extractors
857 --enable-install-libgui Install libgui.a and library header files
858 --enable-ide Enable IDE support
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --with-tcl directory containing tcl configuration (tclConfig.sh)
864 --with-tk directory containing tk configuration (tkConfig.sh)
866 Some influential environment variables:
867 CC C compiler command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
875 Use these variables to override the choices made by `configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893 ac_dir_suffix= ac_top_builddir=
897 .) # No --srcdir option. We are building in place.
899 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 # Do not use `cd foo && pwd` to compute absolute paths, because
913 # the directories may not exist.
915 .) ac_abs_builddir="$ac_dir";;
918 .) ac_abs_builddir=`pwd`;;
919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 case $ac_abs_builddir in
924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
926 case ${ac_top_builddir}. in
927 .) ac_abs_top_builddir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 case $ac_abs_builddir in
933 .) ac_abs_srcdir=$ac_srcdir;;
936 .) ac_abs_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 case $ac_abs_builddir in
942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
944 case $ac_top_srcdir in
945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by $as_me, which was
986 generated by GNU Autoconf 2.59. Invocation command line was
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_must_keep_next=false
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 -* ) ac_must_keep_next=true ;;
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1103 # The following way of writing the cache mishandles newlines in values,
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -n "$ac_subst_files"; then
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -s confdefs.h; then
1155 sed "/^$/d" confdefs.h | sort
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1238 # Check that the precious variables saved in the cache have kept the same
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313 am__api_version="1.9"
1315 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1316 if test -f $ac_dir/install-sh; then
1318 ac_install_sh="$ac_aux_dir/install-sh -c"
1320 elif test -f $ac_dir/install.sh; then
1322 ac_install_sh="$ac_aux_dir/install.sh -c"
1324 elif test -f $ac_dir/shtool; then
1326 ac_install_sh="$ac_aux_dir/shtool install -c"
1330 if test -z "$ac_aux_dir"; then
1331 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1332 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1333 { (exit 1); exit 1; }; }
1335 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1336 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1337 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1339 # Find a good install program. We prefer a C program (faster),
1340 # so one script is as good as another. But avoid the broken or
1341 # incompatible versions:
1342 # SysV /etc/install, /usr/sbin/install
1343 # SunOS /usr/etc/install
1344 # IRIX /sbin/install
1346 # AmigaOS /C/install, which installs bootblocks on floppy discs
1347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1350 # OS/2's system install, which has a completely different semantic
1351 # ./install, which can be erroneously created by make from ./install.sh.
1352 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1353 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1354 if test -z "$INSTALL"; then
1355 if test "${ac_cv_path_install+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362 test -z "$as_dir" && as_dir=.
1363 # Account for people who put trailing slashes in PATH elements.
1365 ./ | .// | /cC/* | \
1366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1367 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1370 # OSF1 and SCO ODT 3.0 have their own names for install.
1371 # Don't use installbsd from OSF since it installs stuff as root
1373 for ac_prog in ginstall scoinst install; do
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1376 if test $ac_prog = install &&
1377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1378 # AIX install. It has an incompatible calling convention.
1380 elif test $ac_prog = install &&
1381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382 # program-specific install script used by HP pwplus--don't use.
1385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1397 if test "${ac_cv_path_install+set}" = set; then
1398 INSTALL=$ac_cv_path_install
1400 # As a last resort, use the slow shell script. We don't cache a
1401 # path for INSTALL within a source directory, because that will
1402 # break other packages using the cache if that directory is
1403 # removed, or if the path is relative.
1404 INSTALL=$ac_install_sh
1407 echo "$as_me:$LINENO: result: $INSTALL" >&5
1408 echo "${ECHO_T}$INSTALL" >&6
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1418 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1419 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1422 echo timestamp > conftest.file
1423 # Do `set' in a subshell so we don't clobber the current shell's
1424 # arguments. Must try -L first in case configure is actually a
1425 # symlink; some systems play weird games with the mod time of symlinks
1426 # (eg FreeBSD returns the mod time of the symlink's containing
1429 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1430 if test "$*" = "X"; then
1432 set X `ls -t $srcdir/configure conftest.file`
1435 if test "$*" != "X $srcdir/configure conftest.file" \
1436 && test "$*" != "X conftest.file $srcdir/configure"; then
1438 # If neither matched, then we have a broken ls. This can happen
1439 # if, for instance, CONFIG_SHELL is bash and it inherits a
1440 # broken ls alias from the environment. This has actually
1441 # happened. Such a system could not be considered "sane".
1442 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1443 alias in your environment" >&5
1444 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1445 alias in your environment" >&2;}
1446 { (exit 1); exit 1; }; }
1449 test "$2" = conftest.file
1455 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1456 Check your system clock" >&5
1457 echo "$as_me: error: newly created file is older than distributed files!
1458 Check your system clock" >&2;}
1459 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: yes" >&5
1462 echo "${ECHO_T}yes" >&6
1463 test "$program_prefix" != NONE &&
1464 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1465 # Use a double $ so make ignores it.
1466 test "$program_suffix" != NONE &&
1467 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1468 # Double any \ or $. echo might interpret backslashes.
1469 # By default was `s,x,x', remove it if useless.
1470 cat <<\_ACEOF >conftest.sed
1471 s/[\\$]/&&/g;s/;s,x,x,$//
1473 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1476 # expand $ac_aux_dir to an absolute path
1477 am_aux_dir=`cd $ac_aux_dir && pwd`
1479 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1480 # Use eval to expand $SHELL
1481 if eval "$MISSING --run true"; then
1482 am_missing_run="$MISSING --run "
1485 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1486 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1489 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1490 # We used to keeping the `.' as first argument, in order to
1491 # allow $(mkdir_p) to be used without argument. As in
1492 # $(mkdir_p) $(somedir)
1493 # where $(somedir) is conditionally defined. However this is wrong
1495 # 1. if the package is installed by a user who cannot write `.'
1496 # make install will fail,
1497 # 2. the above comment should most certainly read
1498 # $(mkdir_p) $(DESTDIR)$(somedir)
1499 # so it does not work when $(somedir) is undefined and
1500 # $(DESTDIR) is not.
1501 # To support the latter case, we have to write
1502 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1503 # so the `.' trick is pointless.
1504 mkdir_p='mkdir -p --'
1506 # On NextStep and OpenStep, the `mkdir' command does not
1507 # recognize any option. It will interpret all options as
1508 # directories to create, and then abort because `.' already
1510 for d in ./-p ./--version;
1512 test -d $d && rmdir $d
1514 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1515 if test -f "$ac_aux_dir/mkinstalldirs"; then
1516 mkdir_p='$(mkinstalldirs)'
1518 mkdir_p='$(install_sh) -d'
1522 for ac_prog in gawk mawk nawk awk
1524 # Extract the first word of "$ac_prog", so it can be a program name with args.
1525 set dummy $ac_prog; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_AWK+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$AWK"; then
1532 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_AWK="$ac_prog"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 if test -n "$AWK"; then
1552 echo "$as_me:$LINENO: result: $AWK" >&5
1553 echo "${ECHO_T}$AWK" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1559 test -n "$AWK" && break
1562 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1563 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1565 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 cat >conftest.make <<\_ACEOF
1570 @echo 'ac_maketemp="$(MAKE)"'
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575 eval ac_cv_prog_make_${ac_make}_set=yes
1577 eval ac_cv_prog_make_${ac_make}_set=no
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582 echo "$as_me:$LINENO: result: yes" >&5
1583 echo "${ECHO_T}yes" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 SET_MAKE="MAKE=${MAKE-make}"
1591 rm -rf .tst 2>/dev/null
1592 mkdir .tst 2>/dev/null
1593 if test -d .tst; then
1598 rmdir .tst 2>/dev/null
1600 # test to see if srcdir already configured
1601 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1602 test -f $srcdir/config.status; then
1603 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1604 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1605 { (exit 1); exit 1; }; }
1608 # test whether we have cygpath
1609 if test -z "$CYGPATH_W"; then
1610 if (cygpath --version) >/dev/null 2>/dev/null; then
1611 CYGPATH_W='cygpath -w'
1618 # Define the identity of the package.
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE "$PACKAGE"
1628 cat >>confdefs.h <<_ACEOF
1629 #define VERSION "$VERSION"
1632 # Some tools Automake needs.
1634 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1637 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1640 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1643 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1646 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1648 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1650 # Installed binaries are usually stripped using `strip' when the user
1651 # run `make install-strip'. However `strip' might not be the right
1652 # tool to use in cross-compilation environments, therefore Automake
1653 # will honor the `STRIP' environment variable to overrule this program.
1654 if test "$cross_compiling" != no; then
1655 if test -n "$ac_tool_prefix"; then
1656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1657 set dummy ${ac_tool_prefix}strip; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_STRIP+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$STRIP"; then
1664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 STRIP=$ac_cv_prog_STRIP
1683 if test -n "$STRIP"; then
1684 echo "$as_me:$LINENO: result: $STRIP" >&5
1685 echo "${ECHO_T}$STRIP" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1692 if test -z "$ac_cv_prog_STRIP"; then
1694 # Extract the first word of "strip", so it can be a program name with args.
1695 set dummy strip; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$ac_ct_STRIP"; then
1702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_STRIP="strip"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1722 if test -n "$ac_ct_STRIP"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1724 echo "${ECHO_T}$ac_ct_STRIP" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1732 STRIP="$ac_cv_prog_STRIP"
1736 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1738 # We need awk for the "check" target. The system "awk" is bad on
1740 # Always define AMTAR for backward compatibility.
1742 AMTAR=${AMTAR-"${am_missing_run}tar"}
1744 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1750 ac_config_headers="$ac_config_headers config.h"
1752 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1753 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1754 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1755 if test "${enable_maintainer_mode+set}" = set; then
1756 enableval="$enable_maintainer_mode"
1757 USE_MAINTAINER_MODE=$enableval
1759 USE_MAINTAINER_MODE=no
1761 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1762 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1765 if test $USE_MAINTAINER_MODE = yes; then
1766 MAINTAINER_MODE_TRUE=
1767 MAINTAINER_MODE_FALSE='#'
1769 MAINTAINER_MODE_TRUE='#'
1770 MAINTAINER_MODE_FALSE=
1773 MAINT=$MAINTAINER_MODE_TRUE
1776 # Make sure we can run config.sub.
1777 $ac_config_sub sun4 >/dev/null 2>&1 ||
1778 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1779 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1780 { (exit 1); exit 1; }; }
1782 echo "$as_me:$LINENO: checking build system type" >&5
1783 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1784 if test "${ac_cv_build+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 ac_cv_build_alias=$build_alias
1788 test -z "$ac_cv_build_alias" &&
1789 ac_cv_build_alias=`$ac_config_guess`
1790 test -z "$ac_cv_build_alias" &&
1791 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1792 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1793 { (exit 1); exit 1; }; }
1794 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1795 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1796 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1797 { (exit 1); exit 1; }; }
1800 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1801 echo "${ECHO_T}$ac_cv_build" >&6
1803 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1804 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1805 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1808 echo "$as_me:$LINENO: checking host system type" >&5
1809 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1810 if test "${ac_cv_host+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 ac_cv_host_alias=$host_alias
1814 test -z "$ac_cv_host_alias" &&
1815 ac_cv_host_alias=$ac_cv_build_alias
1816 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1817 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1818 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1819 { (exit 1); exit 1; }; }
1822 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1823 echo "${ECHO_T}$ac_cv_host" >&6
1825 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1826 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1827 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 if test -n "$CC"; then
1864 echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1872 if test -z "$ac_cv_prog_CC"; then
1874 # Extract the first word of "gcc", so it can be a program name with args.
1875 set dummy gcc; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="gcc"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1914 if test -z "$CC"; then
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_CC="${ac_tool_prefix}cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 if test -n "$CC"; then
1944 echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1952 if test -z "$ac_cv_prog_CC"; then
1954 # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CC="cc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1995 if test -z "$CC"; then
1996 # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015 ac_prog_rejected=yes
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 if test $ac_prog_rejected = yes; then
2026 # We found a bogon in the path, so make sure we never use it.
2027 set dummy $ac_cv_prog_CC
2029 if test $# != 0; then
2030 # We chose a different compiler from the bogus one.
2031 # However, it has the same basename, so the bogon will be chosen
2032 # first if we set CC to just the basename; use the full file name.
2034 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$CC"; then
2050 if test -n "$ac_tool_prefix"; then
2053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$CC"; then
2081 echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2088 test -n "$CC" && break
2091 if test -z "$CC"; then
2095 # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 if test -n "$ac_ct_CC"; then
2103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112 ac_cv_prog_ac_ct_CC="$ac_prog"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 echo "${ECHO_T}$ac_ct_CC" >&6
2126 echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2130 test -n "$ac_ct_CC" && break
2139 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: no acceptable C compiler found in \$PATH
2142 See \`config.log' for more details." >&2;}
2143 { (exit 1); exit 1; }; }
2145 # Provide some information about the compiler.
2146 echo "$as_me:$LINENO:" \
2147 "checking for C compiler version" >&5
2148 ac_compiler=`set X $ac_compile; echo $2`
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150 (eval $ac_compiler --version </dev/null >&5) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155 (eval $ac_compiler -v </dev/null >&5) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160 (eval $ac_compiler -V </dev/null >&5) 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2165 cat >conftest.$ac_ext <<_ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h. */
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2185 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189 (eval $ac_link_default) 2>&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; then
2193 # Find the output, starting from the most likely. This scheme is
2194 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2197 # Be careful to initialize this variable, since it used to be cached.
2198 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2200 # b.out is created by i960 compilers.
2201 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2203 test -f "$ac_file" || continue
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2208 # This is the source file.
2211 # We found the default executable, but exeext='' is most
2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 # FIXME: I believe we export ac_cv_exeext for Libtool,
2217 # but it would be cool to find out if it's true. Does anybody
2218 # maintain Libtool? --akim.
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233 { (exit 77); exit 77; }; }
2236 ac_exeext=$ac_cv_exeext
2237 echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6
2240 # Check the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247 if { ac_try='./$ac_file'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2255 if test "$cross_compiling" = maybe; then
2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2268 echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2271 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272 ac_clean_files=$ac_clean_files_save
2273 # Check the compiler produces executables we can run. If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 echo "${ECHO_T}$cross_compiling" >&6
2280 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283 (eval $ac_link) 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; then
2287 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2289 # work properly (i.e., refer to `conftest.exe'), while it won't with
2291 for ac_file in conftest.exe conftest conftest.*; do
2292 test -f "$ac_file" || continue
2294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 cat >conftest.$ac_ext <<_ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2336 rm -f conftest.o conftest.obj
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; then
2342 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT=$ac_cv_objext
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 cat >conftest.$ac_ext <<_ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2393 grep -v '^ *+' conftest.er1 >conftest.err
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2428 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2452 grep -v '^ *+' conftest.er1 >conftest.err
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481 if test "$ac_test_CFLAGS" = set; then
2482 CFLAGS=$ac_save_CFLAGS
2483 elif test $ac_cv_prog_cc_g = yes; then
2484 if test "$GCC" = yes; then
2490 if test "$GCC" = yes; then
2496 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 ac_cv_prog_cc_stdc=no
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2511 #include <sys/types.h>
2512 #include <sys/stat.h>
2513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2514 struct buf { int x; };
2515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516 static char *e (p, i)
2522 static char *f (char * (*g) (char **, int), char **p, ...)
2527 s = g (p, va_arg (v,int));
2532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2533 function prototypes and stuff, but not '\xHH' hex character constants.
2534 These don't provoke an error unfortunately, instead are silently treated
2535 as 'x'. The following induces an error, until -std1 is added to get
2536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2537 array size at least. It's necessary to write '\x00'==0 to get something
2538 that's true only with -std1. */
2539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2541 int test (int i, double x);
2542 struct s1 {int (*f) (int a);};
2543 struct s2 {int (*f) (double a);};
2544 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2550 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2555 # Don't try gcc -ansi; that turns off useful extensions and
2556 # breaks some systems' header files.
2557 # AIX -qlanglvl=ansi
2558 # Ultrix and OSF/1 -std1
2559 # HP-UX 10.20 and later -Ae
2560 # HP-UX older versions -Aa -D_HPUX_SOURCE
2561 # SVR4 -Xc -D__EXTENSIONS__
2562 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2564 CC="$ac_save_CC $ac_arg"
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2569 grep -v '^ *+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_prog_cc_stdc=$ac_arg
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f conftest.err conftest.$ac_objext
2596 rm -f conftest.$ac_ext conftest.$ac_objext
2601 case "x$ac_cv_prog_cc_stdc" in
2603 echo "$as_me:$LINENO: result: none needed" >&5
2604 echo "${ECHO_T}none needed" >&6 ;;
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608 CC="$CC $ac_cv_prog_cc_stdc" ;;
2611 # Some people use a C++ compiler to compile C. Since we use `exit',
2612 # in C++ we need to declare it. In case someone uses the same compiler
2613 # for both compiling C and C++ we need to have the C++ compiler decide
2614 # the declaration of exit, since it's the most demanding environment.
2615 cat >conftest.$ac_ext <<_ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>conftest.er1
2624 grep -v '^ *+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -z "$ac_c_werror_flag"
2630 || test ! -s conftest.err'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; } &&
2636 { ac_try='test -s conftest.$ac_objext'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2642 for ac_declaration in \
2644 'extern "C" void std::exit (int) throw (); using std::exit;' \
2645 'extern "C" void std::exit (int); using std::exit;' \
2646 'extern "C" void exit (int) throw ();' \
2647 'extern "C" void exit (int);' \
2650 cat >conftest.$ac_ext <<_ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1 >conftest.err
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 if test -n "$ac_declaration"; then
2743 echo '#ifdef __cplusplus' >>confdefs.h
2744 echo $ac_declaration >>confdefs.h
2745 echo '#endif' >>confdefs.h
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759 DEPDIR="${am__leading_dot}deps"
2761 ac_config_commands="$ac_config_commands depfiles"
2764 am_make=${MAKE-make}
2765 cat > confinc << 'END'
2770 # If we don't find an include directive, just comment out the code.
2771 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2772 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2776 # First try GNU make style include.
2777 echo "include confinc" > confmf
2778 # We grep out `Entering directory' and `Leaving directory'
2779 # messages which can occur if `w' ends up in MAKEFLAGS.
2780 # In particular we don't look at `^make:' because GNU make might
2781 # be invoked under some other name (usually "gmake"), in which
2782 # case it prints its new name instead of `make'.
2783 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2788 # Now try BSD make style include.
2789 if test "$am__include" = "#"; then
2790 echo '.include "confinc"' > confmf
2791 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2792 am__include=.include
2799 echo "$as_me:$LINENO: result: $_am_result" >&5
2800 echo "${ECHO_T}$_am_result" >&6
2801 rm -f confinc confmf
2803 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2804 if test "${enable_dependency_tracking+set}" = set; then
2805 enableval="$enable_dependency_tracking"
2808 if test "x$enable_dependency_tracking" != xno; then
2809 am_depcomp="$ac_aux_dir/depcomp"
2814 if test "x$enable_dependency_tracking" != xno; then
2825 depcc="$CC" am_compiler_list=
2827 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2828 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2829 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2833 # We make a subdir and do the tests there. Otherwise we can end up
2834 # making bogus files that we don't know about and never remove. For
2835 # instance it was reported that on HP-UX the gcc test will end up
2836 # making a dummy file named `D' -- because `-MD' means `put the output
2839 # Copy depcomp to subdir because otherwise we won't find it if we're
2840 # using a relative directory.
2841 cp "$am_depcomp" conftest.dir
2843 # We will build objects and dependencies in a subdirectory because
2844 # it helps to detect inapplicable dependency modes. For instance
2845 # both Tru64's cc and ICC support -MD to output dependencies as a
2846 # side effect of compilation, but ICC will put the dependencies in
2847 # the current directory while Tru64 will put them in the object
2851 am_cv_CC_dependencies_compiler_type=none
2852 if test "$am_compiler_list" = ""; then
2853 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2855 for depmode in $am_compiler_list; do
2856 # Setup a source with many dependencies, because some compilers
2857 # like to wrap large dependency lists on column 80 (with \), and
2858 # we should not choose a depcomp mode which is confused by this.
2860 # We need to recreate these files for each test, as the compiler may
2861 # overwrite some of them when testing with obscure command lines.
2862 # This happens at least with the AIX C compiler.
2864 for i in 1 2 3 4 5 6; do
2865 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2866 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2867 # Solaris 8's {/usr,}/bin/sh.
2868 touch sub/conftst$i.h
2870 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2874 # after this tag, mechanisms are not by side-effect, so they'll
2875 # only be used when explicitly requested
2876 if test "x$enable_dependency_tracking" = xyes; then
2884 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2885 # mode. It turns out that the SunPro C++ compiler does not properly
2886 # handle `-M -o', and we need to detect this.
2887 if depmode=$depmode \
2888 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2889 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2890 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2891 >/dev/null 2>conftest.err &&
2892 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2893 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2894 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2895 # icc doesn't choke on unknown options, it will just issue warnings
2896 # or remarks (even with -Werror). So we grep stderr for any message
2897 # that says an option was ignored or not supported.
2898 # When given -MP, icc 7.0 and 7.1 complain thusly:
2899 # icc: Command line warning: ignoring option '-M'; no argument required
2900 # The diagnosis changed in icc 8.0:
2901 # icc: Command line remark: option '-MP' not supported
2902 if (grep 'ignoring option' conftest.err ||
2903 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2904 am_cv_CC_dependencies_compiler_type=$depmode
2913 am_cv_CC_dependencies_compiler_type=none
2917 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2918 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2919 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2924 test "x$enable_dependency_tracking" != xno \
2925 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2927 am__fastdepCC_FALSE='#'
2929 am__fastdepCC_TRUE='#'
2930 am__fastdepCC_FALSE=
2936 # Check whether --enable-install-libgui or --disable-install-libgui was given.
2937 if test "${enable_install_libgui+set}" = set; then
2938 enableval="$enable_install_libgui"
2943 if test x$cross_compiling = xyes; then
2944 CROSS_COMPILING_TRUE=
2945 CROSS_COMPILING_FALSE='#'
2947 CROSS_COMPILING_TRUE='#'
2948 CROSS_COMPILING_FALSE=
2953 if test x$enable_install_libgui = xyes; then
2954 INSTALL_LIBGUI_TRUE=
2955 INSTALL_LIBGUI_FALSE='#'
2957 INSTALL_LIBGUI_TRUE='#'
2958 INSTALL_LIBGUI_FALSE=
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2964 echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966 if test "${ac_cv_prog_RANLIB+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 if test -n "$RANLIB"; then
2970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 RANLIB=$ac_cv_prog_RANLIB
2989 if test -n "$RANLIB"; then
2990 echo "$as_me:$LINENO: result: $RANLIB" >&5
2991 echo "${ECHO_T}$RANLIB" >&6
2993 echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2998 if test -z "$ac_cv_prog_RANLIB"; then
2999 ac_ct_RANLIB=$RANLIB
3000 # Extract the first word of "ranlib", so it can be a program name with args.
3001 set dummy ranlib; ac_word=$2
3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 if test -n "$ac_ct_RANLIB"; then
3008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_RANLIB="ranlib"
3018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3028 if test -n "$ac_ct_RANLIB"; then
3029 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3030 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3036 RANLIB=$ac_ct_RANLIB
3038 RANLIB="$ac_cv_prog_RANLIB"
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}ar; ac_word=$2
3044 echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_AR+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$AR"; then
3050 ac_cv_prog_AR="$AR" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_AR="${ac_tool_prefix}ar"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 if test -n "$AR"; then
3070 echo "$as_me:$LINENO: result: $AR" >&5
3071 echo "${ECHO_T}$AR" >&6
3073 echo "$as_me:$LINENO: result: no" >&5
3074 echo "${ECHO_T}no" >&6
3078 if test -z "$ac_cv_prog_AR"; then
3080 # Extract the first word of "ar", so it can be a program name with args.
3081 set dummy ar; ac_word=$2
3082 echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 if test -n "$ac_ct_AR"; then
3088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_AR="ar"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
3107 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3108 if test -n "$ac_ct_AR"; then
3109 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3110 echo "${ECHO_T}$ac_ct_AR" >&6
3112 echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3129 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3130 # On Suns, sometimes $CPP names a directory.
3131 if test -n "$CPP" && test -d "$CPP"; then
3134 if test -z "$CPP"; then
3135 if test "${ac_cv_prog_CPP+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 # Double quotes because CPP needs to be expanded
3139 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3142 for ac_c_preproc_warn_flag in '' yes
3144 # Use a header file that comes with gcc, so configuring glibc
3145 # with a fresh cross-compiler works.
3146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3147 # <limits.h> exists even on freestanding compilers.
3148 # On the NeXT, cc -E runs the code through the compiler's parser,
3149 # not just through cpp. "Syntax error" is here to catch this case.
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3157 # include <limits.h>
3159 # include <assert.h>
3163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } >/dev/null; then
3171 if test -s conftest.err; then
3172 ac_cpp_err=$ac_c_preproc_warn_flag
3173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3180 if test -z "$ac_cpp_err"; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 # Broken: fails on valid input.
3189 rm -f conftest.err conftest.$ac_ext
3191 # OK, works on sane cases. Now check whether non-existent headers
3192 # can be detected and how.
3193 cat >conftest.$ac_ext <<_ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 #include <ac_nonexistent.h>
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null; then
3209 if test -s conftest.err; then
3210 ac_cpp_err=$ac_c_preproc_warn_flag
3211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3218 if test -z "$ac_cpp_err"; then
3219 # Broken: success on invalid input.
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 # Passes both tests.
3229 rm -f conftest.err conftest.$ac_ext
3232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3233 rm -f conftest.err conftest.$ac_ext
3234 if $ac_preproc_ok; then
3246 echo "$as_me:$LINENO: result: $CPP" >&5
3247 echo "${ECHO_T}$CPP" >&6
3249 for ac_c_preproc_warn_flag in '' yes
3251 # Use a header file that comes with gcc, so configuring glibc
3252 # with a fresh cross-compiler works.
3253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254 # <limits.h> exists even on freestanding compilers.
3255 # On the NeXT, cc -E runs the code through the compiler's parser,
3256 # not just through cpp. "Syntax error" is here to catch this case.
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3264 # include <limits.h>
3266 # include <assert.h>
3270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3273 grep -v '^ *+' conftest.er1 >conftest.err
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } >/dev/null; then
3278 if test -s conftest.err; then
3279 ac_cpp_err=$ac_c_preproc_warn_flag
3280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287 if test -z "$ac_cpp_err"; then
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 # Broken: fails on valid input.
3296 rm -f conftest.err conftest.$ac_ext
3298 # OK, works on sane cases. Now check whether non-existent headers
3299 # can be detected and how.
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <ac_nonexistent.h>
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1 >conftest.err
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 if test -z "$ac_cpp_err"; then
3326 # Broken: success on invalid input.
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 # Passes both tests.
3336 rm -f conftest.err conftest.$ac_ext
3339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340 rm -f conftest.err conftest.$ac_ext
3341 if $ac_preproc_ok; then
3344 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3347 See \`config.log' for more details." >&2;}
3348 { (exit 1); exit 1; }; }
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 echo "$as_me:$LINENO: checking for egrep" >&5
3359 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3360 if test "${ac_cv_prog_egrep+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3364 then ac_cv_prog_egrep='grep -E'
3365 else ac_cv_prog_egrep='egrep'
3368 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3369 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3370 EGREP=$ac_cv_prog_egrep
3373 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3374 # for constant arguments. Useless!
3375 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3376 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3377 if test "${ac_cv_working_alloca_h+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3390 char *p = (char *) alloca (2 * sizeof (int));
3395 rm -f conftest.$ac_objext conftest$ac_exeext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3397 (eval $ac_link) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest$ac_exeext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_cv_working_alloca_h=yes
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 ac_cv_working_alloca_h=no
3424 rm -f conftest.err conftest.$ac_objext \
3425 conftest$ac_exeext conftest.$ac_ext
3427 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3428 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3429 if test $ac_cv_working_alloca_h = yes; then
3431 cat >>confdefs.h <<\_ACEOF
3432 #define HAVE_ALLOCA_H 1
3437 echo "$as_me:$LINENO: checking for alloca" >&5
3438 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3439 if test "${ac_cv_func_alloca_works+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3449 # define alloca __builtin_alloca
3452 # include <malloc.h>
3453 # define alloca _alloca
3456 # include <alloca.h>
3461 # ifndef alloca /* predefined by HP cc +Olibcalls */
3472 char *p = (char *) alloca (1);
3477 rm -f conftest.$ac_objext conftest$ac_exeext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3479 (eval $ac_link) 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
3486 { ac_try='test -z "$ac_c_werror_flag"
3487 || test ! -s conftest.err'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; } &&
3493 { ac_try='test -s conftest$ac_exeext'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3499 ac_cv_func_alloca_works=yes
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 ac_cv_func_alloca_works=no
3506 rm -f conftest.err conftest.$ac_objext \
3507 conftest$ac_exeext conftest.$ac_ext
3509 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3510 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3512 if test $ac_cv_func_alloca_works = yes; then
3514 cat >>confdefs.h <<\_ACEOF
3515 #define HAVE_ALLOCA 1
3519 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3520 # that cause trouble. Some versions do not even contain alloca or
3521 # contain a buggy version. If you still want to use their alloca,
3522 # use ar to extract alloca.o from them instead of compiling alloca.c.
3524 ALLOCA=alloca.$ac_objext
3526 cat >>confdefs.h <<\_ACEOF
3531 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3532 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3533 if test "${ac_cv_os_cray+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 #if defined(CRAY) && ! defined(CRAY2)
3549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3550 $EGREP "webecray" >/dev/null 2>&1; then
3558 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3559 echo "${ECHO_T}$ac_cv_os_cray" >&6
3560 if test $ac_cv_os_cray = yes; then
3561 for ac_func in _getb67 GETB67 getb67; do
3562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3563 echo "$as_me:$LINENO: checking for $ac_func" >&5
3564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3565 if eval "test \"\${$as_ac_var+set}\" = set"; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 cat >conftest.$ac_ext <<_ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3576 #define $ac_func innocuous_$ac_func
3578 /* System header to define __stub macros and hopefully few prototypes,
3579 which can conflict with char $ac_func (); below.
3580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3581 <limits.h> exists even on freestanding compilers. */
3584 # include <limits.h>
3586 # include <assert.h>
3591 /* Override any gcc2 internal prototype to avoid an error. */
3596 /* We use char because int might match the return type of a gcc2
3597 builtin and then its argument prototype would still apply. */
3599 /* The GNU C library defines this for functions which it implements
3600 to always fail with ENOSYS. Some functions are actually named
3601 something starting with __ and the normal name is an alias. */
3602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3605 char (*f) () = $ac_func;
3614 return f != $ac_func;
3619 rm -f conftest.$ac_objext conftest$ac_exeext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3621 (eval $ac_link) 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -z "$ac_c_werror_flag"
3629 || test ! -s conftest.err'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try='test -s conftest$ac_exeext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 eval "$as_ac_var=yes"
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 eval "$as_ac_var=no"
3648 rm -f conftest.err conftest.$ac_objext \
3649 conftest$ac_exeext conftest.$ac_ext
3651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3653 if test `eval echo '${'$as_ac_var'}'` = yes; then
3655 cat >>confdefs.h <<_ACEOF
3656 #define CRAY_STACKSEG_END $ac_func
3665 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3666 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3667 if test "${ac_cv_c_stack_direction+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test "$cross_compiling" = yes; then
3671 ac_cv_c_stack_direction=0
3673 cat >conftest.$ac_ext <<_ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3680 find_stack_direction ()
3682 static char *addr = 0;
3687 return find_stack_direction ();
3690 return (&dummy > addr) ? 1 : -1;
3696 exit (find_stack_direction () < 0);
3699 rm -f conftest$ac_exeext
3700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3701 (eval $ac_link) 2>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_c_stack_direction=1
3712 echo "$as_me: program exited with status $ac_status" >&5
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3717 ac_cv_c_stack_direction=-1
3719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3722 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3723 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3725 cat >>confdefs.h <<_ACEOF
3726 #define STACK_DIRECTION $ac_cv_c_stack_direction
3732 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3733 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3734 if test "${ac_cv_header_stdc+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3756 rm -f conftest.$ac_objext
3757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758 (eval $ac_compile) 2>conftest.er1
3760 grep -v '^ *+' conftest.er1 >conftest.err
3762 cat conftest.err >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try='test -z "$ac_c_werror_flag"
3766 || test ! -s conftest.err'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; } &&
3772 { ac_try='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3778 ac_cv_header_stdc=yes
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 ac_cv_header_stdc=no
3785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3787 if test $ac_cv_header_stdc = yes; then
3788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 $EGREP "memchr" >/dev/null 2>&1; then
3802 ac_cv_header_stdc=no
3808 if test $ac_cv_header_stdc = yes; then
3809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3820 $EGREP "free" >/dev/null 2>&1; then
3823 ac_cv_header_stdc=no
3829 if test $ac_cv_header_stdc = yes; then
3830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3831 if test "$cross_compiling" = yes; then
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3841 #if ((' ' & 0x0FF) == 0x020)
3842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3845 # define ISLOWER(c) \
3846 (('a' <= (c) && (c) <= 'i') \
3847 || ('j' <= (c) && (c) <= 'r') \
3848 || ('s' <= (c) && (c) <= 'z'))
3849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3857 for (i = 0; i < 256; i++)
3858 if (XOR (islower (i), ISLOWER (i))
3859 || toupper (i) != TOUPPER (i))
3864 rm -f conftest$ac_exeext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3866 (eval $ac_link) 2>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3877 echo "$as_me: program exited with status $ac_status" >&5
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_cv_header_stdc=no
3884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3888 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3889 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3890 if test $ac_cv_header_stdc = yes; then
3892 cat >>confdefs.h <<\_ACEOF
3893 #define STDC_HEADERS 1
3898 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3908 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3909 inttypes.h stdint.h unistd.h
3911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3912 echo "$as_me:$LINENO: checking for $ac_header" >&5
3913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923 $ac_includes_default
3925 #include <$ac_header>
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -z "$ac_c_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try='test -s conftest.$ac_objext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 eval "$as_ac_Header=yes"
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 eval "$as_ac_Header=no"
3956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3961 cat >>confdefs.h <<_ACEOF
3962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979 for ac_header in stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h
3981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3983 echo "$as_me:$LINENO: checking for $ac_header" >&5
3984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3991 # Is the header compilable?
3992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3994 cat >conftest.$ac_ext <<_ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4000 $ac_includes_default
4001 #include <$ac_header>
4003 rm -f conftest.$ac_objext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4007 grep -v '^ *+' conftest.er1 >conftest.err
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_header_compiler=yes
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 ac_header_compiler=no
4032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4034 echo "${ECHO_T}$ac_header_compiler" >&6
4036 # Is the header present?
4037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 #include <$ac_header>
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050 grep -v '^ *+' conftest.er1 >conftest.err
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } >/dev/null; then
4055 if test -s conftest.err; then
4056 ac_cpp_err=$ac_c_preproc_warn_flag
4057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4064 if test -z "$ac_cpp_err"; then
4065 ac_header_preproc=yes
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 ac_header_preproc=no
4072 rm -f conftest.err conftest.$ac_ext
4073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4074 echo "${ECHO_T}$ac_header_preproc" >&6
4076 # So? What about this header?
4077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4083 ac_header_preproc=yes
4086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4100 ## ------------------------------------------ ##
4101 ## Report this to the AC_PACKAGE_NAME lists. ##
4102 ## ------------------------------------------ ##
4105 sed "s/^/$as_me: WARNING: /" >&2
4108 echo "$as_me:$LINENO: checking for $ac_header" >&5
4109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 eval "$as_ac_Header=\$ac_header_preproc"
4115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4129 for ac_func in raise
4131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4132 echo "$as_me:$LINENO: checking for $ac_func" >&5
4133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4134 if eval "test \"\${$as_ac_var+set}\" = set"; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4145 #define $ac_func innocuous_$ac_func
4147 /* System header to define __stub macros and hopefully few prototypes,
4148 which can conflict with char $ac_func (); below.
4149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150 <limits.h> exists even on freestanding compilers. */
4153 # include <limits.h>
4155 # include <assert.h>
4160 /* Override any gcc2 internal prototype to avoid an error. */
4165 /* We use char because int might match the return type of a gcc2
4166 builtin and then its argument prototype would still apply. */
4168 /* The GNU C library defines this for functions which it implements
4169 to always fail with ENOSYS. Some functions are actually named
4170 something starting with __ and the normal name is an alias. */
4171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4174 char (*f) () = $ac_func;
4183 return f != $ac_func;
4188 rm -f conftest.$ac_objext conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest$ac_exeext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 eval "$as_ac_var=yes"
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 eval "$as_ac_var=no"
4217 rm -f conftest.err conftest.$ac_objext \
4218 conftest$ac_exeext conftest.$ac_ext
4220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4222 if test `eval echo '${'$as_ac_var'}'` = yes; then
4223 cat >>confdefs.h <<_ACEOF
4224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4231 # Check whether --enable-ide or --disable-ide was given.
4232 if test "${enable_ide+set}" = set; then
4233 enableval="$enable_ide"
4234 case "${enableval}" in
4237 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for enable-ide option" >&5
4238 echo "$as_me: error: bad value ${enableval} for enable-ide option" >&2;}
4239 { (exit 1); exit 1; }; } ;;
4246 if test x$ide = xyes; then
4248 IDE_ENABLED_FALSE='#'
4250 IDE_ENABLED_TRUE='#'
4254 if test x$ide = xyes; then
4255 cat >>confdefs.h <<\_ACEOF
4256 #define IDE_ENABLED 1
4261 # If we have random, assume we have srandom. If we have drand48,
4262 # assume we have srand48. If we have rand, assume we have srand.
4266 for ac_func in random drand48 rand
4268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4269 echo "$as_me:$LINENO: checking for $ac_func" >&5
4270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4271 if eval "test \"\${$as_ac_var+set}\" = set"; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4282 #define $ac_func innocuous_$ac_func
4284 /* System header to define __stub macros and hopefully few prototypes,
4285 which can conflict with char $ac_func (); below.
4286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287 <limits.h> exists even on freestanding compilers. */
4290 # include <limits.h>
4292 # include <assert.h>
4297 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4305 /* The GNU C library defines this for functions which it implements
4306 to always fail with ENOSYS. Some functions are actually named
4307 something starting with __ and the normal name is an alias. */
4308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4311 char (*f) () = $ac_func;
4320 return f != $ac_func;
4325 rm -f conftest.$ac_objext conftest$ac_exeext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327 (eval $ac_link) 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 eval "$as_ac_var=yes"
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 eval "$as_ac_var=no"
4354 rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4359 if test `eval echo '${'$as_ac_var'}'` = yes; then
4360 cat >>confdefs.h <<_ACEOF
4361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 $EGREP "strncasecmp" >/dev/null 2>&1; then
4378 cat >>confdefs.h <<\_ACEOF
4379 #define HAVE_STRNCASECMP_DECL 1
4387 echo "$as_me:$LINENO: checking for cygwin32" >&5
4388 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
4389 if test "${ide_cv_os_cygwin32+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404 $EGREP "lose" >/dev/null 2>&1; then
4405 ide_cv_os_cygwin32=yes
4407 ide_cv_os_cygwin32=no
4412 echo "$as_me:$LINENO: result: $ide_cv_os_cygwin32" >&5
4413 echo "${ECHO_T}$ide_cv_os_cygwin32" >&6
4415 if test x$ide_cv_os_cygwin32 = xyes; then
4422 if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
4423 case "$LIBGUI_CFLAGS" in
4425 *) LIBGUI_CFLAGS="-mwin32 $LIBGUI_CFLAGS" ;;
4433 LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS" ;;
4437 tmp="`cd $srcdir/library; pwd`"
4438 if test x"$ac_cv_prog_CC" = xcl ; then
4439 tmp2="`cygpath --windows $tmp`"
4440 LIBGUI_LIBRARY_DIR="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
4442 LIBGUI_LIBRARY_DIR=$tmp
4446 # Check for Tcl and Tk.
4449 # Ok, lets find the tcl configuration
4450 # First, look for one uninstalled.
4451 # the alternative search directory is invoked by --with-tcl
4454 if test x"${no_tcl}" = x ; then
4455 # we reset no_tcl in case something fails here
4458 # Check whether --with-tcl or --without-tcl was given.
4459 if test "${with_tcl+set}" = set; then
4461 with_tclconfig=${withval}
4463 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
4464 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
4465 if test "${ac_cv_c_tclconfig+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 # First check to see if --with-tcl was specified.
4472 *-*-cygwin*) platDir="win" ;;
4473 *) platDir="unix" ;;
4475 if test x"${with_tclconfig}" != x ; then
4476 if test -f "${with_tclconfig}/tclConfig.sh" ; then
4477 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
4479 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
4480 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
4481 { (exit 1); exit 1; }; }
4485 # then check for a private Tcl installation
4486 if test x"${ac_cv_c_tclconfig}" = x ; then
4489 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4490 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
4491 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
4493 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4494 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
4495 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
4497 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4498 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
4499 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
4500 if test -f "$i/$platDir/tclConfig.sh" ; then
4501 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
4507 # on Darwin, check in Framework installation locations
4508 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
4509 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4510 `ls -d /Library/Frameworks 2>/dev/null` \
4511 `ls -d /Network/Library/Frameworks 2>/dev/null` \
4512 `ls -d /System/Library/Frameworks 2>/dev/null` \
4514 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
4515 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
4521 # check in a few common install locations
4522 if test x"${ac_cv_c_tclconfig}" = x ; then
4523 for i in `ls -d ${libdir} 2>/dev/null` \
4524 `ls -d ${exec_prefix}/lib 2>/dev/null` \
4525 `ls -d ${prefix}/lib 2>/dev/null` \
4526 `ls -d /usr/local/lib 2>/dev/null` \
4527 `ls -d /usr/contrib/lib 2>/dev/null` \
4528 `ls -d /usr/lib 2>/dev/null` \
4530 if test -f "$i/tclConfig.sh" ; then
4531 ac_cv_c_tclconfig=`(cd $i; pwd)`
4537 # check in a few other private locations
4538 if test x"${ac_cv_c_tclconfig}" = x ; then
4541 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4542 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
4543 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
4544 if test -f "$i/$platDir/tclConfig.sh" ; then
4545 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
4554 if test x"${ac_cv_c_tclconfig}" = x ; then
4555 TCL_BIN_DIR="# no Tcl configs found"
4556 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
4557 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
4561 TCL_BIN_DIR=${ac_cv_c_tclconfig}
4562 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
4563 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
4568 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
4569 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
4571 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
4572 echo "$as_me:$LINENO: result: loading" >&5
4573 echo "${ECHO_T}loading" >&6
4574 . ${TCL_BIN_DIR}/tclConfig.sh
4576 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
4577 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
4580 # eval is required to do the TCL_DBGX substitution
4581 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
4582 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
4584 # If the TCL_BIN_DIR is the build directory (not the install directory),
4585 # then set the common variable name to the value of the build variables.
4586 # For example, the variable TCL_LIB_SPEC will be set to the value
4587 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
4588 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
4589 # installed and uninstalled version of Tcl.
4590 if test -f ${TCL_BIN_DIR}/Makefile ; then
4591 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
4592 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
4593 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
4594 elif test "`uname -s`" = "Darwin"; then
4595 # If Tcl was built as a framework, attempt to use the libraries
4596 # from the framework at the given location so that linking works
4597 # against Tcl.framework installed in an arbitary location.
4600 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
4601 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
4602 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
4603 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
4604 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
4609 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
4610 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
4611 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
4617 # eval is required to do the TCL_DBGX substitution
4618 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
4619 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
4620 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
4621 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
4638 # Ok, lets find the tk configuration
4639 # First, look for one uninstalled.
4640 # the alternative search directory is invoked by --with-tk
4643 if test x"${no_tk}" = x ; then
4644 # we reset no_tk in case something fails here
4647 # Check whether --with-tk or --without-tk was given.
4648 if test "${with_tk+set}" = set; then
4650 with_tkconfig=${withval}
4652 echo "$as_me:$LINENO: checking for Tk configuration" >&5
4653 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
4654 if test "${ac_cv_c_tkconfig+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 # First check to see if --with-tkconfig was specified.
4660 if test x"${with_tkconfig}" != x ; then
4661 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4662 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
4664 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
4665 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
4666 { (exit 1); exit 1; }; }
4670 # then check for a private Tk library
4672 *-*-cygwin*) platDir="win" ;;
4673 *) platDir="unix" ;;
4675 if test x"${ac_cv_c_tkconfig}" = x ; then
4678 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4679 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
4680 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
4682 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4683 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
4684 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
4686 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4687 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
4688 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
4689 if test -f "$i/$platDir/tkConfig.sh" ; then
4690 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
4696 # on Darwin, check in Framework installation locations
4697 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
4698 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4699 `ls -d /Library/Frameworks 2>/dev/null` \
4700 `ls -d /Network/Library/Frameworks 2>/dev/null` \
4701 `ls -d /System/Library/Frameworks 2>/dev/null` \
4703 if test -f "$i/Tk.framework/tkConfig.sh" ; then
4704 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
4710 # check in a few common install locations
4711 if test x"${ac_cv_c_tkconfig}" = x ; then
4712 for i in `ls -d ${libdir} 2>/dev/null` \
4713 `ls -d ${exec_prefix}/lib 2>/dev/null` \
4714 `ls -d ${prefix}/lib 2>/dev/null` \
4715 `ls -d /usr/local/lib 2>/dev/null` \
4716 `ls -d /usr/contrib/lib 2>/dev/null` \
4717 `ls -d /usr/lib 2>/dev/null` \
4719 if test -f "$i/tkConfig.sh" ; then
4720 ac_cv_c_tkconfig=`(cd $i; pwd)`
4725 # check in a few other private locations
4726 if test x"${ac_cv_c_tkconfig}" = x ; then
4729 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4730 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
4731 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
4732 if test -f "$i/$platDir/tkConfig.sh" ; then
4733 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
4742 if test x"${ac_cv_c_tkconfig}" = x ; then
4743 TK_BIN_DIR="# no Tk configs found"
4744 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
4745 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
4749 TK_BIN_DIR=${ac_cv_c_tkconfig}
4750 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
4751 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
4756 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
4757 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
4759 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
4760 echo "$as_me:$LINENO: result: loading" >&5
4761 echo "${ECHO_T}loading" >&6
4762 . ${TK_BIN_DIR}/tkConfig.sh
4764 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
4765 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
4768 # eval is required to do the TK_DBGX substitution
4769 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
4770 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
4772 # If the TK_BIN_DIR is the build directory (not the install directory),
4773 # then set the common variable name to the value of the build variables.
4774 # For example, the variable TK_LIB_SPEC will be set to the value
4775 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
4776 # instead of TK_BUILD_LIB_SPEC since it will work with both an
4777 # installed and uninstalled version of Tcl.
4778 if test -f ${TK_BIN_DIR}/Makefile ; then
4779 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
4780 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
4781 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
4782 elif test "`uname -s`" = "Darwin"; then
4783 # If Tk was built as a framework, attempt to use the libraries
4784 # from the framework at the given location so that linking works
4785 # against Tk.framework installed in an arbitary location.
4788 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
4789 for i in "`cd ${TK_BIN_DIR}; pwd`" \
4790 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
4791 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
4792 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
4797 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
4798 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
4799 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
4805 # eval is required to do the TK_DBGX substitution
4806 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
4807 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
4808 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
4809 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
4829 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
4830 # Using in-tree Tcl/Tk
4832 *-*-cygwin*) platDir="win" ;;
4833 *) platDir="unix" ;;
4836 TCL_INCLUDES="-I${TCL_SRC_DIR}/generic -I${TCL_SRC_DIR}/${platDir}"
4837 TCL_LIBRARY=${TCL_BUILD_LIB_SPEC}
4838 TK_INCLUDES="-I${TK_SRC_DIR}/generic -I${TK_SRC_DIR}/${platDir}"
4839 TK_LIBRARY=${TK_BUILD_LIB_SPEC}
4841 # Using installed Tcl/Tk
4843 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
4844 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
4846 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
4847 if test -f ${dir}/tclInt.h ; then
4851 if test x"${private_dir}" = x; then
4852 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
4853 echo "$as_me: error: could not find private Tcl headers" >&2;}
4854 { (exit 1); exit 1; }; }
4856 TCL_PRIVATE_INCLUDE="-I${private_dir}"
4857 echo "$as_me:$LINENO: result: ${private_dir}" >&5
4858 echo "${ECHO_T}${private_dir}" >&6
4862 echo "$as_me:$LINENO: checking for Tk private headers" >&5
4863 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
4865 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
4866 if test -f ${dir}/tkInt.h; then
4870 if test x"${private_dir}" = x; then
4871 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
4872 echo "$as_me: error: could not find Tk private headers" >&2;}
4873 { (exit 1); exit 1; }; }
4875 TK_PRIVATE_INCLUDE="-I${private_dir}"
4876 echo "$as_me:$LINENO: result: ${private_dir}" >&5
4877 echo "${ECHO_T}${private_dir}" >&6
4880 TCL_INCLUDES="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
4881 TCL_LIBRARY=${TCL_LIB_SPEC}
4882 TK_INCLUDES="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
4883 TK_LIBRARY=${TK_LIB_SPEC}
4898 if test x$TCL_SHARED_BUILD = x1; then
4900 TCL_SHARED_FALSE='#'
4909 ac_config_files="$ac_config_files Makefile library/Makefile src/Makefile"
4910 cat >confcache <<\_ACEOF
4911 # This file is a shell script that caches the results of configure
4912 # tests run on this system so they can be shared between configure
4913 # scripts and configure runs, see configure's option --config-cache.
4914 # It is not useful on other systems. If it contains results you don't
4915 # want to keep, you may remove or edit it.
4917 # config.status only pays attention to the cache file if you give it
4918 # the --recheck option to rerun configure.
4920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4926 # The following way of writing the cache mishandles newlines in values,
4927 # but we know of no workaround that is simple, portable, and efficient.
4928 # So, don't put newlines in cache variables' values.
4929 # Ultrix sh set writes to stderr and can't be redirected directly,
4930 # and sets the high bit in the cache file unless we assign to the vars.
4933 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4935 # `set' does not quote correctly, so add quotes (double-quote
4936 # substitution turns \\\\ into \\, and sed turns \\ into \).
4939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4942 # `set' quotes correctly as required by POSIX, so do not add quotes.
4944 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4953 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4955 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4956 if test -w $cache_file; then
4957 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4958 cat confcache >$cache_file
4960 echo "not updating unwritable cache $cache_file"
4965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4966 # Let make expand exec_prefix.
4967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4971 # trailing colons and then remove the whole line if VPATH becomes empty
4972 # (actually we leave an empty line to preserve line numbers).
4973 if test "x$srcdir" = x.; then
4974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4975 s/:*\$(srcdir):*/:/;
4976 s/:*\${srcdir}:*/:/;
4978 s/^\([^=]*=[ ]*\):*/\1/;
4984 DEFS=-DHAVE_CONFIG_H
4988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4989 # 1. Remove the extension, and $U if already installed.
4990 ac_i=`echo "$ac_i" |
4991 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4993 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4994 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4998 LTLIBOBJS=$ac_ltlibobjs
5001 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5002 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5003 Usually this means the macro was only invoked conditionally." >&5
5004 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5005 Usually this means the macro was only invoked conditionally." >&2;}
5006 { (exit 1); exit 1; }; }
5008 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5009 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5010 Usually this means the macro was only invoked conditionally." >&5
5011 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5012 Usually this means the macro was only invoked conditionally." >&2;}
5013 { (exit 1); exit 1; }; }
5015 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5016 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5017 Usually this means the macro was only invoked conditionally." >&5
5018 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5019 Usually this means the macro was only invoked conditionally." >&2;}
5020 { (exit 1); exit 1; }; }
5022 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
5023 { { echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined.
5024 Usually this means the macro was only invoked conditionally." >&5
5025 echo "$as_me: error: conditional \"CROSS_COMPILING\" was never defined.
5026 Usually this means the macro was only invoked conditionally." >&2;}
5027 { (exit 1); exit 1; }; }
5029 if test -z "${INSTALL_LIBGUI_TRUE}" && test -z "${INSTALL_LIBGUI_FALSE}"; then
5030 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBGUI\" was never defined.
5031 Usually this means the macro was only invoked conditionally." >&5
5032 echo "$as_me: error: conditional \"INSTALL_LIBGUI\" was never defined.
5033 Usually this means the macro was only invoked conditionally." >&2;}
5034 { (exit 1); exit 1; }; }
5036 if test -z "${IDE_ENABLED_TRUE}" && test -z "${IDE_ENABLED_FALSE}"; then
5037 { { echo "$as_me:$LINENO: error: conditional \"IDE_ENABLED\" was never defined.
5038 Usually this means the macro was only invoked conditionally." >&5
5039 echo "$as_me: error: conditional \"IDE_ENABLED\" was never defined.
5040 Usually this means the macro was only invoked conditionally." >&2;}
5041 { (exit 1); exit 1; }; }
5043 if test -z "${TCL_SHARED_TRUE}" && test -z "${TCL_SHARED_FALSE}"; then
5044 { { echo "$as_me:$LINENO: error: conditional \"TCL_SHARED\" was never defined.
5045 Usually this means the macro was only invoked conditionally." >&5
5046 echo "$as_me: error: conditional \"TCL_SHARED\" was never defined.
5047 Usually this means the macro was only invoked conditionally." >&2;}
5048 { (exit 1); exit 1; }; }
5051 : ${CONFIG_STATUS=./config.status}
5052 ac_clean_files_save=$ac_clean_files
5053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5054 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5055 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5056 cat >$CONFIG_STATUS <<_ACEOF
5058 # Generated by $as_me.
5059 # Run this file to recreate the current configuration.
5060 # Compiler output produced by configure, useful for debugging
5061 # configure, is in config.log if it exists.
5066 SHELL=\${CONFIG_SHELL-$SHELL}
5069 cat >>$CONFIG_STATUS <<\_ACEOF
5070 ## --------------------- ##
5071 ## M4sh Initialization. ##
5072 ## --------------------- ##
5074 # Be Bourne compatible
5075 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5078 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5079 # is contrary to our usage. Disable this feature.
5080 alias -g '${1+"$@"}'='"$@"'
5081 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5084 DUALCASE=1; export DUALCASE # for MKS sh
5086 # Support unset when possible.
5087 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5094 # Work around bugs in pre-3.0 UWIN ksh.
5095 $as_unset ENV MAIL MAILPATH
5102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5104 LC_TELEPHONE LC_TIME
5106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5107 eval $as_var=C; export $as_var
5113 # Required to use basename.
5114 if expr a : '\(a\)' >/dev/null 2>&1; then
5120 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5121 as_basename=basename
5127 # Name of the executable.
5128 as_me=`$as_basename "$0" ||
5129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5130 X"$0" : 'X\(//\)$' \| \
5131 X"$0" : 'X\(/\)$' \| \
5132 . : '\(.\)' 2>/dev/null ||
5134 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5135 /^X\/\(\/\/\)$/{ s//\1/; q; }
5136 /^X\/\(\/\).*/{ s//\1/; q; }
5140 # PATH needs CR, and LINENO needs CR and PATH.
5141 # Avoid depending upon Character Ranges.
5142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5145 as_cr_digits='0123456789'
5146 as_cr_alnum=$as_cr_Letters$as_cr_digits
5148 # The user is always right.
5149 if test "${PATH_SEPARATOR+set}" != set; then
5150 echo "#! /bin/sh" >conf$$.sh
5151 echo "exit 0" >>conf$$.sh
5153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5164 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5165 test "x$as_lineno_1" != "x$as_lineno_2" &&
5166 test "x$as_lineno_3" = "x$as_lineno_2" || {
5167 # Find who we are. Look in the path if we contain no path at all
5170 *[\\/]* ) as_myself=$0 ;;
5171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir=.
5176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5181 # We did not find ourselves, most probably we were run as `sh COMMAND'
5182 # in which case we are not to be found in the path.
5183 if test "x$as_myself" = x; then
5186 if test ! -f "$as_myself"; then
5187 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5188 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5189 { (exit 1); exit 1; }; }
5191 case $CONFIG_SHELL in
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5197 test -z "$as_dir" && as_dir=.
5198 for as_base in sh bash ksh sh5; do
5201 if ("$as_dir/$as_base" -c '
5204 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5205 test "x$as_lineno_1" != "x$as_lineno_2" &&
5206 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5207 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5208 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5209 CONFIG_SHELL=$as_dir/$as_base
5211 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5219 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5220 # uniformly replaced by the line number. The first 'sed' inserts a
5221 # line-number line before each line; the second 'sed' does the real
5222 # work. The second script uses 'N' to pair each line-number line
5223 # with the numbered line, and appends trailing '-' during
5224 # substitution so that $LINENO is not a special case at line end.
5225 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5226 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5227 sed '=' <$as_myself |
5232 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5235 s,^['$as_cr_digits']*\n,,
5237 chmod +x $as_me.lineno ||
5238 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5239 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5240 { (exit 1); exit 1; }; }
5242 # Don't try to exec as it changes $[0], causing all sort of problems
5243 # (the dirname of $[0] is not the place where we might find the
5244 # original and so on. Autoconf is especially sensible to this).
5246 # Exit status is that of the last command.
5251 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5252 *c*,-n*) ECHO_N= ECHO_C='
5254 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5255 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5258 if expr a : '\(a\)' >/dev/null 2>&1; then
5264 rm -f conf$$ conf$$.exe conf$$.file
5266 if ln -s conf$$.file conf$$ 2>/dev/null; then
5267 # We could just check for DJGPP; but this test a) works b) is more generic
5268 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5269 if test -f conf$$.exe; then
5270 # Don't use ln at all; we don't have any links
5275 elif ln conf$$.file conf$$ 2>/dev/null; then
5280 rm -f conf$$ conf$$.exe conf$$.file
5282 if mkdir -p . 2>/dev/null; then
5285 test -d ./-p && rmdir ./-p
5289 as_executable_p="test -f"
5291 # Sed expression to map a string onto a valid CPP name.
5292 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5294 # Sed expression to map a string onto a valid variable name.
5295 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5299 # We need space, tab and new line, in precisely that order.
5309 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5310 # report actual input values of CONFIG_FILES etc. instead of their
5311 # values after options handling. Logging --version etc. is OK.
5315 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5316 ## Running $as_me. ##
5321 This file was extended by $as_me, which was
5322 generated by GNU Autoconf 2.59. Invocation command line was
5324 CONFIG_FILES = $CONFIG_FILES
5325 CONFIG_HEADERS = $CONFIG_HEADERS
5326 CONFIG_LINKS = $CONFIG_LINKS
5327 CONFIG_COMMANDS = $CONFIG_COMMANDS
5331 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5335 # Files that config.status was made for.
5336 if test -n "$ac_config_files"; then
5337 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5340 if test -n "$ac_config_headers"; then
5341 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5344 if test -n "$ac_config_links"; then
5345 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5348 if test -n "$ac_config_commands"; then
5349 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5352 cat >>$CONFIG_STATUS <<\_ACEOF
5355 \`$as_me' instantiates files from templates according to the
5356 current configuration.
5358 Usage: $0 [OPTIONS] [FILE]...
5360 -h, --help print this help, then exit
5361 -V, --version print version number, then exit
5362 -q, --quiet do not print progress messages
5363 -d, --debug don't remove temporary files
5364 --recheck update $as_me by reconfiguring in the same conditions
5365 --file=FILE[:TEMPLATE]
5366 instantiate the configuration file FILE
5367 --header=FILE[:TEMPLATE]
5368 instantiate the configuration header FILE
5370 Configuration files:
5373 Configuration headers:
5376 Configuration commands:
5379 Report bugs to <bug-autoconf@gnu.org>."
5382 cat >>$CONFIG_STATUS <<_ACEOF
5385 configured by $0, generated by GNU Autoconf 2.59,
5386 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5388 Copyright (C) 2003 Free Software Foundation, Inc.
5389 This config.status script is free software; the Free Software Foundation
5390 gives unlimited permission to copy, distribute and modify it."
5395 cat >>$CONFIG_STATUS <<\_ACEOF
5396 # If no file are specified by the user, then we need to provide default
5397 # value. By we need to know if files were specified by the user.
5403 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5404 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5412 *) # This is not an option, so the user has probably given explicit
5415 ac_need_defaults=false;;
5419 # Handling of the options.
5421 cat >>$CONFIG_STATUS <<\_ACEOF
5422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5424 --version | --vers* | -V )
5425 echo "$ac_cs_version"; exit 0 ;;
5427 # Conflict between --help and --header
5428 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5429 Try \`$0 --help' for more information." >&5
5430 echo "$as_me: error: ambiguous option: $1
5431 Try \`$0 --help' for more information." >&2;}
5432 { (exit 1); exit 1; }; };;
5433 --help | --hel | -h )
5434 echo "$ac_cs_usage"; exit 0 ;;
5435 --debug | --d* | -d )
5437 --file | --fil | --fi | --f )
5439 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5440 ac_need_defaults=false;;
5441 --header | --heade | --head | --hea )
5443 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5444 ac_need_defaults=false;;
5445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5446 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5450 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5451 Try \`$0 --help' for more information." >&5
5452 echo "$as_me: error: unrecognized option: $1
5453 Try \`$0 --help' for more information." >&2;}
5454 { (exit 1); exit 1; }; } ;;
5456 *) ac_config_targets="$ac_config_targets $1" ;;
5462 ac_configure_extra_args=
5464 if $ac_cs_silent; then
5466 ac_configure_extra_args="$ac_configure_extra_args --silent"
5470 cat >>$CONFIG_STATUS <<_ACEOF
5471 if \$ac_cs_recheck; then
5472 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5473 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5478 cat >>$CONFIG_STATUS <<_ACEOF
5480 # INIT-COMMANDS section.
5483 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5489 cat >>$CONFIG_STATUS <<\_ACEOF
5490 for ac_config_target in $ac_config_targets
5492 case "$ac_config_target" in
5493 # Handling of arguments.
5494 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5495 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
5496 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5497 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5498 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5501 { (exit 1); exit 1; }; };;
5505 # If the user did not use the arguments to specify the items to instantiate,
5506 # then the envvar interface is used. Set only those that are not.
5507 # We use the long form for the default assignment because of an extremely
5508 # bizarre bug on SunOS 4.1.3.
5509 if $ac_need_defaults; then
5510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5515 # Have a temporary directory for convenience. Make it in the build tree
5516 # simply because there is no reason to put it here, and in addition,
5517 # creating and moving files from /tmp can sometimes cause problems.
5518 # Create a temporary directory, and hook for its removal unless debugging.
5521 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5522 trap '{ (exit 1); exit 1; }' 1 2 13 15
5525 # Create a (secure) tmp directory for tmp files.
5528 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5529 test -n "$tmp" && test -d "$tmp"
5532 tmp=./confstat$$-$RANDOM
5533 (umask 077 && mkdir $tmp)
5536 echo "$me: cannot create a temporary directory in ." >&2
5537 { (exit 1); exit 1; }
5542 cat >>$CONFIG_STATUS <<_ACEOF
5545 # CONFIG_FILES section.
5548 # No need to generate the scripts if there are no CONFIG_FILES.
5549 # This happens for instance when ./config.status config.h
5550 if test -n "\$CONFIG_FILES"; then
5551 # Protect against being on the right side of a sed subst in config.status.
5552 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5553 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5554 s,@SHELL@,$SHELL,;t t
5555 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5556 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5557 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5558 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5559 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5560 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5561 s,@exec_prefix@,$exec_prefix,;t t
5562 s,@prefix@,$prefix,;t t
5563 s,@program_transform_name@,$program_transform_name,;t t
5564 s,@bindir@,$bindir,;t t
5565 s,@sbindir@,$sbindir,;t t
5566 s,@libexecdir@,$libexecdir,;t t
5567 s,@datadir@,$datadir,;t t
5568 s,@sysconfdir@,$sysconfdir,;t t
5569 s,@sharedstatedir@,$sharedstatedir,;t t
5570 s,@localstatedir@,$localstatedir,;t t
5571 s,@libdir@,$libdir,;t t
5572 s,@includedir@,$includedir,;t t
5573 s,@oldincludedir@,$oldincludedir,;t t
5574 s,@infodir@,$infodir,;t t
5575 s,@mandir@,$mandir,;t t
5576 s,@build_alias@,$build_alias,;t t
5577 s,@host_alias@,$host_alias,;t t
5578 s,@target_alias@,$target_alias,;t t
5580 s,@ECHO_C@,$ECHO_C,;t t
5581 s,@ECHO_N@,$ECHO_N,;t t
5582 s,@ECHO_T@,$ECHO_T,;t t
5584 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5585 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5586 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5587 s,@CYGPATH_W@,$CYGPATH_W,;t t
5588 s,@PACKAGE@,$PACKAGE,;t t
5589 s,@VERSION@,$VERSION,;t t
5590 s,@ACLOCAL@,$ACLOCAL,;t t
5591 s,@AUTOCONF@,$AUTOCONF,;t t
5592 s,@AUTOMAKE@,$AUTOMAKE,;t t
5593 s,@AUTOHEADER@,$AUTOHEADER,;t t
5594 s,@MAKEINFO@,$MAKEINFO,;t t
5595 s,@install_sh@,$install_sh,;t t
5596 s,@STRIP@,$STRIP,;t t
5597 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5598 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5599 s,@mkdir_p@,$mkdir_p,;t t
5601 s,@SET_MAKE@,$SET_MAKE,;t t
5602 s,@am__leading_dot@,$am__leading_dot,;t t
5603 s,@AMTAR@,$AMTAR,;t t
5604 s,@am__tar@,$am__tar,;t t
5605 s,@am__untar@,$am__untar,;t t
5606 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5607 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5608 s,@MAINT@,$MAINT,;t t
5609 s,@build@,$build,;t t
5610 s,@build_cpu@,$build_cpu,;t t
5611 s,@build_vendor@,$build_vendor,;t t
5612 s,@build_os@,$build_os,;t t
5614 s,@host_cpu@,$host_cpu,;t t
5615 s,@host_vendor@,$host_vendor,;t t
5616 s,@host_os@,$host_os,;t t
5618 s,@CFLAGS@,$CFLAGS,;t t
5619 s,@LDFLAGS@,$LDFLAGS,;t t
5620 s,@CPPFLAGS@,$CPPFLAGS,;t t
5621 s,@ac_ct_CC@,$ac_ct_CC,;t t
5622 s,@EXEEXT@,$EXEEXT,;t t
5623 s,@OBJEXT@,$OBJEXT,;t t
5624 s,@DEPDIR@,$DEPDIR,;t t
5625 s,@am__include@,$am__include,;t t
5626 s,@am__quote@,$am__quote,;t t
5627 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5628 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5629 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5630 s,@CCDEPMODE@,$CCDEPMODE,;t t
5631 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5632 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5633 s,@CROSS_COMPILING_TRUE@,$CROSS_COMPILING_TRUE,;t t
5634 s,@CROSS_COMPILING_FALSE@,$CROSS_COMPILING_FALSE,;t t
5635 s,@INSTALL_LIBGUI_TRUE@,$INSTALL_LIBGUI_TRUE,;t t
5636 s,@INSTALL_LIBGUI_FALSE@,$INSTALL_LIBGUI_FALSE,;t t
5637 s,@RANLIB@,$RANLIB,;t t
5638 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5640 s,@ac_ct_AR@,$ac_ct_AR,;t t
5641 s,@ALLOCA@,$ALLOCA,;t t
5643 s,@EGREP@,$EGREP,;t t
5644 s,@IDE_ENABLED_TRUE@,$IDE_ENABLED_TRUE,;t t
5645 s,@IDE_ENABLED_FALSE@,$IDE_ENABLED_FALSE,;t t
5646 s,@LIBGUI_CFLAGS@,$LIBGUI_CFLAGS,;t t
5647 s,@LIBGUI_LIBRARY_DIR@,$LIBGUI_LIBRARY_DIR,;t t
5648 s,@TCL_VERSION@,$TCL_VERSION,;t t
5649 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
5650 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
5651 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
5652 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
5653 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
5654 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
5655 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
5656 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
5657 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
5658 s,@TK_VERSION@,$TK_VERSION,;t t
5659 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
5660 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
5661 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
5662 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
5663 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
5664 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
5665 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
5666 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
5667 s,@TCL_DEFS@,$TCL_DEFS,;t t
5668 s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
5669 s,@TK_DEFS@,$TK_DEFS,;t t
5670 s,@TK_INCLUDES@,$TK_INCLUDES,;t t
5671 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
5672 s,@TCL_LIBS@,$TCL_LIBS,;t t
5673 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
5674 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
5675 s,@TK_LIBS@,$TK_LIBS,;t t
5676 s,@TCL_SHARED_TRUE@,$TCL_SHARED_TRUE,;t t
5677 s,@TCL_SHARED_FALSE@,$TCL_SHARED_FALSE,;t t
5678 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
5679 s,@LIBOBJS@,$LIBOBJS,;t t
5680 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5685 cat >>$CONFIG_STATUS <<\_ACEOF
5686 # Split the substitutions into bite-sized pieces for seds with
5687 # small command number limits, like on Digital OSF/1 and HP-UX.
5689 ac_sed_frag=1 # Number of current file.
5690 ac_beg=1 # First line for current file.
5691 ac_end=$ac_max_sed_lines # Line after last line for current file.
5694 while $ac_more_lines; do
5695 if test $ac_beg -gt 1; then
5696 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5698 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5700 if test ! -s $tmp/subs.frag; then
5703 # The purpose of the label and of the branching condition is to
5704 # speed up the sed processing (if there are no `@' at all, there
5705 # is no need to browse any of the substitutions).
5706 # These are the two extra sed commands mentioned above.
5708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5709 if test -z "$ac_sed_cmds"; then
5710 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5712 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5714 ac_sed_frag=`expr $ac_sed_frag + 1`
5716 ac_end=`expr $ac_end + $ac_max_sed_lines`
5719 if test -z "$ac_sed_cmds"; then
5722 fi # test -n "$CONFIG_FILES"
5725 cat >>$CONFIG_STATUS <<\_ACEOF
5726 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5729 - | *:- | *:-:* ) # input from stdin
5731 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5732 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5733 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5734 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5735 * ) ac_file_in=$ac_file.in ;;
5738 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5739 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5741 X"$ac_file" : 'X\(//\)[^/]' \| \
5742 X"$ac_file" : 'X\(//\)$' \| \
5743 X"$ac_file" : 'X\(/\)' \| \
5744 . : '\(.\)' 2>/dev/null ||
5746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5748 /^X\(\/\/\)$/{ s//\1/; q; }
5749 /^X\(\/\).*/{ s//\1/; q; }
5751 { if $as_mkdir_p; then
5756 while test ! -d "$as_dir"; do
5757 as_dirs="$as_dir $as_dirs"
5758 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5760 X"$as_dir" : 'X\(//\)[^/]' \| \
5761 X"$as_dir" : 'X\(//\)$' \| \
5762 X"$as_dir" : 'X\(/\)' \| \
5763 . : '\(.\)' 2>/dev/null ||
5765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5767 /^X\(\/\/\)$/{ s//\1/; q; }
5768 /^X\(\/\).*/{ s//\1/; q; }
5771 test ! -n "$as_dirs" || mkdir $as_dirs
5772 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5773 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5774 { (exit 1); exit 1; }; }; }
5778 if test "$ac_dir" != .; then
5779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5780 # A "../" for each directory in $ac_dir_suffix.
5781 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5783 ac_dir_suffix= ac_top_builddir=
5787 .) # No --srcdir option. We are building in place.
5789 if test -z "$ac_top_builddir"; then
5792 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5794 [\\/]* | ?:[\\/]* ) # Absolute path.
5795 ac_srcdir=$srcdir$ac_dir_suffix;
5796 ac_top_srcdir=$srcdir ;;
5798 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5799 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5802 # Do not use `cd foo && pwd` to compute absolute paths, because
5803 # the directories may not exist.
5805 .) ac_abs_builddir="$ac_dir";;
5808 .) ac_abs_builddir=`pwd`;;
5809 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5810 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5813 case $ac_abs_builddir in
5814 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5816 case ${ac_top_builddir}. in
5817 .) ac_abs_top_builddir=$ac_abs_builddir;;
5818 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5819 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5822 case $ac_abs_builddir in
5823 .) ac_abs_srcdir=$ac_srcdir;;
5826 .) ac_abs_srcdir=$ac_abs_builddir;;
5827 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5828 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5831 case $ac_abs_builddir in
5832 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5834 case $ac_top_srcdir in
5835 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5836 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5837 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5844 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5847 if test x"$ac_file" != x-; then
5848 { echo "$as_me:$LINENO: creating $ac_file" >&5
5849 echo "$as_me: creating $ac_file" >&6;}
5852 # Let's still pretend it is `configure' which instantiates (i.e., don't
5853 # use $as_me), people would be surprised to read:
5854 # /* config.h. Generated by config.status. */
5855 if test x"$ac_file" = x-; then
5858 configure_input="$ac_file. "
5860 configure_input=$configure_input"Generated from `echo $ac_file_in |
5861 sed 's,.*/,,'` by configure."
5863 # First look for the input files in the build tree, otherwise in the
5865 ac_file_inputs=`IFS=:
5866 for f in $ac_file_in; do
5868 -) echo $tmp/stdin ;;
5870 # Absolute (can't be DOS-style, as IFS=:)
5871 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5872 echo "$as_me: error: cannot find input file: $f" >&2;}
5873 { (exit 1); exit 1; }; }
5876 if test -f "$f"; then
5879 elif test -f "$srcdir/$f"; then
5884 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5885 echo "$as_me: error: cannot find input file: $f" >&2;}
5886 { (exit 1); exit 1; }; }
5889 done` || { (exit 1); exit 1; }
5891 cat >>$CONFIG_STATUS <<_ACEOF
5895 cat >>$CONFIG_STATUS <<\_ACEOF
5897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5898 s,@configure_input@,$configure_input,;t t
5899 s,@srcdir@,$ac_srcdir,;t t
5900 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5901 s,@top_srcdir@,$ac_top_srcdir,;t t
5902 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5903 s,@builddir@,$ac_builddir,;t t
5904 s,@abs_builddir@,$ac_abs_builddir,;t t
5905 s,@top_builddir@,$ac_top_builddir,;t t
5906 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5907 s,@INSTALL@,$ac_INSTALL,;t t
5908 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5910 if test x"$ac_file" != x-; then
5911 mv $tmp/out $ac_file
5919 cat >>$CONFIG_STATUS <<\_ACEOF
5922 # CONFIG_HEADER section.
5925 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5926 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5928 # ac_d sets the value in "#define NAME VALUE" lines.
5929 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5930 ac_dB='[ ].*$,\1#\2'
5933 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5934 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5935 ac_uB='$,\1#\2define\3'
5939 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5942 - | *:- | *:-:* ) # input from stdin
5944 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5946 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5948 * ) ac_file_in=$ac_file.in ;;
5951 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5952 echo "$as_me: creating $ac_file" >&6;}
5954 # First look for the input files in the build tree, otherwise in the
5956 ac_file_inputs=`IFS=:
5957 for f in $ac_file_in; do
5959 -) echo $tmp/stdin ;;
5961 # Absolute (can't be DOS-style, as IFS=:)
5962 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5963 echo "$as_me: error: cannot find input file: $f" >&2;}
5964 { (exit 1); exit 1; }; }
5965 # Do quote $f, to prevent DOS paths from being IFS'd.
5968 if test -f "$f"; then
5971 elif test -f "$srcdir/$f"; then
5976 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5977 echo "$as_me: error: cannot find input file: $f" >&2;}
5978 { (exit 1); exit 1; }; }
5981 done` || { (exit 1); exit 1; }
5982 # Remove the trailing spaces.
5983 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5987 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5988 # `conftest.undefs', that substitutes the proper values into
5989 # config.h.in to produce config.h. The first handles `#define'
5990 # templates, and the second `#undef' templates.
5991 # And first: Protect against being on the right side of a sed subst in
5992 # config.status. Protect against being in an unquoted here document
5994 rm -f conftest.defines conftest.undefs
5995 # Using a here document instead of a string reduces the quoting nightmare.
5996 # Putting comments in sed scripts is not portable.
5998 # `end' is used to avoid that the second main sed command (meant for
5999 # 0-ary CPP macros) applies to n-ary macro definitions.
6000 # See the Autoconf documentation for `clear'.
6001 cat >confdef2sed.sed <<\_ACEOF
6006 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6008 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6011 # If some macros were called several times there might be several times
6012 # the same #defines, which is useless. Nevertheless, we may not want to
6013 # sort them, since we want the *last* AC-DEFINE to be honored.
6014 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6015 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6016 rm -f confdef2sed.sed
6018 # This sed command replaces #undef with comments. This is necessary, for
6019 # example, in the case of _POSIX_SOURCE, which is predefined and required
6020 # on some systems where configure will not decide to define it.
6021 cat >>conftest.undefs <<\_ACEOF
6022 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6025 # Break up conftest.defines because some shells have a limit on the size
6026 # of here documents, and old seds have small limits too (100 cmds).
6027 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6028 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6029 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6030 echo ' :' >>$CONFIG_STATUS
6032 while grep . conftest.defines >/dev/null
6034 # Write a limited-size here document to $tmp/defines.sed.
6035 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6036 # Speed up: don't consider the non `#define' lines.
6037 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6038 # Work around the forget-to-reset-the-flag bug.
6039 echo 't clr' >>$CONFIG_STATUS
6040 echo ': clr' >>$CONFIG_STATUS
6041 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6043 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6047 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6048 rm -f conftest.defines
6049 mv conftest.tail conftest.defines
6051 rm -f conftest.defines
6052 echo ' fi # grep' >>$CONFIG_STATUS
6053 echo >>$CONFIG_STATUS
6055 # Break up conftest.undefs because some shells have a limit on the size
6056 # of here documents, and old seds have small limits too (100 cmds).
6057 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6059 while grep . conftest.undefs >/dev/null
6061 # Write a limited-size here document to $tmp/undefs.sed.
6062 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6063 # Speed up: don't consider the non `#undef'
6064 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6065 # Work around the forget-to-reset-the-flag bug.
6066 echo 't clr' >>$CONFIG_STATUS
6067 echo ': clr' >>$CONFIG_STATUS
6068 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6070 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6074 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6075 rm -f conftest.undefs
6076 mv conftest.tail conftest.undefs
6078 rm -f conftest.undefs
6080 cat >>$CONFIG_STATUS <<\_ACEOF
6081 # Let's still pretend it is `configure' which instantiates (i.e., don't
6082 # use $as_me), people would be surprised to read:
6083 # /* config.h. Generated by config.status. */
6084 if test x"$ac_file" = x-; then
6085 echo "/* Generated by configure. */" >$tmp/config.h
6087 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6089 cat $tmp/in >>$tmp/config.h
6091 if test x"$ac_file" != x-; then
6092 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6093 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6094 echo "$as_me: $ac_file is unchanged" >&6;}
6096 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6098 X"$ac_file" : 'X\(//\)[^/]' \| \
6099 X"$ac_file" : 'X\(//\)$' \| \
6100 X"$ac_file" : 'X\(/\)' \| \
6101 . : '\(.\)' 2>/dev/null ||
6103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6105 /^X\(\/\/\)$/{ s//\1/; q; }
6106 /^X\(\/\).*/{ s//\1/; q; }
6108 { if $as_mkdir_p; then
6113 while test ! -d "$as_dir"; do
6114 as_dirs="$as_dir $as_dirs"
6115 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6117 X"$as_dir" : 'X\(//\)[^/]' \| \
6118 X"$as_dir" : 'X\(//\)$' \| \
6119 X"$as_dir" : 'X\(/\)' \| \
6120 . : '\(.\)' 2>/dev/null ||
6122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6123 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6124 /^X\(\/\/\)$/{ s//\1/; q; }
6125 /^X\(\/\).*/{ s//\1/; q; }
6128 test ! -n "$as_dirs" || mkdir $as_dirs
6129 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6130 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6131 { (exit 1); exit 1; }; }; }
6134 mv $tmp/config.h $ac_file
6140 # Compute $ac_file's index in $config_headers.
6142 for _am_header in $config_headers :; do
6144 $ac_file | $ac_file:* )
6147 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6150 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6151 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6152 X$ac_file : 'X\(//\)[^/]' \| \
6153 X$ac_file : 'X\(//\)$' \| \
6154 X$ac_file : 'X\(/\)' \| \
6155 . : '\(.\)' 2>/dev/null ||
6157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6159 /^X\(\/\/\)$/{ s//\1/; q; }
6160 /^X\(\/\).*/{ s//\1/; q; }
6161 s/.*/./; q'`/stamp-h$_am_stamp_count
6164 cat >>$CONFIG_STATUS <<\_ACEOF
6167 # CONFIG_COMMANDS section.
6169 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6170 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6171 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6172 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6173 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6174 X"$ac_dest" : 'X\(//\)[^/]' \| \
6175 X"$ac_dest" : 'X\(//\)$' \| \
6176 X"$ac_dest" : 'X\(/\)' \| \
6177 . : '\(.\)' 2>/dev/null ||
6179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6181 /^X\(\/\/\)$/{ s//\1/; q; }
6182 /^X\(\/\).*/{ s//\1/; q; }
6184 { if $as_mkdir_p; then
6189 while test ! -d "$as_dir"; do
6190 as_dirs="$as_dir $as_dirs"
6191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6193 X"$as_dir" : 'X\(//\)[^/]' \| \
6194 X"$as_dir" : 'X\(//\)$' \| \
6195 X"$as_dir" : 'X\(/\)' \| \
6196 . : '\(.\)' 2>/dev/null ||
6198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6200 /^X\(\/\/\)$/{ s//\1/; q; }
6201 /^X\(\/\).*/{ s//\1/; q; }
6204 test ! -n "$as_dirs" || mkdir $as_dirs
6205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6207 { (exit 1); exit 1; }; }; }
6211 if test "$ac_dir" != .; then
6212 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6213 # A "../" for each directory in $ac_dir_suffix.
6214 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6216 ac_dir_suffix= ac_top_builddir=
6220 .) # No --srcdir option. We are building in place.
6222 if test -z "$ac_top_builddir"; then
6225 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6227 [\\/]* | ?:[\\/]* ) # Absolute path.
6228 ac_srcdir=$srcdir$ac_dir_suffix;
6229 ac_top_srcdir=$srcdir ;;
6231 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6232 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6235 # Do not use `cd foo && pwd` to compute absolute paths, because
6236 # the directories may not exist.
6238 .) ac_abs_builddir="$ac_dir";;
6241 .) ac_abs_builddir=`pwd`;;
6242 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6243 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6246 case $ac_abs_builddir in
6247 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6249 case ${ac_top_builddir}. in
6250 .) ac_abs_top_builddir=$ac_abs_builddir;;
6251 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6252 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6255 case $ac_abs_builddir in
6256 .) ac_abs_srcdir=$ac_srcdir;;
6259 .) ac_abs_srcdir=$ac_abs_builddir;;
6260 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6261 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6264 case $ac_abs_builddir in
6265 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6267 case $ac_top_srcdir in
6268 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6269 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6270 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6275 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6276 echo "$as_me: executing $ac_dest commands" >&6;}
6278 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6279 # Strip MF so we end up with the name of the file.
6280 mf=`echo "$mf" | sed -e 's/:.*$//'`
6281 # Check whether this is an Automake generated Makefile or not.
6282 # We used to match only the files named `Makefile.in', but
6283 # some people rename them; so instead we look at the file content.
6284 # Grep'ing the first line is not enough: some people post-process
6285 # each Makefile.in and add a new line on top of each file to say so.
6286 # So let's grep whole file.
6287 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6288 dirpart=`(dirname "$mf") 2>/dev/null ||
6289 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6290 X"$mf" : 'X\(//\)[^/]' \| \
6291 X"$mf" : 'X\(//\)$' \| \
6292 X"$mf" : 'X\(/\)' \| \
6293 . : '\(.\)' 2>/dev/null ||
6295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6297 /^X\(\/\/\)$/{ s//\1/; q; }
6298 /^X\(\/\).*/{ s//\1/; q; }
6303 # Extract the definition of DEPDIR, am__include, and am__quote
6304 # from the Makefile without running `make'.
6305 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6306 test -z "$DEPDIR" && continue
6307 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6308 test -z "am__include" && continue
6309 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6310 # When using ansi2knr, U may be empty or an underscore; expand it
6311 U=`sed -n 's/^U = //p' < "$mf"`
6312 # Find all dependency output files, they are included files with
6313 # $(DEPDIR) in their names. We invoke sed twice because it is the
6314 # simplest approach to changing $(DEPDIR) to its actual value in the
6316 for file in `sed -n "
6317 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6318 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6319 # Make sure the directory exists.
6320 test -f "$dirpart/$file" && continue
6321 fdir=`(dirname "$file") 2>/dev/null ||
6322 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6323 X"$file" : 'X\(//\)[^/]' \| \
6324 X"$file" : 'X\(//\)$' \| \
6325 X"$file" : 'X\(/\)' \| \
6326 . : '\(.\)' 2>/dev/null ||
6328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6330 /^X\(\/\/\)$/{ s//\1/; q; }
6331 /^X\(\/\).*/{ s//\1/; q; }
6333 { if $as_mkdir_p; then
6334 mkdir -p $dirpart/$fdir
6336 as_dir=$dirpart/$fdir
6338 while test ! -d "$as_dir"; do
6339 as_dirs="$as_dir $as_dirs"
6340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6342 X"$as_dir" : 'X\(//\)[^/]' \| \
6343 X"$as_dir" : 'X\(//\)$' \| \
6344 X"$as_dir" : 'X\(/\)' \| \
6345 . : '\(.\)' 2>/dev/null ||
6347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6349 /^X\(\/\/\)$/{ s//\1/; q; }
6350 /^X\(\/\).*/{ s//\1/; q; }
6353 test ! -n "$as_dirs" || mkdir $as_dirs
6354 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6355 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6356 { (exit 1); exit 1; }; }; }
6358 # echo "creating $dirpart/$file"
6359 echo '# dummy' > "$dirpart/$file"
6367 cat >>$CONFIG_STATUS <<\_ACEOF
6369 { (exit 0); exit 0; }
6371 chmod +x $CONFIG_STATUS
6372 ac_clean_files=$ac_clean_files_save
6375 # configure is writing to config.log, and then calls config.status.
6376 # config.status does its own redirection, appending to config.log.
6377 # Unfortunately, on DOS this fails, as config.log is still kept open
6378 # by configure, so config.status won't be able to write to it; its
6379 # output is simply discarded. So we exec the FD to /dev/null,
6380 # effectively closing config.log, so it can be properly (re)opened and
6381 # appended to by config.status. When coming back to configure, we
6382 # need to make the FD available again.
6383 if test "$no_create" != yes; then
6385 ac_config_status_args=
6386 test "$silent" = yes &&
6387 ac_config_status_args="$ac_config_status_args --quiet"
6389 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6391 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6392 # would make configure fail if this is the last instruction.
6393 $ac_cs_success || { (exit 1); exit 1; }