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/gcm_input/message.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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CPP LEX LEXLIB LEX_OUTPUT_ROOT LN_S RANLIB ac_ct_RANLIB YACC XML_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PG_CONFIG with_postgres_lib with_postgres_include POSTGRES_LIB POSTGRES_INCLUDE EGREP 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_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
848 --x-includes=DIR X include files are in DIR
849 --x-libraries=DIR X library files are in DIR
853 if test -n "$ac_init_help"; then
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --disable-dependency-tracking Speeds up one-time builds
861 --enable-dependency-tracking Do not reject slow dependency extractors
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-x use the X Window System
868 Some influential environment variables:
869 CC C compiler command
870 CFLAGS C compiler flags
871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
872 nonstandard directory <lib dir>
873 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
874 headers in a nonstandard directory <include dir>
875 CXX C++ compiler command
876 CXXFLAGS C++ compiler flags
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897 ac_dir_suffix= ac_top_builddir=
901 .) # No --srcdir option. We are building in place.
903 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
919 .) ac_abs_builddir="$ac_dir";;
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_must_keep_next=false
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078 -* ) ac_must_keep_next=true ;;
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1107 # The following way of writing the cache mishandles newlines in values,
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1130 for ac_var in $ac_subst_vars
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1137 if test -n "$ac_subst_files"; then
1144 for ac_var in $ac_subst_files
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -s confdefs.h; then
1159 sed "/^$/d" confdefs.h | sort
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1242 # Check that the precious variables saved in the cache have kept the same
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 am__api_version="1.6"
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 elif test -f $ac_dir/install.sh; then
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 elif test -f $ac_dir/shtool; then
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343 # Find a good install program. We prefer a C program (faster),
1344 # so one script is as good as another. But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1350 # AmigaOS /C/install, which installs bootblocks on floppy discs
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # OS/2's system install, which has a completely different semantic
1355 # ./install, which can be erroneously created by make from ./install.sh.
1356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1358 if test -z "$INSTALL"; then
1359 if test "${ac_cv_path_install+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366 test -z "$as_dir" && as_dir=.
1367 # Account for people who put trailing slashes in PATH elements.
1369 ./ | .// | /cC/* | \
1370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1374 # OSF1 and SCO ODT 3.0 have their own names for install.
1375 # Don't use installbsd from OSF since it installs stuff as root
1377 for ac_prog in ginstall scoinst install; do
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1380 if test $ac_prog = install &&
1381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382 # AIX install. It has an incompatible calling convention.
1384 elif test $ac_prog = install &&
1385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386 # program-specific install script used by HP pwplus--don't use.
1389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1401 if test "${ac_cv_path_install+set}" = set; then
1402 INSTALL=$ac_cv_path_install
1404 # As a last resort, use the slow shell script. We don't cache a
1405 # path for INSTALL within a source directory, because that will
1406 # break other packages using the cache if that directory is
1407 # removed, or if the path is relative.
1408 INSTALL=$ac_install_sh
1411 echo "$as_me:$LINENO: result: $INSTALL" >&5
1412 echo "${ECHO_T}$INSTALL" >&6
1414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1415 # It thinks the first close brace ends the variable substitution.
1416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1423 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1426 echo timestamp > conftest.file
1427 # Do `set' in a subshell so we don't clobber the current shell's
1428 # arguments. Must try -L first in case configure is actually a
1429 # symlink; some systems play weird games with the mod time of symlinks
1430 # (eg FreeBSD returns the mod time of the symlink's containing
1433 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1434 if test "$*" = "X"; then
1436 set X `ls -t $srcdir/configure conftest.file`
1439 if test "$*" != "X $srcdir/configure conftest.file" \
1440 && test "$*" != "X conftest.file $srcdir/configure"; then
1442 # If neither matched, then we have a broken ls. This can happen
1443 # if, for instance, CONFIG_SHELL is bash and it inherits a
1444 # broken ls alias from the environment. This has actually
1445 # happened. Such a system could not be considered "sane".
1446 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1447 alias in your environment" >&5
1448 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1449 alias in your environment" >&2;}
1450 { (exit 1); exit 1; }; }
1453 test "$2" = conftest.file
1459 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1460 Check your system clock" >&5
1461 echo "$as_me: error: newly created file is older than distributed files!
1462 Check your system clock" >&2;}
1463 { (exit 1); exit 1; }; }
1465 echo "$as_me:$LINENO: result: yes" >&5
1466 echo "${ECHO_T}yes" >&6
1467 test "$program_prefix" != NONE &&
1468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1469 # Use a double $ so make ignores it.
1470 test "$program_suffix" != NONE &&
1471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472 # Double any \ or $. echo might interpret backslashes.
1473 # By default was `s,x,x', remove it if useless.
1474 cat <<\_ACEOF >conftest.sed
1475 s/[\\$]/&&/g;s/;s,x,x,$//
1477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1481 # expand $ac_aux_dir to an absolute path
1482 am_aux_dir=`cd $ac_aux_dir && pwd`
1484 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 # Use eval to expand $SHELL
1486 if eval "$MISSING --run true"; then
1487 am_missing_run="$MISSING --run "
1490 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1494 for ac_prog in gawk mawk nawk awk
1496 # Extract the first word of "$ac_prog", so it can be a program name with args.
1497 set dummy $ac_prog; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_AWK+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 if test -n "$AWK"; then
1504 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 ac_cv_prog_AWK="$ac_prog"
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 if test -n "$AWK"; then
1524 echo "$as_me:$LINENO: result: $AWK" >&5
1525 echo "${ECHO_T}$AWK" >&6
1527 echo "$as_me:$LINENO: result: no" >&5
1528 echo "${ECHO_T}no" >&6
1531 test -n "$AWK" && break
1534 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1535 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1536 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1537 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 cat >conftest.make <<\_ACEOF
1542 @echo 'ac_maketemp="$(MAKE)"'
1544 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1545 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1546 if test -n "$ac_maketemp"; then
1547 eval ac_cv_prog_make_${ac_make}_set=yes
1549 eval ac_cv_prog_make_${ac_make}_set=no
1553 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 SET_MAKE="MAKE=${MAKE-make}"
1563 # test to see if srcdir already configured
1564 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1565 test -f $srcdir/config.status; then
1566 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1567 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1568 { (exit 1); exit 1; }; }
1571 # Define the identity of the package.
1576 cat >>confdefs.h <<_ACEOF
1577 #define PACKAGE "$PACKAGE"
1581 cat >>confdefs.h <<_ACEOF
1582 #define VERSION "$VERSION"
1585 # Some tools Automake needs.
1587 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1590 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1593 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1596 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1599 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1602 AMTAR=${AMTAR-"${am_missing_run}tar"}
1604 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1606 # Installed binaries are usually stripped using `strip' when the user
1607 # run `make install-strip'. However `strip' might not be the right
1608 # tool to use in cross-compilation environments, therefore Automake
1609 # will honor the `STRIP' environment variable to overrule this program.
1610 if test "$cross_compiling" != no; then
1611 if test -n "$ac_tool_prefix"; then
1612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1613 set dummy ${ac_tool_prefix}strip; ac_word=$2
1614 echo "$as_me:$LINENO: checking for $ac_word" >&5
1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616 if test "${ac_cv_prog_STRIP+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 if test -n "$STRIP"; then
1620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 test -z "$as_dir" && as_dir=.
1627 for ac_exec_ext in '' $ac_executable_extensions; do
1628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 STRIP=$ac_cv_prog_STRIP
1639 if test -n "$STRIP"; then
1640 echo "$as_me:$LINENO: result: $STRIP" >&5
1641 echo "${ECHO_T}$STRIP" >&6
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1648 if test -z "$ac_cv_prog_STRIP"; then
1650 # Extract the first word of "strip", so it can be a program name with args.
1651 set dummy strip; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 if test -n "$ac_ct_STRIP"; then
1658 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_ac_ct_STRIP="strip"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1677 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1678 if test -n "$ac_ct_STRIP"; then
1679 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1680 echo "${ECHO_T}$ac_ct_STRIP" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1688 STRIP="$ac_cv_prog_STRIP"
1692 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1694 # We need awk for the "check" target. The system "awk" is bad on
1702 ac_cpp='$CPP $CPPFLAGS'
1703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1706 if test -n "$ac_tool_prefix"; then
1707 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1708 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 if test -n "$CC"; then
1735 echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1743 if test -z "$ac_cv_prog_CC"; then
1745 # Extract the first word of "gcc", so it can be a program name with args.
1746 set dummy gcc; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$ac_ct_CC"; then
1753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_ac_ct_CC="gcc"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1772 if test -n "$ac_ct_CC"; then
1773 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1774 echo "${ECHO_T}$ac_ct_CC" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1785 if test -z "$CC"; then
1786 if test -n "$ac_tool_prefix"; then
1787 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1788 set dummy ${ac_tool_prefix}cc; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_CC="${ac_tool_prefix}cc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 if test -n "$CC"; then
1815 echo "$as_me:$LINENO: result: $CC" >&5
1816 echo "${ECHO_T}$CC" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1823 if test -z "$ac_cv_prog_CC"; then
1825 # Extract the first word of "cc", so it can be a program name with args.
1826 set dummy cc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 if test -n "$ac_ct_CC"; then
1833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_ac_ct_CC="cc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1852 if test -n "$ac_ct_CC"; then
1853 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1854 echo "${ECHO_T}$ac_ct_CC" >&6
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1866 if test -z "$CC"; then
1867 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1886 ac_prog_rejected=yes
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896 if test $ac_prog_rejected = yes; then
1897 # We found a bogon in the path, so make sure we never use it.
1898 set dummy $ac_cv_prog_CC
1900 if test $# != 0; then
1901 # We chose a different compiler from the bogus one.
1902 # However, it has the same basename, so the bogon will be chosen
1903 # first if we set CC to just the basename; use the full file name.
1905 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1911 if test -n "$CC"; then
1912 echo "$as_me:$LINENO: result: $CC" >&5
1913 echo "${ECHO_T}$CC" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1920 if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC="$CC" # Let the user override the test.
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 if test -n "$CC"; then
1952 echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1959 test -n "$CC" && break
1962 if test -z "$CC"; then
1966 # Extract the first word of "$ac_prog", so it can be a program name with args.
1967 set dummy $ac_prog; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$ac_ct_CC"; then
1974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_ac_ct_CC="$ac_prog"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1993 if test -n "$ac_ct_CC"; then
1994 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1995 echo "${ECHO_T}$ac_ct_CC" >&6
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
2001 test -n "$ac_ct_CC" && break
2010 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: no acceptable C compiler found in \$PATH
2013 See \`config.log' for more details." >&2;}
2014 { (exit 1); exit 1; }; }
2016 # Provide some information about the compiler.
2017 echo "$as_me:$LINENO:" \
2018 "checking for C compiler version" >&5
2019 ac_compiler=`set X $ac_compile; echo $2`
2020 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2021 (eval $ac_compiler --version </dev/null >&5) 2>&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }
2025 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2026 (eval $ac_compiler -v </dev/null >&5) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2031 (eval $ac_compiler -V </dev/null >&5) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }
2036 cat >conftest.$ac_ext <<_ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h. */
2051 ac_clean_files_save=$ac_clean_files
2052 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2053 # Try to create an executable without -o first, disregard a.out.
2054 # It will help us diagnose broken compilers, and finding out an intuition
2056 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2057 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2058 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2059 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2060 (eval $ac_link_default) 2>&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; then
2064 # Find the output, starting from the most likely. This scheme is
2065 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2068 # Be careful to initialize this variable, since it used to be cached.
2069 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071 # b.out is created by i960 compilers.
2072 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2074 test -f "$ac_file" || continue
2076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2079 # This is the source file.
2082 # We found the default executable, but exeext='' is most
2086 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2087 # FIXME: I believe we export ac_cv_exeext for Libtool,
2088 # but it would be cool to find out if it's true. Does anybody
2089 # maintain Libtool? --akim.
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2100 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: C compiler cannot create executables
2103 See \`config.log' for more details." >&2;}
2104 { (exit 77); exit 77; }; }
2107 ac_exeext=$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_file" >&5
2109 echo "${ECHO_T}$ac_file" >&6
2111 # Check the compiler produces executables we can run. If not, either
2112 # the compiler is broken, or we cross compile.
2113 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2114 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2115 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2116 # If not cross compiling, check that we can run a simple program.
2117 if test "$cross_compiling" != yes; then
2118 if { ac_try='./$ac_file'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2126 if test "$cross_compiling" = maybe; then
2129 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2130 If you meant to cross compile, use \`--host'.
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: cannot run C compiled programs.
2133 If you meant to cross compile, use \`--host'.
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2139 echo "$as_me:$LINENO: result: yes" >&5
2140 echo "${ECHO_T}yes" >&6
2142 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2143 ac_clean_files=$ac_clean_files_save
2144 # Check the compiler produces executables we can run. If not, either
2145 # the compiler is broken, or we cross compile.
2146 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2147 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2148 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2149 echo "${ECHO_T}$cross_compiling" >&6
2151 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2152 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2154 (eval $ac_link) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; then
2158 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2159 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2160 # work properly (i.e., refer to `conftest.exe'), while it won't with
2162 for ac_file in conftest.exe conftest conftest.*; do
2163 test -f "$ac_file" || continue
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2180 rm -f conftest$ac_cv_exeext
2181 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2182 echo "${ECHO_T}$ac_cv_exeext" >&6
2184 rm -f conftest.$ac_ext
2185 EXEEXT=$ac_cv_exeext
2187 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2188 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2189 if test "${ac_cv_objext+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 cat >conftest.$ac_ext <<_ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2207 rm -f conftest.o conftest.obj
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2231 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2233 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2234 echo "${ECHO_T}$ac_cv_objext" >&6
2235 OBJEXT=$ac_cv_objext
2237 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2238 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2239 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 cat >conftest.$ac_ext <<_ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2264 grep -v '^ *+' conftest.er1 >conftest.err
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag"
2270 || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2284 echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2293 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2294 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2295 GCC=`test $ac_compiler_gnu = yes && echo yes`
2296 ac_test_CFLAGS=${CFLAGS+set}
2297 ac_save_CFLAGS=$CFLAGS
2299 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2301 if test "${ac_cv_prog_cc_g+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>conftest.er1
2323 grep -v '^ *+' conftest.er1 >conftest.err
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
2328 { ac_try='test -z "$ac_c_werror_flag"
2329 || test ! -s conftest.err'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2351 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2352 if test "$ac_test_CFLAGS" = set; then
2353 CFLAGS=$ac_save_CFLAGS
2354 elif test $ac_cv_prog_cc_g = yes; then
2355 if test "$GCC" = yes; then
2361 if test "$GCC" = yes; then
2367 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2368 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2369 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 ac_cv_prog_cc_stdc=no
2374 cat >conftest.$ac_ext <<_ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2382 #include <sys/types.h>
2383 #include <sys/stat.h>
2384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2385 struct buf { int x; };
2386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2387 static char *e (p, i)
2393 static char *f (char * (*g) (char **, int), char **p, ...)
2398 s = g (p, va_arg (v,int));
2403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2404 function prototypes and stuff, but not '\xHH' hex character constants.
2405 These don't provoke an error unfortunately, instead are silently treated
2406 as 'x'. The following induces an error, until -std1 is added to get
2407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2408 array size at least. It's necessary to write '\x00'==0 to get something
2409 that's true only with -std1. */
2410 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2412 int test (int i, double x);
2413 struct s1 {int (*f) (int a);};
2414 struct s2 {int (*f) (double a);};
2415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2421 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2426 # Don't try gcc -ansi; that turns off useful extensions and
2427 # breaks some systems' header files.
2428 # AIX -qlanglvl=ansi
2429 # Ultrix and OSF/1 -std1
2430 # HP-UX 10.20 and later -Ae
2431 # HP-UX older versions -Aa -D_HPUX_SOURCE
2432 # SVR4 -Xc -D__EXTENSIONS__
2433 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2435 CC="$ac_save_CC $ac_arg"
2436 rm -f conftest.$ac_objext
2437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438 (eval $ac_compile) 2>conftest.er1
2440 grep -v '^ *+' conftest.er1 >conftest.err
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } &&
2445 { ac_try='test -z "$ac_c_werror_flag"
2446 || test ! -s conftest.err'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; } &&
2452 { ac_try='test -s conftest.$ac_objext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 ac_cv_prog_cc_stdc=$ac_arg
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2465 rm -f conftest.err conftest.$ac_objext
2467 rm -f conftest.$ac_ext conftest.$ac_objext
2472 case "x$ac_cv_prog_cc_stdc" in
2474 echo "$as_me:$LINENO: result: none needed" >&5
2475 echo "${ECHO_T}none needed" >&6 ;;
2477 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2478 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2479 CC="$CC $ac_cv_prog_cc_stdc" ;;
2482 # Some people use a C++ compiler to compile C. Since we use `exit',
2483 # in C++ we need to declare it. In case someone uses the same compiler
2484 # for both compiling C and C++ we need to have the C++ compiler decide
2485 # the declaration of exit, since it's the most demanding environment.
2486 cat >conftest.$ac_ext <<_ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag"
2501 || test ! -s conftest.err'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; } &&
2507 { ac_try='test -s conftest.$ac_objext'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 for ac_declaration in \
2515 'extern "C" void std::exit (int) throw (); using std::exit;' \
2516 'extern "C" void std::exit (int); using std::exit;' \
2517 'extern "C" void exit (int) throw ();' \
2518 'extern "C" void exit (int);' \
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>conftest.er1
2541 grep -v '^ *+' conftest.er1 >conftest.err
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag"
2547 || test ! -s conftest.err'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613 if test -n "$ac_declaration"; then
2614 echo '#ifdef __cplusplus' >>confdefs.h
2615 echo $ac_declaration >>confdefs.h
2616 echo '#endif' >>confdefs.h
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 rm -f .deps 2>/dev/null
2631 mkdir .deps 2>/dev/null
2632 if test -d .deps; then
2635 # MS-DOS does not allow filenames that begin with a dot.
2638 rmdir .deps 2>/dev/null
2641 ac_config_commands="$ac_config_commands depfiles"
2644 am_make=${MAKE-make}
2645 cat > confinc << 'END'
2649 # If we don't find an include directive, just comment out the code.
2650 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2651 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2655 # First try GNU make style include.
2656 echo "include confinc" > confmf
2657 # We grep out `Entering directory' and `Leaving directory'
2658 # messages which can occur if `w' ends up in MAKEFLAGS.
2659 # In particular we don't look at `^make:' because GNU make might
2660 # be invoked under some other name (usually "gmake"), in which
2661 # case it prints its new name instead of `make'.
2662 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2667 # Now try BSD make style include.
2668 if test "$am__include" = "#"; then
2669 echo '.include "confinc"' > confmf
2670 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2671 am__include=.include
2678 echo "$as_me:$LINENO: result: $_am_result" >&5
2679 echo "${ECHO_T}$_am_result" >&6
2680 rm -f confinc confmf
2682 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2683 if test "${enable_dependency_tracking+set}" = set; then
2684 enableval="$enable_dependency_tracking"
2687 if test "x$enable_dependency_tracking" != xno; then
2688 am_depcomp="$ac_aux_dir/depcomp"
2693 if test "x$enable_dependency_tracking" != xno; then
2704 depcc="$CC" am_compiler_list=
2706 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2707 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2708 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2712 # We make a subdir and do the tests there. Otherwise we can end up
2713 # making bogus files that we don't know about and never remove. For
2714 # instance it was reported that on HP-UX the gcc test will end up
2715 # making a dummy file named `D' -- because `-MD' means `put the output
2718 # Copy depcomp to subdir because otherwise we won't find it if we're
2719 # using a relative directory.
2720 cp "$am_depcomp" conftest.dir
2723 am_cv_CC_dependencies_compiler_type=none
2724 if test "$am_compiler_list" = ""; then
2725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2727 for depmode in $am_compiler_list; do
2728 # We need to recreate these files for each test, as the compiler may
2729 # overwrite some of them when testing with obscure command lines.
2730 # This happens at least with the AIX C compiler.
2731 echo '#include "conftest.h"' > conftest.c
2732 echo 'int i;' > conftest.h
2733 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2737 # after this tag, mechanisms are not by side-effect, so they'll
2738 # only be used when explicitly requested
2739 if test "x$enable_dependency_tracking" = xyes; then
2747 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2748 # mode. It turns out that the SunPro C++ compiler does not properly
2749 # handle `-M -o', and we need to detect this.
2750 if depmode=$depmode \
2751 source=conftest.c object=conftest.o \
2752 depfile=conftest.Po tmpdepfile=conftest.TPo \
2753 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2754 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2756 am_cv_CC_dependencies_compiler_type=$depmode
2764 am_cv_CC_dependencies_compiler_type=none
2768 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2769 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2770 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -n "$ac_tool_prefix"; then
2779 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2783 echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2785 if test "${ac_cv_prog_CXX+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 if test -n "$CXX"; then
2789 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test -n "$CXX"; then
2809 echo "$as_me:$LINENO: result: $CXX" >&5
2810 echo "${ECHO_T}$CXX" >&6
2812 echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2816 test -n "$CXX" && break
2819 if test -z "$CXX"; then
2821 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2827 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$ac_ct_CXX"; then
2831 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_CXX="$ac_prog"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850 if test -n "$ac_ct_CXX"; then
2851 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852 echo "${ECHO_T}$ac_ct_CXX" >&6
2854 echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6
2858 test -n "$ac_ct_CXX" && break
2860 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2866 # Provide some information about the compiler.
2867 echo "$as_me:$LINENO:" \
2868 "checking for C++ compiler version" >&5
2869 ac_compiler=`set X $ac_compile; echo $2`
2870 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2871 (eval $ac_compiler --version </dev/null >&5) 2>&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }
2875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2876 (eval $ac_compiler -v </dev/null >&5) 2>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }
2880 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2881 (eval $ac_compiler -V </dev/null >&5) 2>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }
2886 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2887 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2888 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 cat >conftest.$ac_ext <<_ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1 >conftest.err
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -z "$ac_cxx_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2939 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2942 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2943 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2944 GXX=`test $ac_compiler_gnu = yes && echo yes`
2945 ac_test_CXXFLAGS=${CXXFLAGS+set}
2946 ac_save_CXXFLAGS=$CXXFLAGS
2948 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2949 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2950 if test "${ac_cv_prog_cxx_g+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970 (eval $ac_compile) 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -z "$ac_cxx_werror_flag"
2978 || test ! -s conftest.err'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2990 ac_cv_prog_cxx_g=yes
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2999 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3000 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3001 if test "$ac_test_CXXFLAGS" = set; then
3002 CXXFLAGS=$ac_save_CXXFLAGS
3003 elif test $ac_cv_prog_cxx_g = yes; then
3004 if test "$GXX" = yes; then
3010 if test "$GXX" = yes; then
3016 for ac_declaration in \
3018 'extern "C" void std::exit (int) throw (); using std::exit;' \
3019 'extern "C" void std::exit (int); using std::exit;' \
3020 'extern "C" void exit (int) throw ();' \
3021 'extern "C" void exit (int);' \
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_cxx_werror_flag"
3050 || test ! -s conftest.err'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; } &&
3056 { ac_try='test -s conftest.$ac_objext'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3085 rm -f conftest.$ac_objext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3087 (eval $ac_compile) 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag"
3095 || test ! -s conftest.err'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 if test -n "$ac_declaration"; then
3117 echo '#ifdef __cplusplus' >>confdefs.h
3118 echo $ac_declaration >>confdefs.h
3119 echo '#endif' >>confdefs.h
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 depcc="$CXX" am_compiler_list=
3130 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3131 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3132 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3136 # We make a subdir and do the tests there. Otherwise we can end up
3137 # making bogus files that we don't know about and never remove. For
3138 # instance it was reported that on HP-UX the gcc test will end up
3139 # making a dummy file named `D' -- because `-MD' means `put the output
3142 # Copy depcomp to subdir because otherwise we won't find it if we're
3143 # using a relative directory.
3144 cp "$am_depcomp" conftest.dir
3147 am_cv_CXX_dependencies_compiler_type=none
3148 if test "$am_compiler_list" = ""; then
3149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3151 for depmode in $am_compiler_list; do
3152 # We need to recreate these files for each test, as the compiler may
3153 # overwrite some of them when testing with obscure command lines.
3154 # This happens at least with the AIX C compiler.
3155 echo '#include "conftest.h"' > conftest.c
3156 echo 'int i;' > conftest.h
3157 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3161 # after this tag, mechanisms are not by side-effect, so they'll
3162 # only be used when explicitly requested
3163 if test "x$enable_dependency_tracking" = xyes; then
3171 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3172 # mode. It turns out that the SunPro C++ compiler does not properly
3173 # handle `-M -o', and we need to detect this.
3174 if depmode=$depmode \
3175 source=conftest.c object=conftest.o \
3176 depfile=conftest.Po tmpdepfile=conftest.TPo \
3177 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3178 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3179 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3180 am_cv_CXX_dependencies_compiler_type=$depmode
3188 am_cv_CXX_dependencies_compiler_type=none
3192 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3193 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3194 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3204 # On Suns, sometimes $CPP names a directory.
3205 if test -n "$CPP" && test -d "$CPP"; then
3208 if test -z "$CPP"; then
3209 if test "${ac_cv_prog_CPP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 # Double quotes because CPP needs to be expanded
3213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3216 for ac_c_preproc_warn_flag in '' yes
3218 # Use a header file that comes with gcc, so configuring glibc
3219 # with a fresh cross-compiler works.
3220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3221 # <limits.h> exists even on freestanding compilers.
3222 # On the NeXT, cc -E runs the code through the compiler's parser,
3223 # not just through cpp. "Syntax error" is here to catch this case.
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3231 # include <limits.h>
3233 # include <assert.h>
3237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } >/dev/null; then
3245 if test -s conftest.err; then
3246 ac_cpp_err=$ac_c_preproc_warn_flag
3247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254 if test -z "$ac_cpp_err"; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 # Broken: fails on valid input.
3263 rm -f conftest.err conftest.$ac_ext
3265 # OK, works on sane cases. Now check whether non-existent headers
3266 # can be detected and how.
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3273 #include <ac_nonexistent.h>
3275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292 if test -z "$ac_cpp_err"; then
3293 # Broken: success on invalid input.
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Passes both tests.
3303 rm -f conftest.err conftest.$ac_ext
3306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3307 rm -f conftest.err conftest.$ac_ext
3308 if $ac_preproc_ok; then
3320 echo "$as_me:$LINENO: result: $CPP" >&5
3321 echo "${ECHO_T}$CPP" >&6
3323 for ac_c_preproc_warn_flag in '' yes
3325 # Use a header file that comes with gcc, so configuring glibc
3326 # with a fresh cross-compiler works.
3327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3328 # <limits.h> exists even on freestanding compilers.
3329 # On the NeXT, cc -E runs the code through the compiler's parser,
3330 # not just through cpp. "Syntax error" is here to catch this case.
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3338 # include <limits.h>
3340 # include <assert.h>
3344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } >/dev/null; then
3352 if test -s conftest.err; then
3353 ac_cpp_err=$ac_c_preproc_warn_flag
3354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3361 if test -z "$ac_cpp_err"; then
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 # Broken: fails on valid input.
3370 rm -f conftest.err conftest.$ac_ext
3372 # OK, works on sane cases. Now check whether non-existent headers
3373 # can be detected and how.
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #include <ac_nonexistent.h>
3382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null; then
3390 if test -s conftest.err; then
3391 ac_cpp_err=$ac_c_preproc_warn_flag
3392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3399 if test -z "$ac_cpp_err"; then
3400 # Broken: success on invalid input.
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 # Passes both tests.
3410 rm -f conftest.err conftest.$ac_ext
3413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3414 rm -f conftest.err conftest.$ac_ext
3415 if $ac_preproc_ok; then
3418 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3419 See \`config.log' for more details." >&5
3420 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3421 See \`config.log' for more details." >&2;}
3422 { (exit 1); exit 1; }; }
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 for ac_prog in flex lex
3434 # Extract the first word of "$ac_prog", so it can be a program name with args.
3435 set dummy $ac_prog; ac_word=$2
3436 echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438 if test "${ac_cv_prog_LEX+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 if test -n "$LEX"; then
3442 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_LEX="$ac_prog"
3452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 if test -n "$LEX"; then
3462 echo "$as_me:$LINENO: result: $LEX" >&5
3463 echo "${ECHO_T}$LEX" >&6
3465 echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3469 test -n "$LEX" && break
3471 test -n "$LEX" || LEX=":"
3473 if test -z "$LEXLIB"
3475 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3476 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3477 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_check_lib_save_LIBS=$LIBS
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3489 /* Override any gcc2 internal prototype to avoid an error. */
3493 /* We use char because int might match the return type of a gcc2
3494 builtin and then its argument prototype would still apply. */
3504 rm -f conftest.$ac_objext conftest$ac_exeext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3506 (eval $ac_link) 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_c_werror_flag"
3514 || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest$ac_exeext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 ac_cv_lib_fl_yywrap=yes
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 ac_cv_lib_fl_yywrap=no
3533 rm -f conftest.err conftest.$ac_objext \
3534 conftest$ac_exeext conftest.$ac_ext
3535 LIBS=$ac_check_lib_save_LIBS
3537 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3538 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3539 if test $ac_cv_lib_fl_yywrap = yes; then
3542 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3543 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3544 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 ac_check_lib_save_LIBS=$LIBS
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3556 /* Override any gcc2 internal prototype to avoid an error. */
3560 /* We use char because int might match the return type of a gcc2
3561 builtin and then its argument prototype would still apply. */
3571 rm -f conftest.$ac_objext conftest$ac_exeext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3573 (eval $ac_link) 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest$ac_exeext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ac_cv_lib_l_yywrap=yes
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 ac_cv_lib_l_yywrap=no
3600 rm -f conftest.err conftest.$ac_objext \
3601 conftest$ac_exeext conftest.$ac_ext
3602 LIBS=$ac_check_lib_save_LIBS
3604 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3605 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3606 if test $ac_cv_lib_l_yywrap = yes; then
3614 if test "x$LEX" != "x:"; then
3615 echo "$as_me:$LINENO: checking lex output file root" >&5
3616 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3617 if test "${ac_cv_prog_lex_root+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 # The minimal lex program is just a single line: %%. But some broken lexes
3621 # (Solaris, I think it was) want two %% lines, so accommodate them.
3622 cat >conftest.l <<_ACEOF
3626 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3627 (eval $LEX conftest.l) 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }
3631 if test -f lex.yy.c; then
3632 ac_cv_prog_lex_root=lex.yy
3633 elif test -f lexyy.c; then
3634 ac_cv_prog_lex_root=lexyy
3636 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3637 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3638 { (exit 1); exit 1; }; }
3641 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3642 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3644 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3646 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3647 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3648 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 # POSIX says lex can declare yytext either as a pointer or an array; the
3652 # default is implementation-dependent. Figure out which it is, since
3653 # not all implementations provide the %pointer and %array declarations.
3654 ac_cv_prog_lex_yytext_pointer=no
3655 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3657 LIBS="$LIBS $LEXLIB"
3658 cat >conftest.$ac_ext <<_ACEOF
3659 `cat $LEX_OUTPUT_ROOT.c`
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest$ac_exeext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_prog_lex_yytext_pointer=yes
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3689 rm -f conftest.err conftest.$ac_objext \
3690 conftest$ac_exeext conftest.$ac_ext
3692 rm -f "${LEX_OUTPUT_ROOT}.c"
3695 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3696 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3697 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3699 cat >>confdefs.h <<\_ACEOF
3700 #define YYTEXT_POINTER 1
3706 if test "$LEX" = :; then
3707 LEX=${am_missing_run}flex
3709 # Find a good install program. We prefer a C program (faster),
3710 # so one script is as good as another. But avoid the broken or
3711 # incompatible versions:
3712 # SysV /etc/install, /usr/sbin/install
3713 # SunOS /usr/etc/install
3714 # IRIX /sbin/install
3716 # AmigaOS /C/install, which installs bootblocks on floppy discs
3717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3720 # OS/2's system install, which has a completely different semantic
3721 # ./install, which can be erroneously created by make from ./install.sh.
3722 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3723 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3724 if test -z "$INSTALL"; then
3725 if test "${ac_cv_path_install+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir=.
3733 # Account for people who put trailing slashes in PATH elements.
3735 ./ | .// | /cC/* | \
3736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3737 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3740 # OSF1 and SCO ODT 3.0 have their own names for install.
3741 # Don't use installbsd from OSF since it installs stuff as root
3743 for ac_prog in ginstall scoinst install; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3746 if test $ac_prog = install &&
3747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3748 # AIX install. It has an incompatible calling convention.
3750 elif test $ac_prog = install &&
3751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3752 # program-specific install script used by HP pwplus--don't use.
3755 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3767 if test "${ac_cv_path_install+set}" = set; then
3768 INSTALL=$ac_cv_path_install
3770 # As a last resort, use the slow shell script. We don't cache a
3771 # path for INSTALL within a source directory, because that will
3772 # break other packages using the cache if that directory is
3773 # removed, or if the path is relative.
3774 INSTALL=$ac_install_sh
3777 echo "$as_me:$LINENO: result: $INSTALL" >&5
3778 echo "${ECHO_T}$INSTALL" >&6
3780 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3781 # It thinks the first close brace ends the variable substitution.
3782 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3784 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3786 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3791 if test "$LN_S" = "ln -s"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3799 if test -n "$ac_tool_prefix"; then
3800 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_RANLIB+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -n "$RANLIB"; then
3808 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 RANLIB=$ac_cv_prog_RANLIB
3827 if test -n "$RANLIB"; then
3828 echo "$as_me:$LINENO: result: $RANLIB" >&5
3829 echo "${ECHO_T}$RANLIB" >&6
3831 echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3836 if test -z "$ac_cv_prog_RANLIB"; then
3837 ac_ct_RANLIB=$RANLIB
3838 # Extract the first word of "ranlib", so it can be a program name with args.
3839 set dummy ranlib; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 if test -n "$ac_ct_RANLIB"; then
3846 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_ac_ct_RANLIB="ranlib"
3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3865 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3866 if test -n "$ac_ct_RANLIB"; then
3867 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3868 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3870 echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3874 RANLIB=$ac_ct_RANLIB
3876 RANLIB="$ac_cv_prog_RANLIB"
3879 for ac_prog in 'bison -y' byacc
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_YACC+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$YACC"; then
3889 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_YACC="$ac_prog"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 YACC=$ac_cv_prog_YACC
3908 if test -n "$YACC"; then
3909 echo "$as_me:$LINENO: result: $YACC" >&5
3910 echo "${ECHO_T}$YACC" >&6
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 test -n "$YACC" && break
3918 test -n "$YACC" || YACC="yacc"
3920 for ac_prog in gawk mawk nawk awk
3922 # Extract the first word of "$ac_prog", so it can be a program name with args.
3923 set dummy $ac_prog; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_AWK+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test -n "$AWK"; then
3930 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_AWK="$ac_prog"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 if test -n "$AWK"; then
3950 echo "$as_me:$LINENO: result: $AWK" >&5
3951 echo "${ECHO_T}$AWK" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3957 test -n "$AWK" && break
3961 # Extract the first word of "xml2-config", so it can be a program name with args.
3962 set dummy xml2-config; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_XML_CONFIG+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
3991 XML_CONFIG=$ac_cv_path_XML_CONFIG
3993 if test -n "$XML_CONFIG"; then
3994 echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
3995 echo "${ECHO_T}$XML_CONFIG" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4002 if test $XML_CONFIG = "no"
4004 echo "XML library not found (see http://xmlsoft.org/)."
4010 echo "$as_me:$LINENO: checking for X" >&5
4011 echo $ECHO_N "checking for X... $ECHO_C" >&6
4014 # Check whether --with-x or --without-x was given.
4015 if test "${with_x+set}" = set; then
4019 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4020 if test "x$with_x" = xno; then
4021 # The user explicitly disabled X.
4024 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4025 # Both variables are already set.
4028 if test "${ac_cv_have_x+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 # One or both of the vars are not set, and there is no cached value.
4032 ac_x_includes=no ac_x_libraries=no
4034 if mkdir conftest.dir; then
4036 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4037 cat >Imakefile <<'_ACEOF'
4039 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4041 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4042 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4043 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4044 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4045 for ac_extension in a so sl; do
4046 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4047 test -f $ac_im_libdir/libX11.$ac_extension; then
4048 ac_im_usrlibdir=$ac_im_libdir; break
4051 # Screen out bogus values from the imake configuration. They are
4052 # bogus both because they are the default anyway, and because
4053 # using them would break gcc on systems where it needs fixed includes.
4054 case $ac_im_incroot in
4056 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4058 case $ac_im_usrlibdir in
4060 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4067 # Standard set of common directories for X headers.
4068 # Check X11 before X11Rn because it is often a symlink to the current release.
4080 /usr/local/X11/include
4081 /usr/local/X11R6/include
4082 /usr/local/X11R5/include
4083 /usr/local/X11R4/include
4085 /usr/local/include/X11
4086 /usr/local/include/X11R6
4087 /usr/local/include/X11R5
4088 /usr/local/include/X11R4
4092 /usr/XFree86/include/X11
4096 /usr/unsupported/include
4098 /usr/local/x11r5/include
4099 /usr/lpp/Xamples/include
4101 /usr/openwin/include
4102 /usr/openwin/share/include'
4104 if test "$ac_x_includes" = no; then
4105 # Guess where to find include files, by looking for Intrinsic.h.
4106 # First, try using that file with no special directory specified.
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <X11/Intrinsic.h>
4115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null; then
4123 if test -s conftest.err; then
4124 ac_cpp_err=$ac_c_preproc_warn_flag
4125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4132 if test -z "$ac_cpp_err"; then
4133 # We can compile using X headers with no special include directory.
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 for ac_dir in $ac_x_header_dirs; do
4140 if test -r "$ac_dir/X11/Intrinsic.h"; then
4141 ac_x_includes=$ac_dir
4146 rm -f conftest.err conftest.$ac_ext
4147 fi # $ac_x_includes = no
4149 if test "$ac_x_libraries" = no; then
4150 # Check for the libraries.
4151 # See if we find them without any special options.
4152 # Don't add to $LIBS permanently.
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <X11/Intrinsic.h>
4170 rm -f conftest.$ac_objext conftest$ac_exeext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172 (eval $ac_link) 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest$ac_exeext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4193 # We can link X programs with no special library path.
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4200 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4202 # Don't even attempt the hair of trying to link an X program!
4203 for ac_extension in a so sl; do
4204 if test -r $ac_dir/libXt.$ac_extension; then
4205 ac_x_libraries=$ac_dir
4211 rm -f conftest.err conftest.$ac_objext \
4212 conftest$ac_exeext conftest.$ac_ext
4213 fi # $ac_x_libraries = no
4215 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4216 # Didn't find X anywhere. Cache the known absence of X.
4217 ac_cv_have_x="have_x=no"
4219 # Record where we found X for the cache.
4220 ac_cv_have_x="have_x=yes \
4221 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4226 eval "$ac_cv_have_x"
4229 if test "$have_x" != yes; then
4230 echo "$as_me:$LINENO: result: $have_x" >&5
4231 echo "${ECHO_T}$have_x" >&6
4234 # If each of the values was on the command line, it overrides each guess.
4235 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4236 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4237 # Update the cache value to reflect the command line values.
4238 ac_cv_have_x="have_x=yes \
4239 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4240 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4241 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4244 if test "$no_x" = yes; then
4245 # Not all programs may use this symbol, but it does not hurt to define it.
4247 cat >>confdefs.h <<\_ACEOF
4248 #define X_DISPLAY_MISSING 1
4251 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4253 if test -n "$x_includes"; then
4254 X_CFLAGS="$X_CFLAGS -I$x_includes"
4257 # It would also be nice to do this for all -L options, not just this one.
4258 if test -n "$x_libraries"; then
4259 X_LIBS="$X_LIBS -L$x_libraries"
4260 # For Solaris; some versions of Sun CC require a space after -R and
4261 # others require no space. Words are not sufficient . . . .
4262 case `(uname -sr) 2>/dev/null` in
4264 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4265 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4266 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4282 rm -f conftest.$ac_objext conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest$ac_exeext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4311 rm -f conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4313 if test $ac_R_nospace = yes; then
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4316 X_LIBS="$X_LIBS -R$x_libraries"
4318 LIBS="$ac_xsave_LIBS -R $x_libraries"
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>conftest.er1
4338 grep -v '^ *+' conftest.er1 >conftest.err
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -z "$ac_c_werror_flag"
4344 || test ! -s conftest.err'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try='test -s conftest$ac_exeext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4363 rm -f conftest.err conftest.$ac_objext \
4364 conftest$ac_exeext conftest.$ac_ext
4365 if test $ac_R_space = yes; then
4366 echo "$as_me:$LINENO: result: yes" >&5
4367 echo "${ECHO_T}yes" >&6
4368 X_LIBS="$X_LIBS -R $x_libraries"
4370 echo "$as_me:$LINENO: result: neither works" >&5
4371 echo "${ECHO_T}neither works" >&6
4378 # Check for system-dependent libraries X programs must link with.
4379 # Do this before checking for the system-independent R6 libraries
4380 # (-lICE), since we may need -lsocket or whatever for X linking.
4382 if test "$ISC" = yes; then
4383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4385 # Martyn Johnson says this is needed for Ultrix, if the X
4386 # libraries were built with DECnet support. And Karl Berry says
4387 # the Alpha needs dnet_stub (dnet does not exist).
4388 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4389 cat >conftest.$ac_ext <<_ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4396 /* Override any gcc2 internal prototype to avoid an error. */
4400 /* We use char because int might match the return type of a gcc2
4401 builtin and then its argument prototype would still apply. */
4402 char XOpenDisplay ();
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4413 (eval $ac_link) 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } &&
4420 { ac_try='test -z "$ac_c_werror_flag"
4421 || test ! -s conftest.err'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try='test -s conftest$ac_exeext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4439 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4440 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 ac_check_lib_save_LIBS=$LIBS
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4452 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4467 rm -f conftest.$ac_objext conftest$ac_exeext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469 (eval $ac_link) 2>conftest.er1
4471 grep -v '^ *+' conftest.er1 >conftest.err
4473 cat conftest.err >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try='test -z "$ac_c_werror_flag"
4477 || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest$ac_exeext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_lib_dnet_dnet_ntoa=yes
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 ac_cv_lib_dnet_dnet_ntoa=no
4496 rm -f conftest.err conftest.$ac_objext \
4497 conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4500 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4501 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4502 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4503 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4506 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4507 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4508 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4509 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 ac_check_lib_save_LIBS=$LIBS
4513 LIBS="-ldnet_stub $LIBS"
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4521 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4536 rm -f conftest.$ac_objext conftest$ac_exeext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538 (eval $ac_link) 2>conftest.er1
4540 grep -v '^ *+' conftest.er1 >conftest.err
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try='test -z "$ac_c_werror_flag"
4546 || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest$ac_exeext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_cv_lib_dnet_stub_dnet_ntoa=no
4565 rm -f conftest.err conftest.$ac_objext \
4566 conftest$ac_exeext conftest.$ac_ext
4567 LIBS=$ac_check_lib_save_LIBS
4569 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4570 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4571 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4572 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4577 rm -f conftest.err conftest.$ac_objext \
4578 conftest$ac_exeext conftest.$ac_ext
4579 LIBS="$ac_xsave_LIBS"
4581 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4582 # to get the SysV transport functions.
4583 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4585 # The nsl library prevents programs from opening the X display
4586 # on Irix 5.2, according to T.E. Dickey.
4587 # The functions gethostbyname, getservbyname, and inet_addr are
4588 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4589 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4590 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4591 if test "${ac_cv_func_gethostbyname+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4602 #define gethostbyname innocuous_gethostbyname
4604 /* System header to define __stub macros and hopefully few prototypes,
4605 which can conflict with char gethostbyname (); below.
4606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607 <limits.h> exists even on freestanding compilers. */
4610 # include <limits.h>
4612 # include <assert.h>
4615 #undef gethostbyname
4617 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4624 char gethostbyname ();
4625 /* The GNU C library defines this for functions which it implements
4626 to always fail with ENOSYS. Some functions are actually named
4627 something starting with __ and the normal name is an alias. */
4628 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4631 char (*f) () = gethostbyname;
4640 return f != gethostbyname;
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4647 (eval $ac_link) 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -z "$ac_c_werror_flag"
4655 || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try='test -s conftest$ac_exeext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 ac_cv_func_gethostbyname=yes
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 ac_cv_func_gethostbyname=no
4674 rm -f conftest.err conftest.$ac_objext \
4675 conftest$ac_exeext conftest.$ac_ext
4677 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4678 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4680 if test $ac_cv_func_gethostbyname = no; then
4681 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4682 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4683 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 ac_check_lib_save_LIBS=$LIBS
4688 cat >conftest.$ac_ext <<_ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4695 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4701 char gethostbyname ();
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>conftest.er1
4714 grep -v '^ *+' conftest.er1 >conftest.err
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest$ac_exeext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_lib_nsl_gethostbyname=yes
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4737 ac_cv_lib_nsl_gethostbyname=no
4739 rm -f conftest.err conftest.$ac_objext \
4740 conftest$ac_exeext conftest.$ac_ext
4741 LIBS=$ac_check_lib_save_LIBS
4743 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4744 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4745 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4746 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4749 if test $ac_cv_lib_nsl_gethostbyname = no; then
4750 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4751 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4752 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 ac_check_lib_save_LIBS=$LIBS
4757 cat >conftest.$ac_ext <<_ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4764 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770 char gethostbyname ();
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4781 (eval $ac_link) 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -z "$ac_c_werror_flag"
4789 || test ! -s conftest.err'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; } &&
4795 { ac_try='test -s conftest$ac_exeext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 ac_cv_lib_bsd_gethostbyname=yes
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 ac_cv_lib_bsd_gethostbyname=no
4808 rm -f conftest.err conftest.$ac_objext \
4809 conftest$ac_exeext conftest.$ac_ext
4810 LIBS=$ac_check_lib_save_LIBS
4812 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4813 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4814 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4821 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4822 # socket/setsockopt and other routines are undefined under SCO ODT
4823 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4824 # on later versions), says Simon Leinen: it contains gethostby*
4825 # variants that don't use the name server (or something). -lsocket
4826 # must be given before -lnsl if both are needed. We assume that
4827 # if connect needs -lnsl, so does gethostbyname.
4828 echo "$as_me:$LINENO: checking for connect" >&5
4829 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4830 if test "${ac_cv_func_connect+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4841 #define connect innocuous_connect
4843 /* System header to define __stub macros and hopefully few prototypes,
4844 which can conflict with char connect (); below.
4845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 <limits.h> exists even on freestanding compilers. */
4849 # include <limits.h>
4851 # include <assert.h>
4856 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4864 /* The GNU C library defines this for functions which it implements
4865 to always fail with ENOSYS. Some functions are actually named
4866 something starting with __ and the normal name is an alias. */
4867 #if defined (__stub_connect) || defined (__stub___connect)
4870 char (*f) () = connect;
4879 return f != connect;
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886 (eval $ac_link) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 ac_cv_func_connect=yes
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 ac_cv_func_connect=no
4913 rm -f conftest.err conftest.$ac_objext \
4914 conftest$ac_exeext conftest.$ac_ext
4916 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4917 echo "${ECHO_T}$ac_cv_func_connect" >&6
4919 if test $ac_cv_func_connect = no; then
4920 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4921 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4922 if test "${ac_cv_lib_socket_connect+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 ac_check_lib_save_LIBS=$LIBS
4926 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4927 cat >conftest.$ac_ext <<_ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951 (eval $ac_link) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_socket_connect=yes
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 ac_cv_lib_socket_connect=no
4978 rm -f conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4983 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4984 if test $ac_cv_lib_socket_connect = yes; then
4985 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4990 # Guillermo Gomez says -lposix is necessary on A/UX.
4991 echo "$as_me:$LINENO: checking for remove" >&5
4992 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4993 if test "${ac_cv_func_remove+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5004 #define remove innocuous_remove
5006 /* System header to define __stub macros and hopefully few prototypes,
5007 which can conflict with char remove (); below.
5008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009 <limits.h> exists even on freestanding compilers. */
5012 # include <limits.h>
5014 # include <assert.h>
5019 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5027 /* The GNU C library defines this for functions which it implements
5028 to always fail with ENOSYS. Some functions are actually named
5029 something starting with __ and the normal name is an alias. */
5030 #if defined (__stub_remove) || defined (__stub___remove)
5033 char (*f) () = remove;
5047 rm -f conftest.$ac_objext conftest$ac_exeext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049 (eval $ac_link) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -z "$ac_c_werror_flag"
5057 || test ! -s conftest.err'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; } &&
5063 { ac_try='test -s conftest$ac_exeext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 ac_cv_func_remove=yes
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 ac_cv_func_remove=no
5076 rm -f conftest.err conftest.$ac_objext \
5077 conftest$ac_exeext conftest.$ac_ext
5079 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5080 echo "${ECHO_T}$ac_cv_func_remove" >&6
5082 if test $ac_cv_func_remove = no; then
5083 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5084 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5085 if test "${ac_cv_lib_posix_remove+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 ac_check_lib_save_LIBS=$LIBS
5089 LIBS="-lposix $LIBS"
5090 cat >conftest.$ac_ext <<_ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5097 /* Override any gcc2 internal prototype to avoid an error. */
5101 /* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5112 rm -f conftest.$ac_objext conftest$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114 (eval $ac_link) 2>conftest.er1
5116 grep -v '^ *+' conftest.er1 >conftest.err
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } &&
5121 { ac_try='test -z "$ac_c_werror_flag"
5122 || test ! -s conftest.err'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; } &&
5128 { ac_try='test -s conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_lib_posix_remove=yes
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 ac_cv_lib_posix_remove=no
5141 rm -f conftest.err conftest.$ac_objext \
5142 conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5145 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5146 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5147 if test $ac_cv_lib_posix_remove = yes; then
5148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5153 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5154 echo "$as_me:$LINENO: checking for shmat" >&5
5155 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5156 if test "${ac_cv_func_shmat+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 cat >conftest.$ac_ext <<_ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5167 #define shmat innocuous_shmat
5169 /* System header to define __stub macros and hopefully few prototypes,
5170 which can conflict with char shmat (); below.
5171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172 <limits.h> exists even on freestanding compilers. */
5175 # include <limits.h>
5177 # include <assert.h>
5182 /* Override any gcc2 internal prototype to avoid an error. */
5187 /* We use char because int might match the return type of a gcc2
5188 builtin and then its argument prototype would still apply. */
5190 /* The GNU C library defines this for functions which it implements
5191 to always fail with ENOSYS. Some functions are actually named
5192 something starting with __ and the normal name is an alias. */
5193 #if defined (__stub_shmat) || defined (__stub___shmat)
5196 char (*f) () = shmat;
5210 rm -f conftest.$ac_objext conftest$ac_exeext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212 (eval $ac_link) 2>conftest.er1
5214 grep -v '^ *+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } &&
5219 { ac_try='test -z "$ac_c_werror_flag"
5220 || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest$ac_exeext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_func_shmat=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5239 rm -f conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5242 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5243 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5245 if test $ac_cv_func_shmat = no; then
5246 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5247 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5248 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 ac_check_lib_save_LIBS=$LIBS
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5260 /* Override any gcc2 internal prototype to avoid an error. */
5264 /* We use char because int might match the return type of a gcc2
5265 builtin and then its argument prototype would still apply. */
5275 rm -f conftest.$ac_objext conftest$ac_exeext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277 (eval $ac_link) 2>conftest.er1
5279 grep -v '^ *+' conftest.er1 >conftest.err
5281 cat conftest.err >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try='test -z "$ac_c_werror_flag"
5285 || test ! -s conftest.err'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; } &&
5291 { ac_try='test -s conftest$ac_exeext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 ac_cv_lib_ipc_shmat=yes
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_cv_lib_ipc_shmat=no
5304 rm -f conftest.err conftest.$ac_objext \
5305 conftest$ac_exeext conftest.$ac_ext
5306 LIBS=$ac_check_lib_save_LIBS
5308 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5309 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5310 if test $ac_cv_lib_ipc_shmat = yes; then
5311 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5317 # Check for libraries that X11R6 Xt/Xaw programs need.
5318 ac_save_LDFLAGS=$LDFLAGS
5319 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5320 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5321 # check for ICE first), but we must link in the order -lSM -lICE or
5322 # we get undefined symbols. So assume we have SM if we have ICE.
5323 # These have to be linked with before -lX11, unlike the other
5324 # libraries we check for below, so use a different variable.
5325 # John Interrante, Karl Berry
5326 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5327 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5328 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 ac_check_lib_save_LIBS=$LIBS
5332 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5340 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5346 char IceConnectionNumber ();
5350 IceConnectionNumber ();
5355 rm -f conftest.$ac_objext conftest$ac_exeext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5357 (eval $ac_link) 2>conftest.er1
5359 grep -v '^ *+' conftest.er1 >conftest.err
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -z "$ac_c_werror_flag"
5365 || test ! -s conftest.err'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; } &&
5371 { ac_try='test -s conftest$ac_exeext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5377 ac_cv_lib_ICE_IceConnectionNumber=yes
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5382 ac_cv_lib_ICE_IceConnectionNumber=no
5384 rm -f conftest.err conftest.$ac_objext \
5385 conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
5388 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5389 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5390 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5391 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5394 LDFLAGS=$ac_save_LDFLAGS
5399 XML_CFLAGS=`$XML_CONFIG --cflags`
5400 XML_LFLAGS=`$XML_CONFIG --libs`
5402 LIBS="$LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
5403 LIBS="$LIBS -L/usr/local/lib $XML_LFLAGS"
5404 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS "
5405 CXXFLAGS="$CXXFLAGS -Wno-deprecated $X_CFLAGS $XML_CFLAGS"
5408 echo "$as_me:$LINENO: checking for main in -lAXE" >&5
5409 echo $ECHO_N "checking for main in -lAXE... $ECHO_C" >&6
5410 if test "${ac_cv_lib_AXE_main+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 ac_check_lib_save_LIBS=$LIBS
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433 (eval $ac_link) 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest$ac_exeext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_cv_lib_AXE_main=yes
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_cv_lib_AXE_main=no
5460 rm -f conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
5462 LIBS=$ac_check_lib_save_LIBS
5464 echo "$as_me:$LINENO: result: $ac_cv_lib_AXE_main" >&5
5465 echo "${ECHO_T}$ac_cv_lib_AXE_main" >&6
5466 if test $ac_cv_lib_AXE_main = yes; then
5467 cat >>confdefs.h <<_ACEOF
5468 #define HAVE_LIBAXE 1
5474 { { echo "$as_me:$LINENO: error: AXE Library is not installed" >&5
5475 echo "$as_me: error: AXE Library is not installed" >&2;}
5476 { (exit 1); exit 1; }; }
5479 #AC_CHECK_LIB(X11, XOpenDisplay)
5480 #AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData)
5481 #AC_CHECK_LIB(pthread, pthread_create)
5483 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
5484 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
5485 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 ac_check_lib_save_LIBS=$LIBS
5490 cat >conftest.$ac_ext <<_ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5497 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */
5503 char xmlParseFile ();
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>conftest.er1
5516 grep -v '^ *+' conftest.er1 >conftest.err
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_lib_xml2_xmlParseFile=yes
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 ac_cv_lib_xml2_xmlParseFile=no
5541 rm -f conftest.err conftest.$ac_objext \
5542 conftest$ac_exeext conftest.$ac_ext
5543 LIBS=$ac_check_lib_save_LIBS
5545 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
5546 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
5547 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
5548 cat >>confdefs.h <<_ACEOF
5549 #define HAVE_LIBXML2 1
5557 # Find PostgreSQL includes and libraries
5558 for ac_prog in pqxx-config
5560 # Extract the first word of "$ac_prog", so it can be a program name with args.
5561 set dummy $ac_prog; ac_word=$2
5562 echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 PG_CONFIG=$ac_cv_path_PG_CONFIG
5591 if test -n "$PG_CONFIG"; then
5592 echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
5593 echo "${ECHO_T}$PG_CONFIG" >&6
5595 echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6
5599 test -n "$PG_CONFIG" && break
5602 if test -z "$PG_CONFIG" || test ! -r "$PG_CONFIG"; then
5603 { { echo "$as_me:$LINENO: error: libpqxx configuration script was not found" >&5
5604 echo "$as_me: error: libpqxx configuration script was not found" >&2;}
5605 { (exit 1); exit 1; }; }
5607 with_postgres_include=`$PG_CONFIG --cflags`
5608 { echo "$as_me:$LINENO: using PostgreSQL headers at $with_postgres_include" >&5
5609 echo "$as_me: using PostgreSQL headers at $with_postgres_include" >&6;}
5610 with_postgres_lib=`$PG_CONFIG --libs`
5611 { echo "$as_me:$LINENO: using PostgreSQL libraries at $with_postgres_lib" >&5
5612 echo "$as_me: using PostgreSQL libraries at $with_postgres_lib" >&6;}
5616 POSTGRES_LIB="${with_postgres_lib}"
5618 POSTGRES_INCLUDE="${with_postgres_include}"
5622 # Checks for libraries.
5624 echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
5625 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6
5626 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 ac_check_lib_save_LIBS=$LIBS
5630 LIBS="-lpq -L${with_postgres_lib} $LIBS"
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5638 /* Override any gcc2 internal prototype to avoid an error. */
5642 /* We use char because int might match the return type of a gcc2
5643 builtin and then its argument prototype would still apply. */
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -z "$ac_c_werror_flag"
5663 || test ! -s conftest.err'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try='test -s conftest$ac_exeext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_lib_pq_PQexec=yes
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 ac_cv_lib_pq_PQexec=no
5682 rm -f conftest.err conftest.$ac_objext \
5683 conftest$ac_exeext conftest.$ac_ext
5684 LIBS=$ac_check_lib_save_LIBS
5686 echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
5687 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6
5688 if test $ac_cv_lib_pq_PQexec = yes; then
5689 cat >>confdefs.h <<_ACEOF
5690 #define HAVE_LIBPQ 1
5696 { { echo "$as_me:$LINENO: error: Failed to find a suitable libpq.
5698 PostgreSQL's libpq needs to be installed.
5699 Perhaps you need to specify --with-postgres-lib?
5701 echo "$as_me: error: Failed to find a suitable libpq.
5703 PostgreSQL's libpq needs to be installed.
5704 Perhaps you need to specify --with-postgres-lib?
5706 { (exit 1); exit 1; }; }
5711 CXXFLAGS="$CXXFLAGS $POSTGRES_INCLUDE"
5712 LIBS="$LIBS $POSTGRES_LIB"
5715 # There is no convenient way to detect libpqxx, so we'll
5716 # use fixed paths for the time being.
5718 CXXFLAGS="$CXXFLAGS -I/usr/local/pqxx/include"
5719 LIBS="$LIBS -L/usr/local/pqxx/lib -lpqxx"
5727 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5728 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5729 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5730 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>conftest.er1
5756 grep -v '^ *+' conftest.er1 >conftest.err
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 eval "$as_ac_Header=yes"
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 eval "$as_ac_Header=no"
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5786 cat >>confdefs.h <<_ACEOF
5787 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5790 ac_header_dirent=$ac_hdr; break
5794 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5795 if test $ac_header_dirent = dirent.h; then
5796 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5797 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5798 if test "${ac_cv_search_opendir+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 ac_func_search_save_LIBS=$LIBS
5802 ac_cv_search_opendir=no
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5810 /* Override any gcc2 internal prototype to avoid an error. */
5814 /* We use char because int might match the return type of a gcc2
5815 builtin and then its argument prototype would still apply. */
5825 rm -f conftest.$ac_objext conftest$ac_exeext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5827 (eval $ac_link) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest$ac_exeext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_search_opendir="none required"
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5853 rm -f conftest.err conftest.$ac_objext \
5854 conftest$ac_exeext conftest.$ac_ext
5855 if test "$ac_cv_search_opendir" = no; then
5856 for ac_lib in dir; do
5857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5858 cat >conftest.$ac_ext <<_ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5865 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5880 rm -f conftest.$ac_objext conftest$ac_exeext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882 (eval $ac_link) 2>conftest.er1
5884 grep -v '^ *+' conftest.er1 >conftest.err
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest$ac_exeext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_cv_search_opendir="-l$ac_lib"
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5909 rm -f conftest.err conftest.$ac_objext \
5910 conftest$ac_exeext conftest.$ac_ext
5913 LIBS=$ac_func_search_save_LIBS
5915 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5916 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5917 if test "$ac_cv_search_opendir" != no; then
5918 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5923 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5924 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5925 if test "${ac_cv_search_opendir+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 ac_func_search_save_LIBS=$LIBS
5929 ac_cv_search_opendir=no
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5937 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>conftest.er1
5956 grep -v '^ *+' conftest.er1 >conftest.err
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try='test -z "$ac_c_werror_flag"
5962 || test ! -s conftest.err'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest$ac_exeext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 ac_cv_search_opendir="none required"
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5980 rm -f conftest.err conftest.$ac_objext \
5981 conftest$ac_exeext conftest.$ac_ext
5982 if test "$ac_cv_search_opendir" = no; then
5984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5992 /* Override any gcc2 internal prototype to avoid an error. */
5996 /* We use char because int might match the return type of a gcc2
5997 builtin and then its argument prototype would still apply. */
6007 rm -f conftest.$ac_objext conftest$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009 (eval $ac_link) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_search_opendir="-l$ac_lib"
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6036 rm -f conftest.err conftest.$ac_objext \
6037 conftest$ac_exeext conftest.$ac_ext
6040 LIBS=$ac_func_search_save_LIBS
6042 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6043 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6044 if test "$ac_cv_search_opendir" != no; then
6045 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6051 echo "$as_me:$LINENO: checking for egrep" >&5
6052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6053 if test "${ac_cv_prog_egrep+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6057 then ac_cv_prog_egrep='grep -E'
6058 else ac_cv_prog_egrep='egrep'
6061 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6062 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6063 EGREP=$ac_cv_prog_egrep
6066 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6067 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6068 if test "${ac_cv_header_stdc+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6090 rm -f conftest.$ac_objext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>conftest.er1
6094 grep -v '^ *+' conftest.er1 >conftest.err
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -z "$ac_c_werror_flag"
6100 || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_header_stdc=yes
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_cv_header_stdc=no
6119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121 if test $ac_cv_header_stdc = yes; then
6122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6123 cat >conftest.$ac_ext <<_ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133 $EGREP "memchr" >/dev/null 2>&1; then
6136 ac_cv_header_stdc=no
6142 if test $ac_cv_header_stdc = yes; then
6143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6144 cat >conftest.$ac_ext <<_ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6154 $EGREP "free" >/dev/null 2>&1; then
6157 ac_cv_header_stdc=no
6163 if test $ac_cv_header_stdc = yes; then
6164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6165 if test "$cross_compiling" = yes; then
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6175 #if ((' ' & 0x0FF) == 0x020)
6176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6179 # define ISLOWER(c) \
6180 (('a' <= (c) && (c) <= 'i') \
6181 || ('j' <= (c) && (c) <= 'r') \
6182 || ('s' <= (c) && (c) <= 'z'))
6183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6191 for (i = 0; i < 256; i++)
6192 if (XOR (islower (i), ISLOWER (i))
6193 || toupper (i) != TOUPPER (i))
6198 rm -f conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200 (eval $ac_link) 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6211 echo "$as_me: program exited with status $ac_status" >&5
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6216 ac_cv_header_stdc=no
6218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6222 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6223 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6224 if test $ac_cv_header_stdc = yes; then
6226 cat >>confdefs.h <<\_ACEOF
6227 #define STDC_HEADERS 1
6232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6243 inttypes.h stdint.h unistd.h
6245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6246 echo "$as_me:$LINENO: checking for $ac_header" >&5
6247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 cat >conftest.$ac_ext <<_ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 $ac_includes_default
6259 #include <$ac_header>
6261 rm -f conftest.$ac_objext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>conftest.er1
6265 grep -v '^ *+' conftest.er1 >conftest.err
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -z "$ac_c_werror_flag"
6271 || test ! -s conftest.err'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 eval "$as_ac_Header=yes"
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 eval "$as_ac_Header=no"
6290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6295 cat >>confdefs.h <<_ACEOF
6296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6305 for ac_header in unistd.h
6307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309 echo "$as_me:$LINENO: checking for $ac_header" >&5
6310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6317 # Is the header compilable?
6318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6320 cat >conftest.$ac_ext <<_ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 $ac_includes_default
6327 #include <$ac_header>
6329 rm -f conftest.$ac_objext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>conftest.er1
6333 grep -v '^ *+' conftest.er1 >conftest.err
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -z "$ac_c_werror_flag"
6339 || test ! -s conftest.err'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; } &&
6345 { ac_try='test -s conftest.$ac_objext'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 ac_header_compiler=yes
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 ac_header_compiler=no
6358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6360 echo "${ECHO_T}$ac_header_compiler" >&6
6362 # Is the header present?
6363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6365 cat >conftest.$ac_ext <<_ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 #include <$ac_header>
6373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6376 grep -v '^ *+' conftest.er1 >conftest.err
6378 cat conftest.err >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } >/dev/null; then
6381 if test -s conftest.err; then
6382 ac_cpp_err=$ac_c_preproc_warn_flag
6383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6390 if test -z "$ac_cpp_err"; then
6391 ac_header_preproc=yes
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6396 ac_header_preproc=no
6398 rm -f conftest.err conftest.$ac_ext
6399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6400 echo "${ECHO_T}$ac_header_preproc" >&6
6402 # So? What about this header?
6403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6409 ac_header_preproc=yes
6412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6426 ## ------------------------------------------ ##
6427 ## Report this to the AC_PACKAGE_NAME lists. ##
6428 ## ------------------------------------------ ##
6431 sed "s/^/$as_me: WARNING: /" >&2
6434 echo "$as_me:$LINENO: checking for $ac_header" >&5
6435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 eval "$as_ac_Header=\$ac_header_preproc"
6441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6446 cat >>confdefs.h <<_ACEOF
6447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6455 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6456 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6457 if test "${ac_cv_c_const+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6470 /* FIXME: Include the comments suggested by Paul. */
6472 /* Ultrix mips cc rejects this. */
6473 typedef int charset[2];
6475 /* SunOS 4.1.1 cc rejects this. */
6476 char const *const *ccp;
6478 /* NEC SVR4.0.2 mips cc rejects this. */
6479 struct point {int x, y;};
6480 static struct point const zero = {0,0};
6481 /* AIX XL C 1.02.0.0 rejects this.
6482 It does not let you subtract one const X* pointer from another in
6483 an arm of an if-expression whose if-part is not a constant
6485 const char *g = "string";
6486 ccp = &g + (g ? g-g : 0);
6487 /* HPUX 7.0 cc rejects these. */
6490 ccp = (char const *const *) p;
6491 { /* SCO 3.2v4 cc rejects this. */
6493 char const *s = 0 ? (char *) 0 : (char const *) 0;
6497 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6499 const int *foo = &x[0];
6502 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6503 typedef const int *iptr;
6507 { /* AIX XL C 1.02.0.0 rejects this saying
6508 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6509 struct s { int j; const int *ap[3]; };
6510 struct s *b; b->j = 5;
6512 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6553 echo "${ECHO_T}$ac_cv_c_const" >&6
6554 if test $ac_cv_c_const = no; then
6556 cat >>confdefs.h <<\_ACEOF
6566 for ac_func in strtod strtol strtoul
6568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6569 echo "$as_me:$LINENO: checking for $ac_func" >&5
6570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6571 if eval "test \"\${$as_ac_var+set}\" = set"; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6582 #define $ac_func innocuous_$ac_func
6584 /* System header to define __stub macros and hopefully few prototypes,
6585 which can conflict with char $ac_func (); below.
6586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6587 <limits.h> exists even on freestanding compilers. */
6590 # include <limits.h>
6592 # include <assert.h>
6597 /* Override any gcc2 internal prototype to avoid an error. */
6602 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */
6605 /* The GNU C library defines this for functions which it implements
6606 to always fail with ENOSYS. Some functions are actually named
6607 something starting with __ and the normal name is an alias. */
6608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6611 char (*f) () = $ac_func;
6620 return f != $ac_func;
6625 rm -f conftest.$ac_objext conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627 (eval $ac_link) 2>conftest.er1
6629 grep -v '^ *+' conftest.er1 >conftest.err
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try='test -z "$ac_c_werror_flag"
6635 || test ! -s conftest.err'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 eval "$as_ac_var=yes"
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 eval "$as_ac_var=no"
6654 rm -f conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6659 if test `eval echo '${'$as_ac_var'}'` = yes; then
6660 cat >>confdefs.h <<_ACEOF
6661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6669 DocumentRoot=/var/www/html
6671 #AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile src/web/Makefile)
6672 ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile"
6673 cat >confcache <<\_ACEOF
6674 # This file is a shell script that caches the results of configure
6675 # tests run on this system so they can be shared between configure
6676 # scripts and configure runs, see configure's option --config-cache.
6677 # It is not useful on other systems. If it contains results you don't
6678 # want to keep, you may remove or edit it.
6680 # config.status only pays attention to the cache file if you give it
6681 # the --recheck option to rerun configure.
6683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6689 # The following way of writing the cache mishandles newlines in values,
6690 # but we know of no workaround that is simple, portable, and efficient.
6691 # So, don't put newlines in cache variables' values.
6692 # Ultrix sh set writes to stderr and can't be redirected directly,
6693 # and sets the high bit in the cache file unless we assign to the vars.
6696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6698 # `set' does not quote correctly, so add quotes (double-quote
6699 # substitution turns \\\\ into \\, and sed turns \\ into \).
6702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6705 # `set' quotes correctly as required by POSIX, so do not add quotes.
6707 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6716 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6718 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6719 if test -w $cache_file; then
6720 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6721 cat confcache >$cache_file
6723 echo "not updating unwritable cache $cache_file"
6728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6729 # Let make expand exec_prefix.
6730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6732 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6733 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6734 # trailing colons and then remove the whole line if VPATH becomes empty
6735 # (actually we leave an empty line to preserve line numbers).
6736 if test "x$srcdir" = x.; then
6737 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6738 s/:*\$(srcdir):*/:/;
6739 s/:*\${srcdir}:*/:/;
6741 s/^\([^=]*=[ ]*\):*/\1/;
6747 # Transform confdefs.h into DEFS.
6748 # Protect against shell expansion while executing Makefile rules.
6749 # Protect against Makefile macro expansion.
6751 # If the first sed substitution is executed (which looks for macros that
6752 # take arguments), then we branch to the quote section. Otherwise,
6753 # look for a macro that doesn't take arguments.
6754 cat >confdef2opt.sed <<\_ACEOF
6757 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6759 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6763 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6769 # We use echo to avoid assuming a particular line-breaking character.
6770 # The extra dot is to prevent the shell from consuming trailing
6771 # line-breaks from the sub-command output. A line-break within
6772 # single-quotes doesn't work because, if this script is created in a
6773 # platform that uses two characters for line-breaks (e.g., DOS), tr
6775 ac_LF_and_DOT=`echo; echo .`
6776 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6777 rm -f confdef2opt.sed
6782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6783 # 1. Remove the extension, and $U if already installed.
6784 ac_i=`echo "$ac_i" |
6785 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6787 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6788 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6792 LTLIBOBJS=$ac_ltlibobjs
6795 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6796 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6797 Usually this means the macro was only invoked conditionally." >&5
6798 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6799 Usually this means the macro was only invoked conditionally." >&2;}
6800 { (exit 1); exit 1; }; }
6803 : ${CONFIG_STATUS=./config.status}
6804 ac_clean_files_save=$ac_clean_files
6805 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6806 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6807 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6808 cat >$CONFIG_STATUS <<_ACEOF
6810 # Generated by $as_me.
6811 # Run this file to recreate the current configuration.
6812 # Compiler output produced by configure, useful for debugging
6813 # configure, is in config.log if it exists.
6818 SHELL=\${CONFIG_SHELL-$SHELL}
6821 cat >>$CONFIG_STATUS <<\_ACEOF
6822 ## --------------------- ##
6823 ## M4sh Initialization. ##
6824 ## --------------------- ##
6826 # Be Bourne compatible
6827 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6830 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6831 # is contrary to our usage. Disable this feature.
6832 alias -g '${1+"$@"}'='"$@"'
6833 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6836 DUALCASE=1; export DUALCASE # for MKS sh
6838 # Support unset when possible.
6839 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6846 # Work around bugs in pre-3.0 UWIN ksh.
6847 $as_unset ENV MAIL MAILPATH
6854 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6855 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6856 LC_TELEPHONE LC_TIME
6858 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6859 eval $as_var=C; export $as_var
6865 # Required to use basename.
6866 if expr a : '\(a\)' >/dev/null 2>&1; then
6872 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6873 as_basename=basename
6879 # Name of the executable.
6880 as_me=`$as_basename "$0" ||
6881 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6882 X"$0" : 'X\(//\)$' \| \
6883 X"$0" : 'X\(/\)$' \| \
6884 . : '\(.\)' 2>/dev/null ||
6886 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6887 /^X\/\(\/\/\)$/{ s//\1/; q; }
6888 /^X\/\(\/\).*/{ s//\1/; q; }
6892 # PATH needs CR, and LINENO needs CR and PATH.
6893 # Avoid depending upon Character Ranges.
6894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6897 as_cr_digits='0123456789'
6898 as_cr_alnum=$as_cr_Letters$as_cr_digits
6900 # The user is always right.
6901 if test "${PATH_SEPARATOR+set}" != set; then
6902 echo "#! /bin/sh" >conf$$.sh
6903 echo "exit 0" >>conf$$.sh
6905 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6916 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6917 test "x$as_lineno_1" != "x$as_lineno_2" &&
6918 test "x$as_lineno_3" = "x$as_lineno_2" || {
6919 # Find who we are. Look in the path if we contain no path at all
6922 *[\\/]* ) as_myself=$0 ;;
6923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6933 # We did not find ourselves, most probably we were run as `sh COMMAND'
6934 # in which case we are not to be found in the path.
6935 if test "x$as_myself" = x; then
6938 if test ! -f "$as_myself"; then
6939 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6940 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6941 { (exit 1); exit 1; }; }
6943 case $CONFIG_SHELL in
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6949 test -z "$as_dir" && as_dir=.
6950 for as_base in sh bash ksh sh5; do
6953 if ("$as_dir/$as_base" -c '
6956 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6957 test "x$as_lineno_1" != "x$as_lineno_2" &&
6958 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6959 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6960 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6961 CONFIG_SHELL=$as_dir/$as_base
6963 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6971 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6972 # uniformly replaced by the line number. The first 'sed' inserts a
6973 # line-number line before each line; the second 'sed' does the real
6974 # work. The second script uses 'N' to pair each line-number line
6975 # with the numbered line, and appends trailing '-' during
6976 # substitution so that $LINENO is not a special case at line end.
6977 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6978 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6979 sed '=' <$as_myself |
6984 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6987 s,^['$as_cr_digits']*\n,,
6989 chmod +x $as_me.lineno ||
6990 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6991 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6992 { (exit 1); exit 1; }; }
6994 # Don't try to exec as it changes $[0], causing all sort of problems
6995 # (the dirname of $[0] is not the place where we might find the
6996 # original and so on. Autoconf is especially sensible to this).
6998 # Exit status is that of the last command.
7003 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7004 *c*,-n*) ECHO_N= ECHO_C='
7006 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7007 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7010 if expr a : '\(a\)' >/dev/null 2>&1; then
7016 rm -f conf$$ conf$$.exe conf$$.file
7018 if ln -s conf$$.file conf$$ 2>/dev/null; then
7019 # We could just check for DJGPP; but this test a) works b) is more generic
7020 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7021 if test -f conf$$.exe; then
7022 # Don't use ln at all; we don't have any links
7027 elif ln conf$$.file conf$$ 2>/dev/null; then
7032 rm -f conf$$ conf$$.exe conf$$.file
7034 if mkdir -p . 2>/dev/null; then
7037 test -d ./-p && rmdir ./-p
7041 as_executable_p="test -f"
7043 # Sed expression to map a string onto a valid CPP name.
7044 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7046 # Sed expression to map a string onto a valid variable name.
7047 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7051 # We need space, tab and new line, in precisely that order.
7061 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7062 # report actual input values of CONFIG_FILES etc. instead of their
7063 # values after options handling. Logging --version etc. is OK.
7067 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7068 ## Running $as_me. ##
7073 This file was extended by $as_me, which was
7074 generated by GNU Autoconf 2.59. Invocation command line was
7076 CONFIG_FILES = $CONFIG_FILES
7077 CONFIG_HEADERS = $CONFIG_HEADERS
7078 CONFIG_LINKS = $CONFIG_LINKS
7079 CONFIG_COMMANDS = $CONFIG_COMMANDS
7083 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7087 # Files that config.status was made for.
7088 if test -n "$ac_config_files"; then
7089 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7092 if test -n "$ac_config_headers"; then
7093 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7096 if test -n "$ac_config_links"; then
7097 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7100 if test -n "$ac_config_commands"; then
7101 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7104 cat >>$CONFIG_STATUS <<\_ACEOF
7107 \`$as_me' instantiates files from templates according to the
7108 current configuration.
7110 Usage: $0 [OPTIONS] [FILE]...
7112 -h, --help print this help, then exit
7113 -V, --version print version number, then exit
7114 -q, --quiet do not print progress messages
7115 -d, --debug don't remove temporary files
7116 --recheck update $as_me by reconfiguring in the same conditions
7117 --file=FILE[:TEMPLATE]
7118 instantiate the configuration file FILE
7120 Configuration files:
7123 Configuration commands:
7126 Report bugs to <bug-autoconf@gnu.org>."
7129 cat >>$CONFIG_STATUS <<_ACEOF
7132 configured by $0, generated by GNU Autoconf 2.59,
7133 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7135 Copyright (C) 2003 Free Software Foundation, Inc.
7136 This config.status script is free software; the Free Software Foundation
7137 gives unlimited permission to copy, distribute and modify it."
7142 cat >>$CONFIG_STATUS <<\_ACEOF
7143 # If no file are specified by the user, then we need to provide default
7144 # value. By we need to know if files were specified by the user.
7150 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7151 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7159 *) # This is not an option, so the user has probably given explicit
7162 ac_need_defaults=false;;
7166 # Handling of the options.
7168 cat >>$CONFIG_STATUS <<\_ACEOF
7169 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7171 --version | --vers* | -V )
7172 echo "$ac_cs_version"; exit 0 ;;
7174 # Conflict between --help and --header
7175 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7176 Try \`$0 --help' for more information." >&5
7177 echo "$as_me: error: ambiguous option: $1
7178 Try \`$0 --help' for more information." >&2;}
7179 { (exit 1); exit 1; }; };;
7180 --help | --hel | -h )
7181 echo "$ac_cs_usage"; exit 0 ;;
7182 --debug | --d* | -d )
7184 --file | --fil | --fi | --f )
7186 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7187 ac_need_defaults=false;;
7188 --header | --heade | --head | --hea )
7190 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7191 ac_need_defaults=false;;
7192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7197 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7198 Try \`$0 --help' for more information." >&5
7199 echo "$as_me: error: unrecognized option: $1
7200 Try \`$0 --help' for more information." >&2;}
7201 { (exit 1); exit 1; }; } ;;
7203 *) ac_config_targets="$ac_config_targets $1" ;;
7209 ac_configure_extra_args=
7211 if $ac_cs_silent; then
7213 ac_configure_extra_args="$ac_configure_extra_args --silent"
7217 cat >>$CONFIG_STATUS <<_ACEOF
7218 if \$ac_cs_recheck; then
7219 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7220 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7225 cat >>$CONFIG_STATUS <<_ACEOF
7227 # INIT-COMMANDS section.
7230 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7236 cat >>$CONFIG_STATUS <<\_ACEOF
7237 for ac_config_target in $ac_config_targets
7239 case "$ac_config_target" in
7240 # Handling of arguments.
7241 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7242 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7243 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
7244 "src/gcm_input/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gcm_input/Makefile" ;;
7245 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7246 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7247 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7248 { (exit 1); exit 1; }; };;
7252 # If the user did not use the arguments to specify the items to instantiate,
7253 # then the envvar interface is used. Set only those that are not.
7254 # We use the long form for the default assignment because of an extremely
7255 # bizarre bug on SunOS 4.1.3.
7256 if $ac_need_defaults; then
7257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7258 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7261 # Have a temporary directory for convenience. Make it in the build tree
7262 # simply because there is no reason to put it here, and in addition,
7263 # creating and moving files from /tmp can sometimes cause problems.
7264 # Create a temporary directory, and hook for its removal unless debugging.
7267 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7268 trap '{ (exit 1); exit 1; }' 1 2 13 15
7271 # Create a (secure) tmp directory for tmp files.
7274 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7275 test -n "$tmp" && test -d "$tmp"
7278 tmp=./confstat$$-$RANDOM
7279 (umask 077 && mkdir $tmp)
7282 echo "$me: cannot create a temporary directory in ." >&2
7283 { (exit 1); exit 1; }
7288 cat >>$CONFIG_STATUS <<_ACEOF
7291 # CONFIG_FILES section.
7294 # No need to generate the scripts if there are no CONFIG_FILES.
7295 # This happens for instance when ./config.status config.h
7296 if test -n "\$CONFIG_FILES"; then
7297 # Protect against being on the right side of a sed subst in config.status.
7298 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7299 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7300 s,@SHELL@,$SHELL,;t t
7301 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7302 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7303 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7304 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7305 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7306 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7307 s,@exec_prefix@,$exec_prefix,;t t
7308 s,@prefix@,$prefix,;t t
7309 s,@program_transform_name@,$program_transform_name,;t t
7310 s,@bindir@,$bindir,;t t
7311 s,@sbindir@,$sbindir,;t t
7312 s,@libexecdir@,$libexecdir,;t t
7313 s,@datadir@,$datadir,;t t
7314 s,@sysconfdir@,$sysconfdir,;t t
7315 s,@sharedstatedir@,$sharedstatedir,;t t
7316 s,@localstatedir@,$localstatedir,;t t
7317 s,@libdir@,$libdir,;t t
7318 s,@includedir@,$includedir,;t t
7319 s,@oldincludedir@,$oldincludedir,;t t
7320 s,@infodir@,$infodir,;t t
7321 s,@mandir@,$mandir,;t t
7322 s,@build_alias@,$build_alias,;t t
7323 s,@host_alias@,$host_alias,;t t
7324 s,@target_alias@,$target_alias,;t t
7326 s,@ECHO_C@,$ECHO_C,;t t
7327 s,@ECHO_N@,$ECHO_N,;t t
7328 s,@ECHO_T@,$ECHO_T,;t t
7330 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7331 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7332 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7333 s,@PACKAGE@,$PACKAGE,;t t
7334 s,@VERSION@,$VERSION,;t t
7335 s,@ACLOCAL@,$ACLOCAL,;t t
7336 s,@AUTOCONF@,$AUTOCONF,;t t
7337 s,@AUTOMAKE@,$AUTOMAKE,;t t
7338 s,@AUTOHEADER@,$AUTOHEADER,;t t
7339 s,@MAKEINFO@,$MAKEINFO,;t t
7340 s,@AMTAR@,$AMTAR,;t t
7341 s,@install_sh@,$install_sh,;t t
7342 s,@STRIP@,$STRIP,;t t
7343 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7344 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7346 s,@SET_MAKE@,$SET_MAKE,;t t
7348 s,@CFLAGS@,$CFLAGS,;t t
7349 s,@LDFLAGS@,$LDFLAGS,;t t
7350 s,@CPPFLAGS@,$CPPFLAGS,;t t
7351 s,@ac_ct_CC@,$ac_ct_CC,;t t
7352 s,@EXEEXT@,$EXEEXT,;t t
7353 s,@OBJEXT@,$OBJEXT,;t t
7354 s,@DEPDIR@,$DEPDIR,;t t
7355 s,@am__include@,$am__include,;t t
7356 s,@am__quote@,$am__quote,;t t
7357 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7358 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7359 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7360 s,@CCDEPMODE@,$CCDEPMODE,;t t
7362 s,@CXXFLAGS@,$CXXFLAGS,;t t
7363 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7364 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
7367 s,@LEXLIB@,$LEXLIB,;t t
7368 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7370 s,@RANLIB@,$RANLIB,;t t
7371 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7373 s,@XML_CONFIG@,$XML_CONFIG,;t t
7374 s,@X_CFLAGS@,$X_CFLAGS,;t t
7375 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7376 s,@X_LIBS@,$X_LIBS,;t t
7377 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7378 s,@PG_CONFIG@,$PG_CONFIG,;t t
7379 s,@with_postgres_lib@,$with_postgres_lib,;t t
7380 s,@with_postgres_include@,$with_postgres_include,;t t
7381 s,@POSTGRES_LIB@,$POSTGRES_LIB,;t t
7382 s,@POSTGRES_INCLUDE@,$POSTGRES_INCLUDE,;t t
7383 s,@EGREP@,$EGREP,;t t
7384 s,@LIBOBJS@,$LIBOBJS,;t t
7385 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7390 cat >>$CONFIG_STATUS <<\_ACEOF
7391 # Split the substitutions into bite-sized pieces for seds with
7392 # small command number limits, like on Digital OSF/1 and HP-UX.
7394 ac_sed_frag=1 # Number of current file.
7395 ac_beg=1 # First line for current file.
7396 ac_end=$ac_max_sed_lines # Line after last line for current file.
7399 while $ac_more_lines; do
7400 if test $ac_beg -gt 1; then
7401 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7403 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7405 if test ! -s $tmp/subs.frag; then
7408 # The purpose of the label and of the branching condition is to
7409 # speed up the sed processing (if there are no `@' at all, there
7410 # is no need to browse any of the substitutions).
7411 # These are the two extra sed commands mentioned above.
7413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7414 if test -z "$ac_sed_cmds"; then
7415 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7417 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7419 ac_sed_frag=`expr $ac_sed_frag + 1`
7421 ac_end=`expr $ac_end + $ac_max_sed_lines`
7424 if test -z "$ac_sed_cmds"; then
7427 fi # test -n "$CONFIG_FILES"
7430 cat >>$CONFIG_STATUS <<\_ACEOF
7431 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7434 - | *:- | *:-:* ) # input from stdin
7436 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7437 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7438 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7439 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7440 * ) ac_file_in=$ac_file.in ;;
7443 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7444 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7446 X"$ac_file" : 'X\(//\)[^/]' \| \
7447 X"$ac_file" : 'X\(//\)$' \| \
7448 X"$ac_file" : 'X\(/\)' \| \
7449 . : '\(.\)' 2>/dev/null ||
7451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7453 /^X\(\/\/\)$/{ s//\1/; q; }
7454 /^X\(\/\).*/{ s//\1/; q; }
7456 { if $as_mkdir_p; then
7461 while test ! -d "$as_dir"; do
7462 as_dirs="$as_dir $as_dirs"
7463 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7465 X"$as_dir" : 'X\(//\)[^/]' \| \
7466 X"$as_dir" : 'X\(//\)$' \| \
7467 X"$as_dir" : 'X\(/\)' \| \
7468 . : '\(.\)' 2>/dev/null ||
7470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7472 /^X\(\/\/\)$/{ s//\1/; q; }
7473 /^X\(\/\).*/{ s//\1/; q; }
7476 test ! -n "$as_dirs" || mkdir $as_dirs
7477 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7478 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7479 { (exit 1); exit 1; }; }; }
7483 if test "$ac_dir" != .; then
7484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7485 # A "../" for each directory in $ac_dir_suffix.
7486 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7488 ac_dir_suffix= ac_top_builddir=
7492 .) # No --srcdir option. We are building in place.
7494 if test -z "$ac_top_builddir"; then
7497 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7499 [\\/]* | ?:[\\/]* ) # Absolute path.
7500 ac_srcdir=$srcdir$ac_dir_suffix;
7501 ac_top_srcdir=$srcdir ;;
7503 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7504 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7507 # Do not use `cd foo && pwd` to compute absolute paths, because
7508 # the directories may not exist.
7510 .) ac_abs_builddir="$ac_dir";;
7513 .) ac_abs_builddir=`pwd`;;
7514 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7515 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7518 case $ac_abs_builddir in
7519 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7521 case ${ac_top_builddir}. in
7522 .) ac_abs_top_builddir=$ac_abs_builddir;;
7523 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7524 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7527 case $ac_abs_builddir in
7528 .) ac_abs_srcdir=$ac_srcdir;;
7531 .) ac_abs_srcdir=$ac_abs_builddir;;
7532 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7533 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7536 case $ac_abs_builddir in
7537 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7539 case $ac_top_srcdir in
7540 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7541 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7542 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7548 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7549 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7552 if test x"$ac_file" != x-; then
7553 { echo "$as_me:$LINENO: creating $ac_file" >&5
7554 echo "$as_me: creating $ac_file" >&6;}
7557 # Let's still pretend it is `configure' which instantiates (i.e., don't
7558 # use $as_me), people would be surprised to read:
7559 # /* config.h. Generated by config.status. */
7560 if test x"$ac_file" = x-; then
7563 configure_input="$ac_file. "
7565 configure_input=$configure_input"Generated from `echo $ac_file_in |
7566 sed 's,.*/,,'` by configure."
7568 # First look for the input files in the build tree, otherwise in the
7570 ac_file_inputs=`IFS=:
7571 for f in $ac_file_in; do
7573 -) echo $tmp/stdin ;;
7575 # Absolute (can't be DOS-style, as IFS=:)
7576 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7577 echo "$as_me: error: cannot find input file: $f" >&2;}
7578 { (exit 1); exit 1; }; }
7581 if test -f "$f"; then
7584 elif test -f "$srcdir/$f"; then
7589 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7590 echo "$as_me: error: cannot find input file: $f" >&2;}
7591 { (exit 1); exit 1; }; }
7594 done` || { (exit 1); exit 1; }
7596 cat >>$CONFIG_STATUS <<_ACEOF
7600 cat >>$CONFIG_STATUS <<\_ACEOF
7602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7603 s,@configure_input@,$configure_input,;t t
7604 s,@srcdir@,$ac_srcdir,;t t
7605 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7606 s,@top_srcdir@,$ac_top_srcdir,;t t
7607 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7608 s,@builddir@,$ac_builddir,;t t
7609 s,@abs_builddir@,$ac_abs_builddir,;t t
7610 s,@top_builddir@,$ac_top_builddir,;t t
7611 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7612 s,@INSTALL@,$ac_INSTALL,;t t
7613 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7615 if test x"$ac_file" != x-; then
7616 mv $tmp/out $ac_file
7624 cat >>$CONFIG_STATUS <<\_ACEOF
7627 # CONFIG_COMMANDS section.
7629 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7630 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7631 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7632 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7633 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7634 X"$ac_dest" : 'X\(//\)[^/]' \| \
7635 X"$ac_dest" : 'X\(//\)$' \| \
7636 X"$ac_dest" : 'X\(/\)' \| \
7637 . : '\(.\)' 2>/dev/null ||
7639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7641 /^X\(\/\/\)$/{ s//\1/; q; }
7642 /^X\(\/\).*/{ s//\1/; q; }
7644 { if $as_mkdir_p; then
7649 while test ! -d "$as_dir"; do
7650 as_dirs="$as_dir $as_dirs"
7651 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7653 X"$as_dir" : 'X\(//\)[^/]' \| \
7654 X"$as_dir" : 'X\(//\)$' \| \
7655 X"$as_dir" : 'X\(/\)' \| \
7656 . : '\(.\)' 2>/dev/null ||
7658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7660 /^X\(\/\/\)$/{ s//\1/; q; }
7661 /^X\(\/\).*/{ s//\1/; q; }
7664 test ! -n "$as_dirs" || mkdir $as_dirs
7665 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7666 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7667 { (exit 1); exit 1; }; }; }
7671 if test "$ac_dir" != .; then
7672 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7673 # A "../" for each directory in $ac_dir_suffix.
7674 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7676 ac_dir_suffix= ac_top_builddir=
7680 .) # No --srcdir option. We are building in place.
7682 if test -z "$ac_top_builddir"; then
7685 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7687 [\\/]* | ?:[\\/]* ) # Absolute path.
7688 ac_srcdir=$srcdir$ac_dir_suffix;
7689 ac_top_srcdir=$srcdir ;;
7691 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7692 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7695 # Do not use `cd foo && pwd` to compute absolute paths, because
7696 # the directories may not exist.
7698 .) ac_abs_builddir="$ac_dir";;
7701 .) ac_abs_builddir=`pwd`;;
7702 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7703 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7706 case $ac_abs_builddir in
7707 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7709 case ${ac_top_builddir}. in
7710 .) ac_abs_top_builddir=$ac_abs_builddir;;
7711 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7712 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7715 case $ac_abs_builddir in
7716 .) ac_abs_srcdir=$ac_srcdir;;
7719 .) ac_abs_srcdir=$ac_abs_builddir;;
7720 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7721 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7724 case $ac_abs_builddir in
7725 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7727 case $ac_top_srcdir in
7728 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7729 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7730 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7735 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7736 echo "$as_me: executing $ac_dest commands" >&6;}
7738 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7739 # Strip MF so we end up with the name of the file.
7740 mf=`echo "$mf" | sed -e 's/:.*$//'`
7741 # Check whether this is an Automake generated Makefile or not.
7742 # We used to match only the files named `Makefile.in', but
7743 # some people rename them; so instead we look at the file content.
7744 # Grep'ing the first line is not enough: some people post-process
7745 # each Makefile.in and add a new line on top of each file to say so.
7746 # So let's grep whole file.
7747 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7748 dirpart=`(dirname "$mf") 2>/dev/null ||
7749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7750 X"$mf" : 'X\(//\)[^/]' \| \
7751 X"$mf" : 'X\(//\)$' \| \
7752 X"$mf" : 'X\(/\)' \| \
7753 . : '\(.\)' 2>/dev/null ||
7755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7757 /^X\(\/\/\)$/{ s//\1/; q; }
7758 /^X\(\/\).*/{ s//\1/; q; }
7763 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7764 # Extract the definition of DEP_FILES from the Makefile without
7766 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7767 test -z "$DEPDIR" && continue
7768 # When using ansi2knr, U may be empty or an underscore; expand it
7769 U=`sed -n -e '/^U = / s///p' < "$mf"`
7770 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7771 # We invoke sed twice because it is the simplest approach to
7772 # changing $(DEPDIR) to its actual value in the expansion.
7773 for file in `sed -n -e '
7774 /^DEP_FILES = .*\\\\$/ {
7783 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7784 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7785 # Make sure the directory exists.
7786 test -f "$dirpart/$file" && continue
7787 fdir=`(dirname "$file") 2>/dev/null ||
7788 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7789 X"$file" : 'X\(//\)[^/]' \| \
7790 X"$file" : 'X\(//\)$' \| \
7791 X"$file" : 'X\(/\)' \| \
7792 . : '\(.\)' 2>/dev/null ||
7794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7796 /^X\(\/\/\)$/{ s//\1/; q; }
7797 /^X\(\/\).*/{ s//\1/; q; }
7799 { if $as_mkdir_p; then
7800 mkdir -p $dirpart/$fdir
7802 as_dir=$dirpart/$fdir
7804 while test ! -d "$as_dir"; do
7805 as_dirs="$as_dir $as_dirs"
7806 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7808 X"$as_dir" : 'X\(//\)[^/]' \| \
7809 X"$as_dir" : 'X\(//\)$' \| \
7810 X"$as_dir" : 'X\(/\)' \| \
7811 . : '\(.\)' 2>/dev/null ||
7813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7815 /^X\(\/\/\)$/{ s//\1/; q; }
7816 /^X\(\/\).*/{ s//\1/; q; }
7819 test ! -n "$as_dirs" || mkdir $as_dirs
7820 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7821 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7822 { (exit 1); exit 1; }; }; }
7824 # echo "creating $dirpart/$file"
7825 echo '# dummy' > "$dirpart/$file"
7833 cat >>$CONFIG_STATUS <<\_ACEOF
7835 { (exit 0); exit 0; }
7837 chmod +x $CONFIG_STATUS
7838 ac_clean_files=$ac_clean_files_save
7841 # configure is writing to config.log, and then calls config.status.
7842 # config.status does its own redirection, appending to config.log.
7843 # Unfortunately, on DOS this fails, as config.log is still kept open
7844 # by configure, so config.status won't be able to write to it; its
7845 # output is simply discarded. So we exec the FD to /dev/null,
7846 # effectively closing config.log, so it can be properly (re)opened and
7847 # appended to by config.status. When coming back to configure, we
7848 # need to make the FD available again.
7849 if test "$no_create" != yes; then
7851 ac_config_status_args=
7852 test "$silent" = yes &&
7853 ac_config_status_args="$ac_config_status_args --quiet"
7855 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7857 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7858 # would make configure fail if this is the last instruction.
7859 $ac_cs_success || { (exit 1); exit 1; }