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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE 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 build
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.8"
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`
1480 # expand $ac_aux_dir to an absolute path
1481 am_aux_dir=`cd $ac_aux_dir && pwd`
1483 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1484 # Use eval to expand $SHELL
1485 if eval "$MISSING --run true"; then
1486 am_missing_run="$MISSING --run "
1489 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1490 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1493 if mkdir -p -- . 2>/dev/null; then
1494 # Keeping the `.' argument allows $(mkdir_p) to be used without
1495 # argument. Indeed, we sometimes output rules like
1496 # $(mkdir_p) $(somedir)
1497 # where $(somedir) is conditionally defined.
1498 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1499 # expensive solution, as it forces Make to start a sub-shell.)
1500 mkdir_p='mkdir -p -- .'
1502 # On NextStep and OpenStep, the `mkdir' command does not
1503 # recognize any option. It will interpret all options as
1504 # directories to create, and then abort because `.' already
1508 test -d $d && rmdir $d
1510 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1511 if test -f "$ac_aux_dir/mkinstalldirs"; then
1512 mkdir_p='$(mkinstalldirs)'
1514 mkdir_p='$(install_sh) -d'
1518 for ac_prog in gawk mawk nawk awk
1520 # Extract the first word of "$ac_prog", so it can be a program name with args.
1521 set dummy $ac_prog; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_AWK+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 if test -n "$AWK"; then
1528 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_AWK="$ac_prog"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 if test -n "$AWK"; then
1548 echo "$as_me:$LINENO: result: $AWK" >&5
1549 echo "${ECHO_T}$AWK" >&6
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1555 test -n "$AWK" && break
1558 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1559 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1561 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 cat >conftest.make <<\_ACEOF
1566 @echo 'ac_maketemp="$(MAKE)"'
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571 eval ac_cv_prog_make_${ac_make}_set=yes
1573 eval ac_cv_prog_make_${ac_make}_set=no
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578 echo "$as_me:$LINENO: result: yes" >&5
1579 echo "${ECHO_T}yes" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 SET_MAKE="MAKE=${MAKE-make}"
1587 rm -rf .tst 2>/dev/null
1588 mkdir .tst 2>/dev/null
1589 if test -d .tst; then
1594 rmdir .tst 2>/dev/null
1596 # test to see if srcdir already configured
1597 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1598 test -f $srcdir/config.status; then
1599 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1600 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1601 { (exit 1); exit 1; }; }
1604 # test whether we have cygpath
1605 if test -z "$CYGPATH_W"; then
1606 if (cygpath --version) >/dev/null 2>/dev/null; then
1607 CYGPATH_W='cygpath -w'
1614 # Define the identity of the package.
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE "$PACKAGE"
1624 cat >>confdefs.h <<_ACEOF
1625 #define VERSION "$VERSION"
1628 # Some tools Automake needs.
1630 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1633 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1636 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1639 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1642 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1645 AMTAR=${AMTAR-"${am_missing_run}tar"}
1647 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1649 # Installed binaries are usually stripped using `strip' when the user
1650 # run `make install-strip'. However `strip' might not be the right
1651 # tool to use in cross-compilation environments, therefore Automake
1652 # will honor the `STRIP' environment variable to overrule this program.
1653 if test "$cross_compiling" != no; then
1654 if test -n "$ac_tool_prefix"; then
1655 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1656 set dummy ${ac_tool_prefix}strip; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_STRIP+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 if test -n "$STRIP"; then
1663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 STRIP=$ac_cv_prog_STRIP
1682 if test -n "$STRIP"; then
1683 echo "$as_me:$LINENO: result: $STRIP" >&5
1684 echo "${ECHO_T}$STRIP" >&6
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1691 if test -z "$ac_cv_prog_STRIP"; then
1693 # Extract the first word of "strip", so it can be a program name with args.
1694 set dummy strip; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 if test -n "$ac_ct_STRIP"; then
1701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 test -z "$as_dir" && as_dir=.
1708 for ac_exec_ext in '' $ac_executable_extensions; do
1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710 ac_cv_prog_ac_ct_STRIP="strip"
1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1721 if test -n "$ac_ct_STRIP"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1723 echo "${ECHO_T}$ac_ct_STRIP" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1731 STRIP="$ac_cv_prog_STRIP"
1735 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1737 # We need awk for the "check" target. The system "awk" is bad on
1745 ac_cpp='$CPP $CPPFLAGS'
1746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1749 if test -n "$ac_tool_prefix"; then
1750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_CC+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 if test -n "$CC"; then
1758 ac_cv_prog_CC="$CC" # Let the user override the test.
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 if test -n "$CC"; then
1778 echo "$as_me:$LINENO: result: $CC" >&5
1779 echo "${ECHO_T}$CC" >&6
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1786 if test -z "$ac_cv_prog_CC"; then
1788 # Extract the first word of "gcc", so it can be a program name with args.
1789 set dummy gcc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 if test -n "$ac_ct_CC"; then
1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_CC="gcc"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1828 if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1830 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}cc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$CC"; then
1838 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_CC="${ac_tool_prefix}cc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 if test -n "$CC"; then
1858 echo "$as_me:$LINENO: result: $CC" >&5
1859 echo "${ECHO_T}$CC" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1866 if test -z "$ac_cv_prog_CC"; then
1868 # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_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 ac_cv_prog_ac_ct_CC="cc"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1909 if test -z "$CC"; then
1910 # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$CC"; then
1918 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1929 ac_prog_rejected=yes
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 if test $ac_prog_rejected = yes; then
1940 # We found a bogon in the path, so make sure we never use it.
1941 set dummy $ac_cv_prog_CC
1943 if test $# != 0; then
1944 # We chose a different compiler from the bogus one.
1945 # However, it has the same basename, so the bogon will be chosen
1946 # first if we set CC to just the basename; use the full file name.
1948 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1954 if test -n "$CC"; then
1955 echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1963 if test -z "$CC"; then
1964 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 if test -n "$CC"; then
1995 echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2002 test -n "$CC" && break
2005 if test -z "$CC"; then
2009 # Extract the first word of "$ac_prog", so it can be a program name with args.
2010 set dummy $ac_prog; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 if test -n "$ac_ct_CC"; then
2017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_ac_ct_CC="$ac_prog"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2036 if test -n "$ac_ct_CC"; then
2037 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2038 echo "${ECHO_T}$ac_ct_CC" >&6
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2044 test -n "$ac_ct_CC" && break
2053 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: no acceptable C compiler found in \$PATH
2056 See \`config.log' for more details." >&2;}
2057 { (exit 1); exit 1; }; }
2059 # Provide some information about the compiler.
2060 echo "$as_me:$LINENO:" \
2061 "checking for C compiler version" >&5
2062 ac_compiler=`set X $ac_compile; echo $2`
2063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2064 (eval $ac_compiler --version </dev/null >&5) 2>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }
2068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2069 (eval $ac_compiler -v </dev/null >&5) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }
2073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2074 (eval $ac_compiler -V </dev/null >&5) 2>&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }
2079 cat >conftest.$ac_ext <<_ACEOF
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h. */
2094 ac_clean_files_save=$ac_clean_files
2095 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2096 # Try to create an executable without -o first, disregard a.out.
2097 # It will help us diagnose broken compilers, and finding out an intuition
2099 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2100 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2101 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2102 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2103 (eval $ac_link_default) 2>&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; then
2107 # Find the output, starting from the most likely. This scheme is
2108 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2111 # Be careful to initialize this variable, since it used to be cached.
2112 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2114 # b.out is created by i960 compilers.
2115 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2117 test -f "$ac_file" || continue
2119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2122 # This is the source file.
2125 # We found the default executable, but exeext='' is most
2129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2130 # FIXME: I believe we export ac_cv_exeext for Libtool,
2131 # but it would be cool to find out if it's true. Does anybody
2132 # maintain Libtool? --akim.
2140 echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2144 See \`config.log' for more details." >&5
2145 echo "$as_me: error: C compiler cannot create executables
2146 See \`config.log' for more details." >&2;}
2147 { (exit 77); exit 77; }; }
2150 ac_exeext=$ac_cv_exeext
2151 echo "$as_me:$LINENO: result: $ac_file" >&5
2152 echo "${ECHO_T}$ac_file" >&6
2154 # Check the compiler produces executables we can run. If not, either
2155 # the compiler is broken, or we cross compile.
2156 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2157 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2158 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2159 # If not cross compiling, check that we can run a simple program.
2160 if test "$cross_compiling" != yes; then
2161 if { ac_try='./$ac_file'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2169 if test "$cross_compiling" = maybe; then
2172 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2173 If you meant to cross compile, use \`--host'.
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot run C compiled programs.
2176 If you meant to cross compile, use \`--host'.
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }
2182 echo "$as_me:$LINENO: result: yes" >&5
2183 echo "${ECHO_T}yes" >&6
2185 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2186 ac_clean_files=$ac_clean_files_save
2187 # Check the compiler produces executables we can run. If not, either
2188 # the compiler is broken, or we cross compile.
2189 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2190 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2191 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2192 echo "${ECHO_T}$cross_compiling" >&6
2194 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2195 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2197 (eval $ac_link) 2>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2203 # work properly (i.e., refer to `conftest.exe'), while it won't with
2205 for ac_file in conftest.exe conftest conftest.*; do
2206 test -f "$ac_file" || continue
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2223 rm -f conftest$ac_cv_exeext
2224 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2225 echo "${ECHO_T}$ac_cv_exeext" >&6
2227 rm -f conftest.$ac_ext
2228 EXEEXT=$ac_cv_exeext
2230 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2231 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2232 if test "${ac_cv_objext+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 cat >conftest.$ac_ext <<_ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2250 rm -f conftest.o conftest.obj
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
2256 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2267 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2276 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2277 echo "${ECHO_T}$ac_cv_objext" >&6
2278 OBJEXT=$ac_cv_objext
2280 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2281 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2282 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 cat >conftest.$ac_ext <<_ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2303 rm -f conftest.$ac_objext
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>conftest.er1
2307 grep -v '^ *+' conftest.er1 >conftest.err
2309 cat conftest.err >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } &&
2312 { ac_try='test -z "$ac_c_werror_flag"
2313 || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2336 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2337 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2338 GCC=`test $ac_compiler_gnu = yes && echo yes`
2339 ac_test_CFLAGS=${CFLAGS+set}
2340 ac_save_CFLAGS=$CFLAGS
2342 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2343 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2344 if test "${ac_cv_prog_cc_g+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 cat >conftest.$ac_ext <<_ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2362 rm -f conftest.$ac_objext
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>conftest.er1
2366 grep -v '^ *+' conftest.er1 >conftest.err
2368 cat conftest.err >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -z "$ac_c_werror_flag"
2372 || test ! -s conftest.err'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } &&
2378 { ac_try='test -s conftest.$ac_objext'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2394 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2395 if test "$ac_test_CFLAGS" = set; then
2396 CFLAGS=$ac_save_CFLAGS
2397 elif test $ac_cv_prog_cc_g = yes; then
2398 if test "$GCC" = yes; then
2404 if test "$GCC" = yes; then
2410 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2411 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2412 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 ac_cv_prog_cc_stdc=no
2417 cat >conftest.$ac_ext <<_ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2425 #include <sys/types.h>
2426 #include <sys/stat.h>
2427 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2428 struct buf { int x; };
2429 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2430 static char *e (p, i)
2436 static char *f (char * (*g) (char **, int), char **p, ...)
2441 s = g (p, va_arg (v,int));
2446 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2447 function prototypes and stuff, but not '\xHH' hex character constants.
2448 These don't provoke an error unfortunately, instead are silently treated
2449 as 'x'. The following induces an error, until -std1 is added to get
2450 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2451 array size at least. It's necessary to write '\x00'==0 to get something
2452 that's true only with -std1. */
2453 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2455 int test (int i, double x);
2456 struct s1 {int (*f) (int a);};
2457 struct s2 {int (*f) (double a);};
2458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2469 # Don't try gcc -ansi; that turns off useful extensions and
2470 # breaks some systems' header files.
2471 # AIX -qlanglvl=ansi
2472 # Ultrix and OSF/1 -std1
2473 # HP-UX 10.20 and later -Ae
2474 # HP-UX older versions -Aa -D_HPUX_SOURCE
2475 # SVR4 -Xc -D__EXTENSIONS__
2476 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2478 CC="$ac_save_CC $ac_arg"
2479 rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481 (eval $ac_compile) 2>conftest.er1
2483 grep -v '^ *+' conftest.er1 >conftest.err
2485 cat conftest.err >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -z "$ac_c_werror_flag"
2489 || test ! -s conftest.err'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 ac_cv_prog_cc_stdc=$ac_arg
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2508 rm -f conftest.err conftest.$ac_objext
2510 rm -f conftest.$ac_ext conftest.$ac_objext
2515 case "x$ac_cv_prog_cc_stdc" in
2517 echo "$as_me:$LINENO: result: none needed" >&5
2518 echo "${ECHO_T}none needed" >&6 ;;
2520 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2521 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2522 CC="$CC $ac_cv_prog_cc_stdc" ;;
2525 # Some people use a C++ compiler to compile C. Since we use `exit',
2526 # in C++ we need to declare it. In case someone uses the same compiler
2527 # for both compiling C and C++ we need to have the C++ compiler decide
2528 # the declaration of exit, since it's the most demanding environment.
2529 cat >conftest.$ac_ext <<_ACEOF
2534 rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536 (eval $ac_compile) 2>conftest.er1
2538 grep -v '^ *+' conftest.er1 >conftest.err
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -z "$ac_c_werror_flag"
2544 || test ! -s conftest.err'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 for ac_declaration in \
2558 'extern "C" void std::exit (int) throw (); using std::exit;' \
2559 'extern "C" void std::exit (int); using std::exit;' \
2560 'extern "C" void exit (int) throw ();' \
2561 'extern "C" void exit (int);' \
2564 cat >conftest.$ac_ext <<_ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>conftest.er1
2584 grep -v '^ *+' conftest.er1 >conftest.err
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -z "$ac_c_werror_flag"
2590 || test ! -s conftest.err'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2610 cat >conftest.$ac_ext <<_ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2625 rm -f conftest.$ac_objext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>conftest.er1
2629 grep -v '^ *+' conftest.er1 >conftest.err
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest.$ac_objext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656 if test -n "$ac_declaration"; then
2657 echo '#ifdef __cplusplus' >>confdefs.h
2658 echo $ac_declaration >>confdefs.h
2659 echo '#endif' >>confdefs.h
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 DEPDIR="${am__leading_dot}deps"
2675 ac_config_commands="$ac_config_commands depfiles"
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2684 # If we don't find an include directive, just comment out the code.
2685 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2686 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2690 # First try GNU make style include.
2691 echo "include confinc" > confmf
2692 # We grep out `Entering directory' and `Leaving directory'
2693 # messages which can occur if `w' ends up in MAKEFLAGS.
2694 # In particular we don't look at `^make:' because GNU make might
2695 # be invoked under some other name (usually "gmake"), in which
2696 # case it prints its new name instead of `make'.
2697 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2702 # Now try BSD make style include.
2703 if test "$am__include" = "#"; then
2704 echo '.include "confinc"' > confmf
2705 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2706 am__include=.include
2713 echo "$as_me:$LINENO: result: $_am_result" >&5
2714 echo "${ECHO_T}$_am_result" >&6
2715 rm -f confinc confmf
2717 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2718 if test "${enable_dependency_tracking+set}" = set; then
2719 enableval="$enable_dependency_tracking"
2722 if test "x$enable_dependency_tracking" != xno; then
2723 am_depcomp="$ac_aux_dir/depcomp"
2728 if test "x$enable_dependency_tracking" != xno; then
2739 depcc="$CC" am_compiler_list=
2741 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2742 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2743 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2747 # We make a subdir and do the tests there. Otherwise we can end up
2748 # making bogus files that we don't know about and never remove. For
2749 # instance it was reported that on HP-UX the gcc test will end up
2750 # making a dummy file named `D' -- because `-MD' means `put the output
2753 # Copy depcomp to subdir because otherwise we won't find it if we're
2754 # using a relative directory.
2755 cp "$am_depcomp" conftest.dir
2757 # We will build objects and dependencies in a subdirectory because
2758 # it helps to detect inapplicable dependency modes. For instance
2759 # both Tru64's cc and ICC support -MD to output dependencies as a
2760 # side effect of compilation, but ICC will put the dependencies in
2761 # the current directory while Tru64 will put them in the object
2765 am_cv_CC_dependencies_compiler_type=none
2766 if test "$am_compiler_list" = ""; then
2767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2769 for depmode in $am_compiler_list; do
2770 # Setup a source with many dependencies, because some compilers
2771 # like to wrap large dependency lists on column 80 (with \), and
2772 # we should not choose a depcomp mode which is confused by this.
2774 # We need to recreate these files for each test, as the compiler may
2775 # overwrite some of them when testing with obscure command lines.
2776 # This happens at least with the AIX C compiler.
2778 for i in 1 2 3 4 5 6; do
2779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2786 # after this tag, mechanisms are not by side-effect, so they'll
2787 # only be used when explicitly requested
2788 if test "x$enable_dependency_tracking" = xyes; then
2796 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2797 # mode. It turns out that the SunPro C++ compiler does not properly
2798 # handle `-M -o', and we need to detect this.
2799 if depmode=$depmode \
2800 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2801 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2802 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2803 >/dev/null 2>conftest.err &&
2804 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2805 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2806 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2807 # icc doesn't choke on unknown options, it will just issue warnings
2808 # (even with -Werror). So we grep stderr for any message
2809 # that says an option was ignored.
2810 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2811 am_cv_CC_dependencies_compiler_type=$depmode
2820 am_cv_CC_dependencies_compiler_type=none
2824 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2825 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2826 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2831 test "x$enable_dependency_tracking" != xno \
2832 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2834 am__fastdepCC_FALSE='#'
2836 am__fastdepCC_TRUE='#'
2837 am__fastdepCC_FALSE=
2842 ac_cpp='$CXXCPP $CPPFLAGS'
2843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2846 if test -n "$ac_tool_prefix"; then
2847 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_CXX+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$CXX"; then
2857 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test -n "$CXX"; then
2877 echo "$as_me:$LINENO: result: $CXX" >&5
2878 echo "${ECHO_T}$CXX" >&6
2880 echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2884 test -n "$CXX" && break
2887 if test -z "$CXX"; then
2889 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2891 # Extract the first word of "$ac_prog", so it can be a program name with args.
2892 set dummy $ac_prog; ac_word=$2
2893 echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2895 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 if test -n "$ac_ct_CXX"; then
2899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908 ac_cv_prog_ac_ct_CXX="$ac_prog"
2909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2918 if test -n "$ac_ct_CXX"; then
2919 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2920 echo "${ECHO_T}$ac_ct_CXX" >&6
2922 echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6
2926 test -n "$ac_ct_CXX" && break
2928 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO:" \
2936 "checking for C++ compiler version" >&5
2937 ac_compiler=`set X $ac_compile; echo $2`
2938 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2939 (eval $ac_compiler --version </dev/null >&5) 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }
2943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2944 (eval $ac_compiler -v </dev/null >&5) 2>&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }
2948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2949 (eval $ac_compiler -V </dev/null >&5) 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }
2954 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2955 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2956 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2981 grep -v '^ *+' conftest.er1 >conftest.err
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_cxx_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3010 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3011 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3012 GXX=`test $ac_compiler_gnu = yes && echo yes`
3013 ac_test_CXXFLAGS=${CXXFLAGS+set}
3014 ac_save_CXXFLAGS=$CXXFLAGS
3016 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3017 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3018 if test "${ac_cv_prog_cxx_g+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>conftest.er1
3040 grep -v '^ *+' conftest.er1 >conftest.err
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_cxx_werror_flag"
3046 || test ! -s conftest.err'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 ac_cv_prog_cxx_g=yes
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3067 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3068 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3069 if test "$ac_test_CXXFLAGS" = set; then
3070 CXXFLAGS=$ac_save_CXXFLAGS
3071 elif test $ac_cv_prog_cxx_g = yes; then
3072 if test "$GXX" = yes; then
3078 if test "$GXX" = yes; then
3084 for ac_declaration in \
3086 'extern "C" void std::exit (int) throw (); using std::exit;' \
3087 'extern "C" void std::exit (int); using std::exit;' \
3088 'extern "C" void exit (int) throw ();' \
3089 'extern "C" void exit (int);' \
3092 cat >conftest.$ac_ext <<_ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3108 rm -f conftest.$ac_objext
3109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3110 (eval $ac_compile) 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -z "$ac_cxx_werror_flag"
3118 || test ! -s conftest.err'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_cxx_werror_flag"
3163 || test ! -s conftest.err'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3184 if test -n "$ac_declaration"; then
3185 echo '#ifdef __cplusplus' >>confdefs.h
3186 echo $ac_declaration >>confdefs.h
3187 echo '#endif' >>confdefs.h
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 depcc="$CXX" am_compiler_list=
3198 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3199 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3200 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3204 # We make a subdir and do the tests there. Otherwise we can end up
3205 # making bogus files that we don't know about and never remove. For
3206 # instance it was reported that on HP-UX the gcc test will end up
3207 # making a dummy file named `D' -- because `-MD' means `put the output
3210 # Copy depcomp to subdir because otherwise we won't find it if we're
3211 # using a relative directory.
3212 cp "$am_depcomp" conftest.dir
3214 # We will build objects and dependencies in a subdirectory because
3215 # it helps to detect inapplicable dependency modes. For instance
3216 # both Tru64's cc and ICC support -MD to output dependencies as a
3217 # side effect of compilation, but ICC will put the dependencies in
3218 # the current directory while Tru64 will put them in the object
3222 am_cv_CXX_dependencies_compiler_type=none
3223 if test "$am_compiler_list" = ""; then
3224 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3226 for depmode in $am_compiler_list; do
3227 # Setup a source with many dependencies, because some compilers
3228 # like to wrap large dependency lists on column 80 (with \), and
3229 # we should not choose a depcomp mode which is confused by this.
3231 # We need to recreate these files for each test, as the compiler may
3232 # overwrite some of them when testing with obscure command lines.
3233 # This happens at least with the AIX C compiler.
3235 for i in 1 2 3 4 5 6; do
3236 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3239 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3243 # after this tag, mechanisms are not by side-effect, so they'll
3244 # only be used when explicitly requested
3245 if test "x$enable_dependency_tracking" = xyes; then
3253 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3254 # mode. It turns out that the SunPro C++ compiler does not properly
3255 # handle `-M -o', and we need to detect this.
3256 if depmode=$depmode \
3257 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3259 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3260 >/dev/null 2>conftest.err &&
3261 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3262 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3263 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3264 # icc doesn't choke on unknown options, it will just issue warnings
3265 # (even with -Werror). So we grep stderr for any message
3266 # that says an option was ignored.
3267 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3268 am_cv_CXX_dependencies_compiler_type=$depmode
3277 am_cv_CXX_dependencies_compiler_type=none
3281 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3282 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3283 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3288 test "x$enable_dependency_tracking" != xno \
3289 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3290 am__fastdepCXX_TRUE=
3291 am__fastdepCXX_FALSE='#'
3293 am__fastdepCXX_TRUE='#'
3294 am__fastdepCXX_FALSE=
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3304 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3305 # On Suns, sometimes $CPP names a directory.
3306 if test -n "$CPP" && test -d "$CPP"; then
3309 if test -z "$CPP"; then
3310 if test "${ac_cv_prog_CPP+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 # Double quotes because CPP needs to be expanded
3314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3317 for ac_c_preproc_warn_flag in '' yes
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat >conftest.$ac_ext <<_ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3332 # include <limits.h>
3334 # include <assert.h>
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3355 if test -z "$ac_cpp_err"; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3364 rm -f conftest.err conftest.$ac_ext
3366 # OK, works on sane cases. Now check whether non-existent headers
3367 # can be detected and how.
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393 if test -z "$ac_cpp_err"; then
3394 # Broken: success on invalid input.
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Passes both tests.
3404 rm -f conftest.err conftest.$ac_ext
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3421 echo "$as_me:$LINENO: result: $CPP" >&5
3422 echo "${ECHO_T}$CPP" >&6
3424 for ac_c_preproc_warn_flag in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3439 # include <limits.h>
3441 # include <assert.h>
3445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null; then
3453 if test -s conftest.err; then
3454 ac_cpp_err=$ac_c_preproc_warn_flag
3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462 if test -z "$ac_cpp_err"; then
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 # Broken: fails on valid input.
3471 rm -f conftest.err conftest.$ac_ext
3473 # OK, works on sane cases. Now check whether non-existent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null; then
3491 if test -s conftest.err; then
3492 ac_cpp_err=$ac_c_preproc_warn_flag
3493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3500 if test -z "$ac_cpp_err"; then
3501 # Broken: success on invalid input.
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 # Passes both tests.
3511 rm -f conftest.err conftest.$ac_ext
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3519 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&5
3521 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3522 See \`config.log' for more details." >&2;}
3523 { (exit 1); exit 1; }; }
3527 ac_cpp='$CPP $CPPFLAGS'
3528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 for ac_prog in flex lex
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_prog_LEX+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 if test -n "$LEX"; then
3543 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_LEX="$ac_prog"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 if test -n "$LEX"; then
3563 echo "$as_me:$LINENO: result: $LEX" >&5
3564 echo "${ECHO_T}$LEX" >&6
3566 echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3570 test -n "$LEX" && break
3572 test -n "$LEX" || LEX=":"
3574 if test -z "$LEXLIB"
3576 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3577 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3578 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 ac_check_lib_save_LIBS=$LIBS
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3590 /* Override any gcc2 internal prototype to avoid an error. */
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3605 rm -f conftest.$ac_objext conftest$ac_exeext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607 (eval $ac_link) 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try='test -z "$ac_c_werror_flag"
3615 || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try='test -s conftest$ac_exeext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_lib_fl_yywrap=yes
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 ac_cv_lib_fl_yywrap=no
3634 rm -f conftest.err conftest.$ac_objext \
3635 conftest$ac_exeext conftest.$ac_ext
3636 LIBS=$ac_check_lib_save_LIBS
3638 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3639 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3640 if test $ac_cv_lib_fl_yywrap = yes; then
3643 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3644 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3645 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 ac_check_lib_save_LIBS=$LIBS
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3657 /* Override any gcc2 internal prototype to avoid an error. */
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3672 rm -f conftest.$ac_objext conftest$ac_exeext
3673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3674 (eval $ac_link) 2>conftest.er1
3676 grep -v '^ *+' conftest.er1 >conftest.err
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_c_werror_flag"
3682 || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest$ac_exeext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_lib_l_yywrap=yes
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 ac_cv_lib_l_yywrap=no
3701 rm -f conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703 LIBS=$ac_check_lib_save_LIBS
3705 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3706 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3707 if test $ac_cv_lib_l_yywrap = yes; then
3715 if test "x$LEX" != "x:"; then
3716 echo "$as_me:$LINENO: checking lex output file root" >&5
3717 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3718 if test "${ac_cv_prog_lex_root+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 # The minimal lex program is just a single line: %%. But some broken lexes
3722 # (Solaris, I think it was) want two %% lines, so accommodate them.
3723 cat >conftest.l <<_ACEOF
3727 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3728 (eval $LEX conftest.l) 2>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }
3732 if test -f lex.yy.c; then
3733 ac_cv_prog_lex_root=lex.yy
3734 elif test -f lexyy.c; then
3735 ac_cv_prog_lex_root=lexyy
3737 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3738 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3739 { (exit 1); exit 1; }; }
3742 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3743 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3745 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3747 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3748 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3749 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 # POSIX says lex can declare yytext either as a pointer or an array; the
3753 # default is implementation-dependent. Figure out which it is, since
3754 # not all implementations provide the %pointer and %array declarations.
3755 ac_cv_prog_lex_yytext_pointer=no
3756 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3758 LIBS="$LIBS $LEXLIB"
3759 cat >conftest.$ac_ext <<_ACEOF
3760 `cat $LEX_OUTPUT_ROOT.c`
3762 rm -f conftest.$ac_objext conftest$ac_exeext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3764 (eval $ac_link) 2>conftest.er1
3766 grep -v '^ *+' conftest.er1 >conftest.err
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -z "$ac_c_werror_flag"
3772 || test ! -s conftest.err'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest$ac_exeext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_prog_lex_yytext_pointer=yes
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3790 rm -f conftest.err conftest.$ac_objext \
3791 conftest$ac_exeext conftest.$ac_ext
3793 rm -f "${LEX_OUTPUT_ROOT}.c"
3796 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3797 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3798 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3800 cat >>confdefs.h <<\_ACEOF
3801 #define YYTEXT_POINTER 1
3807 if test "$LEX" = :; then
3808 LEX=${am_missing_run}flex
3810 # Find a good install program. We prefer a C program (faster),
3811 # so one script is as good as another. But avoid the broken or
3812 # incompatible versions:
3813 # SysV /etc/install, /usr/sbin/install
3814 # SunOS /usr/etc/install
3815 # IRIX /sbin/install
3817 # AmigaOS /C/install, which installs bootblocks on floppy discs
3818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3821 # OS/2's system install, which has a completely different semantic
3822 # ./install, which can be erroneously created by make from ./install.sh.
3823 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3824 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3825 if test -z "$INSTALL"; then
3826 if test "${ac_cv_path_install+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 test -z "$as_dir" && as_dir=.
3834 # Account for people who put trailing slashes in PATH elements.
3836 ./ | .// | /cC/* | \
3837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3838 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3841 # OSF1 and SCO ODT 3.0 have their own names for install.
3842 # Don't use installbsd from OSF since it installs stuff as root
3844 for ac_prog in ginstall scoinst install; do
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3847 if test $ac_prog = install &&
3848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3849 # AIX install. It has an incompatible calling convention.
3851 elif test $ac_prog = install &&
3852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3853 # program-specific install script used by HP pwplus--don't use.
3856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3868 if test "${ac_cv_path_install+set}" = set; then
3869 INSTALL=$ac_cv_path_install
3871 # As a last resort, use the slow shell script. We don't cache a
3872 # path for INSTALL within a source directory, because that will
3873 # break other packages using the cache if that directory is
3874 # removed, or if the path is relative.
3875 INSTALL=$ac_install_sh
3878 echo "$as_me:$LINENO: result: $INSTALL" >&5
3879 echo "${ECHO_T}$INSTALL" >&6
3881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3882 # It thinks the first close brace ends the variable substitution.
3883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3889 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3890 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3892 if test "$LN_S" = "ln -s"; then
3893 echo "$as_me:$LINENO: result: yes" >&5
3894 echo "${ECHO_T}yes" >&6
3896 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3897 echo "${ECHO_T}no, using $LN_S" >&6
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3903 echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_prog_RANLIB+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 if test -n "$RANLIB"; then
3909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 RANLIB=$ac_cv_prog_RANLIB
3928 if test -n "$RANLIB"; then
3929 echo "$as_me:$LINENO: result: $RANLIB" >&5
3930 echo "${ECHO_T}$RANLIB" >&6
3932 echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3937 if test -z "$ac_cv_prog_RANLIB"; then
3938 ac_ct_RANLIB=$RANLIB
3939 # Extract the first word of "ranlib", so it can be a program name with args.
3940 set dummy ranlib; ac_word=$2
3941 echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 if test -n "$ac_ct_RANLIB"; then
3947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_ac_ct_RANLIB="ranlib"
3957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3967 if test -n "$ac_ct_RANLIB"; then
3968 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3969 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3971 echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6
3975 RANLIB=$ac_ct_RANLIB
3977 RANLIB="$ac_cv_prog_RANLIB"
3980 for ac_prog in 'bison -y' byacc
3982 # Extract the first word of "$ac_prog", so it can be a program name with args.
3983 set dummy $ac_prog; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_prog_YACC+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 if test -n "$YACC"; then
3990 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999 ac_cv_prog_YACC="$ac_prog"
4000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 YACC=$ac_cv_prog_YACC
4009 if test -n "$YACC"; then
4010 echo "$as_me:$LINENO: result: $YACC" >&5
4011 echo "${ECHO_T}$YACC" >&6
4013 echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4017 test -n "$YACC" && break
4019 test -n "$YACC" || YACC="yacc"
4021 for ac_prog in gawk mawk nawk awk
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_AWK+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$AWK"; then
4031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_AWK="$ac_prog"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 if test -n "$AWK"; then
4051 echo "$as_me:$LINENO: result: $AWK" >&5
4052 echo "${ECHO_T}$AWK" >&6
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4058 test -n "$AWK" && break
4062 # Extract the first word of "xml2-config", so it can be a program name with args.
4063 set dummy xml2-config; ac_word=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_path_XML_CONFIG+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 test -z "$as_dir" && as_dir=.
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
4092 XML_CONFIG=$ac_cv_path_XML_CONFIG
4094 if test -n "$XML_CONFIG"; then
4095 echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
4096 echo "${ECHO_T}$XML_CONFIG" >&6
4098 echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4103 if test $XML_CONFIG = "no"
4105 echo "XML library not found (see http://xmlsoft.org/)."
4111 echo "$as_me:$LINENO: checking for X" >&5
4112 echo $ECHO_N "checking for X... $ECHO_C" >&6
4115 # Check whether --with-x or --without-x was given.
4116 if test "${with_x+set}" = set; then
4120 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4121 if test "x$with_x" = xno; then
4122 # The user explicitly disabled X.
4125 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4126 # Both variables are already set.
4129 if test "${ac_cv_have_x+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 # One or both of the vars are not set, and there is no cached value.
4133 ac_x_includes=no ac_x_libraries=no
4135 if mkdir conftest.dir; then
4137 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4138 cat >Imakefile <<'_ACEOF'
4140 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4142 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4143 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4144 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4145 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4146 for ac_extension in a so sl; do
4147 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4148 test -f $ac_im_libdir/libX11.$ac_extension; then
4149 ac_im_usrlibdir=$ac_im_libdir; break
4152 # Screen out bogus values from the imake configuration. They are
4153 # bogus both because they are the default anyway, and because
4154 # using them would break gcc on systems where it needs fixed includes.
4155 case $ac_im_incroot in
4157 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4159 case $ac_im_usrlibdir in
4161 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4168 # Standard set of common directories for X headers.
4169 # Check X11 before X11Rn because it is often a symlink to the current release.
4181 /usr/local/X11/include
4182 /usr/local/X11R6/include
4183 /usr/local/X11R5/include
4184 /usr/local/X11R4/include
4186 /usr/local/include/X11
4187 /usr/local/include/X11R6
4188 /usr/local/include/X11R5
4189 /usr/local/include/X11R4
4193 /usr/XFree86/include/X11
4197 /usr/unsupported/include
4199 /usr/local/x11r5/include
4200 /usr/lpp/Xamples/include
4202 /usr/openwin/include
4203 /usr/openwin/share/include'
4205 if test "$ac_x_includes" = no; then
4206 # Guess where to find include files, by looking for Intrinsic.h.
4207 # First, try using that file with no special directory specified.
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 #include <X11/Intrinsic.h>
4216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4219 grep -v '^ *+' conftest.er1 >conftest.err
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } >/dev/null; then
4224 if test -s conftest.err; then
4225 ac_cpp_err=$ac_c_preproc_warn_flag
4226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4233 if test -z "$ac_cpp_err"; then
4234 # We can compile using X headers with no special include directory.
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 for ac_dir in $ac_x_header_dirs; do
4241 if test -r "$ac_dir/X11/Intrinsic.h"; then
4242 ac_x_includes=$ac_dir
4247 rm -f conftest.err conftest.$ac_ext
4248 fi # $ac_x_includes = no
4250 if test "$ac_x_libraries" = no; then
4251 # Check for the libraries.
4252 # See if we find them without any special options.
4253 # Don't add to $LIBS permanently.
4256 cat >conftest.$ac_ext <<_ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 #include <X11/Intrinsic.h>
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273 (eval $ac_link) 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -z "$ac_c_werror_flag"
4281 || test ! -s conftest.err'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest$ac_exeext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4294 # We can link X programs with no special library path.
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4301 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4303 # Don't even attempt the hair of trying to link an X program!
4304 for ac_extension in a so sl; do
4305 if test -r $ac_dir/libXt.$ac_extension; then
4306 ac_x_libraries=$ac_dir
4312 rm -f conftest.err conftest.$ac_objext \
4313 conftest$ac_exeext conftest.$ac_ext
4314 fi # $ac_x_libraries = no
4316 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4317 # Didn't find X anywhere. Cache the known absence of X.
4318 ac_cv_have_x="have_x=no"
4320 # Record where we found X for the cache.
4321 ac_cv_have_x="have_x=yes \
4322 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4327 eval "$ac_cv_have_x"
4330 if test "$have_x" != yes; then
4331 echo "$as_me:$LINENO: result: $have_x" >&5
4332 echo "${ECHO_T}$have_x" >&6
4335 # If each of the values was on the command line, it overrides each guess.
4336 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4337 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4338 # Update the cache value to reflect the command line values.
4339 ac_cv_have_x="have_x=yes \
4340 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4341 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4342 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4345 if test "$no_x" = yes; then
4346 # Not all programs may use this symbol, but it does not hurt to define it.
4348 cat >>confdefs.h <<\_ACEOF
4349 #define X_DISPLAY_MISSING 1
4352 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4354 if test -n "$x_includes"; then
4355 X_CFLAGS="$X_CFLAGS -I$x_includes"
4358 # It would also be nice to do this for all -L options, not just this one.
4359 if test -n "$x_libraries"; then
4360 X_LIBS="$X_LIBS -L$x_libraries"
4361 # For Solaris; some versions of Sun CC require a space after -R and
4362 # others require no space. Words are not sufficient . . . .
4363 case `(uname -sr) 2>/dev/null` in
4365 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4366 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4367 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4383 rm -f conftest.$ac_objext conftest$ac_exeext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4385 (eval $ac_link) 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -z "$ac_c_werror_flag"
4393 || test ! -s conftest.err'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest$ac_exeext'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4412 rm -f conftest.err conftest.$ac_objext \
4413 conftest$ac_exeext conftest.$ac_ext
4414 if test $ac_R_nospace = yes; then
4415 echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6
4417 X_LIBS="$X_LIBS -R$x_libraries"
4419 LIBS="$ac_xsave_LIBS -R $x_libraries"
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4435 rm -f conftest.$ac_objext conftest$ac_exeext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437 (eval $ac_link) 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_c_werror_flag"
4445 || test ! -s conftest.err'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest$ac_exeext'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4464 rm -f conftest.err conftest.$ac_objext \
4465 conftest$ac_exeext conftest.$ac_ext
4466 if test $ac_R_space = yes; then
4467 echo "$as_me:$LINENO: result: yes" >&5
4468 echo "${ECHO_T}yes" >&6
4469 X_LIBS="$X_LIBS -R $x_libraries"
4471 echo "$as_me:$LINENO: result: neither works" >&5
4472 echo "${ECHO_T}neither works" >&6
4479 # Check for system-dependent libraries X programs must link with.
4480 # Do this before checking for the system-independent R6 libraries
4481 # (-lICE), since we may need -lsocket or whatever for X linking.
4483 if test "$ISC" = yes; then
4484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4486 # Martyn Johnson says this is needed for Ultrix, if the X
4487 # libraries were built with DECnet support. And Karl Berry says
4488 # the Alpha needs dnet_stub (dnet does not exist).
4489 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4497 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4503 char XOpenDisplay ();
4512 rm -f conftest.$ac_objext conftest$ac_exeext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4514 (eval $ac_link) 2>conftest.er1
4516 grep -v '^ *+' conftest.er1 >conftest.err
4518 cat conftest.err >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } &&
4521 { ac_try='test -z "$ac_c_werror_flag"
4522 || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest$ac_exeext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4540 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4541 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 ac_check_lib_save_LIBS=$LIBS
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4553 /* Override any gcc2 internal prototype to avoid an error. */
4557 /* We use char because int might match the return type of a gcc2
4558 builtin and then its argument prototype would still apply. */
4568 rm -f conftest.$ac_objext conftest$ac_exeext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4570 (eval $ac_link) 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_c_werror_flag"
4578 || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest$ac_exeext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 ac_cv_lib_dnet_dnet_ntoa=yes
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 ac_cv_lib_dnet_dnet_ntoa=no
4597 rm -f conftest.err conftest.$ac_objext \
4598 conftest$ac_exeext conftest.$ac_ext
4599 LIBS=$ac_check_lib_save_LIBS
4601 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4602 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4603 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4604 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4607 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4608 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4609 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4610 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 ac_check_lib_save_LIBS=$LIBS
4614 LIBS="-ldnet_stub $LIBS"
4615 cat >conftest.$ac_ext <<_ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4622 /* Override any gcc2 internal prototype to avoid an error. */
4626 /* We use char because int might match the return type of a gcc2
4627 builtin and then its argument prototype would still apply. */
4637 rm -f conftest.$ac_objext conftest$ac_exeext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4639 (eval $ac_link) 2>conftest.er1
4641 grep -v '^ *+' conftest.er1 >conftest.err
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } &&
4646 { ac_try='test -z "$ac_c_werror_flag"
4647 || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try='test -s conftest$ac_exeext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4664 ac_cv_lib_dnet_stub_dnet_ntoa=no
4666 rm -f conftest.err conftest.$ac_objext \
4667 conftest$ac_exeext conftest.$ac_ext
4668 LIBS=$ac_check_lib_save_LIBS
4670 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4671 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4672 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4673 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4678 rm -f conftest.err conftest.$ac_objext \
4679 conftest$ac_exeext conftest.$ac_ext
4680 LIBS="$ac_xsave_LIBS"
4682 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4683 # to get the SysV transport functions.
4684 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4686 # The nsl library prevents programs from opening the X display
4687 # on Irix 5.2, according to T.E. Dickey.
4688 # The functions gethostbyname, getservbyname, and inet_addr are
4689 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4690 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4691 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4692 if test "${ac_cv_func_gethostbyname+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 cat >conftest.$ac_ext <<_ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4703 #define gethostbyname innocuous_gethostbyname
4705 /* System header to define __stub macros and hopefully few prototypes,
4706 which can conflict with char gethostbyname (); below.
4707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4708 <limits.h> exists even on freestanding compilers. */
4711 # include <limits.h>
4713 # include <assert.h>
4716 #undef gethostbyname
4718 /* Override any gcc2 internal prototype to avoid an error. */
4723 /* We use char because int might match the return type of a gcc2
4724 builtin and then its argument prototype would still apply. */
4725 char gethostbyname ();
4726 /* The GNU C library defines this for functions which it implements
4727 to always fail with ENOSYS. Some functions are actually named
4728 something starting with __ and the normal name is an alias. */
4729 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4732 char (*f) () = gethostbyname;
4741 return f != gethostbyname;
4746 rm -f conftest.$ac_objext conftest$ac_exeext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748 (eval $ac_link) 2>conftest.er1
4750 grep -v '^ *+' conftest.er1 >conftest.err
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -z "$ac_c_werror_flag"
4756 || test ! -s conftest.err'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; } &&
4762 { ac_try='test -s conftest$ac_exeext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_cv_func_gethostbyname=yes
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 ac_cv_func_gethostbyname=no
4775 rm -f conftest.err conftest.$ac_objext \
4776 conftest$ac_exeext conftest.$ac_ext
4778 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4779 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4781 if test $ac_cv_func_gethostbyname = no; then
4782 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4783 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4784 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 ac_check_lib_save_LIBS=$LIBS
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4796 /* Override any gcc2 internal prototype to avoid an error. */
4800 /* We use char because int might match the return type of a gcc2
4801 builtin and then its argument prototype would still apply. */
4802 char gethostbyname ();
4811 rm -f conftest.$ac_objext conftest$ac_exeext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_c_werror_flag"
4821 || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest$ac_exeext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 ac_cv_lib_nsl_gethostbyname=yes
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4838 ac_cv_lib_nsl_gethostbyname=no
4840 rm -f conftest.err conftest.$ac_objext \
4841 conftest$ac_exeext conftest.$ac_ext
4842 LIBS=$ac_check_lib_save_LIBS
4844 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4845 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4846 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4850 if test $ac_cv_lib_nsl_gethostbyname = no; then
4851 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4852 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4853 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 ac_check_lib_save_LIBS=$LIBS
4858 cat >conftest.$ac_ext <<_ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4865 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4871 char gethostbyname ();
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4882 (eval $ac_link) 2>conftest.er1
4884 grep -v '^ *+' conftest.er1 >conftest.err
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -z "$ac_c_werror_flag"
4890 || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest$ac_exeext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_lib_bsd_gethostbyname=yes
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 ac_cv_lib_bsd_gethostbyname=no
4909 rm -f conftest.err conftest.$ac_objext \
4910 conftest$ac_exeext conftest.$ac_ext
4911 LIBS=$ac_check_lib_save_LIBS
4913 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4914 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4915 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4916 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4922 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4923 # socket/setsockopt and other routines are undefined under SCO ODT
4924 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4925 # on later versions), says Simon Leinen: it contains gethostby*
4926 # variants that don't use the name server (or something). -lsocket
4927 # must be given before -lnsl if both are needed. We assume that
4928 # if connect needs -lnsl, so does gethostbyname.
4929 echo "$as_me:$LINENO: checking for connect" >&5
4930 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4931 if test "${ac_cv_func_connect+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 cat >conftest.$ac_ext <<_ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4942 #define connect innocuous_connect
4944 /* System header to define __stub macros and hopefully few prototypes,
4945 which can conflict with char connect (); below.
4946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947 <limits.h> exists even on freestanding compilers. */
4950 # include <limits.h>
4952 # include <assert.h>
4957 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4965 /* The GNU C library defines this for functions which it implements
4966 to always fail with ENOSYS. Some functions are actually named
4967 something starting with __ and the normal name is an alias. */
4968 #if defined (__stub_connect) || defined (__stub___connect)
4971 char (*f) () = connect;
4980 return f != connect;
4985 rm -f conftest.$ac_objext conftest$ac_exeext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4987 (eval $ac_link) 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -z "$ac_c_werror_flag"
4995 || test ! -s conftest.err'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; } &&
5001 { ac_try='test -s conftest$ac_exeext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 ac_cv_func_connect=yes
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 ac_cv_func_connect=no
5014 rm -f conftest.err conftest.$ac_objext \
5015 conftest$ac_exeext conftest.$ac_ext
5017 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5018 echo "${ECHO_T}$ac_cv_func_connect" >&6
5020 if test $ac_cv_func_connect = no; then
5021 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5022 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5023 if test "${ac_cv_lib_socket_connect+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_check_lib_save_LIBS=$LIBS
5027 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5028 cat >conftest.$ac_ext <<_ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5035 /* Override any gcc2 internal prototype to avoid an error. */
5039 /* We use char because int might match the return type of a gcc2
5040 builtin and then its argument prototype would still apply. */
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>conftest.er1
5054 grep -v '^ *+' conftest.er1 >conftest.err
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_c_werror_flag"
5060 || test ! -s conftest.err'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; } &&
5066 { ac_try='test -s conftest$ac_exeext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 ac_cv_lib_socket_connect=yes
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ac_cv_lib_socket_connect=no
5079 rm -f conftest.err conftest.$ac_objext \
5080 conftest$ac_exeext conftest.$ac_ext
5081 LIBS=$ac_check_lib_save_LIBS
5083 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5084 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5085 if test $ac_cv_lib_socket_connect = yes; then
5086 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5091 # Guillermo Gomez says -lposix is necessary on A/UX.
5092 echo "$as_me:$LINENO: checking for remove" >&5
5093 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5094 if test "${ac_cv_func_remove+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5105 #define remove innocuous_remove
5107 /* System header to define __stub macros and hopefully few prototypes,
5108 which can conflict with char remove (); below.
5109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 <limits.h> exists even on freestanding compilers. */
5113 # include <limits.h>
5115 # include <assert.h>
5120 /* Override any gcc2 internal prototype to avoid an error. */
5125 /* We use char because int might match the return type of a gcc2
5126 builtin and then its argument prototype would still apply. */
5128 /* The GNU C library defines this for functions which it implements
5129 to always fail with ENOSYS. Some functions are actually named
5130 something starting with __ and the normal name is an alias. */
5131 #if defined (__stub_remove) || defined (__stub___remove)
5134 char (*f) () = remove;
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>conftest.er1
5152 grep -v '^ *+' conftest.er1 >conftest.err
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 ac_cv_func_remove=yes
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 ac_cv_func_remove=no
5177 rm -f conftest.err conftest.$ac_objext \
5178 conftest$ac_exeext conftest.$ac_ext
5180 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5181 echo "${ECHO_T}$ac_cv_func_remove" >&6
5183 if test $ac_cv_func_remove = no; then
5184 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5185 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5186 if test "${ac_cv_lib_posix_remove+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 ac_check_lib_save_LIBS=$LIBS
5190 LIBS="-lposix $LIBS"
5191 cat >conftest.$ac_ext <<_ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5198 /* Override any gcc2 internal prototype to avoid an error. */
5202 /* We use char because int might match the return type of a gcc2
5203 builtin and then its argument prototype would still apply. */
5213 rm -f conftest.$ac_objext conftest$ac_exeext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5215 (eval $ac_link) 2>conftest.er1
5217 grep -v '^ *+' conftest.er1 >conftest.err
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -z "$ac_c_werror_flag"
5223 || test ! -s conftest.err'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; } &&
5229 { ac_try='test -s conftest$ac_exeext'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 ac_cv_lib_posix_remove=yes
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 ac_cv_lib_posix_remove=no
5242 rm -f conftest.err conftest.$ac_objext \
5243 conftest$ac_exeext conftest.$ac_ext
5244 LIBS=$ac_check_lib_save_LIBS
5246 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5247 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5248 if test $ac_cv_lib_posix_remove = yes; then
5249 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5254 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5255 echo "$as_me:$LINENO: checking for shmat" >&5
5256 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5257 if test "${ac_cv_func_shmat+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 cat >conftest.$ac_ext <<_ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5268 #define shmat innocuous_shmat
5270 /* System header to define __stub macros and hopefully few prototypes,
5271 which can conflict with char shmat (); below.
5272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5273 <limits.h> exists even on freestanding compilers. */
5276 # include <limits.h>
5278 # include <assert.h>
5283 /* Override any gcc2 internal prototype to avoid an error. */
5288 /* We use char because int might match the return type of a gcc2
5289 builtin and then its argument prototype would still apply. */
5291 /* The GNU C library defines this for functions which it implements
5292 to always fail with ENOSYS. Some functions are actually named
5293 something starting with __ and the normal name is an alias. */
5294 #if defined (__stub_shmat) || defined (__stub___shmat)
5297 char (*f) () = shmat;
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5313 (eval $ac_link) 2>conftest.er1
5315 grep -v '^ *+' conftest.er1 >conftest.err
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } &&
5320 { ac_try='test -z "$ac_c_werror_flag"
5321 || test ! -s conftest.err'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; } &&
5327 { ac_try='test -s conftest$ac_exeext'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
5333 ac_cv_func_shmat=yes
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5340 rm -f conftest.err conftest.$ac_objext \
5341 conftest$ac_exeext conftest.$ac_ext
5343 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5344 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5346 if test $ac_cv_func_shmat = no; then
5347 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5348 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5349 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 ac_check_lib_save_LIBS=$LIBS
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5361 /* Override any gcc2 internal prototype to avoid an error. */
5365 /* We use char because int might match the return type of a gcc2
5366 builtin and then its argument prototype would still apply. */
5376 rm -f conftest.$ac_objext conftest$ac_exeext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378 (eval $ac_link) 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_c_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest$ac_exeext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_cv_lib_ipc_shmat=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_lib_ipc_shmat=no
5405 rm -f conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 LIBS=$ac_check_lib_save_LIBS
5409 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5410 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5411 if test $ac_cv_lib_ipc_shmat = yes; then
5412 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5418 # Check for libraries that X11R6 Xt/Xaw programs need.
5419 ac_save_LDFLAGS=$LDFLAGS
5420 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5421 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5422 # check for ICE first), but we must link in the order -lSM -lICE or
5423 # we get undefined symbols. So assume we have SM if we have ICE.
5424 # These have to be linked with before -lX11, unlike the other
5425 # libraries we check for below, so use a different variable.
5426 # John Interrante, Karl Berry
5427 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5428 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5429 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 ac_check_lib_save_LIBS=$LIBS
5433 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5441 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5447 char IceConnectionNumber ();
5451 IceConnectionNumber ();
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>conftest.er1
5460 grep -v '^ *+' conftest.er1 >conftest.err
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -z "$ac_c_werror_flag"
5466 || test ! -s conftest.err'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; } &&
5472 { ac_try='test -s conftest$ac_exeext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_lib_ICE_IceConnectionNumber=yes
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_cv_lib_ICE_IceConnectionNumber=no
5485 rm -f conftest.err conftest.$ac_objext \
5486 conftest$ac_exeext conftest.$ac_ext
5487 LIBS=$ac_check_lib_save_LIBS
5489 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5490 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5491 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5492 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5495 LDFLAGS=$ac_save_LDFLAGS
5500 XML_CFLAGS=`$XML_CONFIG --cflags`
5501 XML_LFLAGS=`$XML_CONFIG --libs`
5503 LIBS="$LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
5504 LIBS="$LIBS -L/usr/local/lib $XML_LFLAGS"
5505 CFLAGS="$CFLAGS $X_CFLAGS $XML_CFLAGS "
5506 CXXFLAGS="$CXXFLAGS -Wno-deprecated $X_CFLAGS $XML_CFLAGS"
5509 echo "$as_me:$LINENO: checking for main in -lAXE" >&5
5510 echo $ECHO_N "checking for main in -lAXE... $ECHO_C" >&6
5511 if test "${ac_cv_lib_AXE_main+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 ac_check_lib_save_LIBS=$LIBS
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 (eval $ac_link) 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_c_werror_flag"
5542 || test ! -s conftest.err'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; } &&
5548 { ac_try='test -s conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_lib_AXE_main=yes
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5559 ac_cv_lib_AXE_main=no
5561 rm -f conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5565 echo "$as_me:$LINENO: result: $ac_cv_lib_AXE_main" >&5
5566 echo "${ECHO_T}$ac_cv_lib_AXE_main" >&6
5567 if test $ac_cv_lib_AXE_main = yes; then
5568 cat >>confdefs.h <<_ACEOF
5569 #define HAVE_LIBAXE 1
5575 { { echo "$as_me:$LINENO: error: AXE Library is not installed" >&5
5576 echo "$as_me: error: AXE Library is not installed" >&2;}
5577 { (exit 1); exit 1; }; }
5580 #AC_CHECK_LIB(X11, XOpenDisplay)
5581 #AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData)
5582 #AC_CHECK_LIB(pthread, pthread_create)
5584 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
5585 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
5586 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 ac_check_lib_save_LIBS=$LIBS
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5604 char xmlParseFile ();
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>conftest.er1
5617 grep -v '^ *+' conftest.er1 >conftest.err
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest$ac_exeext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_lib_xml2_xmlParseFile=yes
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_lib_xml2_xmlParseFile=no
5642 rm -f conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
5647 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
5648 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
5649 cat >>confdefs.h <<_ACEOF
5650 #define HAVE_LIBXML2 1
5658 # Find PostgreSQL includes and libraries
5659 for ac_prog in pqxx-config
5661 # Extract the first word of "$ac_prog", so it can be a program name with args.
5662 set dummy $ac_prog; ac_word=$2
5663 echo "$as_me:$LINENO: checking for $ac_word" >&5
5664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5665 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 PG_CONFIG=$ac_cv_path_PG_CONFIG
5692 if test -n "$PG_CONFIG"; then
5693 echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
5694 echo "${ECHO_T}$PG_CONFIG" >&6
5696 echo "$as_me:$LINENO: result: no" >&5
5697 echo "${ECHO_T}no" >&6
5700 test -n "$PG_CONFIG" && break
5703 if test -z "$PG_CONFIG" || test ! -r "$PG_CONFIG"; then
5704 { { echo "$as_me:$LINENO: error: libpqxx configuration script was not found" >&5
5705 echo "$as_me: error: libpqxx configuration script was not found" >&2;}
5706 { (exit 1); exit 1; }; }
5708 with_postgres_include=`$PG_CONFIG --cflags`
5709 { echo "$as_me:$LINENO: using PostgreSQL headers at $with_postgres_include" >&5
5710 echo "$as_me: using PostgreSQL headers at $with_postgres_include" >&6;}
5711 with_postgres_lib=`$PG_CONFIG --libs`
5712 { echo "$as_me:$LINENO: using PostgreSQL libraries at $with_postgres_lib" >&5
5713 echo "$as_me: using PostgreSQL libraries at $with_postgres_lib" >&6;}
5717 POSTGRES_LIB="${with_postgres_lib}"
5719 POSTGRES_INCLUDE="${with_postgres_include}"
5723 # Checks for libraries.
5725 echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
5726 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6
5727 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 ac_check_lib_save_LIBS=$LIBS
5731 LIBS="-lpq -L${with_postgres_lib} $LIBS"
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5739 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>conftest.er1
5758 grep -v '^ *+' conftest.er1 >conftest.err
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -z "$ac_c_werror_flag"
5764 || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try='test -s conftest$ac_exeext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_cv_lib_pq_PQexec=yes
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5781 ac_cv_lib_pq_PQexec=no
5783 rm -f conftest.err conftest.$ac_objext \
5784 conftest$ac_exeext conftest.$ac_ext
5785 LIBS=$ac_check_lib_save_LIBS
5787 echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
5788 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6
5789 if test $ac_cv_lib_pq_PQexec = yes; then
5790 cat >>confdefs.h <<_ACEOF
5791 #define HAVE_LIBPQ 1
5797 { { echo "$as_me:$LINENO: error: Failed to find a suitable libpq.
5799 PostgreSQL's libpq needs to be installed.
5800 Perhaps you need to specify --with-postgres-lib?
5802 echo "$as_me: error: Failed to find a suitable libpq.
5804 PostgreSQL's libpq needs to be installed.
5805 Perhaps you need to specify --with-postgres-lib?
5807 { (exit 1); exit 1; }; }
5812 CXXFLAGS="$CXXFLAGS $POSTGRES_INCLUDE"
5813 LIBS="$LIBS $POSTGRES_LIB"
5816 # There is no convenient way to detect libpqxx, so we'll
5817 # use fixed paths for the time being.
5819 CXXFLAGS="$CXXFLAGS -I/usr/local/pqxx/include"
5820 LIBS="$LIBS -L/usr/local/pqxx/lib -lpqxx"
5828 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5829 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5830 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5831 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 #include <sys/types.h>
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 eval "$as_ac_Header=yes"
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 eval "$as_ac_Header=no"
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5887 cat >>confdefs.h <<_ACEOF
5888 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5891 ac_header_dirent=$ac_hdr; break
5895 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5896 if test $ac_header_dirent = dirent.h; then
5897 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5899 if test "${ac_cv_search_opendir+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 ac_func_search_save_LIBS=$LIBS
5903 ac_cv_search_opendir=no
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5911 /* Override any gcc2 internal prototype to avoid an error. */
5915 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928 (eval $ac_link) 2>conftest.er1
5930 grep -v '^ *+' conftest.er1 >conftest.err
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag"
5936 || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest$ac_exeext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_cv_search_opendir="none required"
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5954 rm -f conftest.err conftest.$ac_objext \
5955 conftest$ac_exeext conftest.$ac_ext
5956 if test "$ac_cv_search_opendir" = no; then
5957 for ac_lib in dir; do
5958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5966 /* Override any gcc2 internal prototype to avoid an error. */
5970 /* We use char because int might match the return type of a gcc2
5971 builtin and then its argument prototype would still apply. */
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983 (eval $ac_link) 2>conftest.er1
5985 grep -v '^ *+' conftest.er1 >conftest.err
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest$ac_exeext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_cv_search_opendir="-l$ac_lib"
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6010 rm -f conftest.err conftest.$ac_objext \
6011 conftest$ac_exeext conftest.$ac_ext
6014 LIBS=$ac_func_search_save_LIBS
6016 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6017 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6018 if test "$ac_cv_search_opendir" != no; then
6019 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6024 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6025 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6026 if test "${ac_cv_search_opendir+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 ac_func_search_save_LIBS=$LIBS
6030 ac_cv_search_opendir=no
6031 cat >conftest.$ac_ext <<_ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6038 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6053 rm -f conftest.$ac_objext conftest$ac_exeext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055 (eval $ac_link) 2>conftest.er1
6057 grep -v '^ *+' conftest.er1 >conftest.err
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest$ac_exeext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_search_opendir="none required"
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6081 rm -f conftest.err conftest.$ac_objext \
6082 conftest$ac_exeext conftest.$ac_ext
6083 if test "$ac_cv_search_opendir" = no; then
6085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>conftest.er1
6112 grep -v '^ *+' conftest.er1 >conftest.err
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_search_opendir="-l$ac_lib"
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6137 rm -f conftest.err conftest.$ac_objext \
6138 conftest$ac_exeext conftest.$ac_ext
6141 LIBS=$ac_func_search_save_LIBS
6143 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6144 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6145 if test "$ac_cv_search_opendir" != no; then
6146 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6152 echo "$as_me:$LINENO: checking for egrep" >&5
6153 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6154 if test "${ac_cv_prog_egrep+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6158 then ac_cv_prog_egrep='grep -E'
6159 else ac_cv_prog_egrep='egrep'
6162 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6163 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6164 EGREP=$ac_cv_prog_egrep
6167 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6168 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6169 if test "${ac_cv_header_stdc+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 cat >conftest.$ac_ext <<_ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193 (eval $ac_compile) 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -z "$ac_c_werror_flag"
6201 || test ! -s conftest.err'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; } &&
6207 { ac_try='test -s conftest.$ac_objext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_cv_header_stdc=yes
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_cv_header_stdc=no
6220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6222 if test $ac_cv_header_stdc = yes; then
6223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234 $EGREP "memchr" >/dev/null 2>&1; then
6237 ac_cv_header_stdc=no
6243 if test $ac_cv_header_stdc = yes; then
6244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6245 cat >conftest.$ac_ext <<_ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255 $EGREP "free" >/dev/null 2>&1; then
6258 ac_cv_header_stdc=no
6264 if test $ac_cv_header_stdc = yes; then
6265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6266 if test "$cross_compiling" = yes; then
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6276 #if ((' ' & 0x0FF) == 0x020)
6277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6280 # define ISLOWER(c) \
6281 (('a' <= (c) && (c) <= 'i') \
6282 || ('j' <= (c) && (c) <= 'r') \
6283 || ('s' <= (c) && (c) <= 'z'))
6284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6292 for (i = 0; i < 256; i++)
6293 if (XOR (islower (i), ISLOWER (i))
6294 || toupper (i) != TOUPPER (i))
6299 rm -f conftest$ac_exeext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6301 (eval $ac_link) 2>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6312 echo "$as_me: program exited with status $ac_status" >&5
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_cv_header_stdc=no
6319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6323 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6324 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6325 if test $ac_cv_header_stdc = yes; then
6327 cat >>confdefs.h <<\_ACEOF
6328 #define STDC_HEADERS 1
6333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6344 inttypes.h stdint.h unistd.h
6346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347 echo "$as_me:$LINENO: checking for $ac_header" >&5
6348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 cat >conftest.$ac_ext <<_ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 $ac_includes_default
6360 #include <$ac_header>
6362 rm -f conftest.$ac_objext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364 (eval $ac_compile) 2>conftest.er1
6366 grep -v '^ *+' conftest.er1 >conftest.err
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -z "$ac_c_werror_flag"
6372 || test ! -s conftest.err'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest.$ac_objext'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 eval "$as_ac_Header=yes"
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 eval "$as_ac_Header=no"
6391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6396 cat >>confdefs.h <<_ACEOF
6397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406 for ac_header in unistd.h
6408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6410 echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6418 # Is the header compilable?
6419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 $ac_includes_default
6428 #include <$ac_header>
6430 rm -f conftest.$ac_objext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6432 (eval $ac_compile) 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -z "$ac_c_werror_flag"
6440 || test ! -s conftest.err'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; } &&
6446 { ac_try='test -s conftest.$ac_objext'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_header_compiler=yes
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 ac_header_compiler=no
6459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6461 echo "${ECHO_T}$ac_header_compiler" >&6
6463 # Is the header present?
6464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6466 cat >conftest.$ac_ext <<_ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 #include <$ac_header>
6474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6477 grep -v '^ *+' conftest.er1 >conftest.err
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } >/dev/null; then
6482 if test -s conftest.err; then
6483 ac_cpp_err=$ac_c_preproc_warn_flag
6484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6491 if test -z "$ac_cpp_err"; then
6492 ac_header_preproc=yes
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6497 ac_header_preproc=no
6499 rm -f conftest.err conftest.$ac_ext
6500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6501 echo "${ECHO_T}$ac_header_preproc" >&6
6503 # So? What about this header?
6504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6510 ac_header_preproc=yes
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6527 ## ------------------------------------------ ##
6528 ## Report this to the AC_PACKAGE_NAME lists. ##
6529 ## ------------------------------------------ ##
6532 sed "s/^/$as_me: WARNING: /" >&2
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 eval "$as_ac_Header=\$ac_header_preproc"
6542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6547 cat >>confdefs.h <<_ACEOF
6548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6556 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6557 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6558 if test "${ac_cv_c_const+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6571 /* FIXME: Include the comments suggested by Paul. */
6573 /* Ultrix mips cc rejects this. */
6574 typedef int charset[2];
6576 /* SunOS 4.1.1 cc rejects this. */
6577 char const *const *ccp;
6579 /* NEC SVR4.0.2 mips cc rejects this. */
6580 struct point {int x, y;};
6581 static struct point const zero = {0,0};
6582 /* AIX XL C 1.02.0.0 rejects this.
6583 It does not let you subtract one const X* pointer from another in
6584 an arm of an if-expression whose if-part is not a constant
6586 const char *g = "string";
6587 ccp = &g + (g ? g-g : 0);
6588 /* HPUX 7.0 cc rejects these. */
6591 ccp = (char const *const *) p;
6592 { /* SCO 3.2v4 cc rejects this. */
6594 char const *s = 0 ? (char *) 0 : (char const *) 0;
6598 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6600 const int *foo = &x[0];
6603 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6604 typedef const int *iptr;
6608 { /* AIX XL C 1.02.0.0 rejects this saying
6609 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6610 struct s { int j; const int *ap[3]; };
6611 struct s *b; b->j = 5;
6613 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6622 rm -f conftest.$ac_objext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6624 (eval $ac_compile) 2>conftest.er1
6626 grep -v '^ *+' conftest.er1 >conftest.err
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -z "$ac_c_werror_flag"
6632 || test ! -s conftest.err'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try='test -s conftest.$ac_objext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6653 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6654 echo "${ECHO_T}$ac_cv_c_const" >&6
6655 if test $ac_cv_c_const = no; then
6657 cat >>confdefs.h <<\_ACEOF
6667 for ac_func in strtod strtol strtoul
6669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6670 echo "$as_me:$LINENO: checking for $ac_func" >&5
6671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6672 if eval "test \"\${$as_ac_var+set}\" = set"; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6683 #define $ac_func innocuous_$ac_func
6685 /* System header to define __stub macros and hopefully few prototypes,
6686 which can conflict with char $ac_func (); below.
6687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6688 <limits.h> exists even on freestanding compilers. */
6691 # include <limits.h>
6693 # include <assert.h>
6698 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6706 /* The GNU C library defines this for functions which it implements
6707 to always fail with ENOSYS. Some functions are actually named
6708 something starting with __ and the normal name is an alias. */
6709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6712 char (*f) () = $ac_func;
6721 return f != $ac_func;
6726 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728 (eval $ac_link) 2>conftest.er1
6730 grep -v '^ *+' conftest.er1 >conftest.err
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
6735 { ac_try='test -z "$ac_c_werror_flag"
6736 || test ! -s conftest.err'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; } &&
6742 { ac_try='test -s conftest$ac_exeext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 eval "$as_ac_var=yes"
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 eval "$as_ac_var=no"
6755 rm -f conftest.err conftest.$ac_objext \
6756 conftest$ac_exeext conftest.$ac_ext
6758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6760 if test `eval echo '${'$as_ac_var'}'` = yes; then
6761 cat >>confdefs.h <<_ACEOF
6762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6770 DocumentRoot=/var/www/html
6772 #AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile src/web/Makefile)
6773 ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile"
6774 cat >confcache <<\_ACEOF
6775 # This file is a shell script that caches the results of configure
6776 # tests run on this system so they can be shared between configure
6777 # scripts and configure runs, see configure's option --config-cache.
6778 # It is not useful on other systems. If it contains results you don't
6779 # want to keep, you may remove or edit it.
6781 # config.status only pays attention to the cache file if you give it
6782 # the --recheck option to rerun configure.
6784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6790 # The following way of writing the cache mishandles newlines in values,
6791 # but we know of no workaround that is simple, portable, and efficient.
6792 # So, don't put newlines in cache variables' values.
6793 # Ultrix sh set writes to stderr and can't be redirected directly,
6794 # and sets the high bit in the cache file unless we assign to the vars.
6797 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6799 # `set' does not quote correctly, so add quotes (double-quote
6800 # substitution turns \\\\ into \\, and sed turns \\ into \).
6803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6806 # `set' quotes correctly as required by POSIX, so do not add quotes.
6808 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6817 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6819 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6820 if test -w $cache_file; then
6821 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6822 cat confcache >$cache_file
6824 echo "not updating unwritable cache $cache_file"
6829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6830 # Let make expand exec_prefix.
6831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6833 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6834 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6835 # trailing colons and then remove the whole line if VPATH becomes empty
6836 # (actually we leave an empty line to preserve line numbers).
6837 if test "x$srcdir" = x.; then
6838 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6839 s/:*\$(srcdir):*/:/;
6840 s/:*\${srcdir}:*/:/;
6842 s/^\([^=]*=[ ]*\):*/\1/;
6848 # Transform confdefs.h into DEFS.
6849 # Protect against shell expansion while executing Makefile rules.
6850 # Protect against Makefile macro expansion.
6852 # If the first sed substitution is executed (which looks for macros that
6853 # take arguments), then we branch to the quote section. Otherwise,
6854 # look for a macro that doesn't take arguments.
6855 cat >confdef2opt.sed <<\_ACEOF
6858 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6860 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6864 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6870 # We use echo to avoid assuming a particular line-breaking character.
6871 # The extra dot is to prevent the shell from consuming trailing
6872 # line-breaks from the sub-command output. A line-break within
6873 # single-quotes doesn't work because, if this script is created in a
6874 # platform that uses two characters for line-breaks (e.g., DOS), tr
6876 ac_LF_and_DOT=`echo; echo .`
6877 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6878 rm -f confdef2opt.sed
6883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6884 # 1. Remove the extension, and $U if already installed.
6885 ac_i=`echo "$ac_i" |
6886 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6888 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6889 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6893 LTLIBOBJS=$ac_ltlibobjs
6896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6897 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6898 Usually this means the macro was only invoked conditionally." >&5
6899 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6900 Usually this means the macro was only invoked conditionally." >&2;}
6901 { (exit 1); exit 1; }; }
6903 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6904 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6905 Usually this means the macro was only invoked conditionally." >&5
6906 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6907 Usually this means the macro was only invoked conditionally." >&2;}
6908 { (exit 1); exit 1; }; }
6910 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6911 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6912 Usually this means the macro was only invoked conditionally." >&5
6913 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6914 Usually this means the macro was only invoked conditionally." >&2;}
6915 { (exit 1); exit 1; }; }
6918 : ${CONFIG_STATUS=./config.status}
6919 ac_clean_files_save=$ac_clean_files
6920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6921 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6922 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6923 cat >$CONFIG_STATUS <<_ACEOF
6925 # Generated by $as_me.
6926 # Run this file to recreate the current configuration.
6927 # Compiler output produced by configure, useful for debugging
6928 # configure, is in config.log if it exists.
6933 SHELL=\${CONFIG_SHELL-$SHELL}
6936 cat >>$CONFIG_STATUS <<\_ACEOF
6937 ## --------------------- ##
6938 ## M4sh Initialization. ##
6939 ## --------------------- ##
6941 # Be Bourne compatible
6942 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6945 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6946 # is contrary to our usage. Disable this feature.
6947 alias -g '${1+"$@"}'='"$@"'
6948 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6951 DUALCASE=1; export DUALCASE # for MKS sh
6953 # Support unset when possible.
6954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6961 # Work around bugs in pre-3.0 UWIN ksh.
6962 $as_unset ENV MAIL MAILPATH
6969 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6970 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6971 LC_TELEPHONE LC_TIME
6973 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6974 eval $as_var=C; export $as_var
6980 # Required to use basename.
6981 if expr a : '\(a\)' >/dev/null 2>&1; then
6987 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6988 as_basename=basename
6994 # Name of the executable.
6995 as_me=`$as_basename "$0" ||
6996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6997 X"$0" : 'X\(//\)$' \| \
6998 X"$0" : 'X\(/\)$' \| \
6999 . : '\(.\)' 2>/dev/null ||
7001 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7002 /^X\/\(\/\/\)$/{ s//\1/; q; }
7003 /^X\/\(\/\).*/{ s//\1/; q; }
7007 # PATH needs CR, and LINENO needs CR and PATH.
7008 # Avoid depending upon Character Ranges.
7009 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7010 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7011 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7012 as_cr_digits='0123456789'
7013 as_cr_alnum=$as_cr_Letters$as_cr_digits
7015 # The user is always right.
7016 if test "${PATH_SEPARATOR+set}" != set; then
7017 echo "#! /bin/sh" >conf$$.sh
7018 echo "exit 0" >>conf$$.sh
7020 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7031 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7032 test "x$as_lineno_1" != "x$as_lineno_2" &&
7033 test "x$as_lineno_3" = "x$as_lineno_2" || {
7034 # Find who we are. Look in the path if we contain no path at all
7037 *[\\/]* ) as_myself=$0 ;;
7038 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7048 # We did not find ourselves, most probably we were run as `sh COMMAND'
7049 # in which case we are not to be found in the path.
7050 if test "x$as_myself" = x; then
7053 if test ! -f "$as_myself"; then
7054 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7055 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7056 { (exit 1); exit 1; }; }
7058 case $CONFIG_SHELL in
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7064 test -z "$as_dir" && as_dir=.
7065 for as_base in sh bash ksh sh5; do
7068 if ("$as_dir/$as_base" -c '
7071 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7072 test "x$as_lineno_1" != "x$as_lineno_2" &&
7073 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7074 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7075 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7076 CONFIG_SHELL=$as_dir/$as_base
7078 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7086 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7087 # uniformly replaced by the line number. The first 'sed' inserts a
7088 # line-number line before each line; the second 'sed' does the real
7089 # work. The second script uses 'N' to pair each line-number line
7090 # with the numbered line, and appends trailing '-' during
7091 # substitution so that $LINENO is not a special case at line end.
7092 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7093 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7094 sed '=' <$as_myself |
7099 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7102 s,^['$as_cr_digits']*\n,,
7104 chmod +x $as_me.lineno ||
7105 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7106 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7107 { (exit 1); exit 1; }; }
7109 # Don't try to exec as it changes $[0], causing all sort of problems
7110 # (the dirname of $[0] is not the place where we might find the
7111 # original and so on. Autoconf is especially sensible to this).
7113 # Exit status is that of the last command.
7118 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7119 *c*,-n*) ECHO_N= ECHO_C='
7121 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7122 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7125 if expr a : '\(a\)' >/dev/null 2>&1; then
7131 rm -f conf$$ conf$$.exe conf$$.file
7133 if ln -s conf$$.file conf$$ 2>/dev/null; then
7134 # We could just check for DJGPP; but this test a) works b) is more generic
7135 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7136 if test -f conf$$.exe; then
7137 # Don't use ln at all; we don't have any links
7142 elif ln conf$$.file conf$$ 2>/dev/null; then
7147 rm -f conf$$ conf$$.exe conf$$.file
7149 if mkdir -p . 2>/dev/null; then
7152 test -d ./-p && rmdir ./-p
7156 as_executable_p="test -f"
7158 # Sed expression to map a string onto a valid CPP name.
7159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7161 # Sed expression to map a string onto a valid variable name.
7162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7166 # We need space, tab and new line, in precisely that order.
7176 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7177 # report actual input values of CONFIG_FILES etc. instead of their
7178 # values after options handling. Logging --version etc. is OK.
7182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7183 ## Running $as_me. ##
7188 This file was extended by $as_me, which was
7189 generated by GNU Autoconf 2.59. Invocation command line was
7191 CONFIG_FILES = $CONFIG_FILES
7192 CONFIG_HEADERS = $CONFIG_HEADERS
7193 CONFIG_LINKS = $CONFIG_LINKS
7194 CONFIG_COMMANDS = $CONFIG_COMMANDS
7198 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7202 # Files that config.status was made for.
7203 if test -n "$ac_config_files"; then
7204 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7207 if test -n "$ac_config_headers"; then
7208 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7211 if test -n "$ac_config_links"; then
7212 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7215 if test -n "$ac_config_commands"; then
7216 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7219 cat >>$CONFIG_STATUS <<\_ACEOF
7222 \`$as_me' instantiates files from templates according to the
7223 current configuration.
7225 Usage: $0 [OPTIONS] [FILE]...
7227 -h, --help print this help, then exit
7228 -V, --version print version number, then exit
7229 -q, --quiet do not print progress messages
7230 -d, --debug don't remove temporary files
7231 --recheck update $as_me by reconfiguring in the same conditions
7232 --file=FILE[:TEMPLATE]
7233 instantiate the configuration file FILE
7235 Configuration files:
7238 Configuration commands:
7241 Report bugs to <bug-autoconf@gnu.org>."
7244 cat >>$CONFIG_STATUS <<_ACEOF
7247 configured by $0, generated by GNU Autoconf 2.59,
7248 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7250 Copyright (C) 2003 Free Software Foundation, Inc.
7251 This config.status script is free software; the Free Software Foundation
7252 gives unlimited permission to copy, distribute and modify it."
7257 cat >>$CONFIG_STATUS <<\_ACEOF
7258 # If no file are specified by the user, then we need to provide default
7259 # value. By we need to know if files were specified by the user.
7265 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7266 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7274 *) # This is not an option, so the user has probably given explicit
7277 ac_need_defaults=false;;
7281 # Handling of the options.
7283 cat >>$CONFIG_STATUS <<\_ACEOF
7284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7286 --version | --vers* | -V )
7287 echo "$ac_cs_version"; exit 0 ;;
7289 # Conflict between --help and --header
7290 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7291 Try \`$0 --help' for more information." >&5
7292 echo "$as_me: error: ambiguous option: $1
7293 Try \`$0 --help' for more information." >&2;}
7294 { (exit 1); exit 1; }; };;
7295 --help | --hel | -h )
7296 echo "$ac_cs_usage"; exit 0 ;;
7297 --debug | --d* | -d )
7299 --file | --fil | --fi | --f )
7301 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7302 ac_need_defaults=false;;
7303 --header | --heade | --head | --hea )
7305 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7306 ac_need_defaults=false;;
7307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7308 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7312 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7313 Try \`$0 --help' for more information." >&5
7314 echo "$as_me: error: unrecognized option: $1
7315 Try \`$0 --help' for more information." >&2;}
7316 { (exit 1); exit 1; }; } ;;
7318 *) ac_config_targets="$ac_config_targets $1" ;;
7324 ac_configure_extra_args=
7326 if $ac_cs_silent; then
7328 ac_configure_extra_args="$ac_configure_extra_args --silent"
7332 cat >>$CONFIG_STATUS <<_ACEOF
7333 if \$ac_cs_recheck; then
7334 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7335 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7340 cat >>$CONFIG_STATUS <<_ACEOF
7342 # INIT-COMMANDS section.
7345 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7351 cat >>$CONFIG_STATUS <<\_ACEOF
7352 for ac_config_target in $ac_config_targets
7354 case "$ac_config_target" in
7355 # Handling of arguments.
7356 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7357 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7358 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
7359 "src/gcm_input/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gcm_input/Makefile" ;;
7360 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7361 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7362 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7363 { (exit 1); exit 1; }; };;
7367 # If the user did not use the arguments to specify the items to instantiate,
7368 # then the envvar interface is used. Set only those that are not.
7369 # We use the long form for the default assignment because of an extremely
7370 # bizarre bug on SunOS 4.1.3.
7371 if $ac_need_defaults; then
7372 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7373 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7376 # Have a temporary directory for convenience. Make it in the build tree
7377 # simply because there is no reason to put it here, and in addition,
7378 # creating and moving files from /tmp can sometimes cause problems.
7379 # Create a temporary directory, and hook for its removal unless debugging.
7382 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7383 trap '{ (exit 1); exit 1; }' 1 2 13 15
7386 # Create a (secure) tmp directory for tmp files.
7389 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7390 test -n "$tmp" && test -d "$tmp"
7393 tmp=./confstat$$-$RANDOM
7394 (umask 077 && mkdir $tmp)
7397 echo "$me: cannot create a temporary directory in ." >&2
7398 { (exit 1); exit 1; }
7403 cat >>$CONFIG_STATUS <<_ACEOF
7406 # CONFIG_FILES section.
7409 # No need to generate the scripts if there are no CONFIG_FILES.
7410 # This happens for instance when ./config.status config.h
7411 if test -n "\$CONFIG_FILES"; then
7412 # Protect against being on the right side of a sed subst in config.status.
7413 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7414 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7415 s,@SHELL@,$SHELL,;t t
7416 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7417 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7418 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7419 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7420 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7421 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7422 s,@exec_prefix@,$exec_prefix,;t t
7423 s,@prefix@,$prefix,;t t
7424 s,@program_transform_name@,$program_transform_name,;t t
7425 s,@bindir@,$bindir,;t t
7426 s,@sbindir@,$sbindir,;t t
7427 s,@libexecdir@,$libexecdir,;t t
7428 s,@datadir@,$datadir,;t t
7429 s,@sysconfdir@,$sysconfdir,;t t
7430 s,@sharedstatedir@,$sharedstatedir,;t t
7431 s,@localstatedir@,$localstatedir,;t t
7432 s,@libdir@,$libdir,;t t
7433 s,@includedir@,$includedir,;t t
7434 s,@oldincludedir@,$oldincludedir,;t t
7435 s,@infodir@,$infodir,;t t
7436 s,@mandir@,$mandir,;t t
7437 s,@build_alias@,$build_alias,;t t
7438 s,@host_alias@,$host_alias,;t t
7439 s,@target_alias@,$target_alias,;t t
7441 s,@ECHO_C@,$ECHO_C,;t t
7442 s,@ECHO_N@,$ECHO_N,;t t
7443 s,@ECHO_T@,$ECHO_T,;t t
7445 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7446 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7447 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7448 s,@CYGPATH_W@,$CYGPATH_W,;t t
7449 s,@PACKAGE@,$PACKAGE,;t t
7450 s,@VERSION@,$VERSION,;t t
7451 s,@ACLOCAL@,$ACLOCAL,;t t
7452 s,@AUTOCONF@,$AUTOCONF,;t t
7453 s,@AUTOMAKE@,$AUTOMAKE,;t t
7454 s,@AUTOHEADER@,$AUTOHEADER,;t t
7455 s,@MAKEINFO@,$MAKEINFO,;t t
7456 s,@AMTAR@,$AMTAR,;t t
7457 s,@install_sh@,$install_sh,;t t
7458 s,@STRIP@,$STRIP,;t t
7459 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7460 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7461 s,@mkdir_p@,$mkdir_p,;t t
7463 s,@SET_MAKE@,$SET_MAKE,;t t
7464 s,@am__leading_dot@,$am__leading_dot,;t t
7466 s,@CFLAGS@,$CFLAGS,;t t
7467 s,@LDFLAGS@,$LDFLAGS,;t t
7468 s,@CPPFLAGS@,$CPPFLAGS,;t t
7469 s,@ac_ct_CC@,$ac_ct_CC,;t t
7470 s,@EXEEXT@,$EXEEXT,;t t
7471 s,@OBJEXT@,$OBJEXT,;t t
7472 s,@DEPDIR@,$DEPDIR,;t t
7473 s,@am__include@,$am__include,;t t
7474 s,@am__quote@,$am__quote,;t t
7475 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7476 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7477 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7478 s,@CCDEPMODE@,$CCDEPMODE,;t t
7479 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7480 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7482 s,@CXXFLAGS@,$CXXFLAGS,;t t
7483 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7484 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
7485 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
7486 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
7489 s,@LEXLIB@,$LEXLIB,;t t
7490 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7492 s,@RANLIB@,$RANLIB,;t t
7493 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7495 s,@XML_CONFIG@,$XML_CONFIG,;t t
7496 s,@X_CFLAGS@,$X_CFLAGS,;t t
7497 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7498 s,@X_LIBS@,$X_LIBS,;t t
7499 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7500 s,@PG_CONFIG@,$PG_CONFIG,;t t
7501 s,@with_postgres_lib@,$with_postgres_lib,;t t
7502 s,@with_postgres_include@,$with_postgres_include,;t t
7503 s,@POSTGRES_LIB@,$POSTGRES_LIB,;t t
7504 s,@POSTGRES_INCLUDE@,$POSTGRES_INCLUDE,;t t
7505 s,@EGREP@,$EGREP,;t t
7506 s,@LIBOBJS@,$LIBOBJS,;t t
7507 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7512 cat >>$CONFIG_STATUS <<\_ACEOF
7513 # Split the substitutions into bite-sized pieces for seds with
7514 # small command number limits, like on Digital OSF/1 and HP-UX.
7516 ac_sed_frag=1 # Number of current file.
7517 ac_beg=1 # First line for current file.
7518 ac_end=$ac_max_sed_lines # Line after last line for current file.
7521 while $ac_more_lines; do
7522 if test $ac_beg -gt 1; then
7523 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7525 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7527 if test ! -s $tmp/subs.frag; then
7530 # The purpose of the label and of the branching condition is to
7531 # speed up the sed processing (if there are no `@' at all, there
7532 # is no need to browse any of the substitutions).
7533 # These are the two extra sed commands mentioned above.
7535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7536 if test -z "$ac_sed_cmds"; then
7537 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7539 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7541 ac_sed_frag=`expr $ac_sed_frag + 1`
7543 ac_end=`expr $ac_end + $ac_max_sed_lines`
7546 if test -z "$ac_sed_cmds"; then
7549 fi # test -n "$CONFIG_FILES"
7552 cat >>$CONFIG_STATUS <<\_ACEOF
7553 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7554 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7556 - | *:- | *:-:* ) # input from stdin
7558 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7560 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7561 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7562 * ) ac_file_in=$ac_file.in ;;
7565 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7566 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7568 X"$ac_file" : 'X\(//\)[^/]' \| \
7569 X"$ac_file" : 'X\(//\)$' \| \
7570 X"$ac_file" : 'X\(/\)' \| \
7571 . : '\(.\)' 2>/dev/null ||
7573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7575 /^X\(\/\/\)$/{ s//\1/; q; }
7576 /^X\(\/\).*/{ s//\1/; q; }
7578 { if $as_mkdir_p; then
7583 while test ! -d "$as_dir"; do
7584 as_dirs="$as_dir $as_dirs"
7585 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7587 X"$as_dir" : 'X\(//\)[^/]' \| \
7588 X"$as_dir" : 'X\(//\)$' \| \
7589 X"$as_dir" : 'X\(/\)' \| \
7590 . : '\(.\)' 2>/dev/null ||
7592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7594 /^X\(\/\/\)$/{ s//\1/; q; }
7595 /^X\(\/\).*/{ s//\1/; q; }
7598 test ! -n "$as_dirs" || mkdir $as_dirs
7599 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7600 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7601 { (exit 1); exit 1; }; }; }
7605 if test "$ac_dir" != .; then
7606 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7607 # A "../" for each directory in $ac_dir_suffix.
7608 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7610 ac_dir_suffix= ac_top_builddir=
7614 .) # No --srcdir option. We are building in place.
7616 if test -z "$ac_top_builddir"; then
7619 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7621 [\\/]* | ?:[\\/]* ) # Absolute path.
7622 ac_srcdir=$srcdir$ac_dir_suffix;
7623 ac_top_srcdir=$srcdir ;;
7625 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7626 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7629 # Do not use `cd foo && pwd` to compute absolute paths, because
7630 # the directories may not exist.
7632 .) ac_abs_builddir="$ac_dir";;
7635 .) ac_abs_builddir=`pwd`;;
7636 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7637 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7640 case $ac_abs_builddir in
7641 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7643 case ${ac_top_builddir}. in
7644 .) ac_abs_top_builddir=$ac_abs_builddir;;
7645 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7646 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7649 case $ac_abs_builddir in
7650 .) ac_abs_srcdir=$ac_srcdir;;
7653 .) ac_abs_srcdir=$ac_abs_builddir;;
7654 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7655 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7658 case $ac_abs_builddir in
7659 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7661 case $ac_top_srcdir in
7662 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7663 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7664 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7670 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7671 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7674 if test x"$ac_file" != x-; then
7675 { echo "$as_me:$LINENO: creating $ac_file" >&5
7676 echo "$as_me: creating $ac_file" >&6;}
7679 # Let's still pretend it is `configure' which instantiates (i.e., don't
7680 # use $as_me), people would be surprised to read:
7681 # /* config.h. Generated by config.status. */
7682 if test x"$ac_file" = x-; then
7685 configure_input="$ac_file. "
7687 configure_input=$configure_input"Generated from `echo $ac_file_in |
7688 sed 's,.*/,,'` by configure."
7690 # First look for the input files in the build tree, otherwise in the
7692 ac_file_inputs=`IFS=:
7693 for f in $ac_file_in; do
7695 -) echo $tmp/stdin ;;
7697 # Absolute (can't be DOS-style, as IFS=:)
7698 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7699 echo "$as_me: error: cannot find input file: $f" >&2;}
7700 { (exit 1); exit 1; }; }
7703 if test -f "$f"; then
7706 elif test -f "$srcdir/$f"; then
7711 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7712 echo "$as_me: error: cannot find input file: $f" >&2;}
7713 { (exit 1); exit 1; }; }
7716 done` || { (exit 1); exit 1; }
7718 cat >>$CONFIG_STATUS <<_ACEOF
7722 cat >>$CONFIG_STATUS <<\_ACEOF
7724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7725 s,@configure_input@,$configure_input,;t t
7726 s,@srcdir@,$ac_srcdir,;t t
7727 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7728 s,@top_srcdir@,$ac_top_srcdir,;t t
7729 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7730 s,@builddir@,$ac_builddir,;t t
7731 s,@abs_builddir@,$ac_abs_builddir,;t t
7732 s,@top_builddir@,$ac_top_builddir,;t t
7733 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7734 s,@INSTALL@,$ac_INSTALL,;t t
7735 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7737 if test x"$ac_file" != x-; then
7738 mv $tmp/out $ac_file
7746 cat >>$CONFIG_STATUS <<\_ACEOF
7749 # CONFIG_COMMANDS section.
7751 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7752 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7753 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7754 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7755 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7756 X"$ac_dest" : 'X\(//\)[^/]' \| \
7757 X"$ac_dest" : 'X\(//\)$' \| \
7758 X"$ac_dest" : 'X\(/\)' \| \
7759 . : '\(.\)' 2>/dev/null ||
7761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7763 /^X\(\/\/\)$/{ s//\1/; q; }
7764 /^X\(\/\).*/{ s//\1/; q; }
7766 { if $as_mkdir_p; then
7771 while test ! -d "$as_dir"; do
7772 as_dirs="$as_dir $as_dirs"
7773 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7775 X"$as_dir" : 'X\(//\)[^/]' \| \
7776 X"$as_dir" : 'X\(//\)$' \| \
7777 X"$as_dir" : 'X\(/\)' \| \
7778 . : '\(.\)' 2>/dev/null ||
7780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7782 /^X\(\/\/\)$/{ s//\1/; q; }
7783 /^X\(\/\).*/{ s//\1/; q; }
7786 test ! -n "$as_dirs" || mkdir $as_dirs
7787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7789 { (exit 1); exit 1; }; }; }
7793 if test "$ac_dir" != .; then
7794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7795 # A "../" for each directory in $ac_dir_suffix.
7796 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7798 ac_dir_suffix= ac_top_builddir=
7802 .) # No --srcdir option. We are building in place.
7804 if test -z "$ac_top_builddir"; then
7807 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7809 [\\/]* | ?:[\\/]* ) # Absolute path.
7810 ac_srcdir=$srcdir$ac_dir_suffix;
7811 ac_top_srcdir=$srcdir ;;
7813 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7814 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7817 # Do not use `cd foo && pwd` to compute absolute paths, because
7818 # the directories may not exist.
7820 .) ac_abs_builddir="$ac_dir";;
7823 .) ac_abs_builddir=`pwd`;;
7824 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7825 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7828 case $ac_abs_builddir in
7829 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7831 case ${ac_top_builddir}. in
7832 .) ac_abs_top_builddir=$ac_abs_builddir;;
7833 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7834 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7837 case $ac_abs_builddir in
7838 .) ac_abs_srcdir=$ac_srcdir;;
7841 .) ac_abs_srcdir=$ac_abs_builddir;;
7842 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7843 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7846 case $ac_abs_builddir in
7847 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7849 case $ac_top_srcdir in
7850 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7851 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7852 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7857 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7858 echo "$as_me: executing $ac_dest commands" >&6;}
7860 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7861 # Strip MF so we end up with the name of the file.
7862 mf=`echo "$mf" | sed -e 's/:.*$//'`
7863 # Check whether this is an Automake generated Makefile or not.
7864 # We used to match only the files named `Makefile.in', but
7865 # some people rename them; so instead we look at the file content.
7866 # Grep'ing the first line is not enough: some people post-process
7867 # each Makefile.in and add a new line on top of each file to say so.
7868 # So let's grep whole file.
7869 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7870 dirpart=`(dirname "$mf") 2>/dev/null ||
7871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7872 X"$mf" : 'X\(//\)[^/]' \| \
7873 X"$mf" : 'X\(//\)$' \| \
7874 X"$mf" : 'X\(/\)' \| \
7875 . : '\(.\)' 2>/dev/null ||
7877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7879 /^X\(\/\/\)$/{ s//\1/; q; }
7880 /^X\(\/\).*/{ s//\1/; q; }
7885 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7886 # Extract the definition of DEP_FILES from the Makefile without
7888 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7889 test -z "$DEPDIR" && continue
7890 # When using ansi2knr, U may be empty or an underscore; expand it
7891 U=`sed -n -e '/^U = / s///p' < "$mf"`
7892 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7893 # We invoke sed twice because it is the simplest approach to
7894 # changing $(DEPDIR) to its actual value in the expansion.
7895 for file in `sed -n -e '
7896 /^DEP_FILES = .*\\\\$/ {
7905 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7906 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7907 # Make sure the directory exists.
7908 test -f "$dirpart/$file" && continue
7909 fdir=`(dirname "$file") 2>/dev/null ||
7910 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7911 X"$file" : 'X\(//\)[^/]' \| \
7912 X"$file" : 'X\(//\)$' \| \
7913 X"$file" : 'X\(/\)' \| \
7914 . : '\(.\)' 2>/dev/null ||
7916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7918 /^X\(\/\/\)$/{ s//\1/; q; }
7919 /^X\(\/\).*/{ s//\1/; q; }
7921 { if $as_mkdir_p; then
7922 mkdir -p $dirpart/$fdir
7924 as_dir=$dirpart/$fdir
7926 while test ! -d "$as_dir"; do
7927 as_dirs="$as_dir $as_dirs"
7928 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7930 X"$as_dir" : 'X\(//\)[^/]' \| \
7931 X"$as_dir" : 'X\(//\)$' \| \
7932 X"$as_dir" : 'X\(/\)' \| \
7933 . : '\(.\)' 2>/dev/null ||
7935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7937 /^X\(\/\/\)$/{ s//\1/; q; }
7938 /^X\(\/\).*/{ s//\1/; q; }
7941 test ! -n "$as_dirs" || mkdir $as_dirs
7942 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7943 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7944 { (exit 1); exit 1; }; }; }
7946 # echo "creating $dirpart/$file"
7947 echo '# dummy' > "$dirpart/$file"
7955 cat >>$CONFIG_STATUS <<\_ACEOF
7957 { (exit 0); exit 0; }
7959 chmod +x $CONFIG_STATUS
7960 ac_clean_files=$ac_clean_files_save
7963 # configure is writing to config.log, and then calls config.status.
7964 # config.status does its own redirection, appending to config.log.
7965 # Unfortunately, on DOS this fails, as config.log is still kept open
7966 # by configure, so config.status won't be able to write to it; its
7967 # output is simply discarded. So we exec the FD to /dev/null,
7968 # effectively closing config.log, so it can be properly (re)opened and
7969 # appended to by config.status. When coming back to configure, we
7970 # need to make the FD available again.
7971 if test "$no_create" != yes; then
7973 ac_config_status_args=
7974 test "$silent" = yes &&
7975 ac_config_status_args="$ac_config_status_args --quiet"
7977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7980 # would make configure fail if this is the last instruction.
7981 $ac_cs_success || { (exit 1); exit 1; }